/* Variables CSS para colores y fuentes */
:root {
    --dark-background: #1a1a1a;
    --text-light: #ffffff;
    --primary-chuuk-color: #f0f0f0;
    --secondary-text-color: #b0b0b0;
    --container-background-transparent: rgba(51, 51, 51, 0.25);
    --border-dark: #444444;
    --subtle-neon-white-glow: 0 0 5px rgba(255, 255, 255, 0.5), 0 0 10px rgba(255, 255, 255, 0.3);
    --font-family: 'Poppins', sans-serif;
    --font-family-logo: 'Poppins', sans-serif;
    --header-bar-background: rgba(30, 30, 30, 0.8);
    --header-bar-border: rgba(60, 60, 60, 0.7);
    --bright-white-border: 0 0 0 2px #ffffff;
    --white-color: #f8f8f8;
}

/* Estilos Generales y Reseteo Básico */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: #121212; /* Fondo oscuro por defecto para la animación */
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Patrón de puntos para las secciones con fondo claro */
section[data-theme="light"] {
    background-color: var(--white-color);
    color: var(--dark-background);
    position: relative;
    z-index: 1;
}

section[data-theme="light"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#d3d3d3 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
}

/* Canvas de Fondo (si lo usas para efectos) */
#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Encabezado (Header) */
header {
    background-color: rgba(248, 248, 248, 0.9);
    padding: 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(200, 200, 200, 0.7);
    backdrop-filter: blur(5px);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 75px;
}

.logo-chuuk-labs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-chuuk-labs img {
    width: 40px;
    height: 40px;
    filter: none;
}

.logo-chuuk-labs h1 {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 1.5rem;
    color: #000;
    margin: 0;
    letter-spacing: 0;
    text-shadow: none;
    line-height: 1.2;
}

/* --- Menú de Escritorio (Desktop Nav) --- */
.desktop-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.desktop-nav ul li {
    margin-left: 30px;
}

.desktop-nav ul li a, .desktop-nav ul li span {
    color: #555555;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
    line-height: 1.2;
}
.desktop-nav ul li a:hover {
    color: #000;
}

.desktop-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #000000;
    transition: width 0.3s ease;
}

.desktop-nav ul li a:hover::after {
    width: 100%;
}

/* --- Menu Hamburguesa (MOBILE FIX) --- */
.menu-toggle {
    display: none; /* Oculto por defecto en escritorio */
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #000; /* Color del icono */
    padding: 0;
    z-index: 1010;
}

.mobile-nav-microov {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background-color: var(--dark-background); /* Fondo negro */
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.5);
    transform: translateX(100%); 
    transition: transform 0.3s ease-out;
    z-index: 1000;
    pointer-events: none; 
    visibility: hidden;
}

.mobile-nav-microov.is-open {
    transform: translateX(0); 
    pointer-events: auto;
    visibility: visible;
}

.mobile-nav-links {
    list-style: none;
    padding: 25px;
    margin-top: 60px; 
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-links a, .mobile-nav-links span {
    text-decoration: none;
    color: var(--text-light); 
    font-size: 1.1rem;
    padding: 10px 0;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 30px;
    cursor: pointer;
}

.btn-mobile-registro {
    background-color: var(--white-color);
    color: var(--dark-background) !important;
    padding: 10px 15px !important;
    border-radius: 4px;
    text-align: center;
    font-weight: 700 !important;
    margin-top: 10px;
}
/* --- Fin Menu Hamburguesa --- */


/* Sección Hero (Principal) */
.hero-section {
    padding: 50px 0 150px 0;
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
}
section[data-theme="dark"] {
    background-color: transparent;
    color: var(--text-light);
}

.hero-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    text-align: center;
}

.hero-center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chuuk-title {
    font-size: 4.5em;
    color: var(--primary-chuuk-color);
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 3px;
    text-shadow: var(--subtle-neon-white-glow);
    text-transform: uppercase;
}

.hero-dynamic-text {
    font-size: 1.3em;
    color: var(--secondary-text-color);
    max-width: 400px;
    margin: 0 auto;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    font-weight: 300;
}

.typed-text {
    font-weight: 700;
}

.typed-text::after {
    content: '|';
    display: inline-block;
    animation: blink-caret 1s step-end infinite;
}

@keyframes blink-caret {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

.hero-buttons {
    margin-top: 40px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--text-light);
    color: var(--dark-background);
    padding: 18px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: 1px solid var(--text-light);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
    background-color: var(--dark-background);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6), 0 0 25px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--text-light);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    border: 1px solid var(--text-light);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--dark-background);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Estilos de las secciones */
section {
    padding: 5rem 5%;
    position: relative;
    z-index: 1;
}

section[data-theme="dark"] .section-title {
    color: var(--text-light);
    text-shadow: var(--subtle-neon-white-glow);
}

section[data-theme="light"] .section-title {
    color: var(--dark-background);
    text-shadow: none;
}

.section-title {
    font-size: 3em;
    margin-bottom: 25px;
    text-align: center;
}

/* Estilos para la sección de MicroOV */
.plans-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}
section[data-theme="light"] .plans-intro .section-title {
    color: var(--dark-background);
}
section[data-theme="light"] .plans-intro p,
section[data-theme="light"] .plans-intro .demo-tagline {
    color: var(--dark-background);
}

/* Nueva tarjeta para el texto introductorio */
.intro-card {
    background-color: var(--white-color);
    color: var(--dark-background);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-dark);
    margin: 0 auto 2rem;
    max-width: 1115px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.intro-card .demo-tagline {
    font-size: 1.1em;
    line-height: 1.8;
}

/* Nueva cuadrícula para las tarjetas más pequeñas */
.bento-grid-compact {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
}

.plan-card {
    background-color: var(--white-color);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-dark);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--dark-background);
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background-color: rgba(248, 248, 248, 0.8);
}

.plan-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-background);
    margin-bottom: 0.5rem;
}

.plan-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-background);
}

.plan-features {
    list-style: none;
    text-align: left;
    padding: 0;
    margin-bottom: 1rem;
}

.plan-features li {
    margin-bottom: 0.3rem;
    position: relative;
    padding-left: 20px;
    font-size: 0.9em;
    color: var(--dark-background);
}

.plan-features li::before {
    content: '✔';
    color: var(--dark-background);
    font-size: 1rem;
    position: absolute;
    left: 0;
}

.plan-card .btn-secondary {
    margin-top: auto;
}

/* Estilos para la sección "Qué Hacemos" (Nuevos estilos con grid) */
.our-focus-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 20px;
}

.our-focus-intro-full {
    text-align: center;
    margin-bottom: 20px;
}

.our-focus-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.focus-card {
    background-color: var(--white-color);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-dark);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--dark-background);
}

.focus-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background-color: rgba(248, 248, 248, 0.8);
}

.focus-icon-fa {
    font-size: 2.5rem;
    color: var(--dark-background);
    margin-bottom: 1rem;
}

.focus-card h4 {
    font-size: 1.1em;
    margin-bottom: 0.5rem;
    color: var(--dark-background);
}

.focus-card p {
    font-size: 0.9em;
    color: var(--dark-background);
}

/* --- SECCIÓN DE DEMO EN VIVO CON COMPARADORES --- */
.demo-section {
    padding: 80px 5%;
    text-align: center;
    position: relative;
    z-index: 5;
    background-color: var(--white-color);
}

.bento-demo-card {
    background-color: var(--dark-background); /* Tono oscuro para el fondo de la caja */
    color: var(--text-light); /* Color de texto claro para contraste */
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); /* Sombra más oscura para destacar */
    border: 1px solid var(--border-dark);
    max-width: 1400px;
    margin: 3rem auto;
}

/* FIX: Contenedor principal del grid (3 columnas por 2 filas) */
.bento-grid-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
}

.bento-item {
    background-color: rgba(255, 255, 255, 0.05); /* Fondo sutilmente claro para los items */
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Sombra oscura para los items */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Borde claro */
}

.demo-text-card {
    grid-area: 1 / 1 / 2 / 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.demo-text-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-light); /* Texto claro para contraste */
}
.demo-text-card p {
    font-size: 1em;
    color: var(--text-light); /* Texto claro para contraste */
}
.demo-text-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); /* Sombra más oscura para el hover */
}

/* Estilos para los comparadores de imagen (compartidos) */
.image-comparison-container {
    cursor: ew-resize;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.image-comparison-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); /* Sombra más oscura para el hover */
}
.image-comparison-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
}
.image-original,
.image-analyzed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-analyzed {
    clip-path: inset(0 100% 0 0);
}
.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background-color: var(--text-light);
    transform: translateX(-50%);
    z-index: 2;
    cursor: ew-resize;
    pointer-events: none;
}
.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 35px;
    height: 35px;
    background-color: var(--text-light);
    border: 4px solid var(--dark-background);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--dark-background);
    line-height: 1;
    user-select: none;
}
.slider-handle::before {
    content: '❮';
    margin-right: 4px;
}
.slider-handle::after {
    content: '❯';
    margin-left: 4px;
}
/* --- FIN SECCIÓN DEMO --- */

/* Footer - ESTILOS MODIFICADOS */
footer {
    background-color: #000;
    padding: 50px 0;
    color: #fff;
    text-align: center;
    font-size: 1em;
    border-top: 1px solid #cccccc;
    position: relative;
    z-index: 5;
}
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 1rem;
}
.footer-contact {
    text-align: center;
}
.footer-contact h4 {
    color: #fff;
    margin-bottom: 0.5rem;
}
.footer-contact p {
    margin: 0;
    color: #b0b0b0;
}
.footer-bottom {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #b0b0b0;
}

/* ======================================= */
/* MEDIA QUERIES (CORRECCIONES RESPONSIVAS)*/
/* ======================================= */

/* REGLAS PARA TABLET (Menos de 1200px) */
@media (max-width: 1200px) {
    .header-container {
        padding: 0 30px;
        min-height: 60px;
    }
    .hero-content-wrapper {
        padding: 0 30px;
    }
    
    /* El grid de la demo pasa a 2 columnas */
    .bento-grid-full {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto; /* Dejar que las filas se ajusten */
    }
    .demo-text-card {
        grid-column: span 2; /* El texto ocupa el ancho completo */
        text-align: center;
    }
}

/* REGLAS PARA MÓVIL (Menos de 768px) */
@media (max-width: 768px) {
    /* --- MENÚ HAMBURGUESA --- */
    .header-container {
        padding: 0 20px; /* Ajuste del padding del header */
        min-height: 60px;
    }
    .header-container nav {
        display: none; /* Ocultar la etiqueta <nav> (el menú de escritorio) */
    }
    .menu-toggle {
        display: block; /* Mostrar el botón de hamburguesa */
    }
    
    /* --- LAYOUT DEL DEMO FIX --- */
    .bento-demo-card {
        padding: 20px; /* Reducir padding de la tarjeta oscura */
    }
    
    /* FIX CRÍTICO: Forzar a una sola columna */
    .bento-grid-full {
        grid-template-columns: 1fr !important; 
        gap: 20px;
    }
    .demo-text-card {
        grid-column: 1 / -1; /* Asegurar que el texto ocupe todo el ancho */
        padding: 20px;
    }
    
    /* Ajustes de tamaño de texto */
    .chuuk-title {
        font-size: 2.5em;
    }
    .hero-dynamic-text {
        font-size: 1.1em;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 15px 25px;
        font-size: 1.1em;
    }
    .section-title {
        font-size: 2.5em;
    }
    .intro-card {
        padding: 30px 20px;
    }
}