/* ==========================================================================
   DISEÑO Y FE - HOJA DE ESTILOS PREMIUM ESTILO LOOP STUDIO (DARK NEO)
   ========================================================================== */

/* 1. Reset y Variables */
:root {
    /* Fondo claro (blanco) para el tema institucional */
    --bg-dark-deep: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: rgba(0, 44, 105, 0.02);
    --border-thin: 1px solid rgba(0, 44, 105, 0.08);
    --border-thin-hover: 1px solid rgba(0, 44, 105, 0.18);
    
    /* Paleta Azul e Identidad Adventista */
    --color-teal: #1B4FBF;        /* Azul de acento para legibilidad en fondo claro */
    --color-purple: #002c69;      /* Azul institucional de la Educación Adventista */
    --color-pink: #4A9EE8;        /* Azul celeste claro */
    --color-amber: #d97706;       /* Dorado/Ámbar oscuro para óptimo contraste en blanco */
    --color-red: #e74c3c;
    
    /* Variables de Texto para fondo claro */
    --color-text-white: #0F172A;  /* Slate 900 */
    --color-text-muted: #475569;  /* Slate 600 */
    --color-text-low: #64748B;    /* Slate 500 */
    
    --font-title: 'Clash Display', -apple-system, sans-serif;
    --font-body: 'Satoshi', -apple-system, sans-serif;
    
    --shadow-glow-teal: 0 10px 30px rgba(27, 79, 191, 0.06);
    --shadow-glow-purple: 0 10px 30px rgba(0, 44, 105, 0.06);
    --shadow-glow-amber: 0 10px 30px rgba(217, 119, 6, 0.06);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Color institucional para navbar */
    --bg-nav-blue: #002c69;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark-deep);
    background-image: radial-gradient(ellipse at 20% 0%, rgba(74, 158, 232, 0.04) 0%, transparent 60%),
                      radial-gradient(ellipse at 80% 100%, rgba(27, 79, 191, 0.02) 0%, transparent 60%);
    background-attachment: fixed;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark-deep);
    color: var(--color-text-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

/* Fondo de cosmos interactivo de partículas */
#cosmos-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #f1f5f9 0%, #ffffff 100%);
}

canvas {
    max-width: 100% !important;
}

/* 2. Tipografías de Lujo */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--color-text-white);
    line-height: 1.1;
}

p {
    font-family: var(--font-body);
    font-weight: 400; /* Mejor legibilidad en fondo claro */
}

.gradient-text {
    background: linear-gradient(135deg, #7CB9F5 0%, #4A9EE8 40%, #1B4FBF 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShimmer 6s ease infinite;
}

/* Colores de texto útiles */
.text-teal { color: var(--color-teal) !important; }
.text-purple { color: var(--color-purple) !important; }
.text-pink { color: var(--color-pink) !important; }
.text-amber { color: var(--color-amber) !important; }
.text-red { color: var(--color-red) !important; }

/* 3. Botones Especiales de Loop Studio */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.92rem;
    border-radius: 100px;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary-gradient {
    background: linear-gradient(135deg, #4A9EE8 0%, #1B4FBF 100%);
    color: var(--color-text-white);
    border: none;
    box-shadow: 0 4px 20px rgba(74, 158, 232, 0.25);
}

.btn-primary-gradient:hover {
    transform: translateY(-2px) scale(1.02);
    opacity: 0.95;
    box-shadow: 0 6px 28px rgba(74, 158, 232, 0.42);
}

.btn-outline-white {
    background: rgba(0, 44, 105, 0.04);
    color: var(--color-purple);
    border: 1px solid rgba(0, 44, 105, 0.18);
    backdrop-filter: blur(12px);
}

.btn-outline-white:hover {
    border-color: var(--color-purple);
    color: var(--color-purple);
    background: rgba(0, 44, 105, 0.08);
    transform: translateY(-2px);
}

/* 4. Cabecera Flotante (Header Glassmorphism) */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6%;
    z-index: 1000;
    background: var(--bg-nav-blue);
    box-shadow: 0 4px 20px rgba(0, 44, 105, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    height: 100px;
    background: #002252; /* Un tono un poco más oscuro al hacer scroll */
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: #fbbf24; /* Dorado institucional para el isotipo */
    animation: rotateSlow 20s linear infinite;
}

.logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-title);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: #ffffff !important;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    position: relative;
    padding: 6px 0;
    transition: var(--transition-smooth);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #fbbf24; /* Subrayado dorado */
    transition: var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
    color: #fbbf24 !important;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Navegación destacada */
.nav-links a.nav-btn-highlight {
    background-color: rgba(251, 191, 36, 0.12);
    color: #fbbf24 !important;
    padding: 0.5rem 1.3rem;
    border-radius: 100px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.nav-links a.nav-btn-highlight::after {
    display: none;
}

.nav-links a.nav-btn-highlight:hover {
    background-color: #fbbf24;
    color: #002c69 !important;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.35);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    margin: -12px;
    z-index: 1010;
}

.mobile-menu-toggle span {
    width: 26px;
    height: 2px;
    background-color: #ffffff; /* Forzar spans blancos */
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* 5. Sección Héroe */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 6% 60px 6%;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.hero-glow-1 {
    position: absolute;
    top: 20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 158, 232, 0.12) 0%, transparent 70%);
    z-index: -1;
    filter: blur(60px);
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(27, 79, 191, 0.10) 0%, transparent 70%);
    z-index: -1;
    filter: blur(50px);
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    max-width: 55%;
}

/* Pill Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px;
    border-radius: 100px;
    background: rgba(74, 158, 232, 0.1);
    border: 1px solid rgba(74, 158, 232, 0.3);
    width: fit-content;
    margin-bottom: 24px;
    backdrop-filter: blur(6px);
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-teal);
    box-shadow: 0 0 8px var(--color-teal);
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.badge-dot.active {
    background: var(--color-teal);
}

.hero-badge span:last-child {
    color: var(--color-teal);
    font-size: 11px;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(34px, 4.8vw, 64px);
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: -0.025em;
    font-weight: 600;
}

.hero-subtitle-description {
    font-family: var(--font-body);
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.75;
    color: var(--color-text-muted);
    margin-bottom: 36px;
    font-weight: 400;
    max-width: 540px;
}

.hero-description {
    display: none;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 36px;
}

/* Tags del Héroe */
.hero-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.hero-tag {
    background: rgba(0, 44, 105, 0.03);
    border: var(--border-thin);
    color: var(--color-text-low);
    padding: 4px 12px;
    font-size: 10px;
    border-radius: 100px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Estadísticas del Héroe */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding-top: 24px;
    border-top: var(--border-thin);
    width: 100%;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-family: var(--font-title);
    font-size: clamp(20px, 2.4vw, 28px);
    color: var(--color-teal);
    line-height: 1.1;
    text-shadow: 0 0 15px rgba(27, 221, 184, 0.25);
}

.stat-item:nth-child(2) .stat-number { color: var(--color-purple); text-shadow: 0 0 15px rgba(167, 139, 250, 0.25); }
.stat-item:nth-child(3) .stat-number { color: var(--color-pink); text-shadow: 0 0 15px rgba(240, 171, 252, 0.25); }
.stat-item:nth-child(4) .stat-number { color: var(--color-amber); text-shadow: 0 0 15px rgba(251, 191, 36, 0.25); }

.stat-label {
    font-size: 9.5px;
    color: var(--color-text-low);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Visualizaciones del Héroe */
.hero-visual {
    position: absolute;
    right: -2vw;
    top: 50%;
    transform: translateY(-50%);
    width: 65vw;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
}

.glow-sphere {
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(27, 221, 184, 0.08) 0%, rgba(167, 139, 250, 0.04) 50%, transparent 80%);
    border-radius: 50%;
    z-index: 1;
    animation: pulseGlow 10s ease-in-out infinite alternate;
}

#hero-interactive-canvas {
    width: 100%;
    height: 100%;
    z-index: 2;
}

.mouse-parallax-instruction {
    position: absolute;
    bottom: -10px;
    font-size: 10px;
    color: var(--color-text-low);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 3;
}

/* 6. Divisor de Brillo Animado (Sweep Line) */
.divider-container {
    width: 100%;
    padding: 24px 0;
    overflow: hidden;
}

.divider-line {
    position: relative;
    width: 88%;
    max-width: 1200px;
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent 0%, rgba(27, 221, 184, 0.2) 30%, rgba(167, 139, 250, 0.2) 70%, transparent 100%);
}

.divider-shimmer {
    position: absolute;
    top: -1px;
    width: 25%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-teal), var(--color-purple), transparent);
    filter: blur(1.5px);
    border-radius: 4px;
    animation: shimmerSweep 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* 7. Sección de Salas (Cards de Lujo de Loop Studio) */
.rooms-section {
    padding: 100px 6%;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: 100px;
    background: rgba(27, 221, 184, 0.08);
    border: 1px solid rgba(27, 221, 184, 0.25);
    color: var(--color-teal);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.rooms-section-header {
    margin-bottom: 50px;
}

.rooms-section-header.left-aligned {
    text-align: left;
}

.rooms-section-header h2 {
    font-size: clamp(28px, 4.5vw, 52px);
    line-height: 1.08;
    margin-bottom: 15px;
    font-weight: 500;
}

.rooms-section-header p {
    color: var(--color-text-muted);
    font-size: 14.5px;
    max-width: 480px;
    line-height: 1.7;
}

.rooms-grid {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.rooms-grid::-webkit-scrollbar {
    display: none;
}

.room-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 320px;
    scroll-snap-align: start;
    border-radius: 24px;
    border: var(--border-thin);
    background: var(--bg-card);
    box-shadow: 0 10px 30px rgba(0, 44, 105, 0.03);
    overflow: hidden;
    position: relative;
    transition: var(--transition-smooth);
    min-height: 380px;
}

.card-top-glow {
    height: 3px;
    width: 100%;
    flex-shrink: 0;
}

.card-top-glow.bg-teal { background: linear-gradient(90deg, var(--color-teal), transparent); }
.card-top-glow.bg-purple { background: linear-gradient(90deg, var(--color-purple), transparent); }
.card-top-glow.bg-amber { background: linear-gradient(90deg, var(--color-amber), transparent); }

.card-body {
    padding: 32px 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-tags {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-tag {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-tag.tag-red { color: var(--color-teal); }
.card-tag.tag-purple { color: var(--color-purple); }
.card-tag.tag-amber { color: var(--color-amber); }

.card-status-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: var(--color-text-low);
}

.live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.live-dot.red { background: var(--color-teal); box-shadow: 0 0 6px var(--color-teal); }
.live-dot.purple { background: var(--color-purple); box-shadow: 0 0 6px var(--color-purple); }
.live-dot.amber { background: var(--color-amber); box-shadow: 0 0 6px var(--color-amber); }

.room-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.room-card p {
    color: var(--color-text-muted);
    font-size: 13.5px;
    line-height: 1.8;
    margin-bottom: 28px;
    flex: 1;
}

.card-footer-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    margin-top: auto;
    transition: var(--transition-smooth);
}

.card-overlay-link {
    position: absolute;
    inset: 0;
    z-index: 5;
}

/* Tarjeta Hover */
.room-card:hover {
    border-color: rgba(0, 44, 105, 0.18);
    transform: translateY(-5px);
}

.room-card:hover:nth-child(1) { box-shadow: var(--shadow-glow-teal); }
.room-card:hover:nth-child(2) { box-shadow: var(--shadow-glow-purple); }
.room-card:hover:nth-child(3) { box-shadow: var(--shadow-glow-amber); }

.room-card:hover .card-footer-action {
    transform: translateX(4px);
}

.rooms-view-all {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

/* 8. Sala 1: Visualizador 3D */
.interactive-viewer-section {
    padding: 100px 6%;
}

.viewer-container {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    border-radius: 28px;
    border: var(--border-thin);
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 44, 105, 0.05);
}

.canvas-3d-wrapper {
    position: relative;
    background-color: #f8fafc;
    height: 620px;
    overflow: hidden;
}

#dna-canvas-3d {
    width: 100%;
    height: 100%;
}

.canvas-instructions {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 44, 105, 0.1);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    padding: 6px 16px;
    border-radius: 100px;
    pointer-events: none;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.viewer-controls {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    gap: 8px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 44, 105, 0.15);
    color: var(--color-text-muted);
    padding: 6px 14px;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.control-btn:hover {
    border-color: var(--color-teal);
    color: var(--color-teal);
}

.control-btn.active {
    background: var(--color-teal);
    color: #ffffff;
    border-color: var(--color-teal);
    font-weight: 600;
}

/* Sidebar del Visualizador */
.viewer-sidebar {
    padding: 40px 36px;
    border-left: var(--border-thin);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    overflow-y: auto;
}

.sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.sidebar-header h3 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.sidebar-status {
    font-size: 0.8rem;
    color: var(--color-text-low);
}

.info-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.info-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.info-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-muted);
    padding: 60px 0;
}

.pulse-icon {
    color: var(--color-teal);
    opacity: 0.5;
    margin-bottom: 20px;
    animation: floating 4s ease-in-out infinite;
}

.base-badge {
    background-color: rgba(27, 221, 184, 0.1);
    color: var(--color-teal);
    border: 1px solid rgba(27, 221, 184, 0.3);
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    margin-bottom: 20px;
}

.viewer-sidebar h4 {
    font-size: 1.6rem;
    margin-bottom: 6px;
    font-weight: 500;
}

.base-pair-status {
    font-size: 0.88rem;
    margin-bottom: 20px;
    color: var(--color-text-muted);
}

.base-pair-status strong {
    color: var(--color-purple);
    font-weight: 500;
}

.viewer-sidebar p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.design-insight {
    background-color: rgba(0, 44, 105, 0.02);
    border-left: 2px solid var(--color-teal);
    border-radius: 12px;
    padding: 24px;
    border-top: var(--border-thin);
    border-right: var(--border-thin);
    border-bottom: var(--border-thin);
}

.design-insight h5 {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-teal);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.design-insight p {
    font-size: 0.84rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Estilos para los puntos informativos predeterminados del ADN */
.dna-intro-points {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dna-point-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: rgba(0, 44, 105, 0.02);
    border: 1px solid rgba(0, 44, 105, 0.06);
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.dna-point-card:hover {
    background: rgba(0, 44, 105, 0.04);
    border-color: rgba(0, 44, 105, 0.15);
    transform: translateY(-2px);
}

.point-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}

.point-text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.point-text strong {
    color: var(--color-text-white);
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
}

.dna-point-tip {
    margin-top: 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(0, 44, 105, 0.03);
    border: 1px dashed rgba(0, 44, 105, 0.15);
    font-family: var(--font-body);
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--color-teal);
    text-align: center;
}

/* Estilos para los puntos de Ajuste Fino en la Sala 2 */
.fine-tuning-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 24px 0;
}

.ft-point {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(0, 44, 105, 0.02);
    border: 1px solid rgba(0, 44, 105, 0.05);
    padding: 16px 20px;
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.ft-point:hover {
    background: rgba(0, 44, 105, 0.04);
    border-color: rgba(0, 44, 105, 0.15);
    transform: translateX(4px);
}

.ft-icon {
    font-size: 1.4rem;
}

.ft-point p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* 9. Sala 2: Ajuste Fino */
.physics-section {
    padding: 100px 6%;
}

.physics-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.physics-text h2 {
    font-size: clamp(28px, 4vw, 50px);
    margin-bottom: 20px;
    font-weight: 500;
}

.physics-text p {
    font-size: 14.5px;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

.constants-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.constant-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.c-number {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-teal);
    background: rgba(27, 79, 191, 0.05);
    border: 1px solid rgba(27, 79, 191, 0.15);
    min-width: 90px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(27, 79, 191, 0.05);
}

.constant-item:nth-child(2) .c-number {
    color: var(--color-purple);
    background: rgba(0, 44, 105, 0.05);
    border-color: rgba(0, 44, 105, 0.15);
    box-shadow: 0 4px 12px rgba(0, 44, 105, 0.05);
}

.constant-item:nth-child(3) .c-number {
    color: var(--color-amber);
    background: rgba(217, 119, 6, 0.05);
    border-color: rgba(217, 119, 6, 0.15);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.05);
}

.constant-item strong {
    display: block;
    font-size: 1.05rem;
    color: var(--color-text-white);
    margin-bottom: 4px;
    font-weight: 500;
}

.constant-item p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

.physics-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 580px;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.02) 0%, transparent 70%);
}

.galaxy-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#galaxy-3d-canvas {
    width: 100%;
    height: 100%;
    outline: none;
}

/* 10. Sala 3: Fósiles y Complejidad */
.fossils-section {
    padding: 100px 6%;
}

.fossils-explorer {
    max-width: 960px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 28px;
    border: var(--border-thin);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 44, 105, 0.05);
}

.fossil-tabs {
    display: flex;
    border-bottom: 1px solid rgba(0, 44, 105, 0.08);
    background: rgba(0, 44, 105, 0.01);
}

.fossil-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 1.4rem 1rem;
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    border-bottom: 2px solid transparent;
}

.fossil-tab:hover {
    color: var(--color-text-white);
    background-color: rgba(0, 44, 105, 0.02);
}

.fossil-tab.active {
    color: var(--color-teal);
    border-bottom-color: var(--color-teal);
    background-color: rgba(0, 44, 105, 0.03);
}

.fossil-content-wrapper {
    padding: 48px;
}

.fossil-detail {
    display: none;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fossil-detail.active {
    display: grid;
    opacity: 1;
    transform: translateY(0);
}

.fossil-img-placeholder {
    height: 240px;
    background: radial-gradient(circle at center, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    border: 1px solid rgba(0, 44, 105, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.fossil-svg {
    width: 110px;
    height: 110px;
    filter: drop-shadow(0 0 12px rgba(27, 79, 191, 0.15));
    z-index: 2;
}

.fossil-text h4 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.fossil-text p {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.evidence-box {
    background-color: rgba(0, 44, 105, 0.02);
    border-radius: 12px;
    padding: 20px;
    font-size: 0.88rem;
    color: var(--color-text-white);
    border-left: 2px solid var(--color-teal);
    border-top: var(--border-thin);
    border-right: var(--border-thin);
    border-bottom: var(--border-thin);
}

/* 11. Sección: "How We Work" -> "Ruta de Exploración" Estilo Loop Studio */
.process-section {
    padding: 100px 6%;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.process-card {
    position: relative;
    border-radius: 24px;
    border: var(--border-thin);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 44, 105, 0.03);
    padding: 40px;
    overflow: hidden;
}

.process-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
}

.process-line.bg-teal { background: linear-gradient(90deg, var(--color-teal), transparent); }
.process-line.bg-purple { background: linear-gradient(90deg, var(--color-purple), transparent); }
.process-line.bg-amber { background: linear-gradient(90deg, var(--color-amber), transparent); }

.process-number {
    position: absolute;
    top: -12px;
    right: 20px;
    font-size: 130px;
    font-family: var(--font-title);
    font-weight: 500;
    color: rgba(0, 44, 105, 0.03);
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

.process-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.02);
    border: var(--border-thin);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.process-card:hover .process-icon {
    transform: scale(1.08);
}

.process-card:hover:nth-child(1) .process-icon { border-color: var(--color-teal); background-color: rgba(27, 221, 184, 0.08); box-shadow: var(--shadow-glow-teal); }
.process-card:hover:nth-child(2) .process-icon { border-color: var(--color-purple); background-color: rgba(167, 139, 250, 0.08); box-shadow: var(--shadow-glow-purple); }
.process-card:hover:nth-child(3) .process-icon { border-color: var(--color-amber); background-color: rgba(251, 191, 36, 0.08); box-shadow: var(--shadow-glow-amber); }

.process-step-label {
    font-size: 10px;
    color: var(--color-text-low);
    font-family: var(--font-body);
    letter-spacing: 0.15em;
    margin-bottom: 8px;
}

.process-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.process-card p {
    color: var(--color-text-muted);
    font-size: 13.5px;
    line-height: 1.8;
}

/* 12. Sección: Zona de Desafíos (Mini-juegos) Estilo Contact Banner de Loop Studio */
.challenges-section {
    padding: 100px 6% 60px 6%;
}

.challenges-banner {
    border-radius: 36px;
    border: var(--border-thin);
    background: linear-gradient(135deg, rgba(27, 221, 184, 0.04) 0%, rgba(167, 139, 250, 0.06) 50%, rgba(240, 171, 252, 0.04) 100%);
    padding: 70px 48px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.banner-gradient-bg {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(27, 221, 184, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.banner-inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

.section-label.centered {
    margin: 0 auto 24px auto;
    width: fit-content;
}

.challenges-banner h2 {
    font-size: clamp(28px, 4.5vw, 54px);
    line-height: 1.1;
    margin-bottom: 15px;
    text-align: center;
}

.challenges-intro-desc {
    color: var(--color-text-muted);
    font-size: 15px;
    max-width: 520px;
    margin: 0 auto 40px auto;
    text-align: center;
    line-height: 1.7;
}

.challenges-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.challenge-tab {
    background-color: rgba(0, 44, 105, 0.02);
    border: 1px solid rgba(0, 44, 105, 0.08);
    padding: 12px 24px;
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-muted);
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    backdrop-filter: blur(8px);
}

.challenge-tab:hover {
    border-color: rgba(0, 44, 105, 0.18);
    transform: translateY(-1px);
}

.challenge-tab.active {
    background: linear-gradient(135deg, var(--color-teal), var(--color-purple));
    color: #ffffff;
    border-color: transparent;
    box-shadow: var(--shadow-glow-teal);
}

.challenges-container {
    background-color: #ffffff;
    border: var(--border-thin);
    border-radius: 24px;
    overflow: hidden;
}

.game-wrapper {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 48px;
}

.game-wrapper.active {
    display: block;
    opacity: 1;
}

.game-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 36px auto;
    border-bottom: 1px solid rgba(0, 44, 105, 0.08);
    padding-bottom: 20px;
}

.game-intro h3 {
    color: var(--color-text-white);
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.game-intro p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.game-play-area {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
}

/* Sliders */
.sliders-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-white);
}

.val-display {
    font-weight: 600;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 44, 105, 0.08);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-teal);
    cursor: pointer;
    box-shadow: 0 0 10px var(--color-teal);
    transition: transform 0.2s;
}

#slide-nuclear::-webkit-slider-thumb { background: var(--color-purple); box-shadow: 0 0 10px var(--color-purple); }
#slide-cosmo::-webkit-slider-thumb { background: var(--color-pink); box-shadow: 0 0 10px var(--color-pink); }
#slide-proton::-webkit-slider-thumb { background: var(--color-amber); box-shadow: 0 0 10px var(--color-amber); }

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

.slider-info {
    font-size: 0.72rem;
    color: var(--color-text-low);
}

#btn-reset-universe {
    align-self: flex-start;
    color: var(--color-text-muted);
    border-color: rgba(0, 44, 105, 0.15);
    font-size: 0.72rem;
    padding: 6px 14px;
    margin-top: 8px;
    border-radius: 100px;
}

#btn-reset-universe:hover {
    border-color: var(--color-teal);
    color: var(--color-teal);
    background-color: transparent;
}

.visual-feedback-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.universe-simulator {
    height: 230px;
    background: #f8fafc;
    border: 1px solid rgba(0, 44, 105, 0.08);
    border-radius: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.universe-bg-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(27, 221, 184, 0.08) 0%, transparent 80%);
    pointer-events: none;
    transition: background 0.5s ease;
}

.universe-result-text {
    position: absolute;
    top: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-teal);
    z-index: 10;
}

.star-system {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sim-star {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-teal);
    box-shadow: 0 0 20px var(--color-teal);
    transition: transform 0.5s ease, background-color 0.5s ease, box-shadow 0.5s ease;
}

.sim-planet {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--color-purple);
    border-radius: 50%;
    top: 50%;
    left: calc(50% - 60px);
    transform-origin: 60px 5px;
    animation: orbit1 6s linear infinite;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.universe-verdict-box {
    background-color: rgba(0, 44, 105, 0.02);
    border-left: 2px solid var(--color-teal);
    padding: 20px;
    border-radius: 12px;
    border-top: var(--border-thin);
    border-right: var(--border-thin);
    border-bottom: var(--border-thin);
}

.universe-verdict-box h4 {
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.universe-verdict-box p {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Juego 2: ADN Game Area */
.game-dna-area {
    grid-template-columns: 1fr;
    max-width: 580px;
    margin: 0 auto;
    position: relative;
}

.game-stats {
    display: flex;
    justify-content: space-around;
    background-color: rgba(0, 44, 105, 0.02);
    padding: 14px;
    border-radius: 12px;
    border: var(--border-thin);
}

.stat-box {
    font-size: 0.88rem;
    color: var(--color-text-white);
}

.stat-box strong {
    font-weight: 600;
}

.dna-game-board {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 10px;
}

.falling-strand-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.falling-label {
    font-size: 0.72rem;
    color: var(--color-text-low);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.active-falling-base {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    font-family: var(--font-title);
    border: 2px solid #fff;
    box-shadow: 0 0 15px rgba(255,255,255,0.25);
    transition: var(--transition-smooth);
}

/* Clases de Base */
.base-A { background-color: var(--color-red); border-color: #ff8a7f !important; color: #fff; text-shadow: 0 0 10px rgba(231,76,60,0.5); }
.base-T { background-color: var(--color-teal); border-color: #a3ffec !important; color: #fff; text-shadow: 0 0 10px rgba(27,221,184,0.5); }
.base-C { background-color: var(--color-purple); border-color: #d1c4ff !important; color: #fff; text-shadow: 0 0 10px rgba(167,139,250,0.5); }
.base-G { background-color: var(--color-amber); border-color: #ffecb5 !important; color: #fff; text-shadow: 0 0 10px rgba(251,191,36,0.5); }

.arrow-down {
    animation: bounceDown 1.5s ease-in-out infinite;
    font-size: 1.1rem;
}

.user-selection-area {
    text-align: center;
    width: 100%;
}

.user-selection-area p {
    color: var(--color-text-low);
    font-size: 0.84rem;
    margin-bottom: 12px;
}

.base-selection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
}

.base-btn {
    border: 1px solid rgba(0, 44, 105, 0.12);
    background-color: #ffffff;
    color: var(--color-text-muted);
    padding: 14px 8px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.base-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 44, 105, 0.05);
}

.base-btn.btn-a:hover { border-color: var(--color-red); color: var(--color-red); }
.base-btn.btn-t:hover { border-color: var(--color-teal); color: var(--color-teal); }
.base-btn.btn-c:hover { border-color: var(--color-purple); color: var(--color-purple); }
.base-btn.btn-g:hover { border-color: var(--color-amber); color: var(--color-amber); }

.constructed-strand {
    display: flex;
    gap: 6px;
    width: 100%;
    min-height: 45px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 6px;
    overflow-x: auto;
    justify-content: center;
    align-items: center;
    border: 1px dashed rgba(255,255,255,0.08);
}

.strand-node {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    animation: scaleIn 0.3s ease-out;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 12, 26, 0.96);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.overlay-content {
    max-width: 420px;
}

.overlay-content h4 {
    color: var(--color-text-white);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.overlay-content p {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* 13. Footer */
.main-footer {
    position: relative;
    background-color: var(--bg-nav-blue);
    color: var(--color-text-white);
    padding: 80px 6% 40px 6%;
    border-top: var(--border-thin);
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 200px;
    background: radial-gradient(circle, rgba(27, 221, 184, 0.08) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-teal);
    margin-bottom: 24px;
}

.logo-icon-footer {
    width: 32px;
    height: 32px;
    color: var(--color-teal);
    animation: rotateSlow 30s linear infinite;
}

.footer-quote {
    max-width: 700px;
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    font-weight: 300;
}

.quote-author {
    display: block;
    margin-top: 12px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--color-teal);
    font-style: normal;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 40px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--color-text-low);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--color-teal);
}

.footer-copy {
    color: rgba(255,255,255,0.25);
    font-size: 0.75rem;
    max-width: 480px;
    text-align: right;
    font-weight: 300;
}

/* 14. Animaciones y Órbitas */
@keyframes rotateSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.15); opacity: 0.95; }
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}

@keyframes shimmerSweep {
    0%   { transform: translateX(-120%); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateX(380%); opacity: 0; }
}

@keyframes orbit1 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes orbit2 {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes orbit3 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.orbit-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.line-1 { width: 120px; height: 120px; }
.line-2 { width: 200px; height: 200px; }
.line-3 { width: 280px; height: 280px; }

.orbit-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--color-teal);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--color-teal);
}

.p1 {
    top: 50%;
    left: calc(50% - 60px);
    animation: orbit1 8s linear infinite;
    transform-origin: 60px 3px;
    background-color: var(--color-teal);
    box-shadow: 0 0 8px var(--color-teal);
}

.p2 {
    top: 50%;
    left: calc(50% - 100px);
    animation: orbit2 14s linear infinite;
    transform-origin: 100px 3px;
    background-color: var(--color-purple);
    box-shadow: 0 0 8px var(--color-purple);
}

.p3 {
    top: 50%;
    left: calc(50% - 140px);
    animation: orbit3 22s linear infinite;
    transform-origin: 140px 3px;
    background-color: var(--color-amber);
    box-shadow: 0 0 8px var(--color-amber);
}

.sun-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, var(--color-teal) 0%, rgba(27,221,184,0.1) 60%, transparent 80%);
    border-radius: 50%;
    filter: drop-shadow(0 0 10px rgba(27,221,184,0.4));
    animation: pulse 4s ease-in-out infinite alternate;
}

/* 15. Media Queries de Responsividad */
@media (max-width: 1024px) {
    .hero {
        display: flex;
        flex-direction: column;
        padding-top: 130px;
        text-align: center;
        gap: 30px;
    }
    .hero-content {
        align-items: center;
        max-width: 100%;
    }
    .hero-badge, .hero-tags-wrapper {
        justify-content: center;
    }
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-visual {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        height: 400px;
        pointer-events: auto;
    }
    
    .viewer-container {
        grid-template-columns: 1fr;
    }
    .viewer-sidebar {
        border-left: none;
        border-top: var(--border-thin);
    }
    
    .physics-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .physics-visual {
        height: 400px;
    }
    
    .fossil-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .game-play-area {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 0 4%;
    }
    .nav-links {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .hero-stats {
        grid-template-columns: repeat(2, 2fr);
        gap: 16px;
    }
    .fossil-tabs {
        flex-direction: column;
    }
    .fossil-tab {
        border-bottom: none;
        border-left: 2px solid transparent;
        padding: 1rem;
    }
    .fossil-tab.active {
        border-left-color: var(--color-teal);
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-copy {
        text-align: center;
    }
    .challenges-banner {
        padding: 40px 24px;
    }
    .challenges-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    .base-selection-grid {
        grid-template-columns: repeat(2, 2fr);
    }
}

/* Estilos para los puntos de la Sala 3 (Complejidad y Fósiles) */
.complexity-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 32px auto;
    max-width: 960px;
    text-align: left;
}

.cx-point {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.cx-point:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(251, 191, 36, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-amber);
}

.cx-icon {
    font-size: 1.6rem;
}

.cx-point strong {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-text-white);
    display: block;
    margin-bottom: 8px;
}

.cx-point p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .complexity-points {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ==========================================================================
   16. PÁGINA DE CRONOLOGÍA DE LA CREACIÓN (VERTICAL TIMELINE)
   ========================================================================== */
.timeline-page-header {
    padding: 160px 6% 60px 6%;
    text-align: center;
    position: relative;
    z-index: 10;
}

.timeline-page-header h1 {
    font-size: clamp(32px, 4.5vw, 56px);
    margin-bottom: 12px;
}

.timeline-page-header p {
    font-size: clamp(15px, 1.2vw, 18px);
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 680px;
    margin: 24px auto 0 auto;
    font-family: var(--font-body);
    font-weight: 400;
}

.timeline-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    transition: background 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    background: #ffffff;
    pointer-events: none;
}

/* Gradients específicos para cada día */
.timeline-bg.day1 { background: radial-gradient(circle at 70% 30%, rgba(251, 191, 36, 0.04) 0%, #ffffff 100%); }
.timeline-bg.day2 { background: radial-gradient(circle at 30% 70%, rgba(74, 158, 232, 0.05) 0%, #ffffff 100%); }
.timeline-bg.day3 { background: radial-gradient(circle at 60% 40%, rgba(16, 185, 129, 0.04) 0%, #ffffff 100%); }
.timeline-bg.day4 { background: radial-gradient(circle at 40% 60%, rgba(251, 191, 36, 0.04) 0%, #ffffff 100%); }
.timeline-bg.day5 { background: radial-gradient(circle at 70% 50%, rgba(74, 158, 232, 0.05) 0%, #ffffff 100%); }
.timeline-bg.day6 { background: radial-gradient(circle at 30% 40%, rgba(27, 79, 191, 0.04) 0%, #ffffff 100%); }
.timeline-bg.day7 { background: radial-gradient(circle at 50% 50%, rgba(0, 44, 105, 0.02) 0%, #ffffff 100%); }

.timeline-section {
    position: relative;
    padding: 40px 6% 120px 6%;
    z-index: 10;
}

.timeline-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

/* Línea central vertical */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(27, 221, 184, 0.4) 0%, 
        rgba(167, 139, 250, 0.4) 50%, 
        rgba(251, 191, 36, 0.4) 100%);
    transform: translateX(-50%);
    opacity: 0.3;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 140px;
    position: relative;
    opacity: 0.4;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-item.active {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* Nodo de la línea de tiempo */
.timeline-node {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--bg-dark-deep);
    border: 3px solid var(--color-teal);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    box-shadow: 0 0 10px var(--color-teal);
    transition: var(--transition-smooth);
}

.timeline-item:nth-child(2n) .timeline-node {
    border-color: var(--color-purple);
    box-shadow: 0 0 10px var(--color-purple);
}

.timeline-item:nth-child(3n) .timeline-node {
    border-color: var(--color-amber);
    box-shadow: 0 0 10px var(--color-amber);
}

.timeline-item.active .timeline-node {
    transform: translate(-50%, -50%) scale(1.3);
    background: var(--color-text-white);
}

/* Bloques de Contenido */
.timeline-content {
    width: 45%;
    padding: 30px;
    background: #ffffff;
    border: 1px solid rgba(0, 44, 105, 0.08);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 44, 105, 0.02);
    transition: var(--transition-smooth);
}

.timeline-item.active .timeline-content {
    border-color: rgba(0, 44, 105, 0.18);
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(0, 44, 105, 0.08);
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-day-tag {
    display: inline-block;
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-teal);
    margin-bottom: 6px;
}

.timeline-item:nth-child(even) .timeline-day-tag {
    color: var(--color-purple);
}

.timeline-item:nth-child(odd):not(:first-child) .timeline-day-tag {
    color: var(--color-amber);
}

.timeline-discipline {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-low);
    margin-bottom: 16px;
}

.timeline-content h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    font-weight: 500;
}

.timeline-content p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* Imagen de la línea de tiempo */
.timeline-image-wrapper {
    width: 45%;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    aspect-ratio: 16/10;
    transition: var(--transition-smooth);
}

.timeline-item.active .timeline-image-wrapper {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.timeline-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* === TIMELINE RESPONSIVE MOBILE === */
@media (max-width: 768px) {
    .timeline-line {
        display: none;
    }
    .timeline-node {
        display: none;
    }
    .timeline-item {
        flex-direction: column !important;
        align-items: stretch;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 48px;
        gap: 16px;
        padding: 0 5%;
    }
    .timeline-content {
        width: 100%;
        padding: 22px 18px;
    }
    .timeline-image-wrapper {
        width: 100%;
        aspect-ratio: 16/9;
        border-radius: 18px;
    }
    .timeline-content h3 {
        font-size: 1.3rem;
    }
    .timeline-container {
        padding: 0;
    }
    .timeline-section {
        padding: 40px 0;
    }
}

.timeline-image-wrapper:hover .timeline-image {
    transform: scale(1.08);
}

/* Responsividad para móviles */
@media (max-width: 900px) {
    .timeline-line {
        left: 20px;
    }
    .timeline-node {
        left: 20px;
    }
    .timeline-item {
        flex-direction: column !important;
        align-items: stretch;
        gap: 24px;
        margin-left: 45px;
        margin-bottom: 80px;
        opacity: 0.7;
        transform: none !important;
    }
    .timeline-content {
        width: 100%;
        padding: 24px;
    }
    .timeline-image-wrapper {
        width: 100%;
        aspect-ratio: 16/9;
    }
}

/* ==========================================================================
   17. SECCIÓN FE Y CIENCIA
   ========================================================================== */

/* Contenedor principal */
.faith-science-section {
    position: relative;
    padding: 100px 6% 100px 6%;
    overflow: hidden;
}

/* Halos de fondo decorativos */
.fs-halo {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
    filter: blur(80px);
}
.fs-halo-left {
    background: radial-gradient(circle, var(--color-purple), transparent);
    top: 0;
    left: -100px;
}
.fs-halo-right {
    background: radial-gradient(circle, var(--color-teal), transparent);
    bottom: 0;
    right: -100px;
}

/* Aseguramos que el contenido esté por encima de los halos */
.faith-science-section > *:not(.fs-halo) {
    position: relative;
    z-index: 1;
}

/* Grid superior: Texto | Citas */
.fs-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Columna de texto */
.fs-text-column {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.fs-main-text {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.85;
    color: var(--color-text-white);
    font-weight: 400;
}

.fs-highlight {
    color: var(--color-teal);
    font-weight: 500;
    background: linear-gradient(135deg, var(--color-teal), var(--color-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fs-sub-text {
    font-size: clamp(0.88rem, 1.1vw, 1rem);
    line-height: 1.8;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* Ornamento divisor interno */
.fs-divider-ornament {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fs-divider-ornament span:not(.fs-ornament-dot) {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(27, 221, 184, 0.3));
}
.fs-divider-ornament span:last-of-type {
    background: linear-gradient(to left, transparent, rgba(27, 221, 184, 0.3));
}
.fs-ornament-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-teal);
    box-shadow: 0 0 8px var(--color-teal);
    flex: 0 !important;
    min-width: 6px;
}

/* Columna de citas */
.fs-quotes-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Tarjeta de cita base */
.fs-quote-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 28px 30px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.fs-quote-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fs-quote-card:hover {
    transform: translateY(-4px);
}

/* Variante turquesa */
.fs-quote-teal {
    border-color: rgba(27, 221, 184, 0.18);
    box-shadow: 0 4px 30px rgba(27, 221, 184, 0.05);
}
.fs-quote-teal:hover {
    border-color: rgba(27, 221, 184, 0.35);
    box-shadow: 0 8px 40px rgba(27, 221, 184, 0.12);
}
.fs-quote-teal .fs-quote-icon {
    color: var(--color-teal);
    text-shadow: 0 0 10px rgba(27, 221, 184, 0.5);
}

/* Variante púrpura */
.fs-quote-purple {
    border-color: rgba(167, 139, 250, 0.18);
    box-shadow: 0 4px 30px rgba(167, 139, 250, 0.05);
}
.fs-quote-purple:hover {
    border-color: rgba(167, 139, 250, 0.35);
    box-shadow: 0 8px 40px rgba(167, 139, 250, 0.12);
}
.fs-quote-purple .fs-quote-icon {
    color: var(--color-purple);
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

/* Icono de comillas */
.fs-quote-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 12px;
    display: block;
}

/* Texto de la cita */
.fs-quote-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: clamp(0.92rem, 1.1vw, 1.05rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 16px 0;
    border: none;
    padding: 0;
}

/* Autor de la cita */
.fs-quote-author {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fs-author-name {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-white);
    letter-spacing: 0.02em;
}

.fs-author-role {
    font-size: 0.76rem;
    color: var(--color-text-low);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Grid inferior: FAQ | Casillero */
.fs-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* ==========================================================================
   ACORDEÓN FAQ
   ========================================================================== */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid rgba(0, 44, 105, 0.08);
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover,
.faq-item.open {
    border-color: rgba(27, 79, 191, 0.2);
    box-shadow: 0 4px 24px rgba(27, 79, 191, 0.06);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: transparent;
    border: none;
    color: var(--color-text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.faq-question:hover {
    color: var(--color-teal);
}

.faq-item.open .faq-question {
    color: var(--color-teal);
}

/* Ícono de flecha */
.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: var(--color-teal);
}

/* Respuesta colapsable */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
    padding: 0 22px 20px 22px;
}

.faq-answer-inner p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* ==========================================================================
   CASILLERO DE PREGUNTAS
   ========================================================================== */
.ask-card {
    background: #ffffff;
    border: 1px solid rgba(0, 44, 105, 0.08);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 44, 105, 0.02);
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.ask-card:hover {
    border-color: rgba(27, 79, 191, 0.18);
    box-shadow: 0 10px 30px rgba(27, 79, 191, 0.06);
}

.ask-card-header {
    margin-bottom: 28px;
    text-align: center;
}

.ask-card-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    line-height: 1;
}

.ask-card-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.ask-card-desc {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Formulario */
.ask-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ask-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ask-field label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ask-optional {
    font-size: 0.75rem;
    color: var(--color-text-low);
    text-transform: none;
    letter-spacing: 0;
}

.ask-field input,
.ask-field textarea {
    background: #ffffff;
    border: 1px solid rgba(0, 44, 105, 0.12);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--color-text-white);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 400;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    resize: vertical;
}

.ask-field input::placeholder,
.ask-field textarea::placeholder {
    color: var(--color-text-low);
}

.ask-field input:focus,
.ask-field textarea:focus {
    border-color: var(--color-teal);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(27, 79, 191, 0.08);
}

.ask-submit-btn {
    width: 100%;
    margin-top: 6px;
    justify-content: center;
}

/* Estado de éxito */
.ask-success-card {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ask-success-card.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.ask-success-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(27, 221, 184, 0.08);
    border: 1px solid rgba(27, 221, 184, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-teal);
    box-shadow: 0 0 24px rgba(27, 221, 184, 0.2);
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { box-shadow: 0 0 24px rgba(27, 221, 184, 0.2); }
    50%       { box-shadow: 0 0 40px rgba(27, 221, 184, 0.35); }
}

.ask-success-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--color-teal);
}

.ask-success-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 300px;
}

/* Responsive */
@media (max-width: 960px) {
    .fs-top-grid,
    .fs-bottom-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .faith-science-section {
        padding: 70px 6%;
    }
    .fs-halo {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 600px) {
    .ask-card {
        padding: 24px 18px;
    }
    .faq-question {
        font-size: 0.9rem;
        padding: 16px 18px;
    }
}

/* ==========================================================================
   COMPLEMENTO: Clases adicionales para la sección Fe y Ciencia
   ========================================================================== */

/* Resplandores de fondo (nuevos nombres) */
.fs-glow-1 {
    position: absolute;
    top: 5%;
    right: -8%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.07) 0%, transparent 70%);
    filter: blur(65px);
    pointer-events: none;
    z-index: 0;
}

.fs-glow-2 {
    position: absolute;
    bottom: 10%;
    left: -6%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(27, 221, 184, 0.06) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

/* Encabezado central */
.fs-header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 64px;
}

.fs-header h2 {
    font-size: clamp(32px, 4.8vw, 58px);
    font-weight: 600;
    line-height: 1.06;
    margin-top: 18px;
}

/* Texto principal con párrafos directos */
.fs-main-text p {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.85;
    margin-bottom: 18px;
}

.fs-lead {
    font-size: 17px !important;
    color: rgba(255, 255, 255, 0.82) !important;
    font-weight: 400 !important;
}

/* Chips de científicos */
.fs-scientists {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    position: relative;
    z-index: 1;
}

.scientist-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(0, 44, 105, 0.03);
    border: 1px solid rgba(0, 44, 105, 0.08);
    font-size: 12.5px;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
    font-family: var(--font-body);
}

.scientist-chip:hover {
    background: rgba(0, 44, 105, 0.06);
    border-color: rgba(0, 44, 105, 0.18);
    color: var(--color-text-white);
}

.sci-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sci-dot.bg-teal   { background: var(--color-teal);   box-shadow: 0 0 6px var(--color-teal); }
.sci-dot.bg-purple { background: var(--color-purple); box-shadow: 0 0 6px var(--color-purple); }
.sci-dot.bg-amber  { background: var(--color-amber);  box-shadow: 0 0 6px var(--color-amber); }
.sci-dot.bg-pink   { background: var(--color-pink);   box-shadow: 0 0 6px var(--color-pink); }

/* Tarjetas de cita (clase alternativa) */
.quote-card {
    position: relative;
    padding: 26px 28px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(0, 44, 105, 0.08);
    box-shadow: 0 4px 20px rgba(0, 44, 105, 0.04);
    transition: var(--transition-smooth);
}

.quote-card:hover {
    transform: translateY(-3px);
}

.quote-card--teal   { border-left: 3px solid var(--color-teal);   box-shadow: 0 0 28px rgba(27, 79, 191, 0.04); }
.quote-card--purple { border-left: 3px solid var(--color-purple); box-shadow: 0 0 28px rgba(0, 44, 105, 0.04); }
.quote-card--amber  { border-left: 3px solid var(--color-amber);  box-shadow: 0 0 28px rgba(217, 119, 6, 0.04); }

.quote-card--teal:hover   { border-color: var(--color-teal);   box-shadow: 0 8px 36px rgba(27, 79, 191, 0.08); }
.quote-card--purple:hover { border-color: var(--color-purple); box-shadow: 0 8px 36px rgba(0, 44, 105, 0.08); }
.quote-card--amber:hover  { border-color: var(--color-amber);  box-shadow: 0 8px 36px rgba(217, 119, 6, 0.08); }

.quote-icon {
    font-size: 26px;
    line-height: 1;
    margin-bottom: 10px;
    opacity: 0.28;
}

.quote-card--teal   .quote-icon { color: var(--color-teal); }
.quote-card--purple .quote-icon { color: var(--color-purple); }
.quote-card--amber  .quote-icon { color: var(--color-amber); }

.quote-card blockquote {
    font-family: var(--font-body);
    font-size: 14.5px;
    font-style: italic;
    line-height: 1.75;
    color: var(--color-text-white);
    margin-bottom: 10px;
    border: none;
    padding: 0;
}

.quote-card cite {
    font-size: 11.5px;
    color: var(--color-text-low);
    letter-spacing: 0.04em;
    font-style: normal;
}

/* Divisor interno de la sección */
.fs-inner-divider {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(27, 221, 184, 0.18) 30%, rgba(167, 139, 250, 0.18) 70%, transparent 100%);
    margin: 0 auto 64px;
    max-width: 1200px;
}

/* Encabezado de FAQ */
.fs-faq-header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 48px;
}

.fs-faq-header h3 {
    font-size: clamp(24px, 3.2vw, 40px);
    font-weight: 500;
    margin-bottom: 12px;
}

.fs-faq-header p {
    color: var(--color-text-muted);
    font-size: 14.5px;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Estado abierto del acordeón (clase is-open para JS) */
.faq-item.is-open {
    border-color: rgba(27, 221, 184, 0.22);
    box-shadow: 0 4px 24px rgba(27, 221, 184, 0.07);
}

.faq-item.is-open .faq-question {
    color: var(--color-teal);
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
    color: var(--color-teal);
}

/* Botón pequeño */
.btn-sm {
    padding: 0.55rem 1.4rem;
    font-size: 0.82rem;
}

/* Estado éxito del casillero */
.ask-success-card {
    position: absolute;
    inset: 0;
    background: rgba(7, 12, 26, 0.96);
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 30px;
    gap: 14px;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.ask-success-card.visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.success-check {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(27, 221, 184, 0.1);
    border: 1px solid rgba(27, 221, 184, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-teal);
    box-shadow: 0 0 24px rgba(27, 221, 184, 0.2);
    animation: pulseGlow 2.5s ease-in-out infinite alternate;
}

.ask-success-card h4 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-teal);
}

.ask-success-card p {
    font-size: 13.5px;
    color: var(--color-text-muted);
    max-width: 300px;
    line-height: 1.7;
}


/* ==========================================================================
   FE Y CIENCIA — PÁGINA PROPIA (fe-ciencia.html)
   ========================================================================== */

/* --- Encabezado de página (igual al de creacion.html) --- */
.fs-page-header {
    padding: 160px 6% 80px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.fs-page-header h1 {
    font-size: clamp(36px, 5.5vw, 72px);
    line-height: 1.05;
    font-weight: 600;
    margin: 18px 0 20px;
    letter-spacing: -0.025em;
}

.fs-page-header p {
    color: var(--color-text-muted);
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.75;
    max-width: 620px;
    margin: 0 auto;
    font-weight: 400;
}

/* --- Sección 1: Texto + Citas --- */
.fs-main-section {
    position: relative;
    padding: 0 6% 80px;
    overflow: hidden;
}

.fs-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    max-width: 1280px;
    margin: 0 auto;
}

.fs-text-col p {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.85;
    margin-bottom: 18px;
}

.fs-lead {
    font-size: 17px !important;
    color: var(--color-text-white) !important;
    font-weight: 400 !important;
    line-height: 1.8 !important;
}

/* --- Sección 2: FAQ --- */
.fs-faq-section {
    padding: 80px 6% 100px;
    max-width: 1280px;
    margin: 0 auto;
}

.fs-faq-header {
    text-align: center;
    margin-bottom: 52px;
}

.fs-faq-header h2 {
    font-size: clamp(26px, 3.8vw, 46px);
    font-weight: 500;
    margin: 18px 0 12px;
    line-height: 1.08;
}

.fs-faq-header p {
    color: var(--color-text-muted);
    font-size: 14.5px;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Grid FAQ + Casillero */
.fs-bottom-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: start;
    max-width: 1280px;
    margin: 0 auto;
}

/* ==========================================================================
   LIBROS RECOMENDADOS
   ========================================================================== */
.books-section {
    padding: 80px 6% 120px;
    max-width: 1280px;
    margin: 0 auto;
}

.books-header {
    text-align: center;
    margin-bottom: 56px;
}

.books-header h2 {
    font-size: clamp(28px, 4vw, 50px);
    font-weight: 500;
    margin: 18px 0 14px;
    line-height: 1.08;
}

.books-header p {
    color: var(--color-text-muted);
    font-size: 14.5px;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Grid de libros */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Tarjeta de libro */
.book-card {
    display: flex;
    gap: 22px;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(0, 44, 105, 0.08);
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 44, 105, 0.02);
    transition: transform .45s cubic-bezier(.16,1,.3,1), border-color .35s ease, box-shadow .35s ease;
    will-change: transform;
    cursor: default;
}

.book-card:hover {
    border-color: rgba(0, 44, 105, 0.18);
    box-shadow: 0 12px 50px rgba(0, 44, 105, 0.08);
}

/* Portada del libro */
.book-cover {
    flex-shrink: 0;
    width: 90px;
    min-height: 120px;
    border-radius: 6px 10px 10px 6px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(0,0,0,.6);
    box-shadow: 3px 4px 18px rgba(0,0,0,.5), inset -2px 0 6px rgba(0,0,0,.4);
}

/* Lomo del libro */
.book-spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    border-radius: 4px 0 0 4px;
}

/* Arte de portada */
.book-cover-art {
    margin-top: 6px;
    opacity: .85;
    transition: opacity .3s ease;
}

.book-card:hover .book-cover-art { opacity: 1; }

.book-label {
    position: absolute;
    bottom: 0;
    left: 8px;
    right: 0;
    padding: 6px 8px;
    background: rgba(0,0,0,.65);
}

.book-tag {
    font-size: 8.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--color-text-low);
    font-family: var(--font-body);
}

/* Variantes de color de portada */
.book-cover--teal   { border-left: 3px solid var(--color-teal); }
.book-cover--teal   .book-spine { background: linear-gradient(var(--color-teal), rgba(27,221,184,.3)); }
.book-cover--purple { border-left: 3px solid var(--color-purple); }
.book-cover--purple .book-spine { background: linear-gradient(var(--color-purple), rgba(167,139,250,.3)); }
.book-cover--amber  { border-left: 3px solid var(--color-amber); }
.book-cover--amber  .book-spine { background: linear-gradient(var(--color-amber), rgba(251,191,36,.3)); }
.book-cover--pink   { border-left: 3px solid var(--color-pink); }
.book-cover--pink   .book-spine { background: linear-gradient(var(--color-pink), rgba(240,171,252,.3)); }

/* Información del libro */
.book-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.book-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.book-year {
    font-size: 11px;
    color: var(--color-text-low);
    letter-spacing: .04em;
}

.book-level {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 100px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.book-level--beginner    { background: rgba(27,221,184,.1); color: var(--color-teal); border: 1px solid rgba(27,221,184,.2); }
.book-level--intermediate{ background: rgba(251,191,36,.1); color: var(--color-amber); border: 1px solid rgba(251,191,36,.2); }
.book-level--advanced    { background: rgba(167,139,250,.1); color: var(--color-purple); border: 1px solid rgba(167,139,250,.2); }

.book-info h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-text-white);
    letter-spacing: -.01em;
}

.book-author {
    font-size: 12px;
    color: var(--color-text-low);
    letter-spacing: .02em;
    font-style: italic;
}

.book-desc {
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--color-text-muted);
    flex: 1;
    margin-top: 4px;
}

/* Tags de libro */
.book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.book-tags span {
    font-size: 10.5px;
    padding: 2px 10px;
    border-radius: 100px;
    background: rgba(0, 44, 105, 0.03);
    border: 1px solid rgba(0, 44, 105, 0.08);
    color: var(--color-text-low);
    letter-spacing: .03em;
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Retrasos escalonados para los libros */
.books-grid .book-card:nth-child(1) { transition-delay: .0s; }
.books-grid .book-card:nth-child(2) { transition-delay: .07s; }
.books-grid .book-card:nth-child(3) { transition-delay: .14s; }
.books-grid .book-card:nth-child(4) { transition-delay: .21s; }
.books-grid .book-card:nth-child(5) { transition-delay: .28s; }
.books-grid .book-card:nth-child(6) { transition-delay: .35s; }

/* ==========================================================================
   RESPONSIVE — FE Y CIENCIA PAGE
   ========================================================================== */
@media (max-width: 1024px) {
    .fs-top-grid,
    .fs-bottom-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .fs-faq-section {
        padding: 60px 5% 80px;
    }
}

@media (max-width: 768px) {
    .fs-page-header {
        padding: 130px 5% 60px;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

    .book-card {
        flex-direction: column;
    }

    .book-cover {
        width: 100%;
        min-height: 80px;
        flex-direction: row;
        justify-content: flex-start;
        padding: 12px 16px;
        gap: 16px;
    }

    .book-label {
        position: static;
        background: none;
        padding: 0;
    }
}

@media (max-width: 600px) {
    .fs-page-header h1 {
        font-size: 32px;
    }

    .ask-field-group {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   MODIFICACIONES SOLICITADAS POR EL USUARIO (MURAL, CUESTIONARIO Y VERSICULOS)
   ========================================================================== */

/* Versículo en la línea de tiempo */
.timeline-verse {
    display: block;
    font-size: 0.88rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--color-teal);
    margin-top: 6px;
    margin-bottom: 18px;
    font-weight: 400;
    opacity: 0.95;
    border-left: 2px solid rgba(27, 79, 191, 0.3);
    padding-left: 10px;
}

.timeline-item:nth-child(even) .timeline-verse {
    color: var(--color-purple);
    border-left-color: rgba(167, 139, 250, 0.3);
}

.timeline-item:nth-child(3n) .timeline-verse {
    color: var(--color-amber);
    border-left-color: rgba(251, 191, 36, 0.3);
}

/* Imagen de fósil real */
.fossil-real-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    z-index: 1;
    position: relative;
    opacity: 0.85;
    transition: var(--transition-smooth);
}

.fossil-img-placeholder:hover .fossil-real-img {
    transform: scale(1.05);
    opacity: 1;
}

/* Tarjeta de Cita Bíblica Destacada en Fe y Ciencia */
.quote-card.quote-card--biblical {
    position: relative;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(7, 12, 26, 0.95) 100%);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-left: 5px solid var(--color-amber);
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.2);
    padding-top: 36px !important;
}

.quote-card.quote-card--biblical:hover {
    border-color: var(--color-amber);
    box-shadow: 0 12px 50px rgba(251, 191, 36, 0.45);
}

.quote-card--biblical .quote-badge {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-amber);
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.08em;
}

.quote-card.quote-card--biblical blockquote {
    color: var(--color-text-white);
    font-size: 1.22rem;
    font-weight: 500;
    line-height: 1.55;
    margin-bottom: 12px;
}

.quote-card.quote-card--biblical cite {
    color: var(--color-amber);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
}

.quote-card.quote-card--biblical .quote-icon {
    color: var(--color-amber);
    opacity: 0.85;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.6));
}

/* Estilos de Quiz y Reseña */
.game-quiz-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 30px;
}

@media (max-width: 900px) {
    .game-quiz-area {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }
}

.quiz-container {
    background: #ffffff;
    border: 1px solid rgba(0, 44, 105, 0.08);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 320px;
    box-shadow: 0 10px 30px rgba(0, 44, 105, 0.02);
}

.quiz-progress {
    font-size: 0.75rem;
    color: var(--color-text-low);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.quiz-question-text {
    font-size: 1.25rem;
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.35;
}

.quiz-options-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option-btn {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(0, 44, 105, 0.08);
    border-radius: 12px;
    padding: 12px 18px;
    text-align: left;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: block;
    box-sizing: border-box;
}

.quiz-option-btn:hover {
    background: rgba(0, 44, 105, 0.02);
    color: var(--color-text-white);
    border-color: rgba(0, 44, 105, 0.18);
    transform: translateX(4px);
}

.quiz-option-btn.correct {
    background: rgba(27, 221, 184, 0.12) !important;
    border-color: var(--color-teal) !important;
    color: var(--color-teal) !important;
}

.quiz-option-btn.incorrect {
    background: rgba(231, 76, 60, 0.12) !important;
    border-color: var(--color-red) !important;
    color: var(--color-red) !important;
}

.quiz-results-card {
    text-align: center;
    padding: 20px 10px;
}

.quiz-results-card .success-check {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: scaleUp 0.5s ease-out;
}

.quiz-results-card h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Sección de Reseñas */
.review-container {
    background: rgba(0, 44, 105, 0.02);
    border: 1px solid rgba(0, 44, 105, 0.06);
    border-radius: 20px;
    padding: 24px;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.star-rating {
    display: flex;
    gap: 6px;
    font-size: 1.5rem;
}

.star-btn {
    background: none;
    border: none;
    color: var(--color-text-low);
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0;
}

.star-btn.active,
.star-btn:hover {
    color: var(--color-amber);
    text-shadow: 0 0 8px rgba(217, 119, 6, 0.25);
}

.review-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-fields input,
.review-fields textarea {
    background: #ffffff;
    border: var(--border-thin);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--color-text-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.review-fields input:focus,
.review-fields textarea:focus {
    border-color: var(--color-teal);
    background: #ffffff;
    outline: none;
}

.review-success-card {
    text-align: center;
    padding: 30px 10px;
}

.review-success-card .success-check {
    font-size: 2.2rem;
    color: var(--color-teal);
    margin-bottom: 12px;
}

/* Mural de Reseñas */
.reviews-board {
    border-top: 1px solid rgba(0, 44, 105, 0.08);
    padding-top: 18px;
}

.reviews-board h5 {
    font-size: 0.85rem;
    color: var(--color-text-low);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.reviews-board-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 6px;
}

/* Estilo scrollbar */
.reviews-board-list::-webkit-scrollbar {
    width: 4px;
}
.reviews-board-list::-webkit-scrollbar-track {
    background: transparent;
}
.reviews-board-list::-webkit-scrollbar-thumb {
    background: rgba(0, 44, 105, 0.1);
    border-radius: 4px;
}

.student-review-item {
    background: #ffffff;
    border: 1px solid rgba(0, 44, 105, 0.04);
    border-radius: 12px;
    padding: 10px 14px;
}

.review-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.review-item-header strong {
    font-size: 0.8rem;
    color: var(--color-text-white);
}

.review-item-header .stars {
    font-size: 0.7rem;
}

.student-review-item p {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   RESPONSIVE MOBILE — Media Queries
   ========================================================================== */

/* --- Tablet (≤1024px) --- */
@media (max-width: 1024px) {
    /* Hero */
    .hero {
        padding: 110px 5% 60px 5%;
    }
    .hero-content {
        max-width: 65%;
    }
    .hero-visual {
        width: 50vw;
    }

    /* ADN Viewer */
    .viewer-container {
        grid-template-columns: 1fr;
    }
    .canvas-3d-wrapper {
        height: 420px;
    }

    /* Physics */
    .physics-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .physics-visual {
        height: 360px;
    }

    /* Fossils */
    .fossil-img-placeholder {
        height: 300px;
    }

    /* Fe y Ciencia */
    .fs-top-grid {
        grid-template-columns: 1fr;
    }
    .fs-bottom-grid {
        grid-template-columns: 1fr;
    }

    /* Creacion */
    .day-content-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {

    /* ===== GLOBAL ===== */
    html {
        font-size: 15px;
    }

    /* ===== HEADER / NAV ===== */
    .main-header {
        padding: 0 5%;
        height: 95px;
    }
    .logo-img {
        height: 70px;
    }
    .logo-text {
        font-size: 0.8rem;
    }
    .nav-links {
        display: flex;
        position: fixed;
        top: 95px;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--bg-nav-blue);
        border-bottom: 1px solid transparent;
        padding: 0 5%;
        max-height: 0;
        overflow: hidden;
        z-index: 999;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-bottom 0.4s ease;
        pointer-events: none;
    }
    .nav-links.open,
    .nav-links.active {
        max-height: 420px;
        padding: 16px 5%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        pointer-events: auto;
    }
    .nav-links a {
        width: 100%;
        padding: 14px 0;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .nav-links a:last-child {
        border-bottom: none;
    }
    .nav-links a.nav-btn-highlight {
        margin-top: 12px;
        text-align: center;
        padding: 12px 0;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .mobile-menu-toggle.open span:nth-child(1),
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-toggle.open span:nth-child(2),
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.open span:nth-child(3),
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* ===== HERO (index.html) ===== */
    .hero {
        min-height: auto;
        padding: 95px 5% 50px 5%;
        flex-direction: column;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-visual {
        display: block;
        width: 100%;
        height: 380px;
        margin-top: 40px;
        position: relative;
    }
    .hero-title {
        font-size: clamp(28px, 8vw, 44px);
    }
    .hero-subtitle-description {
        font-size: 14.5px;
        margin-bottom: 28px;
    }
    .hero-actions {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 28px;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* ===== ROOMS (cards de salas) ===== */
    .rooms-section {
        padding: 60px 5%;
    }
    .rooms-section-header {
        margin-bottom: 32px;
    }
    .rooms-section-header h2 {
        font-size: clamp(22px, 7vw, 36px);
    }
    .rooms-grid {
        gap: 16px;
    }
    .room-card {
        min-height: 300px;
    }

    /* ===== SALA ADN (interactive-viewer-section) ===== */
    .interactive-viewer-section {
        padding: 60px 5%;
    }
    .viewer-container {
        grid-template-columns: 1fr;
        border-radius: 18px;
    }
    .canvas-3d-wrapper {
        height: 300px;
    }
    .viewer-sidebar {
        padding: 24px 20px;
        border-left: none;
        border-top: var(--border-thin);
    }
    .viewer-controls {
        gap: 6px;
        flex-wrap: wrap;
    }
    .control-btn {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    /* ===== SALA FÍSICA (physics-section) ===== */
    .physics-section {
        padding: 60px 5%;
    }
    .physics-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .physics-text h2 {
        font-size: clamp(20px, 7vw, 32px);
    }
    .physics-visual {
        height: 280px;
        border-radius: 16px;
        overflow: hidden;
    }
    .constants-list {
        gap: 12px;
    }
    .constant-item {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }
    .c-number {
        font-size: 1.4rem;
    }

    /* ===== SALA FÓSILES (fossils-section) ===== */
    .fossils-section {
        padding: 60px 5%;
    }
    .fossil-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    .fossil-tab {
        font-size: 0.82rem;
        padding: 10px 16px;
        flex: 1 1 auto;
        text-align: center;
    }
    .fossil-detail {
        flex-direction: column;
        gap: 20px;
    }
    .fossil-img-placeholder {
        height: 220px;
        border-radius: 14px;
    }
    .fossil-text {
        padding: 0;
    }

    /* ===== ZONA DE DESAFÍOS (challenges-section) ===== */
    .challenges-section {
        padding: 60px 5%;
    }
    .challenges-banner {
        border-radius: 20px;
        padding: 32px 20px;
    }
    .challenges-tabs {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    .challenge-tab {
        font-size: 0.8rem;
        padding: 10px 16px;
        flex: 1 1 auto;
        text-align: center;
    }
    .game-play-area {
        flex-direction: column;
        gap: 24px;
    }
    .sliders-panel {
        width: 100%;
    }
    .visual-feedback-panel {
        width: 100%;
    }
    .universe-simulator {
        height: 220px;
    }
    .game-dna-area {
        flex-direction: column;
    }
    .base-selection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .challenges-container {
        border-radius: 16px;
    }
    .game-wrapper {
        padding: 24px 16px;
    }
    .game-quiz-area {
        padding: 12px 8px;
        gap: 20px;
    }
    .quiz-container {
        padding: 16px;
        min-height: auto;
    }
    .quiz-question-text {
        font-size: 1.15rem;
        margin-bottom: 16px;
    }
    .quiz-option-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    /* ===== FE Y CIENCIA (fe-ciencia.html) ===== */
    .fs-page-header {
        padding: 100px 5% 40px;
        text-align: center;
    }
    .fs-page-header h1 {
        font-size: clamp(26px, 8vw, 44px);
    }
    .fs-main-section {
        padding: 40px 5%;
    }
    .fs-top-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .fs-bottom-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .fs-quotes-column {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .fs-scientists {
        flex-wrap: wrap;
        gap: 8px;
    }
    .fs-faq-section {
        padding: 40px 5%;
    }
    .faq-accordion {
        gap: 10px;
    }
    .faq-question {
        padding: 16px 18px;
        font-size: 0.9rem;
    }
    .fs-books-section {
        padding: 40px 5%;
    }
    .book-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .book-card {
        flex-direction: row;
        gap: 16px;
    }
    .book-cover {
        width: 80px;
        height: 110px;
        flex-shrink: 0;
        border-radius: 10px;
    }
    .book-info {
        padding: 12px 0;
    }

    /* ===== CREACIÓN (creacion.html) ===== */
    .creation-hero {
        padding: 100px 5% 40px;
        text-align: center;
    }
    .creation-hero h1 {
        font-size: clamp(26px, 8vw, 44px);
    }
    .days-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding-bottom: 8px;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    .day-btn {
        flex-shrink: 0;
        font-size: 0.82rem;
        padding: 10px 16px;
        white-space: nowrap;
    }
    .day-content-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .day-image-container,
    .day-img-wrap {
        height: 220px;
        border-radius: 14px;
    }
    .creation-timeline-section {
        padding: 40px 5%;
    }

    /* ===== FOOTER ===== */
    .main-footer {
        padding: 48px 5% 28px;
    }
    .footer-inner {
        flex-direction: column;
        gap: 24px;
        align-items: center;
        text-align: center;
    }
    .footer-links {
        flex-wrap: wrap;
        gap: 8px 16px;
        justify-content: center;
    }
    .footer-copy {
        font-size: 0.78rem;
        text-align: center;
    }
    .footer-brand {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .footer-brand-desc {
        text-align: center;
        max-width: 280px;
    }
}

/* --- Small Mobile (≤480px) --- */
@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(24px, 9vw, 34px);
    }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .rooms-section-header h2,
    .physics-text h2 {
        font-size: 1.6rem;
    }
    .canvas-3d-wrapper {
        height: 240px;
    }
    .challenge-tab {
        flex: 1 1 100%;
    }
    .base-selection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .book-card {
        flex-direction: column;
    }
    .book-cover {
        width: 100%;
        height: 130px;
    }
    .stat-number {
        font-size: 20px;
    }
    .section-label {
        font-size: 10px;
    }
    .btn {
        font-size: 0.85rem;
        padding: 0.75rem 1.3rem;
    }
    .fossil-tab {
        flex: 1 1 100%;
    }
    .day-detail-grid {
        grid-template-columns: 1fr;
    }
    .lab-stats {
        flex-direction: column;
        border-radius: 16px;
        gap: 16px;
        padding: 1.5rem;
        align-items: flex-start;
        width: 100%;
    }
    .lab-stat-divider {
        display: none;
    }
}

/* ==========================================================================
   CAROUSEL ANIMATION & GOOGLE REVIEWS
   ========================================================================== */
@keyframes carousel-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.carousel-track {
    display: flex;
    gap: 20px;
    animation: carousel-scroll 25s linear infinite;
    width: 4080px; /* 12 cards of 320px + 20px gap */
}

.carousel-track:hover {
    animation-play-state: paused;
}

.google-review-card {
    flex: 0 0 auto;
    width: 320px;
    white-space: normal;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gr-header {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.gr-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.gr-user-info {
    display: flex;
    flex-direction: column;
}

.gr-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #202124;
}

.gr-role {
    font-size: 0.75rem;
    color: #70757a;
}

.gr-icon {
    margin-left: auto;
    align-self: flex-start;
}

.gr-rating-time {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gr-rating-time .stars {
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.gr-time {
    font-size: 0.75rem;
    color: #70757a;
}

.gr-text {
    font-size: 0.9rem;
    color: #3c4043;
    line-height: 1.5;
    font-style: italic;
    margin: 0;
}
