/* ========================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
   ======================================== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #06b6d4;
    --secondary-dark: #0891b2;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1f2937;
    --gray: #6b7280;
    --light: #f3f4f6;
    --white: #ffffff;
    --gold: #fbbf24;
    --gold-dark: #f59e0b;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transiciones */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
    
    /* Espaciado */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --radius-full: 9999px;
}

/* Tema Oscuro */
[data-theme="dark"] {
    --primary: #818cf8;
    --primary-dark: #6366f1;
    --primary-light: #a5b4fc;
    --secondary: #22d3ee;
    --secondary-dark: #06b6d4;
    --accent: #fbbf24;
    --success: #34d399;
    --danger: #f87171;
    --warning: #fbbf24;
    --info: #60a5fa;
    --dark: #f9fafb;
    --gray: #9ca3af;
    --light: #1f2937;
    --white: #111827;
    --gold: #fcd34d;
    --gold-dark: #fbbf24;
    
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ========================================
   RESET Y ESTILOS BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
}

[data-theme="dark"] body {
    background: #0f172a;
}

/* ========================================
   LOADER
   ======================================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-logo {
    font-size: 4rem;
    animation: pulse 1.5s infinite;
    margin-bottom: 1rem;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

.loader-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 20px auto;
}

.loader-progress-bar {
    height: 100%;
    background: white;
    width: 0;
    animation: loadProgress 2s ease-in-out forwards;
}

.loader-tip {
    margin-top: 1rem;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* ========================================
   HEADER Y NAVEGACIÓN
   ======================================== */

.header {
    display: flex;
    justify-content: center; /* Centrar horizontalmente */
    align-items: center; /* Alineación vertical centrada */
    flex-wrap: nowrap;
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}


[data-theme="dark"] .header {
    background: #1e293b;
}

.nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.nav-brand:hover {
    transform: translateY(-2px);
}

.nav-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-item {
    display: flex;
    align-items: center;
    height: 100%;
}
.nav-version {
    background: var(--gradient-primary);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-xl);
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    white-space: nowrap; /* Evitar que el texto se rompa en múltiples líneas */
    align-items: center; /* Centrar verticalmente */
    justify-content: center; /* Centrar horizontalmente */
    font-size: 1rem; /* Reducir ligeramente el tamaño de fuente */
    text-align: center;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.theme-toggle,
.recycling-btn {
    background: var(--light);
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover,
.recycling-btn:hover {
    background: var(--primary);
    color: white;
    transform: rotate(180deg);
}

.recycling-icon-nav {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================================
   ESTILOS PARA USUARIOS PLUS
   ======================================== */

/* Ocultar todos los elementos promocionales para usuarios Plus */
body.plus-user .upgrade-prompt,
body.plus-user .plus-promotion,
body.plus-user .locked-content,
body.plus-user .content-locked-overlay,
body.plus-user .free-warning-banner,
body.plus-user .limitation-badge,
body.plus-user .upgrade-card,
body.plus-user .plus-card,
body.plus-user .btn-upgrade-plus,
body.plus-user .floating-plus-banner,
body.plus-user .plus-cta,
body.plus-user [class*="upgrade"],
body.plus-user [class*="premium-prompt"],
body.plus-user [class*="locked"] {
    display: none !important;
}

/* Badge de Plus activo */
.plus-active-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Limpiar espacios vacíos dejados por elementos removidos */
body.plus-user .container {
    gap: 0;
}

/* Ajustar grid cuando se ocultan cards de Plus */
body.plus-user .features-grid,
body.plus-user .cards-grid {
    grid-auto-rows: min-content;
}

/* Ocultar separadores relacionados con Plus */
body.plus-user hr.plus-separator,
body.plus-user .divider.plus-divider {
    display: none;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.05;
    z-index: -2;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%236366f1" fill-opacity="0.1" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,213.3C672,224,768,224,864,213.3C960,203,1056,181,1152,181.3C1248,181,1344,203,1392,213.3L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-position: bottom;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 1s ease;
}

.hero-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-inline {
    display: block;
    font-size: 0.6em;
    font-weight: 400;
    color: var(--gray);
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.free-limitations-notice {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    border-left: 4px solid var(--warning);
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #92400e;
}

[data-theme="dark"] .free-limitations-notice {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.image-container {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.image-container:hover {
    transform: scale(1.05);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.image-container:hover .hero-image-overlay {
    transform: translateY(0);
}

/* ========================================
   ESTADÍSTICAS
   ======================================== */
.hero-stats {
    max-width: 1400px;
    margin: 4rem auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

[data-theme="dark"] .stat {
    background: #1e293b;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    display: block;
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .stat-number {
    color: var(--light);
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ========================================
   TABLA DE COMPARACIÓN
   ======================================== */
.comparison-table {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 3rem;
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .comparison-table {
    background: #1e293b;
}

.comparison-table h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table th:first-child {
    border-radius: var(--radius-lg) 0 0 0;
}

.comparison-table th:last-child {
    border-radius: 0 var(--radius-lg) 0 0;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--light);
}

[data-theme="dark"] .comparison-table td {
    border-bottom-color: #334155;
}

.comparison-table tr:hover {
    background: var(--light);
}

[data-theme="dark"] .comparison-table tr:hover {
    background: #334155;
}

.plus-column {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05), rgba(245, 158, 11, 0.05));
}

/* ========================================
   ANUNCIO DE RECICLAJE
   ======================================== */
.recycling-ad {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 2rem;
    background: var(--gradient-success);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    gap: 2rem;
    color: white;
    box-shadow: var(--shadow-lg);
}

.recycling-ad-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    background: white;
    border-radius: var(--radius-xl);
    padding: 1rem;
}

.recycling-ad-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.recycling-ad-content p {
    margin-bottom: 1rem;
    opacity: 0.95;
}

.recycling-btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-right: 0.5rem;
}

/* ========================================
   BOTONES
   ======================================== */
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-gold {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--gradient-gold);
    color: white;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-gold:hover::before {
    left: 100%;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* ========================================
   SECCIONES DE TEST
   ======================================== */
.test-section,
.aptitud-section {
    padding: 4rem 2rem;
    min-height: 100vh;
}

.test-container,
.aptitud-container {
    max-width: 900px;
    margin: 0 auto;
}

.free-warning-banner {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    border: 2px solid var(--warning);
    border-radius: var(--radius-xl);
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #92400e;
}

[data-theme="dark"] .free-warning-banner {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border-color: var(--warning);
}

.free-warning-banner a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.test-header,
.aptitud-header {
    text-align: center;
    margin-bottom: 3rem;
}

.test-header h2,
.aptitud-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

[data-theme="dark"] .test-header h2,
[data-theme="dark"] .aptitud-header h2 {
    color: var(--light);
}

.test-info,
.aptitud-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.test-info span,
.info-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
}

.info-card {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

[data-theme="dark"] .info-card {
    background: #1e293b;
}

.test-progress,
.aptitud-progress {
    margin: 2rem 0;
}

.aptitud-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timer {
    background: var(--danger);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: var(--light);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 1rem;
    flex: 1;
}

[data-theme="dark"] .progress-bar {
    background: #334155;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: var(--gray);
}

.question-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

[data-theme="dark"] .question-card {
    background: #1e293b;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.question-number {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.question-category,
.question-subject {
    background: var(--secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
}

.question-points {
    color: var(--success);
    font-weight: 600;
}

.question-text {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: var(--dark);
}

[data-theme="dark"] .question-text {
    color: var(--light);
}

.answers-container {
    display: grid;
    gap: 1rem;
}

.answer-option {
    background: var(--light);
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
}

[data-theme="dark"] .answer-option {
    background: #334155;
}

.answer-option:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.answer-option.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.answer-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.answer-option.selected .answer-radio {
    border-color: white;
}

.answer-option.selected .answer-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

.question-hint {
    background: #e0f2fe;
    border-radius: var(--radius-xl);
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0369a1;
}

[data-theme="dark"] .question-hint {
    background: rgba(14, 165, 233, 0.1);
    color: #38bdf8;
}

.test-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========================================
   NAVEGADOR DE PREGUNTAS (APTITUD)
   ======================================== */
.aptitud-content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
}

.question-main {
    order: 1;
}

.question-navigator {
    order: 2;
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

[data-theme="dark"] .question-navigator {
    background: #1e293b;
}

.question-navigator h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.question-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.question-nav-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--light);
    background: var(--white);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .question-nav-btn {
    background: #334155;
    border-color: #475569;
}

.question-nav-btn:hover {
    border-color: var(--primary);
    transform: scale(1.1);
}

.question-nav-btn.current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.question-nav-btn.answered {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.question-nav-btn.marked {
    background: var(--warning);
    color: white;
    border-color: var(--warning);
}

.navigator-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.navigator-legend span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   SECCIÓN DE RESULTADOS
   ======================================== */
.results-section {
    padding: 4rem 2rem;
    min-height: 100vh;
}

.results-container {
    max-width: 1200px;
    margin: 0 auto;
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.results-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

[data-theme="dark"] .results-header h2 {
    color: var(--light);
}

.confetti {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 200px;
    pointer-events: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23ff6b6b" opacity="0.8"><animate attributeName="cy" from="20" to="100" dur="3s" repeatCount="indefinite"/></circle><circle cx="50" cy="10" r="2" fill="%234ecdc4" opacity="0.8"><animate attributeName="cy" from="10" to="100" dur="2.5s" repeatCount="indefinite"/></circle><circle cx="80" cy="30" r="2" fill="%23ffe66d" opacity="0.8"><animate attributeName="cy" from="30" to="100" dur="3.5s" repeatCount="indefinite"/></circle></svg>');
}

.plus-indicator-results {
    background: var(--gradient-gold);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem auto;
    font-weight: 600;
}

.free-results-warning {
    background: var(--gradient-danger);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    margin: 2rem 0;
    color: white;
    text-align: center;
}

.warning-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.warning-content ul {
    list-style: none;
    margin: 1rem 0;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.warning-content li {
    margin: 0.5rem 0;
}

.chart-container {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

[data-theme="dark"] .chart-container {
    background: #1e293b;
}

.chart-container h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
}

#riasecChart {
    max-height: 400px;
}

.aptitude-results-section {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

[data-theme="dark"] .aptitude-results-section {
    background: #1e293b;
}

.aptitude-score-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
}

.score-circle span:first-child {
    font-size: 3rem;
    font-weight: 700;
}

.score-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.score-details {
    display: grid;
    gap: 1.5rem;
}

.score-breakdown h4,
.score-interpretation h4,
.university-readiness h5 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.certificates-section {
    margin: 3rem 0;
}

.certificates-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.certificate-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

[data-theme="dark"] .certificate-card {
    background: #1e293b;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.certificate-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.certificate-card h4 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

[data-theme="dark"] .certificate-card h4 {
    color: var(--light);
}

.certificate-card p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* ========================================
   ESTILOS MEJORADOS PARA RESULTADOS
   ======================================== */
.results-summary {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

[data-theme="dark"] .results-summary {
    background: #1e293b;
}

.results-summary h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-categories {
    display: grid;
    gap: 1rem;
}

.category-result {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

[data-theme="dark"] .category-result {
    background: #334155;
}

.category-result:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.category-rank {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.category-info {
    flex: 1;
}

.category-info h4 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

[data-theme="dark"] .category-info h4 {
    color: var(--light);
}

.score-bar {
    height: 8px;
    background: var(--light);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0.5rem 0;
}

[data-theme="dark"] .score-bar {
    background: #475569;
}

.score-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 1s ease;
}

.score-text {
    font-weight: 600;
    color: var(--primary);
}

/* Carreras Recomendadas */
.careers-recommendation {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

[data-theme="dark"] .careers-recommendation {
    background: #1e293b;
}

.careers-recommendation h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.careers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.career-card {
    background: var(--light);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

[data-theme="dark"] .career-card {
    background: #334155;
}

.career-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.career-card h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.career-card p {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.career-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.career-details span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.career-universities {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light);
}

[data-theme="dark"] .career-universities {
    border-top-color: #475569;
}

.career-universities strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--dark);
}

[data-theme="dark"] .career-universities strong {
    color: var(--light);
}

.university-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.university-tags .tag {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
}

/* Análisis de Personalidad */
.personality-analysis {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

[data-theme="dark"] .personality-analysis {
    background: #1e293b;
}

.personality-analysis h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.traits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.trait-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 500;
}

.personality-description {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.compatibility-score h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .compatibility-score h4 {
    color: var(--light);
}

.compatibility-bar {
    height: 12px;
    background: var(--light);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0.5rem 0;
}

[data-theme="dark"] .compatibility-bar {
    background: #334155;
}

.compatibility-fill {
    height: 100%;
    background: var(--gradient-success);
    transition: width 1s ease;
}

/* IMPORTANTE: Proyección Salarial - TAMAÑO CORREGIDO */
.salary-projection {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

[data-theme="dark"] .salary-projection {
    background: #1e293b;
}

.salary-projection h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.projection-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
}

/* AQUÍ ESTÁ LA CORRECCIÓN DEL TAMAÑO DEL GRÁFICO */
#salaryChart {
    max-height: 250px !important; /* Altura máxima fija */
    width: 100% !important;
}

.projection-summary {
    background: var(--light);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}

[data-theme="dark"] .projection-summary {
    background: #334155;
}

.salary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--white);
}

[data-theme="dark"] .salary-item {
    border-bottom-color: #475569;
}

.salary-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.salary-item span {
    color: var(--gray);
    font-size: 0.9rem;
}

.salary-item strong {
    color: var(--success);
    font-size: 1.1rem;
}

/* Contenido bloqueado */
.locked-careers {
    position: relative;
    min-height: 200px;
    background: var(--light);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

/* Responsive para resultados */
@media (max-width: 768px) {
    .careers-grid {
        grid-template-columns: 1fr;
    }
    
    .projection-content {
        grid-template-columns: 1fr;
    }
    
    #salaryChart {
        max-height: 200px !important;
    }
}


/* ========================================
   SECCIÓN DE UNIVERSIDADES
   ======================================== */
.universities-section {
    padding: 4rem 2rem;
    min-height: 100vh;
}

.universities-container {
    max-width: 1400px;
    margin: 0 auto;
}

.universities-header {
    text-align: center;
    margin-bottom: 3rem;
}

.universities-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

[data-theme="dark"] .universities-header h2 {
    color: var(--light);
}

.universities-description {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.universities-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.uni-stat {
    text-align: center;
}

.uni-stat i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.uni-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

[data-theme="dark"] .uni-stat-number {
    color: var(--light);
}

.uni-stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

.universities-filters-advanced {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

[data-theme="dark"] .universities-filters-advanced {
    background: #1e293b;
}

.universities-filters-advanced h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-theme="dark"] .filter-group label {
    color: var(--light);
}

.search-input,
.filter-select {
    padding: 0.75rem;
    border: 2px solid var(--light);
    border-radius: var(--radius-xl);
    background: var(--white);
    transition: var(--transition);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

[data-theme="dark"] .search-input,
[data-theme="dark"] .filter-select {
    background: #334155;
    border-color: #475569;
    color: var(--light);
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-input:disabled,
.filter-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.filter-disabled-notice {
    color: var(--warning);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-count {
    color: var(--gray);
}

.universities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.university-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

[data-theme="dark"] .university-card {
    background: #1e293b;
}

.university-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.university-card-image {
    height: 200px;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.university-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.university-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
}

.university-card-content {
    padding: 1.5rem;
}

.university-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.university-meta {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--gray);
    flex-wrap: wrap;
}

.university-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.university-careers {
    margin: 1rem 0;
}

.university-careers h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--gray);
}

.career-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.career-tag {
    background: var(--light);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    color: var(--dark);
}

[data-theme="dark"] .career-tag {
    background: #334155;
    color: var(--light);
}

.university-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.university-card-actions button {
    flex: 1;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.page-btn {
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
}

[data-theme="dark"] .page-btn {
    background: #1e293b;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    color: var(--dark);
    font-weight: 600;
}

[data-theme="dark"] .page-info {
    color: var(--light);
}

.universities-cta {
    background: var(--gradient-gold);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    text-align: center;
    color: white;
    margin: 3rem 0;
}

.universities-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.universities-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ========================================
   SECCIÓN DE CHAT IA
   ======================================== */
.chat-section {
    padding: 4rem 2rem;
    min-height: 100vh;
}

.chat-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    height: 80vh;
}

.chat-sidebar {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    overflow-y: auto;
}

[data-theme="dark"] .chat-sidebar {
    background: #1e293b;
}

.chat-sidebar h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.message-counter {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    border-radius: var(--radius-xl);
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

[data-theme="dark"] .message-counter {
    background: rgba(245, 158, 11, 0.1);
}

.message-counter i {
    color: var(--warning);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.message-progress-bar {
    height: 4px;
    background: rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 0.5rem;
}

.btn-new-chat {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.btn-new-chat:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.chat-history {
    margin-bottom: 1.5rem;
}

.chat-topics {
    margin-bottom: 1.5rem;
}

.chat-topics h4 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--gray);
}

.topic-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--light);
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 0.5rem;
    text-align: left;
    font-size: 0.9rem;
}

[data-theme="dark"] .topic-btn {
    background: #334155;
    color: var(--light);
}

.topic-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

.api-status {
    margin-bottom: 1.5rem;
}

.api-status h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--gray);
}

.api-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.api-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

.api-dot.active {
    background: var(--success);
}

.api-list small {
    color: var(--gray);
}

.sidebar-plus-cta {
    background: var(--gradient-gold);
    border-radius: var(--radius-xl);
    padding: 1rem;
    text-align: center;
    color: white;
}

.sidebar-plus-cta i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.sidebar-plus-cta p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.chat-container {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .chat-container {
    background: #1e293b;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(99, 102, 241, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 100;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.chat-header {
    background: var(--gradient-primary);
    padding: 1rem 1.5rem;
    color: white;
}

.header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ai-avatar-small {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.ai-info-compact h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger);
}

.status-dot.active {
    background: var(--success);
    animation: pulse 2s infinite;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.3s ease;
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.message.user .message-avatar {
    background: var(--secondary);
}

.message-content {
    background: var(--light);
    padding: 1rem;
    border-radius: var(--radius-xl);
    max-width: 70%;
}

[data-theme="dark"] .message-content {
    background: #334155;
}

.message.user .message-content {
    background: var(--primary);
    color: white;
}

.message-time {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

.message.user .message-time {
    color: rgba(255, 255, 255, 0.8);
    text-align: right;
}

.typing-indicator {
    display: none;
    padding: 1rem 1.5rem;
    background: var(--light);
    border-top: 1px solid var(--light);
}

[data-theme="dark"] .typing-indicator {
    background: #334155;
    border-top-color: #475569;
}

.typing-indicator.active {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.typing-dots {
    display: flex;
    gap: 0.25rem;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

.message-limit-warning {
    background: var(--gradient-danger);
    color: white;
    padding: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.input-area {
    padding: 1.5rem;
    border-top: 1px solid var(--light);
}

[data-theme="dark"] .input-area {
    border-top-color: #475569;
}

.quick-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.quick-btn {
    background: var(--light);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-size: 0.9rem;
}

[data-theme="dark"] .quick-btn {
    background: #334155;
    color: var(--light);
}

.quick-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.quick-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.input-container {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.btn-attachment,
.btn-voice {
    background: var(--light);
    border: none;
    padding: 0.75rem;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition);
}

[data-theme="dark"] .btn-attachment,
[data-theme="dark"] .btn-voice {
    background: #334155;
    color: var(--light);
}

.btn-attachment:hover:not(:disabled),
.btn-voice:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.btn-attachment:disabled,
.btn-voice:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.input-field {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--light);
    border-radius: var(--radius-xl);
    resize: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    min-height: 44px;
    max-height: 120px;
}

[data-theme="dark"] .input-field {
    background: #334155;
    border-color: #475569;
    color: var(--light);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
}

.input-field:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.send-btn {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.send-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   SECCIÓN DE RECURSOS
   ======================================== */
.resources-section {
    padding: 4rem 2rem;
    min-height: 100vh;
}

.resources-container {
    max-width: 1200px;
    margin: 0 auto;
}

.resources-header {
    text-align: center;
    margin-bottom: 3rem;
}

.resources-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

[data-theme="dark"] .resources-header h2 {
    color: var(--light);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.resource-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .resource-card {
    background: #1e293b;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.resource-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.resource-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

[data-theme="dark"] .resource-card h3 {
    color: var(--light);
}

.resource-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.resource-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-gold);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.resources-plus-cta {
    background: var(--gradient-gold);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    text-align: center;
    color: white;
}

.resources-plus-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.resources-plus-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.resources-plus-cta ul {
    list-style: none;
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: left;
}

.resources-plus-cta li {
    margin: 0.5rem 0;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--white);
    margin-top: 4rem;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .footer {
    background: #1e293b;
}

.footer-top {
    background: var(--gradient-primary);
    padding: 2rem;
}

.footer-newsletter {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.footer-newsletter h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-newsletter p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 1rem;
}

.footer-content {
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-section p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
    display: inline-block;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

[data-theme="dark"] .social-links a {
    background: #334155;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.footer-certifications {
    margin-top: 1.5rem;
}

.cert-badges {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.cert-badges img {
    height: 40px;
    opacity: 0.7;
    transition: var(--transition);
}

.cert-badges img:hover {
    opacity: 1;
}

.footer-bottom {
    background: var(--light);
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--light);
}

[data-theme="dark"] .footer-bottom {
    background: #0f172a;
    border-top-color: #334155;
}

.footer-bottom-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal p {
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

/* ========================================
   MODALES
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--radius-2xl);
    max-width: 500px;
    position: relative;
    animation: slideUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

[data-theme="dark"] .modal-content {
    background: #1e293b;
}

.subscription-content {
    max-width: 900px;
}

.university-detail-content {
    max-width: 800px;
}

.recycling-modal-content {
    max-width: 700px;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    transform: rotate(90deg);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Modal de Suscripción */
.subscription-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plus-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-gold);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    margin-bottom: 1rem;
}

.subscription-features {
    margin-bottom: 2rem;
}

.features-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.feature-column {
    padding: 1rem;
    border-radius: var(--radius-xl);
}

.feature-column.free {
    background: #fee2e2;
}

[data-theme="dark"] .feature-column.free {
    background: rgba(239, 68, 68, 0.1);
}

.feature-column.plus {
    background: #dcfce7;
}

[data-theme="dark"] .feature-column.plus {
    background: rgba(16, 185, 129, 0.1);
}

.feature-column h4 {
    margin-bottom: 1rem;
    color: var(--dark);
}

[data-theme="dark"] .feature-column h4 {
    color: var(--light);
}

.feature-column ul {
    list-style: none;
}

.feature-column li {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.subscription-plans {
    margin-bottom: 2rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.plan-card {
    background: var(--light);
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

[data-theme="dark"] .plan-card {
    background: #334155;
}

.plan-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.plan-card.featured {
    border-color: var(--gold);
    transform: scale(1.05);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-gold);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-price {
    margin: 1rem 0;
}

.currency {
    font-size: 1rem;
    color: var(--gray);
}

.amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.period {
    font-size: 0.9rem;
    color: var(--gray);
}

.old-price {
    display: block;
    text-decoration: line-through;
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.savings {
    display: block;
    color: var(--success);
    font-weight: 600;
    font-size: 0.9rem;
}

.subscription-payment {
    margin-bottom: 2rem;
}

.payment-methods {
    background: var(--light);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-top: 1rem;
}

[data-theme="dark"] .payment-methods {
    background: #334155;
}

.qr-container {
    text-align: center;
    margin-bottom: 1rem;
}

.yape-qr {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-xl);
    margin-bottom: 0.5rem;
}

.qr-instruction {
    color: var(--gray);
    font-size: 0.9rem;
}

.payment-info {
    text-align: center;
}

.payment-info p {
    margin: 0.5rem 0;
}

.whatsapp-instruction {
    margin: 1rem 0;
    color: var(--gray);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-weight: 600;
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.ecological-payment {
    background: var(--gradient-success);
    color: white;
    margin-top: 1rem;
}

.ecological-info {
    text-align: center;
}

.recycling-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.ecological-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.eco-option {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.eco-instructions {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--radius-xl);
    margin: 1rem 0;
}

.ecological-note {
    font-size: 0.9rem;
    opacity: 0.95;
    margin-top: 1rem;
}

.subscription-code-input {
    margin-bottom: 2rem;
}

.code-input-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.code-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--primary);
    border-radius: var(--radius-xl);
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.code-help {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.subscription-guarantee,
.subscription-urgency {
    text-align: center;
    padding: 1rem;
    background: var(--light);
    border-radius: var(--radius-xl);
    margin-top: 1rem;
}

[data-theme="dark"] .subscription-guarantee,
[data-theme="dark"] .subscription-urgency {
    background: #334155;
}

.subscription-guarantee i,
.subscription-urgency i {
    color: var(--success);
    margin-right: 0.5rem;
}

.subscription-urgency {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    color: #92400e;
}

[data-theme="dark"] .subscription-urgency {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

/* Modal de Reciclaje */
.recycling-header {
    text-align: center;
    margin-bottom: 2rem;
}

.recycling-modal-icon {
    width: 630px;
    height: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.recycling-benefits {
    margin-bottom: 2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.benefit-card {
    text-align: center;
    padding: 1rem;
    background: var(--light);
    border-radius: var(--radius-xl);
}

[data-theme="dark"] .benefit-card {
    background: #334155;
}

.benefit-card i {
    font-size: 2rem;
    color: var(--success);
    margin-bottom: 0.5rem;
}

.recycling-steps {
    margin-bottom: 2rem;
}

.recycling-steps ol {
    list-style: decimal;
    margin-left: 2rem;
}

.recycling-steps li {
    margin: 0.75rem 0;
    color: var(--gray);
}

.recycling-cta {
    text-align: center;
}

/* ========================================
   COMPONENTES FLOTANTES
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    white-space: nowrap;
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

.recycling-float {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: var(--gradient-success);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
    border: none;
    cursor: pointer;
}

.recycling-float:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
}

.recycling-float-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.recycling-tooltip {
    position: absolute;
    right: 70px;
    background: var(--dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    white-space: nowrap;
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.recycling-float:hover .recycling-tooltip {
    opacity: 1;
}

.scroll-to-top {
    position: fixed;
    bottom: 160px;
    right: 20px;
    background: var(--primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 998;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

[data-theme="dark"] .toast {
    background: #1e293b;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast.info {
    border-left: 4px solid var(--info);
}

.toast-icon {
    font-size: 1.5rem;
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.error .toast-icon {
    color: var(--danger);
}

.toast.warning .toast-icon {
    color: var(--warning);
}

.toast.info .toast-icon {
    color: var(--info);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.9rem;
    color: var(--gray);
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.toast-close:hover {
    color: var(--danger);
}

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    z-index: 1500;
    animation: slideUp 0.3s ease;
}

[data-theme="dark"] .cookie-banner {
    background: #1e293b;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-content p {
    flex: 1;
    color: var(--gray);
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cookie-actions a {
    color: var(--primary);
    text-decoration: underline;
}

/* ========================================
   BANNER FLOTANTE DE PLUS
   ======================================== */
.floating-plus-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--gradient-gold);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 350px;
    z-index: 900;
    animation: slideInLeft 0.5s ease;
}

.floating-plus-banner.hidden {
    display: none;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.close-banner {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--danger);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.close-banner:hover {
    transform: rotate(90deg);
}

.banner-content i {
    font-size: 2rem;
}

.banner-content strong {
    display: block;
    margin-bottom: 0.25rem;
}

.banner-content p {
    font-size: 0.9rem;
    opacity: 0.95;
}

/* ========================================
   NOTIFICACIÓN DE PLUS ACTIVADO
   ======================================== */
.plus-activated-notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-success);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: 2500;
    animation: bounceIn 0.5s ease;
}

.plus-activated-notification.hidden {
    display: none;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-content i {
    font-size: 2rem;
}

.notification-content h3 {
    margin-bottom: 0.25rem;
}

.notification-content p {
    font-size: 0.9rem;
    opacity: 0.95;
}

/* ========================================
   ANIMACIONES
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        transform: translateX(-50%) scale(0.3);
        opacity: 0;
    }
    50% {
        transform: translateX(-50%) scale(1.05);
    }
    70% {
        transform: translateX(-50%) scale(0.9);
    }
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* ========================================
   UTILIDADES
   ======================================== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chat-wrapper {
        grid-template-columns: 1fr;
    }
    
    .chat-sidebar {
        display: none;
    }
    
    .aptitud-content {
        grid-template-columns: 1fr;
    }
    
    .question-navigator {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        gap: 1rem;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem;
    }
    
    [data-theme="dark"] .nav-menu {
        background: #1e293b;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons button {
        width: 100%;
    }
    
    .comparison-table {
        overflow-x: auto;
    }
    
    .features-comparison {
        grid-template-columns: 1fr;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .universities-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .ecological-options {
        grid-template-columns: 1fr;
    }
    
    .floating-plus-banner {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .toast-container {
        left: 10px;
        right: 10px;
    }
    
    .toast {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat {
        padding: 1rem;
    }
    
        .stat-number {
        font-size: 1.5rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
    }
    
    .subscription-content {
        max-width: 95%;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .code-input-group {
        flex-direction: column;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-actions button {
        width: 100%;
    }
    
    .whatsapp-float,
    .recycling-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .recycling-float-icon {
        width: 25px;
        height: 25px;
    }
    
    .scroll-to-top {
        width: 40px;
        height: 40px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .header,
    .footer,
    .whatsapp-float,
    .recycling-float,
    .scroll-to-top,
    .floating-plus-banner,
    .cookie-banner,
    .toast-container {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: black;
        background: white;
    }
    
    .modal {
        display: none !important;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-outline,
    .btn-gold {
        display: none !important;
    }
    
    .results-section {
        page-break-inside: avoid;
    }
    
    .chart-container {
        page-break-inside: avoid;
    }
}

/* ========================================
   RESULTADOS DE APTITUD ACADÉMICA
   ======================================== */
.aptitude-results-section {
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
    color: white;
}

.aptitude-results-section h3 {
    color: white;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.aptitude-score-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Círculo de puntaje */
.score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    margin: 0 auto;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    top: -5px;
    left: -5px;
}

.score-circle span:first-child {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.score-label {
    font-size: 1rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

/* Detalles del puntaje */
.score-details {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.score-breakdown {
    margin-bottom: 1.5rem;
}

.score-breakdown h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Puntaje por materia */
.subject-score {
    display: grid;
    grid-template-columns: 100px 1fr 80px;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
}

.subject-score span:first-child {
    font-weight: 600;
    color: white;
}

.subject-score .score-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.subject-score .score-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    transition: width 1s ease;
}

.subject-score strong {
    text-align: right;
    color: white;
    font-size: 0.9rem;
}

/* Interpretación */
.score-interpretation {
    margin-bottom: 1.5rem;
}

.score-interpretation h4 {
    color: white;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

#aptitudeInterpretation {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--radius-lg);
    border-left: 3px solid white;
}

/* Nivel de preparación universitaria */
.university-readiness {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--radius-lg);
}

.university-readiness h5 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.readiness-bar {
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
}

.readiness-fill {
    height: 100%;
    transition: width 1s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
}

.readiness-fill::after {
    content: attr(data-percentage);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}

#readinessLevel span {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Indicadores de nivel */
.readiness-indicators {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.readiness-indicator {
    text-align: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
}

.readiness-indicator.active {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
}

.readiness-indicator span {
    display: block;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Recomendaciones basadas en aptitud */
.aptitude-recommendations {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.aptitude-recommendations h5 {
    color: white;
    margin-bottom: 1rem;
}

.recommendation-list {
    display: grid;
    gap: 0.5rem;
}

.recommendation-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
}

.recommendation-item i {
    color: #34d399;
}

/* Versión oscura */
[data-theme="dark"] .aptitude-results-section {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

[data-theme="dark"] .score-circle {
    background: #1e293b;
}

[data-theme="dark"] .score-circle span:first-child {
    color: #818cf8;
}

/* Responsive */
@media (max-width: 768px) {
    .aptitude-score-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .score-circle {
        margin-bottom: 2rem;
    }
    
    .subject-score {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .subject-score span:first-child {
        margin-bottom: 0.5rem;
    }
    
    .subject-score strong {
        text-align: center;
        margin-top: 0.5rem;
    }
}

/* Animaciones para los resultados de aptitud */
@keyframes scoreReveal {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.score-circle {
    animation: scoreReveal 0.5s ease-out;
}

@keyframes fillBar {
    from {
        width: 0;
    }
}

.subject-score .score-fill,
.readiness-fill {
    animation: fillBar 1.5s ease-out;
}

/* Badges de rendimiento */
.performance-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    margin: 0.5rem;
    border: 2px solid white;
}

.performance-badge.excellent {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.performance-badge.good {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.performance-badge.regular {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.performance-badge.needs-improvement {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

/* Comparación con promedio */
.comparison-section {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
}

.comparison-section h5 {
    color: white;
    margin-bottom: 1rem;
}

.comparison-bar {
    position: relative;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    margin: 1rem 0;
}

.average-marker {
    position: absolute;
    top: 0;
    height: 100%;
    width: 2px;
    background: white;
    left: 50%;
}

.average-marker::after {
    content: 'Promedio';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    white-space: nowrap;
}

.your-score-marker {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}


/* ========================================
   ACCESIBILIDAD
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible para teclado */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reducir movimiento para usuarios con preferencia */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Alto contraste */
@media (prefers-contrast: high) {
    :root {
        --primary: #0000ff;
        --secondary: #008080;
        --success: #008000;
        --danger: #ff0000;
        --warning: #ff8c00;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-gold {
        border: 2px solid currentColor;
    }
}

/* ========================================
   COMPONENTES ESPECÍFICOS ADICIONALES
   ======================================== */

/* Indicadores de estado Plus */
.plus-user-indicator {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--gradient-gold);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 100;
    animation: slideInRight 0.5s ease;
}

/* Badges de limitación */
.limitation-badge {
    background: var(--danger);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-left: 0.5rem;
}

/* Overlay de contenido bloqueado */
.content-locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-2xl);
    z-index: 10;
}

.content-locked-overlay i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.content-locked-overlay h3 {
    margin-bottom: 0.5rem;
}

.content-locked-overlay p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Progreso de completitud */
.completion-progress {
    background: var(--light);
    height: 8px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 1rem 0;
}

[data-theme="dark"] .completion-progress {
    background: #334155;
}

.completion-progress-bar {
    height: 100%;
    background: var(--gradient-success);
    transition: width 0.5s ease;
}

/* Tooltips mejorados */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-content {
    visibility: hidden;
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s;
}

[data-theme="dark"] .tooltip-content {
    background: var(--light);
    color: var(--dark);
}

.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--dark) transparent transparent transparent;
}

[data-theme="dark"] .tooltip-content::after {
    border-color: var(--light) transparent transparent transparent;
}

.tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--light) 25%, #e0e0e0 50%, var(--light) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

[data-theme="dark"] .skeleton {
    background: linear-gradient(90deg, #334155 25%, #475569 50%, #334155 75%);
    background-size: 200% 100%;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Contador animado */
.counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

.counter.animating {
    animation: counterPulse 0.3s ease;
}

@keyframes counterPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Efectos de hover mejorados */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* Gradientes de texto */
.gradient-text-animated {
    background: linear-gradient(270deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 800% 800%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Efectos de partículas */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    animation: float 15s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
    }
}

/* Mejoras finales de diseño */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .glass-effect {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.neon-glow {
    box-shadow: 0 0 20px var(--primary),
                0 0 40px var(--primary),
                0 0 60px var(--primary);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}




/* Fin del archivo CSS */


/* Modal de Registro */
.registration-modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.registration-header {
    text-align: center;
    margin-bottom: 20px;
}

.registration-logo {
    max-width: 100px;
    margin-bottom: 15px;
}

.registration-header h2 {
    color: #4a6cf7;
    margin-bottom: 10px;
    font-size: 24px;
}

.registration-subheader {
    background: linear-gradient(135deg, #4a6cf7 0%, #8a54ff 100%);
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 20px;
}

.registration-subheader h3 {
    margin: 0;
    font-size: 18px;
}

.registration-form {
    padding: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
    outline: none;
}

.form-checkboxes {
    margin-bottom: 25px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-group input {
    margin-right: 10px;
    margin-top: 3px;
}

.checkbox-group label {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.registration-submit {
    width: 100%;
    margin-bottom: 15px;
    font-size: 16px;
    padding: 15px;
}

.registration-footer {
    text-align: center;
    font-size: 13px;
    color: #777;
    margin-top: 15px;
}

.registration-footer a {
    color: #4a6cf7;
    text-decoration: none;
}

.registration-footer a:hover {
    text-decoration: underline;
}

/* Panel de Depuración */
.debug-panel {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: #f0f0f0;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    z-index: 10000;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.debug-panel h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.debug-panel button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: #4a6cf7;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.debug-panel button:hover {
    background: #3a5cd8;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .registration-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .registration-header h2 {
        font-size: 20px;
    }
    
    .registration-subheader h3 {
        font-size: 16px;
    }
    
    .debug-panel {
        bottom: 5px;
        right: 5px;
        left: 5px;
        padding: 10px;
    }
}

/* Botón de descarga APK */
.btn-apk-download {
    background: linear-gradient(135deg, #3ddc84 0%, #2ba35b 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(61, 220, 132, 0.3);
}

.btn-apk-download:hover {
    background: linear-gradient(135deg, #2ba35b 0%, #1f7a42 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 220, 132, 0.4);
}

@media (max-width: 768px) {
    .btn-apk-download {
        width: 100%;
        justify-content: center;
    }
}

