@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@700;800&family=DM+Sans:wght@400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'DM Sans', sans-serif;
}

::selection {
    background-color: #ff4500;
    color: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #111; 
}

.wrapper {
    width: 100%;
    height: 100vh;
    overflow: hidden; 
    position: absolute; /* Necesario para que el motor funcione bien */
    top: 0;
}

.contenedor-horizontal {
    display: flex;
    flex-wrap: nowrap;
    width: max-content; /* Deja que crezca tanto como necesite */
    height: 100vh;
    will-change: transform; /* Optimización de rendimiento para la animación */
}

.panel {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    /* IMPORTANTE: Esto permite que las flechas se posicionen "absolutamente" dentro de cada panel */
    position: relative; 
}

h1 { font-size: 5rem; font-weight: 800; margin-bottom: 20px; text-transform: uppercase; letter-spacing: -2px; line-height: 0.95; font-family: 'Manrope', sans-serif; }
h2 { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; letter-spacing: -1px; line-height: 1; font-family: 'Manrope', sans-serif; }
p { font-size: 1.4rem; font-weight: 400; opacity: 0.85; max-width: 800px; line-height: 1.5; }

/* Paleta de colores — alternancia más perceptible */
.hero        { background-color: #060606; color: #ffffff; }
.vision      { background-color: #1e1e1e; color: #ffffff; }
.chatbots    { background-color: #060606; color: #ffffff; }
.contenido   { background-color: #1e1e1e; color: #ffffff; }
.metodologia { background-color: #060606; color: #ffffff; }
.contacto    { background-color: #1e1e1e; color: #ffffff; }

.contacto-titulo {
    font-size: 2.2rem;
    margin-bottom: 40px;
    letter-spacing: -1px;
    text-align: left;
    text-transform: uppercase;
    font-family: 'Manrope', sans-serif;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 360px;
}

.cf-fila {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cf-input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid rgba(255, 69, 0, 0.45);
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    padding: 10px 4px;
    outline: none;
    transition: border-color 0.2s;
}

.cf-input::placeholder { color: rgba(255,255,255,0.4); }
.cf-input:focus { border-bottom-color: #ff4500; }
.cf-input.cf-full { width: 100%; flex: none; }

.cf-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    opacity: 0.6;
    cursor: pointer;
    text-align: left;
}

.cf-checkbox input { margin-top: 2px; accent-color: #ff4500; flex-shrink: 0; }
.cf-checkbox a { color: #ffffff; }

.cf-btn {
    align-self: center;
    background: rgba(255, 69, 0, 0.10);
    border: 1.5px solid rgba(255, 69, 0, 0.45);
    color: #ff4500;
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 36px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cf-btn:hover { background: rgba(255, 69, 0, 0.2); border-color: rgba(255, 69, 0, 0.8); transform: scale(1.04); }
.cf-btn:disabled { opacity: 0.5; cursor: default; transform: none; }

.cf-mensaje {
    font-size: 0.9rem;
    margin: 0;
    opacity: 1;
}
.cf-ok    { color: #7fff7f; }
.cf-error { color: #ff6b6b; }


/* =========================================
   NUEVO: ESTILOS DE LAS FLECHAS DE NAVEGACIÓN
   ========================================= */
.nav-arrow {
    position: absolute; /* Se salen del flujo normal y se pegan a los bordes */
    top: 50%; /* Centradas verticalmente */
    transform: translateY(-50%); /* Ajuste fino del centrado */
    cursor: pointer; /* Manita al pasar el ratón */
    z-index: 10; /* Para que estén siempre por encima del texto */
    padding: 20px; /* Área de clic más grande */
    opacity: 0.5; /* Un poco transparentes al principio */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Efecto al pasar el ratón por encima */
.nav-arrow:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.2); /* Se hacen un poco más grandes */
}

/* Posición específica izquierda y derecha */
.arrow-left { left: 20px; }
.arrow-right { right: 20px; }

/* =========================================
   MENÚ SUPERIOR FLOTANTE
   ========================================= */
.menu-superior {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(17, 17, 17, 0.6);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Wrapper de ítems: flex en desktop, oculto en móvil por defecto */
.menu-items-wrapper {
    display: flex;
    gap: 10px;
}

/* Hamburger: oculto en desktop */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Texto "Volver" oculto en desktop */
.hint-texto { display: none; }

.menu-item {
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 30px;
    opacity: 0.5;
    transition: all 0.3s ease;
}
.menu-item:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}
.menu-item.activo {
    opacity: 1;
    color: #ff4500;
    background-color: rgba(255, 69, 0, 0.1);
}

/* =========================================
   BOTÓN "¿QUIERES SABER CÓMO FUNCIONAMOS?"
   ========================================= */
.btn-saber-mas {
    margin-top: 32px;
    background: rgba(255, 69, 0, 0.10);
    border: 1.5px solid rgba(255, 69, 0, 0.45);
    color: #ff4500;
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 50px;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-saber-mas:hover { text-decoration: none; }
.btn-saber-mas:hover {
    background: rgba(255, 69, 0, 0.2);
    border-color: rgba(255, 69, 0, 0.8);
    transform: scale(1.04);
}

/* =========================================
   SECCIONES EXPANDIDAS (VERTICAL)
   ========================================= */
#chatbots-expandido,
#contenido-expandido {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 500;
    transform: translateY(100%);
    overflow: hidden;
    background-color: #0a0a0a;
}

.ce-hint-volver {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #ffffff;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: bounce-up 1.5s infinite;
    cursor: pointer;
    transition: opacity 0.3s ease;
}
.ce-hint-volver:hover {
    opacity: 0.8;
}

@keyframes bounce-up {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

.contenedor-vertical {
    width: 100%;
    height: max-content;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.subpanel {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
    color: #ffffff;
}

.ce-paso-1 { background-color: #060606; }
.ce-paso-2 { background-color: #1e1e1e; }
.ce-paso-3 { background-color: #060606; }

.co-paso-1 { background-color: #1e1e1e; }
.co-paso-2 { background-color: #060606; }
.co-paso-3 { background-color: #1e1e1e; }

/* Tercera cuadrícula y pasos individuales: solo visibles en móvil */
.co-grid-extra { display: none; }
.co-paso-movil { display: none; }

/* --- Cuadrículas de contenido --- */
.co-grid {
    padding: 0;
    background-color: #060606;
}

.co-grid .grid-imagenes {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    gap: 5px;
}

.co-grid .grid-item {
    overflow: hidden;
    position: relative;
    transition: transform 0.45s ease;
}

@media (hover: hover) {
    .co-grid .grid-item:hover {
        transform: scale(1.04);
    }
}

/* Degradado inferior para integrar con el fondo oscuro */
.co-grid .grid-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 45%, rgba(6,6,6,0.6) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Estado inicial: imagen oculta debajo del recorte */
.co-grid .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: translateY(102%);
}

/* Animación curtain reveal */
@keyframes grid-curtain-up {
    from { transform: translateY(102%); }
    to   { transform: translateY(0); }
}

.co-grid.grid-enter .grid-item:nth-child(1) img {
    animation: grid-curtain-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0s;
}
.co-grid.grid-enter .grid-item:nth-child(2) img {
    animation: grid-curtain-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.1s;
}
.co-grid.grid-enter .grid-item:nth-child(3) img {
    animation: grid-curtain-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.2s;
}

.grid-disclaimer {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    opacity: 0.62;
    white-space: nowrap;
    color: #fff;
    letter-spacing: 0.5px;
    pointer-events: none;
    z-index: 2;
}

/* --- Subpanel de pasos combinados --- */
.co-pasos {
    background-color: #0a0a0a;
    padding: 60px 80px;
}

.co-pasos-lista {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 900px;
    text-align: left;
    margin-bottom: 40px;
}

.co-paso {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.co-paso-num {
    font-size: 2.8rem;
    font-weight: 700;
    opacity: 0.12;
    line-height: 1;
    flex-shrink: 0;
    letter-spacing: -2px;
    font-family: 'Manrope', sans-serif;
}

.co-paso-titulo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: #fff;
    font-family: 'Manrope', sans-serif;
}

.co-pasos .co-paso p {
    font-size: 1.05rem;
    opacity: 0.65;
    line-height: 1.5;
    max-width: none;
}

.paso-numero {
    font-size: 26rem;
    font-weight: 700;
    opacity: 0.06;
    line-height: 1;
    margin-bottom: -100px;
    letter-spacing: -15px;
    display: block;
    font-family: 'Manrope', sans-serif;
}

.ce-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    opacity: 0.3;
    animation: bounce-down 1.5s infinite;
    cursor: pointer;
    transition: opacity 0.3s ease;
}
.ce-scroll-hint:hover {
    opacity: 0.8;
}

@keyframes bounce-down {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

.btn-contacto-expandido {
    margin-top: 35px;
    padding: 18px 45px;
    background: #ff4500;
    border: none;
    color: white;
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.btn-contacto-expandido:hover {
    background: #e03d00;
    transform: scale(1.05);
}

/* =========================================
   PUNTOS DE NAVEGACIÓN (solo móvil)
   ========================================= */
.dots-nav {
    display: none; /* ocultos en desktop */
}

/* =========================================
   RESPONSIVE (TABLET)
   ========================================= */
@media (max-width: 1024px) {
    h1 { font-size: 4rem; }
    h2 { font-size: 2.8rem; }
}

/* =========================================
   RESPONSIVE (MÓVIL)
   ========================================= */
@media (max-width: 768px) {

    /* --- html/body: sin scroll propio, el wrapper lo gestiona --- */
    html, body {
        overflow: hidden;
        height: 100%;
    }

    /* --- Flechas: ocultas en móvil --- */
    .nav-arrow { display: none; }

    /* --- Wrapper: contenedor de scroll con snap vertical --- */
    .wrapper {
        position: fixed;
        inset: 0;
        height: 100svh;
        overflow-y: scroll;
        overflow-x: hidden;
        scroll-snap-type: y mandatory;
        -webkit-overflow-scrolling: touch;
    }

    /* --- Contenedor horizontal → columna vertical --- */
    .contenedor-horizontal {
        width: 100%;
        height: auto;
        flex-direction: column;
        transform: none !important;
    }

    /* --- Paneles: snapping, altura fija de pantalla --- */
    .panel {
        height: 100svh;
        min-height: unset;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        padding: 80px 28px 80px;
    }

    /* --- Tipografía --- */
    h1 { font-size: 2.6rem; letter-spacing: -1px; margin-bottom: 16px; }
    h2 { font-size: 1.9rem; letter-spacing: -0.5px; margin-bottom: 14px; }
    p  { font-size: 1rem;   line-height: 1.6; }

    /* --- Hamburger: visible en móvil --- */
    .hamburger-btn { display: flex; }

    /* --- Menú superior: burbuja compacta arriba a la IZQUIERDA --- */
    .menu-superior {
        top: 16px;
        left: 16px;
        right: auto;
        transform: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 12px 14px;
        border-radius: 16px;
        width: auto;
    }

    /* Ítems: ocultos por defecto, se muestran al abrir */
    .menu-items-wrapper {
        display: none;
        flex-direction: column;
        gap: 2px;
        margin-top: 10px;
        min-width: 150px;
    }
    .menu-superior.abierto .menu-items-wrapper {
        display: flex;
    }

    .menu-item {
        text-align: left;
        font-size: 0.85rem;
        padding: 8px 10px;
        border-radius: 8px;
        white-space: nowrap;
        transform: none !important;
    }

    /* Animación hamburger → X */
    .menu-superior.abierto .hamburger-btn span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-superior.abierto .hamburger-btn span:nth-child(2) {
        opacity: 0;
    }
    .menu-superior.abierto .hamburger-btn span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* --- Puntos de navegación: visibles a la derecha --- */
    .dots-nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
        position: fixed;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1000;
    }

    .dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.25);
        border: none;
        cursor: pointer;
        padding: 0;
        transition: all 0.35s ease;
    }

    .dot.activo {
        background: #ff4500;
        transform: scale(1.6);
    }

    /* --- Botón "saber más": integrado en el flujo, más centrado --- */
    .btn-saber-mas {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 36px;
        white-space: normal;
        text-align: center;
        justify-content: center;
    }
    .btn-saber-mas:hover {
        transform: scale(1.04);
    }

    /* --- Expandidos: el overlay queda fijo (sin scroll propio) --- */
    #chatbots-expandido,
    #contenido-expandido {
        overflow: hidden;
    }

    /* El scroll real ocurre en el contenedor interno */
    .contenedor-vertical {
        transform: none !important;
        height: 100%;
        overflow-y: scroll;
        scroll-snap-type: y mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .subpanel {
        height: 100svh;
        min-height: unset;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        padding: 80px 28px 80px;
    }

    .paso-numero {
        font-size: 11rem;
        margin-bottom: -36px;
        letter-spacing: -6px;
    }

    /* --- Ocultar scrollbars nativos --- */
    .wrapper,
    .contenedor-vertical {
        scrollbar-width: none;
    }
    .wrapper::-webkit-scrollbar,
    .contenedor-vertical::-webkit-scrollbar {
        display: none;
    }

    /* --- Cuadrículas móvil: 2 filas horizontales, 3ª cuadrícula visible --- */
    .co-grid { padding: 0; }
    .co-grid-extra { display: flex; }

    .co-grid .grid-imagenes {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, 1fr);
    }

    /* Ocultar la 3ª imagen en grids 1 y 2 (que tienen 3 imágenes para desktop) */
    .co-grid .grid-item:nth-child(3) { display: none; }

    /* --- Pasos: ocultar versión desktop en móvil --- */
    .co-pasos { display: none; }

    /* --- Paneles individuales por paso (solo móvil) --- */
    .co-paso-movil {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 60px 28px;
        background-color: #0a0a0a;
        gap: 16px;
        text-align: left;
    }

    .co-paso-movil .co-paso-num {
        font-size: 3rem;
        font-weight: 700;
        opacity: 0.12;
        line-height: 1;
        letter-spacing: -2px;
        font-family: 'Manrope', sans-serif;
    }

    .co-paso-movil .co-paso-titulo {
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: #fff;
        font-family: 'Manrope', sans-serif;
    }

    .co-paso-movil p {
        font-size: 0.9rem;
        line-height: 1.5;
        opacity: 0.65;
        color: #fff;
    }

    .co-paso-movil .btn-contacto-expandido {
        margin-top: 12px;
    }

    .grid-disclaimer {
        white-space: normal;
        text-align: center;
        width: 90%;
    }

    /* --- ce-hint-volver: botón "← Volver" visible en móvil --- */
    .ce-hint-volver {
        display: flex;
        align-items: center;
        gap: 6px;
        top: 20px;
        left: 16px;
        transform: none;
        animation: none;
        opacity: 0.75;
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        background: rgba(255, 255, 255, 0.1);
        padding: 8px 14px;
        border-radius: 20px;
    }
    .ce-hint-volver:hover { opacity: 1; }
    .hint-arrow { font-size: 1rem; }
    .hint-texto { display: inline; }

    .ce-scroll-hint { display: none; }

    .btn-contacto-expandido { padding: 14px 32px; font-size: 0.95rem; }
}

/* =========================================
   FOOTER MÍNIMO
   ========================================= */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 14px 20px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.site-footer:hover { opacity: 0.75; }
.site-footer a {
    color: #ffffff;
    text-decoration: none;
}
.site-footer a:hover { color: #ff4500; }
.site-footer span { opacity: 0.4; }

/* =========================================
   BANNER DE COOKIES
   ========================================= */
#cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    width: calc(100% - 48px);
    max-width: 860px;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#cookie-banner.visible {
    transform: translateX(-50%) translateY(0);
    visibility: visible;
}

#cookie-banner p {
    font-size: 0.85rem;
    color: #ffffff;
    opacity: 0.75;
    margin: 0;
    max-width: none;
    line-height: 1.5;
}

#cookie-banner a { color: #ff4500; text-decoration: none; }
#cookie-banner a:hover { text-decoration: underline; }

.cookie-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

#cookie-rechazar {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.5);
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 9px 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}
#cookie-rechazar:hover { border-color: rgba(255,255,255,0.4); color: rgba(255,255,255,0.8); }

#cookie-aceptar {
    background: rgba(255,69,0,0.1);
    border: 1.5px solid rgba(255,69,0,0.45);
    color: #ff4500;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 9px 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}
#cookie-aceptar:hover { background: rgba(255,69,0,0.2); border-color: rgba(255,69,0,0.8); }

/* --- Pantallas muy pequeñas (≤380px) --- */
@media (max-width: 380px) {
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.6rem; }
    p  { font-size: 0.92rem; }
    .paso-numero { font-size: 5.5rem; }
}