﻿/* Base compartida (mismo patrón que clientes/divisas/conta) */
:is(.clientes-root, .divisas-root, .conta-root, .acerca-root) {
    min-height: 100vh;
    background: #f3f6fb;
    color: #1f2937;
    width: 100%;
    display: flex;
    font-family: sans-serif;
}

/* Sidebar, header, contenedores (idéntico a las otras páginas) */
.acerca-root .sidebar {
    width: 250px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #fff;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: all .3s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,.1);
}

.acerca-root .sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.acerca-root .logo {
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(45deg,#fff,#f0f9ff,#dbeafe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.acerca-root .sidebar-nav {
    padding: 20px 0;
}

.acerca-root .nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    transition: .3s;
    border-left: 4px solid transparent;
    cursor: pointer;
}

    .acerca-root .nav-item:hover {
        background: rgba(255,255,255,.1);
        color: #fff;
        border-left-color: rgba(255,255,255,.3);
    }

    .acerca-root .nav-item.active {
        background: rgba(255,255,255,.15);
        color: #fff;
        border-left-color: #fff;
    }

.acerca-root .nav-icon {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 24px;
    text-align: center;
}

.acerca-root .nav-text {
    font-size: .95rem;
    font-weight: 500;
}

.acerca-root .main-content-wrapper {
    flex: 1;
    margin-left: 250px;
    transition: all .3s ease;
}

.acerca-root .header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

.acerca-root .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.acerca-root .sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1e3a8a;
    display: none;
    padding: 5px 10px;
}

.acerca-root .user-info-container {
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
}

.acerca-root .user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.acerca-root .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg,#059669,#10b981);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    transition: .3s;
}

    .acerca-root .user-avatar:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 20px rgba(16,185,129,.3);
    }

.acerca-root .user-details {
    text-align: right;
}

.acerca-root .user-name {
    font-weight: 600;
    font-size: .95rem;
}

.acerca-root .user-role {
    font-size: .85rem;
    opacity: .8;
}

.acerca-root .return-btn {
    background: rgba(220,38,38,.1);
    border: 1px solid rgba(220,38,38,.2);
    color: #dc2626;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    transition: .3s;
}

    .acerca-root .return-btn:hover {
        background: rgba(220,38,38,.2);
        transform: translateY(-2px);
    }

.acerca-root .main-content {
    padding: 30px 0;
}

.acerca-root .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.acerca-root .admin-header {
    background: linear-gradient(135deg,#f8fafc 0%,#e2e8f0 100%);
    border-radius: 20px;
    padding: 30px 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.acerca-root .admin-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.acerca-root .admin-subtitle {
    font-size: 1.1rem;
    color: #64748b;
}

.acerca-root .tab-content {
    background: #fff;
    border-radius: 20px;
    padding: 30px 40px;
    box-shadow: 0 10px 40px rgba(220,225,240,.7);
    border: 1px solid #e2e8f0;
    margin-bottom: 40px;
}

/* Botones */
.acerca-root .btn {
    background: linear-gradient(135deg,#1e3a8a,#2563eb);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
    box-shadow: 0 4px 15px rgba(37,99,235,.25);
}

    .acerca-root .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(37,99,235,.35);
    }

/* Badges (compatibles con otras páginas) */
.badge {
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: .8rem;
    font-weight: 700;
}

.badge-green {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.badge-blue {
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

/* Layout específico de “Acerca” */
.acerca-root .about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 24px;
}

.acerca-root .about-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 6px 24px rgba(220,225,240,.6);
}

.acerca-root .about-card-title {
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 14px;
    font-size: 1.15rem;
}

.acerca-root .about-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.acerca-root .about-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px dashed #e5e7eb;
}

    .acerca-root .about-item:last-child {
        border-bottom: none;
    }

.acerca-root .about-key {
    color: #6b7280;
    font-weight: 700;
}

.acerca-root .about-val {
    color: #111827;
    font-weight: 700;
}

    .acerca-root .about-val.muted {
        color: #6b7280;
        font-weight: 600;
    }

.acerca-root .about-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
    .acerca-root .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .acerca-root .sidebar {
        transform: translateX(-100%);
    }

        .acerca-root .sidebar.active {
            transform: translateX(0);
        }

    .acerca-root .main-content-wrapper {
        margin-left: 0;
    }

    .acerca-root .sidebar-toggle {
        display: block;
    }

    .acerca-root .user-details {
        display: none;
    }
}
