:root {
    --oro: #fdd835;
    --azul: #2196f3;
    --oscuro: #0a0a0a;
    --gris-suave: rgba(255, 255, 255, 0.05);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--oscuro);
    color: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- LOGO Y HEADER --- */
header {
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 0;
    border-bottom: 1px solid var(--gris-suave);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 100px;
    width: auto;
    transition: 0.3s;
}

.logo-img-tite {
    height: 100px;
    width: auto;
    transition: 0.3s;
    display: block;
    margin-left: auto;
    margin-right: auto;
    /* Centrado automático en bloque */
}

/* LOGO PEQUEÑO EN CELULARES */
@media (max-width: 768px) {
    .logo-img {
        height: 28px;
        /* Tamaño reducido para móviles */
    }
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
}

/* --- HERO SPLIT (LADO A LADO) --- */
.hero-split {
    padding: 80px 0;
    background-color: var(--oscuro);
}

.nh-hero__title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.1;
    min-height: 160px;
}

.nh-hero__title-em-wrap {
    display: block;
    color: var(--oro);
    position: relative;
}

.nh-hero__title-em {
    display: none;
    font-style: normal;
    animation: fadeInUp 0.5s ease forwards;
}

.nh-hero__title-em--visible {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- VIDEO FRAME --- */
.video-container {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--oro);
    box-shadow: 0 0 50px rgba(253, 216, 53, 0.15);
}

.video-container video {
    display: block;
    width: 100%;
}

.btn-mute-toggle {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    color: var(--oro);
    border: 1px solid var(--oro);
    padding: 8px 15px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.7rem;
    backdrop-filter: blur(5px);
}

/* --- BOTONES Y SECCIONES --- */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--oro);
    color: #000 !important;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: 0.3s;
    border: none;
}

.btn:hover {
    background: var(--azul);
    color: #fff !important;
    transform: translateY(-2px);
}

.section {
    padding: 80px 0;
    text-align: center;
}

.card {
    padding: 30px;
    background: var(--gris-suave);
    border-radius: 15px;
    border: 1px dashed var(--oro);
    height: 100%;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

/* --- AJUSTES MÓVILES GENERALES --- */
@media (max-width: 991px) {
    .nh-hero__title {
        font-size: 2.2rem;
        text-align: center;
        min-height: 140px;
    }

    .hero-text-content {
        text-align: center;
        margin-top: 30px;
    }
}

/* --- CORRECCIÓN LOGO MÓVIL --- */
@media (max-width: 768px) {
    .logo-img {
        height: 30px !important;
        /* Fuerza el tamaño pequeño en celulares */
        width: auto !important;
    }

    header {
        padding: 10px 0 !important;
    }
}

/* --- LAYOUT HERO MASTER (LADO A LADO) --- */
.hero-master {
    padding: 80px 0;
    background-color: var(--oscuro);
    display: flex;
    align-items: center;
}

.hero-wrapper {
    display: flex;
    flex-direction: row;
    /* Fuerza el lado a lado */
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content-left {
    flex: 0 0 55%;
    /* 55% para el texto */
    text-align: left;
}

.hero-content-right {
    flex: 0 0 40%;
    /* 40% para el video */
}

/* Ajustes de Texto */
.main-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.nh-hero__title {
    font-size: 1.8rem;
    min-height: 100px;
    color: #ccc;
}

.hero-description {
    font-size: 1.2rem;
    opacity: 0.8;
    margin: 20px 0;
}

/* Ajustes de Video */
.video-frame-pro {
    width: 100%;
    border-radius: 20px;
    border: 2px solid var(--oro);
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 40px rgba(253, 216, 53, 0.2);
}

.video-frame-pro video {
    width: 100%;
    display: block;
}

.btn-mute-custom {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--oro);
    border: 1px solid var(--oro);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.badge-premium {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid var(--oro);
    color: var(--oro);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 2px;
}

/* --- RESPONSIVO PARA MÓVILES --- */
@media (max-width: 991px) {
    .hero-wrapper {
        flex-direction: column-reverse;
        /* Video arriba, texto abajo en celular */
        text-align: center;
    }

    .hero-content-left,
    .hero-content-right {
        flex: 0 0 100%;
        width: 100%;
    }

    .main-title {
        font-size: 2.2rem;
    }

    .hero-content-left {
        text-align: center;
    }
}


/* ============================================================
   ESTILOS EXCLUSIVOS PARA MÓVILES (FUERZA BRUTA)
   ============================================================ */
@media (max-width: 767px) {

    /* 1. Reducir el logo a un tamaño elegante */
    .logo-img {
        height: 25px !important;
        /* Altura muy pequeña para móvil */
        width: auto !important;
        max-width: 150px !important;
    }

    /* 2. Ajustar el Header para que no sea tan alto */
    header {
        padding: 8px 0 !important;
    }

    /* 3. Reducir el Video para que no sea gigante */
    .hero-content-right {
        padding: 0 20px !important;
        /* Margen a los lados */
        margin-bottom: 20px !important;
    }

    .video-frame-pro {
        max-width: 280px !important;
        /* Limitamos el ancho del video en móvil */
        margin: 0 auto !important;
        box-shadow: 0 0 20px rgba(253, 216, 53, 0.2) !important;
    }

    /* 4. Ajustar el texto para que no se vea amontonado */
    .main-title {
        font-size: 1.8rem !important;
        /* Título más pequeño */
        line-height: 1.2 !important;
    }

    .nh-hero__title {
        font-size: 1.3rem !important;
        /* Frases rotativas más pequeñas */
        min-height: 80px !important;
    }

    .hero-master {
        padding: 40px 0 !important;
        /* Menos espacio arriba y abajo */
    }
}

/*
/* Formulario */
.form-container {
    background: #111;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid var(--oro);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--oro);
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    border-radius: 5px;
    box-sizing: border-box;
}

footer {
    padding: 40px 0;
    border-top: 1px solid var(--gris-suave);
    text-align: center;
    color: #666;
}


.cookie-banner {
    position: fixed;
    bottom: -100px;
    /* Oculto inicialmente */
    left: 0;
    right: 0;
    background: rgba(21, 21, 21, 0.98);
    border-top: 1px solid var(--oro);
    padding: 20px 0;
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    font-size: 0.9rem;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-text {
    color: #ccc;
    max-width: 800px;
}

/* Estilos para el Footer con Contraste Elevado */
.footer-premium {
    padding: 60px 0 40px 0;
    background-color: #000000;
    /* Negro puro */
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    /* Borde azul muy tenue */
}

.legal-links a {
    color: #00d4ff;
    /* Azul Claro Cielo (Brillante para fondo negro) */
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

/* Color cuando pasan el mouse por encima */
.legal-links a:hover {
    color: var(--oro);
    /* Cambia a dorado para mantener el estilo de la marca */
    border-bottom: 1px solid var(--oro);
}

/* Color DESPUÉS de hacer clic (Visitado / Leído) */
.legal-links a:visited {
    color: #a29bfe;
    /* Un lila/azul suave para indicar que ya se leyó */
}

.legal-links .separator {
    color: #444;
    /* Separador discreto */
    margin: 0 12px;
}

.copyright-text {
    font-size: 0.85rem;
    color: #888;
    /* Gris medio para que sea legible */
}

.text-info-footer {
    color: #00d4ff !important;
    opacity: 0.8;
}


/* Estilos para la sesion de pagina */
.hero-actions-group {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    /* Esto centra los botones en la sección */
    margin: 30px 0;
    flex-wrap: wrap;
    /* Para que en celulares se acomoden solos */
}

/* Estilo para la imagen del asistente (la carita) */
.btn-face-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--oro);
    object-fit: cover;
}

/* Contenedor de Botones */
.hero-actions-group {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 30px;
}

/* Estilo Base para ambos */
.btn-memori-primary,
.btn-memori-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    /* Bordes redondeados modernos */
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* BOTÓN PRIMARIO (DORADO) */
.btn-memori-primary {
    background-color: var(--oro);
    color: #000 !important;
    border: 2px solid var(--oro);
}

.btn-memori-primary:hover {
    background-color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(253, 216, 53, 0.3);
}

/* BOTÓN GHOST (TRANSPARENTE) */
.btn-memori-ghost {
    background-color: transparent;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    gap: 10px;
}

.btn-memori-ghost:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--oro);
    color: var(--oro) !important;
}

/* Imagen pequeña dentro del botón */
.btn-face-img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

/* Ajuste para móviles: los botones se ponen uno sobre otro */
@media (max-width: 576px) {
    .hero-actions-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-memori-primary,
    .btn-memori-ghost {
        width: 100%;
        text-align: center;
    }
}

/* Contenedor de Confianza Social */
.social-trust-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    animation: fadeIn 1s ease;
}

/* El stack de fotos superpuestas */
.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar-item {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--oscuro);
    /* Crea el recorte entre fotos */
    margin-left: -10px;
    /* Hace que se monten una sobre otra */
    object-fit: cover;
    background-color: #333;
}

.avatar-item:first-child {
    margin-left: 0;
}

/* El círculo con el símbolo + */
.avatar-plus {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--oro);
    color: #000;
    font-size: 0.75rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -10px;
    border: 2px solid var(--oscuro);
}

/* Texto de confianza */
.trust-text {
    font-size: 0.9rem;
    color: #aaa;
    letter-spacing: 0.5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sección del Problema */
.section-split-caos {
    padding: 120px 0;
    /* Más espacio arriba y abajo para que respire */
    background-color: #050505;
}

/* Tipografía del Título */
.headline-caos {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 25px;
    text-align: left;
    /* Alineado a la izquierda en PC, puedes cambiar a center si prefieres */
}

.subtitle-caos {
    font-size: 1.3rem;
    color: #bbbbbb;
    max-width: 480px;
    line-height: 1.6;
    text-align: left;
}

/* --- CONTROL DE LA IMAGEN (MÁS GRANDE) --- */
.visual-caos-img {
    width: 100%;
    max-width: 520px;
    /* <--- Aumentado de 380px a 520px */
    height: auto;
    border-radius: 25px;
    border: 1px solid rgba(253, 216, 53, 0.2);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
}

/* Resplandor proporcional al nuevo tamaño */
.glow-effect-pro {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(253, 216, 53, 0.08) 0%, transparent 70%);
    z-index: 1;
}

/* Ajustes para tu monitor de 21" (Pantallas extra grandes) */
@media (min-width: 1400px) {
    .headline-caos {
        font-size: 3.8rem;
    }

    .subtitle-caos {
        font-size: 1.4rem;
        max-width: 550px;
    }

    .visual-caos-img {
        max-width: 580px;
    }
}

/* Ajustes para móvil */
@media (max-width: 991px) {

    .headline-caos,
    .subtitle-caos {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .headline-caos {
        font-size: 2.2rem;
    }
}

/* Sección del Problema */
.section-split-caos {
    padding: 100px 0;
    background-color: #050505;
}

/* Título: Mantenemos el tamaño pero aseguramos centrado */
.headline-caos {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.2;
    color: #ffffff;
}

/* Párrafo: Centrado y con ancho controlado */
.subtitle-caos {
    font-size: 1.2rem;
    color: #bbbbbb;
    max-width: 400px;
    /* Ancho controlado para que el centrado se vea mejor */
    line-height: 1.6;
}

/* --- CONTROL DE LA IMAGEN (REDUCIDA) --- */
.visual-caos-img-small {
    width: 100%;
    max-width: 320px;
    /* <--- Esto hace que la imagen se vea al 50% de su espacio original */
    height: auto;
    border-radius: 20px;
    border: 1px solid rgba(253, 216, 53, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
}

/* Resplandor ajustado a la imagen pequeña */
.visual-caos-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glow-effect-pro {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(253, 216, 53, 0.1) 0%, transparent 70%);
    z-index: 1;
}

/* Ajuste responsivo */
@media (max-width: 991px) {
    .headline-caos {
        font-size: 2.2rem;
    }

    .visual-caos-img-small {
        max-width: 250px;
        /* Aún más pequeña en móviles */
        margin-top: 30px;
    }
}

/* Asegura que el contenedor tenga referencia para el posicionamiento */
.visual-caos-wrapper {
    position: relative;
}

/* Centra el texto exactamente sobre la imagen */
.texto-sobre-imagen {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65%;
    /* Mantiene el texto dentro del margen útil de la imagen */
    color: #1a1a1a;
    /* Ajusta este color según el fondo de tu rectángulo */
    z-index: 2;
    /* Asegura que quede por encima del brillo y la imagen */
    pointer-events: none;
    /* Opcional: evita que interfiera con clics */
}


/* ESTILOS DE LA PAGINA DE COMO-FUNCIONA -*/

.step-number {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(253, 216, 53, 0.222);
    position: absolute;
    top: -40px;
    left: -20px;
    z-index: 0;
}

.step-card {
    position: relative;
    padding: 40px;
    background: var(--gris);
    border-radius: 20px;
    border: 1px solid var(--borde);
    height: 100%;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--oro);
    color: #000;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* Tarjetas de Comandos */
.command-card {
    background: #111;
    /* Negro ligeramente más claro para contraste */
    border: 1px solid #333;
    border-radius: 15px;
    padding: 25px;
    height: 100%;
    transition: 0.3s ease;
}

.command-card:hover {
    border-color: var(--oro);
    transform: translateY(-5px);
}

.border-oro-fino {
    border: 1px solid rgba(253, 216, 53, 0.3);
}

.command-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--oro);
}

.command-icon {
    font-size: 1.5rem;
}

.command-body {
    border-left: 2px solid #333;
    padding-left: 15px;
}

.example-text {
    font-style: italic;
    color: #fff;
    margin-bottom: 8px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.example-text::before {
    content: '"';
}

.example-text::after {
    content: '"';
}

@media (max-width: 768px) {
    .command-card {
        padding: 20px;
    }
}