/* ===== dashboard.css ===== */
/* Estilos específicos del panel de control */

/* ============================================
   1. IMPORTS DE SECCIONES
   ============================================ */
@import url('secciones/inicio.css');
@import url('secciones/cuestionarios.css');
@import url('secciones/juegos.css');
@import url('secciones/mas-info.css');

/* ============================================
   2. FONDO GENERAL
   ============================================ */
body {
    background: linear-gradient(135deg, #ffb3c6, #ffdac1);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
}

/* ============================================
   3. CONTENEDOR PRINCIPAL
   ============================================ */
.dashboard-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    min-height: 100vh;
}

/* ============================================
   4. PERFIL DE USUARIO
   ============================================ */
.user-profile {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

.profile-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-icon {
    font-size: 24px;
    color: #fb6f92;
}

#profileName {
    font-weight: 700;
    font-size: 15px;
    color: #4A4A4A;
}

.profile-btn {
    background: #fb6f92;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 30px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.profile-btn:hover {
    background: #e05a7a;
}

/* ============================================
   5. TARJETA PRINCIPAL
   ============================================ */
.login-card {
    background: #FFFFFF;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(255, 160, 122, 0.25);
    padding: 50px 60px 60px 60px;
    width: 100%;
    max-width: 1100px;
    text-align: center;
    box-sizing: border-box;
    margin-top: 40px;
}

/* ============================================
   6. LOGO DEL TÍTULO QUIZSWEET
   ============================================ */
.site-logo {
    display: block;
    width: 525px;
    max-width: 90%;
    height: 128px;
    margin: 0 auto 15px auto;
    object-fit: cover;
    object-position: center 50%;
    image-rendering: auto;
}

/* ============================================
   7. MENÚ DE NAVEGACIÓN
   ============================================ */
.dashboard-nav {
    margin: 20px 0 30px 0;
    border-bottom: 2px solid #FFDAB9;
    padding-bottom: 15px;
}

.dashboard-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.dashboard-nav ul li a {
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: #888;
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-nav ul li a i {
    font-size: 18px;
}

.dashboard-nav ul li a:hover {
    color: #fb6f92;
    background: #FFF0E6;
}

.dashboard-nav ul li a.active {
    color: #fb6f92;
    background: #FFF0E6;
}

/* ============================================
   8. CONTENIDO DE SECCIONES
   ============================================ */
.dashboard-content {
    margin-top: 20px;
    text-align: left;
}

.section-content {
    animation: fadeIn 0.3s ease;
}

.section-content h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 28px;
    color: #4A4A4A;
    margin-bottom: 10px;
}

.section-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   9. MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 179, 198, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: #FFFFFF;
    border-radius: 50px;
    box-shadow: 0 30px 80px rgba(255, 160, 122, 0.4);
    padding: 40px 50px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 36px;
    background: none;
    border: none;
    color: #FFA07A;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    font-weight: 300;
    line-height: 1;
}

.modal-close:hover {
    transform: rotate(90deg);
    color: #E07A5A;
}

#modal-body {
    text-align: center;
    padding: 10px 0;
}

.modal-icon {
    font-size: 72px;
    margin-bottom: 10px;
}

#modal-body h2 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 32px;
    color: #4A4A4A;
    margin-bottom: 15px;
}

#modal-body p {
    font-size: 18px;
    color: #555;
    line-height: 1.7;
    max-width: 90%;
    margin: 0 auto;
}

/* ============================================
   10. RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .user-profile {
        top: 10px;
        right: 15px;
        padding: 8px 14px;
        gap: 8px;
    }
    .profile-icon {
        font-size: 20px;
    }
    #profileName {
        font-size: 13px;
    }
    .profile-btn {
        font-size: 12px;
        padding: 4px 12px;
    }
    .login-card {
        padding: 30px 20px 40px 20px;
        margin-top: 60px;
    }
    .site-logo {
        width: 300px;
        height: 80px;
    }
    .dashboard-nav ul {
        gap: 10px;
    }
    .dashboard-nav ul li a {
        font-size: 14px;
        padding: 6px 12px;
    }
    .section-content h2 {
        font-size: 22px;
    }
    .modal-container {
        padding: 30px 25px;
        max-width: 95%;
    }
    #modal-body h2 {
        font-size: 26px;
    }
    #modal-body p {
        font-size: 16px;
    }
    .modal-icon {
        font-size: 56px;
    }
}

@media (max-width: 480px) {
    .user-profile {
        top: 8px;
        right: 10px;
        padding: 6px 10px;
    }
    #profileName {
        font-size: 12px;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .profile-btn {
        font-size: 11px;
        padding: 3px 10px;
    }
    .login-card {
        padding: 20px 15px 30px 15px;
        margin-top: 50px;
    }
    .site-logo {
        width: 200px;
        height: 55px;
    }
    .dashboard-nav ul {
        gap: 5px;
    }
    .dashboard-nav ul li a {
        font-size: 12px;
        padding: 4px 10px;
    }
    .section-content h2 {
        font-size: 18px;
    }
}




/* ============================================
   MODAL DE ACEPTACIÓN DE TÉRMINOS
   ============================================ */
.terminos-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(80, 60, 140, 0.75);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
    animation: fadeIn 0.4s ease;
}

.terminos-modal {
    background: #FFFFFF;
    border-radius: 40px;
    padding: 40px 45px;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 30px 80px rgba(80, 60, 140, 0.3);
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.terminos-modal-icon {
    font-size: 56px;
    margin-bottom: 10px;
}

.terminos-modal-title {
    font-family: 'Pacifico', cursive;
    font-size: 30px;
    color: #6a5ac4;
    margin-bottom: 8px;
}

.terminos-modal-subtitle {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 24px;
}

.terminos-modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    text-align: left;
}

.terminos-item {
    background: #f8f4ff;
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    border: 1px solid #e0d0f0;
}

.terminos-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}

.terminos-item-icon {
    font-size: 26px;
    flex-shrink: 0;
}

.terminos-item h4 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 15px;
    color: #4A4A4A;
    margin-bottom: 2px;
}

.terminos-item p {
    font-size: 12.5px;
    color: #777;
    margin: 0;
}

.terminos-item-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    background: #e0e0e0;
    color: #666;
    white-space: nowrap;
}

.terminos-item-badge.obligatorio {
    background: #ffd0d0;
    color: #a03030;
}

.terminos-item-link {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #8a7ad4;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #d0c0f0;
    transition: all 0.2s;
    white-space: nowrap;
}

.terminos-item-link:hover {
    background: #8a7ad4;
    color: #fff;
}

.terminos-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    margin-bottom: 20px;
    text-align: left;
    line-height: 1.4;
}

.terminos-checkbox input[type="checkbox"] {
    display: none;
}

.terminos-checkbox .checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #c0a8e0;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-top: 1px;
}

.terminos-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #8a7ad4;
    border-color: #8a7ad4;
}

.terminos-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: #fff;
    font-weight: 800;
    font-size: 14px;
}

.terminos-checkbox a {
    color: #8a7ad4;
    font-weight: 700;
    text-decoration: none;
}

.btn-aceptar-terminos {
    width: 100%;
    background: linear-gradient(135deg, #b5a8e0, #8a7ad4);
    border: none;
    border-radius: 50px;
    padding: 14px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 17px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 20px rgba(122, 106, 212, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-aceptar-terminos:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-aceptar-terminos:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(122, 106, 212, 0.4);
}

.terminos-modal-nota {
    font-size: 12px;
    color: #999;
    margin-top: 16px;
}

.terminos-modal-nota a {
    color: #8a7ad4;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 600px) {
    .terminos-modal {
        padding: 30px 22px;
        border-radius: 30px;
    }
    .terminos-modal-title {
        font-size: 24px;
    }
    .terminos-modal-icon {
        font-size: 44px;
    }
}




/* ============================================
   MODAL DE ACEPTACIÓN DE TÉRMINOS
   ============================================ */
.terminos-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(80, 60, 140, 0.75);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
    animation: fadeIn 0.4s ease;
}

.terminos-modal {
    background: #FFFFFF;
    border-radius: 40px;
    padding: 40px 45px;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 30px 80px rgba(80, 60, 140, 0.3);
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.terminos-modal-icon {
    font-size: 56px;
    margin-bottom: 10px;
}

.terminos-modal-title {
    font-family: 'Pacifico', cursive;
    font-size: 30px;
    color: #6a5ac4;
    margin-bottom: 8px;
}

.terminos-modal-subtitle {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 24px;
}

.terminos-modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    text-align: left;
}

.terminos-item {
    background: #f8f4ff;
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    border: 1px solid #e0d0f0;
}

.terminos-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}

.terminos-item-icon {
    font-size: 26px;
    flex-shrink: 0;
}

.terminos-item h4 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 15px;
    color: #4A4A4A;
    margin-bottom: 2px;
}

.terminos-item p {
    font-size: 12.5px;
    color: #777;
    margin: 0;
}

.terminos-item-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    background: #e0e0e0;
    color: #666;
    white-space: nowrap;
}

.terminos-item-badge.obligatorio {
    background: #ffd0d0;
    color: #a03030;
}

.terminos-item-link {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #8a7ad4;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #d0c0f0;
    transition: all 0.2s;
    white-space: nowrap;
}

.terminos-item-link:hover {
    background: #8a7ad4;
    color: #fff;
}

.terminos-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    margin-bottom: 20px;
    text-align: left;
    line-height: 1.4;
}

.terminos-checkbox input[type="checkbox"] {
    display: none;
}

.terminos-checkbox .checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #c0a8e0;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-top: 1px;
}

.terminos-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #8a7ad4;
    border-color: #8a7ad4;
}

.terminos-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: #fff;
    font-weight: 800;
    font-size: 14px;
}

.terminos-checkbox a {
    color: #8a7ad4;
    font-weight: 700;
    text-decoration: none;
}

.btn-aceptar-terminos {
    width: 100%;
    background: linear-gradient(135deg, #b5a8e0, #8a7ad4);
    border: none;
    border-radius: 50px;
    padding: 14px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 17px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 20px rgba(122, 106, 212, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-aceptar-terminos:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-aceptar-terminos:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(122, 106, 212, 0.4);
}

.terminos-modal-nota {
    font-size: 12px;
    color: #999;
    margin-top: 16px;
}

.terminos-modal-nota a {
    color: #8a7ad4;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 600px) {
    .terminos-modal {
        padding: 30px 22px;
        border-radius: 30px;
    }
    .terminos-modal-title {
        font-size: 24px;
    }
    .terminos-modal-icon {
        font-size: 44px;
    }
}




.terminos-modal-logo {
    display: block;
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
    object-fit: contain;
}