/* El Reset Universal */
*,
*::before,
*::after {
    box-sizing: border-box;
    /* Incluye el padding dentro del cálculo del ancho */
}

html {
    /* Esto le dice al navegador que el "techo" de la web 
       está 100px más abajo, protegiendo tus títulos */
    scroll-padding-top: 100px; 
}

/* Asegura que NADA sea más ancho que la pantalla */
img,
iframe,
video {
    max-width: 100%;
    /* Nunca más ancho que su contenedor */
    height: auto;
    /* Mantener proporción */
}

/* Evita el scroll horizontal fantasma */
html,
body {
    overflow-x: hidden;
    /* Corta lo que sobresalga por los lados */
    width: 100%;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'Conthrax';
    src: url('Conthrax-SemiBold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #FF6B00;
    /* Naranja vibrante */
    --secondary-color: #e6f1ff;
    /* Azul muy claro */
    --bg-color: #f8fafc;
    /* Fondo general */
    --text-color: #0A192F;
    /* Azul marino oscuro (Texto principal) */
    --text-muted: #475569;
    /* Gris azulado (Texto secundario) */
    --card-bg: #ffffff;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utility Class para bloquear scroll cuando el overlay está activo */
body.scroll-locked {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- CONSTRUCTION OVERLAY --- */
.construction-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 9999;
    /* Por encima de todo */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.construction-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.construction-content {
    max-width: 600px;
    padding: 2rem;
    animation: fadeIn 0.8s ease-out;
}

.construction-logo {
    width: 120px;
    margin-bottom: 2rem;
}

.construction-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.construction-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(10, 25, 47, 0.1);
}

.nav-brand {
    font-family: 'Conthrax', sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    color: var(--text-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-logo {
    height: 40px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-text {
    flex: 1;
    padding-right: 2rem;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.highlight {
    color: var(--primary-color);
    background: linear-gradient(120deg, rgba(255, 107, 0, 0.2) 0%, rgba(255, 107, 0, 0) 100%);
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.hero-logo-img {
    max-width: 400px;
    width: 100%;
    filter: drop-shadow(0 0 20px rgba(255, 107, 0, 0.3));
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* --- BOTONES GENERALES --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: rgba(255, 107, 0, 0.1);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #e05e00;
    transform: translateY(-2px);
}

/* Botón Google Play */
.btn-google-play {
    background-color: #000;
    color: white;
    border: 1px solid #000;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
    border-radius: 6px;
}

.btn-google-play:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- SECCIONES GENERALES --- */
.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    position: relative;
    display: block;
}

.about-section p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
}

/* --- PRODUCTOS (NUEVO DISEÑO EN BLOQUES) --- */
.products-section {
    background-color: var(--bg-color);
}

.product-block {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.product-block:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-block.reverse {
    flex-direction: row-reverse;
}

.product-info {
    flex: 1;
}

.product-visual {
    flex: 1;
    height: 300px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Esto es temporal hasta que pongas capturas de pantalla reales */
}

/* Badges (Etiquetas) */
.badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.new {
    background-color: var(--primary-color);
    color: white;
}

.product-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.product-info p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Lista de características */
.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.feature-list li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* --- CONTACTO / FOOTER (NUEVO DISEÑO OSCURO) --- */
.footer-section {
    background-color: #0A192F;
    /* Fondo oscuro elegante */
    color: white;
    padding: 5rem 0 2rem;
    margin-top: 4rem;
}

.footer-section h2 {
    color: white;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.brand-footer {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-family: 'Conthrax', sans-serif;
    font-size: 1.8rem;
}

.footer-logo {
    height: 40px;
    margin-right: 10px;
    filter: brightness(0) invert(1);
    /* Vuelve el logo blanco */
}

.contact-info p {
    color: #a8b2d1;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #e6f1ff;
}

.detail-item i {
    width: 30px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Redes Sociales */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-3px);
    background-color: var(--primary-color);
    color: white;
}

/* Asegurar que el icono de X se vea correctamente */
.social-icon.x-twitter i {
    font-weight: 900;
    font-size: 1.1rem;
}

/* Ocultar el texto de respaldo cuando el icono funciona */
.social-icon.x-twitter .x-fallback {
    display: none;
}

/* Mostrar solo si el icono de FA no está disponible */
.social-icon.x-twitter i:empty+.x-fallback,
.social-icon.x-twitter i:not(:before)+.x-fallback {
    display: inline;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Mejorar la visualización del símbolo X */
.social-icon.x-twitter .x-fallback {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 600;
    line-height: 1;
}

/* Mapa */
.contact-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    height: 350px;
    width: 100%;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #8892b0;
    font-size: 0.9rem;
}

/* --- RESPONSIVE --- */
/* --- ESTILOS MÓVIL Y MENU --- */

/* 1. Botón Hamburguesa (Estilos base, visible siempre o controlado por media query) */
.s-header__menu-toggle {
    display: none;
    /* Oculto en escritorio */
    width: 40px;
    height: 40px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2000;
    /* MUY IMPORTANTE: Por encima del menú desplegado */
    cursor: pointer;
}

.s-header__menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    /* Usa tu variable de color */
    position: absolute;
    top: 50%;
    left: 8px;
    transition: all 0.3s;
}

.s-header__menu-icon::before,
.s-header__menu-icon::after {
    content: '';
    width: 100%;
    height: 100%;
    background-color: var(--text-color);
    position: absolute;
    left: 0;
    transition: all 0.3s;
}

.s-header__menu-icon::before {
    top: -8px;
}

.s-header__menu-icon::after {
    bottom: -8px;
}

/* Transformación a X cuando está activo */
.s-header__menu-toggle.is-clicked .s-header__menu-icon {
    background-color: transparent;
}

.s-header__menu-toggle.is-clicked .s-header__menu-icon::before {
    top: 0;
    transform: rotate(135deg);
}

.s-header__menu-toggle.is-clicked .s-header__menu-icon::after {
    bottom: 0;
    transform: rotate(225deg);
}


/* --- RESPONSIVE Y MEDIA QUERIES --- */

@media (max-width: 992px) {

    /* Ajuste para tablets y pantallas medianas */
    .hero-text h1 {
        font-size: 3rem;
    }

    .product-block {
        gap: 2rem;
        padding: 2rem;
    }
}

@media (max-width: 768px) {

    /* 1. AJUSTES GENERALES */
    .container {
        padding: 0 1.5rem;
        /* Menos padding lateral en móvil */
    }

    .section {
        padding: 3rem 0;
        /* Secciones menos altas */
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    /* 2. MENU HAMBURGUESA (Mantenemos tu lógica original) */
    .s-header__menu-toggle {
        display: block;
        width: 40px;
        height: 40px;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2000;
        cursor: pointer;
        text-decoration: none;
        background: transparent;
    }

    .s-header__menu-icon {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--text-color);
        position: absolute;
        top: 50%;
        left: 8px;
        margin-top: -1px;
        transition: background-color 0.3s;
    }

    .s-header__menu-icon::before,
    .s-header__menu-icon::after {
        content: '';
        width: 100%;
        height: 100%;
        background-color: var(--text-color);
        position: absolute;
        left: 0;
        transition: all 0.3s ease-in-out;
    }

    .s-header__menu-icon::before {
        top: -8px;
    }

    .s-header__menu-icon::after {
        bottom: -8px;
    }

    /* Animación a X */
    .s-header__menu-toggle.is-clicked .s-header__menu-icon {
        background-color: transparent;
    }

    .s-header__menu-toggle.is-clicked .s-header__menu-icon::before {
        top: 0;
        transform: rotate(135deg);
    }

    .s-header__menu-toggle.is-clicked .s-header__menu-icon::after {
        bottom: 0;
        transform: rotate(225deg);
    }

    /* Estilos del Menú Desplegable */
    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        position: fixed;
        top: 80px;
        /* Un poco más separado del techo para que no toque la barra */
        right: 20px;
        /* Margen derecho */
        left: auto;
        width: 250px;
        /* Ancho del cuadro */
        height: auto;
        padding: 2rem 1rem;
        /* Padding interno para que los enlaces respiren */

        /* Estética del cuadro */
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        /* Sombra más suave y moderna */
        border: 1px solid rgba(0, 0, 0, 0.05);
        /* Borde sutil */

        z-index: 1500;

        /* --- LA MAGIA PARA QUE NO SE VEA ANTES --- */
        visibility: hidden;
        /* 1. Lo hace invisible al navegador */
        opacity: 0;
        /* 2. Lo hace totalmente transparente */
        transform: translateY(-20px);
        /* 3. Lo sube un poquito para la animación de entrada */
        pointer-events: none;
        /* 4. Evita que pulses clicks fantasmas cuando está oculto */

        /* Transición suave */
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        /* Efecto rebote sutil */
    }

    /* Estado ABIERTO */
    body.menu-is-open .nav-links {
        visibility: visible;
        /* Se vuelve visible */
        opacity: 1;
        /* Opacidad al 100% */
        transform: translateY(0);
        /* Vuelve a su sitio original */
        pointer-events: auto;
        /* Reactiva los clicks */
    }

    .nav-links li {
        margin: 1.5rem 0;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease-in-out;
    }

    body.menu-is-open .nav-links li {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s;
        /* Efecto cascada */
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-color);
    }

    /* 3. HERO SECTION (Apilar elementos) */
    .hero {
        padding-top: 100px;
        /* Más espacio para el header fijo */
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-content {
        flex-direction: column-reverse;
        /* Imagen arriba, texto abajo (opcional) o column normal */
        text-align: center;
    }

    /* Si prefieres la imagen debajo del texto, usa flex-direction: column; */
    .hero-content {
        flex-direction: column;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        /* Reducir tamaño gigante */
    }

    .hero-image {
        width: 100%;
        justify-content: center;
    }

    .hero-logo-img {
        max-width: 250px;
        /* Logo más pequeño en móvil */
    }

    /* 4. PRODUCTOS (Tarjetas apiladas) */
    .product-block {
        flex-direction: column;
        /* Apilar verticalmente */
        padding: 1.5rem;
        gap: 1.5rem;
        text-align: center;
        /* Centrar contenido */
    }

    .product-block.reverse {
        flex-direction: column;
        /* Anular el reverse en móvil */
    }

    .feature-list {
        display: inline-block;
        /* Para que la lista quede centrada si el texto está centrado */
        text-align: left;
    }

    .product-visual {
        width: 100%;
        height: 200px;
        /* Reducir altura de la imagen */
    }

    /* 5. FOOTER (Columna única) */
    .footer-section {
        padding: 3rem 0 1rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        /* Una sola columna */
        gap: 3rem;
    }

    .contact-info {
        text-align: center;
    }

    .brand-footer {
        justify-content: center;
    }

    .contact-details {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-map {
        height: 250px;
        /* Mapa más bajito */
    }

    /* 6. OVERLAY DE CONSTRUCCIÓN */
    .construction-content h1 {
        font-size: 2rem;
    }
}

/* Corrección de desplazamiento para el Navbar fijo */
html {
    scroll-behavior: smooth; /* Activa el scroll suave nativo */
}

/* Aplica el margen a todas las secciones y al footer (Contacto) */
section, footer, #about, #products, #contact {
    scroll-margin-top: 80px; /* La altura de tu navbar + un respiro extra */
}

/* En móvil, a veces necesitamos un poco más de aire */
@media (max-width: 768px) {
    section, footer, #about, #products, #contact {
        scroll-margin-top: 120px;
    }
}