/* ============================================================
   AUTOPILOTOAI — STYLES.CSS FINAL 2026 (Developer Mode)
   Profesional, Estable, Limpio, Responsive y Editado por ChatGPT
   ============================================================ */


/* ------------------------------------------------------------
   0. RESET GLOBAL
------------------------------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Montserrat', sans-serif;
    background: #f2f2f2;
    overflow-x: hidden;
}

/* Bloqueo de scroll cuando sidebar está abierta */
body.sidebar-open {
    overflow: hidden;
}

/* ------------------------------------------------------------
   1. VARIABLES GLOBALES
------------------------------------------------------------ */
:root {
    --azul-navbar: #004580;
    --azul-hero: #005BBB;
    --amarillo: #FFD500;
    --blanco: #ffffff;
    --negro: #111;
    --verde-cta: #2ECC71;
    --altura-navbar: 72px;
    --altura-sectigo: 72px; /* misma altura exacta */
}


/* ============================================================
   2. NAVBAR PRINCIPAL
============================================================ */
.navbar {
    width: 100%;
    height: var(--altura-navbar);
    background: var(--azul-navbar);
    display: flex;
    justify-content: center;
    position: sticky;          /* 👈 FIX */
    top: 0;                    /* 👈 FIX */
    z-index: 6000;             /* por encima del overlay */
}

.nav-wrapper {
    width: 92%;
    max-width: 1280px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* Logo ------------------------------------------------------ */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
}

.logo-text {
    color: var(--blanco);
    font-size: 1.45rem;
    font-weight: 700;
}

.logo-ai {
    color: var(--amarillo);
    font-weight: 800;
}


/* Links ----------------------------------------------------- */
.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

/* subrayado amarillo elegante */
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--amarillo);
    border-radius: 2px;
    transition: width .25s ease-in-out;
}
.nav-links a:hover::after {
    width: 100%;
}


/* Acciones Derecha ----------------------------------------- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.login-btn {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 600;
}

.cta-btn {
    background: var(--verde-cta);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
}


/* Efecto brillo CTA */
.cta-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -30%;
    width: 0;
    height: 200%;
    background: rgba(255,255,255,.45);
    transform: rotate(25deg);
    transition: .6s;
}
.cta-btn:hover::after {
    width: 140%;
}


/* ============================================================
   3. SELECTOR DE IDIOMA
============================================================ */
.language-selector {
    position: relative;
}

/* Botón Idioma */
.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    cursor: pointer;
    color: var(--amarillo);
    transition: background .25s ease, border-color .25s ease;
}

/* Hover elegante */
.lang-btn:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.45);
}

/* Eliminar glow */
.lang-icon {
    filter: none !important;
}

/* Dropdown -------------------------------------------------- */
.lang-menu {
    position: absolute;
    top: 48px;
    right: 0;
    width: 180px;
    list-style: none;
    background: var(--blanco);
    border-radius: 12px;
    padding: 6px 0;
    box-shadow: 0 10px 24px rgba(0,0,0,0.15);

    opacity: 0;
    visibility: hidden;
    transform: translateY(6px) scale(.97);
    transition: .22s ease;
}

.language-selector.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-menu li {
    padding: 12px 18px;
    font-weight: 600;
    cursor: pointer;
    color: #00305f;
    border-radius: 6px;
}

.lang-menu li:hover {
    background: #f2f2f2;
}


/* ============================================================
   4. BARRA SECTIGO — EXACTA A NAVBAR
============================================================ */
.sectigo-bar {
    width: 100%;
    height: var(--altura-sectigo);
    background: var(--blanco);
    border-bottom: 1px solid #e5e5e5;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    /* MISMO ancho visual que navbar */
    padding-left: 0 !important;
    padding-right: 0 !important;

    z-index: 1500;
}

.sectigo-bar img {
    height: 38px;
}

.sectigo-bar span {
    font-weight: 600;
    font-size: 1rem;
    color: #12396F;
}


/* ============================================================
   5. HERO
============================================================ */
.hero {
    width: 100%;
    background: var(--azul-hero);
    color: var(--blanco);
    padding: 70px 6% 80px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;

    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
}

.hero-subtitle {
    margin-top: 16px;
    opacity: .92;
    font-size: 1.2rem;
}

/* CTA Hero */
.hero-ctas {
    display: flex;
    gap: 18px;
    margin-top: 28px;
    position: relative;
    z-index: 10;
}

/* Botones Hero */
.btn-primary {
    background: var(--amarillo);
    padding: 12px 24px;
    border-radius: 10px;
    color: #00305f;
    text-decoration: none;
    font-weight: 700;
}

.btn-secondary {
    padding: 12px 24px;
    border-radius: 10px;
    color: var(--blanco);
    text-decoration: none;
    border: 2px solid var(--blanco);
    font-weight: 700;
}

/* Ilustración Hero ----------------------------------------- */
.hero-visual {
    max-width: 540px;
}

.hero-illustration {
    width: 100%;
    filter: drop-shadow(0 12px 32px rgba(0,0,0,0.18));
}

/* Tarjeta Stats */
.hero-stats-card {
    background: var(--blanco);
    padding: 22px 30px;
    border-radius: 16px;
    display: flex;
    gap: 34px;
    margin-bottom: 26px;
    box-shadow: 0 14px 26px rgba(0,0,0,0.15);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--azul-navbar);
}

.stat-label {
    font-size: .9rem;
    color: #555;
}


/* ============================
   SIDEBAR MOBILE PRO
============================ */

/* Panel lateral */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 360px;
    height: 100vh;
    background: #004580;
    padding: 32px 28px;

    transform: translateX(100%);
    transition: transform .35s ease;

    z-index: 5000;
    overflow-y: auto;
}


/* Enlaces */
.sidebar-menu a {
    color: #fff;
    font-size: 1.6rem;
    text-decoration: none;
    padding: 14px 0;
    display: block;
}

/* Botón Idioma */
.lang-toggle {
    background: none;
    border: none;
    color: #FFD500;
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 10px;
    padding: 10px 0;
    cursor: pointer;
}

/* Lista de idiomas */
.lang-submenu {
    display: none;
    padding-left: 12px;
    margin-top: 8px;
}

.lang-submenu li {
    color: #fff;
    opacity: .88;
    font-size: 1.35rem;
    margin: 6px 0;
    list-style: none;
}

/* CTA */
.sidebar-cta {
    margin-top: 22px;
    background: #2ECC71;      /* verde esperanza */
    color: #ffffff;
    font-size: 1.4rem;
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    display: block;
    font-weight: 700;
}

/* === ESTADO BASE (DESKTOP) === */
.hamburger-btn {
    display: none;
}

/* ============================================================
   7. RESPONSIVE
============================================================ */
@media (max-width: 768px) {

    .nav-links,
    .language-selector,
    .login-btn,
    .cta-btn {
        display: none !important;
    }

@media (max-width: 768px) {

    .hamburger-btn {
        display: flex !important;
        background: none;
        border: none;
        cursor: pointer;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 5000;
    }

    .hamburger-icon rect {
        fill: #FFD500;
    }

    .nav-links,
    .language-selector,
    .login-btn,
    .cta-btn {
        display: none !important;
    }
}

    /* Hero */
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-visual {
        margin-top: 24px;
        transform: scale(.82);
    }
}

@media (max-width: 768px) {

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Sectigo en móvil también igual */
    .sectigo-bar {
        height: var(--altura-sectigo);
        flex-direction: column;
        gap: 6px;
    }
}
/* ============================
   DROPDOWN IDIOMA CON HOVER
============================ */

/* Quitar hover amarillo del botón */
.lang-btn:hover {
    background: rgba(255,255,255,0.18) !important;
    border-color: rgba(255,255,255,0.35) !important;
    color: var(--amarillo) !important;
}

/* Mostrar menú solo pasando el cursor */
.language-selector:hover .lang-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

/* Ajustar hitbox para que no desaparezca al mover el mouse */
.language-selector {
    position: relative;
    display: inline-block;
}

/* Eliminar viñetas */
.lang-menu,
.lang-menu li {
    list-style: none !important;
}

/* Hover limpio dentro del menú */
.lang-menu li:hover {
    background: #f2f4f7 !important;
}
/* ============================================================
   FIX — IDIOMAS DENTRO DE SIDEBAR (MÓVIL)
============================================================ */

/* Ocultar lista de idiomas por defecto */
.lang-submenu {
    display: none;
    margin-top: 10px;
    padding-left: 14px;
}

.lang-submenu li {
    font-size: 1.05rem;
    margin: 4px 0;
}


/* Botón "Idioma" en sidebar */
.lang-toggle {
    background: none;
    border: none;
    color: var(--blanco);
    font-size: 1.4rem;
    font-weight: 600;
    padding: 14px 0;
    text-align: left;
    width: 100%;
}

/* Cuando el sidebar está abierto y activamos JS: mostrar la lista */
.sidebar.show-languages .lang-submenu {
    display: block;
}
/* ============================================================
   FIX — IDIOMAS DENTRO DE SIDEBAR (MÓVIL)
============================================================ */

/* Ocultar lista de idiomas por defecto */
.lang-submenu {
    display: none;
    margin-top: 10px;
    padding-left: 14px;
}

.lang-submenu li {
    font-size: 1.1rem;
    margin: 6px 0;
}

/* Botón "Idioma" en sidebar */
.lang-toggle {
    background: none;
    border: none;
    color: var(--blanco);
    font-size: 1.4rem;
    font-weight: 600;
    padding: 14px 0;
    text-align: left;
    width: 100%;
}

/* Cuando el sidebar está abierto y activamos JS: mostrar la lista */
.sidebar.show-languages .lang-submenu {
    display: block;
}
/* ============================================
   FIX VISIBILIDAD — Idiomas dentro del Sidebar
============================================ */

.sidebar .lang-submenu {
    display: none;
    margin-top: 6px;
    padding-left: 12px;
}

.sidebar .lang-submenu li {
    color: var(--blanco) !important;   /* TEXTO CLARO */
    font-size: 1.3rem;
    padding: 6px 0;
    list-style: none;
    opacity: 0.95;
}

.sidebar .lang-submenu li::before {
    content: "• ";
    color: var(--amarillo);
    font-weight: bold;
}

.sidebar.show-languages .lang-submenu {
    display: block !important;
}

/* Botón Idioma dentro del sidebar */
.sidebar .lang-toggle {
    color: var(--amarillo) !important;
    font-weight: 700;
    font-size: 1.3rem;
    padding: 10px 0 6px;
}
/* === FIX ABSOLUTO: Mostrar hamburguesa en móvil === */
@media (max-width: 940px) {

    .hamburger-btn {
        display: flex !important;
        background: none;
        border: none;
        cursor: pointer;
        position: absolute;
        right: 18px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 5000;
    }

    .hamburger-icon rect {
        fill: #FFD500 !important;  /* amarillo */
    }

    /* Ocultar elementos desktop */
    .nav-links,
    .language-selector,
    .login-btn,
    .cta-btn {
        display: none !important;
    }
}
/* ============================================================
   FIX REAL: Mostrar hamburguesa y ocultar menú desktop en móvil
============================================================ */
@media (max-width: 940px) {

    /* Mostrar hamburguesa */
    .hamburger-btn {
        display: flex !important;
        background: none;
        border: none;
        cursor: pointer;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 5000;
    }

    .hamburger-icon rect {
        fill: #FFD500 !important; /* amarillo */
    }

    /* Ocultar elementos de escritorio */
    .nav-links,
    .language-selector,
    .login-btn,
    .cta-btn {
        display: none !important;
    }
}
/* ============================================================
   OVERLAY — DEFINITIVO (FIX MÓVIL ANDROID)
============================================================ */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    z-index: 4000;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sidebar {
    transform: translateX(100%);
}

/* Mostrar sidebar */
.sidebar.open {
    transform: translateX(0);
    right: 0;
}

/* ============================================
   FIX DEFINITIVO — ELIMINAR FRANJAS / DIAGONALES
============================================ */

/* Anular cualquier pseudo-elemento decorativo */
.hero::before,
.hero::after {
    content: none !important;
    display: none !important;
}

/* Forzar fondo limpio del hero */
.hero {
    background: var(--azul-hero) !important;
    background-image: none !important;
}

/* Por si hay algún overlay absoluto encima */
.hero *::before,
.hero *::after {
    content: none !important;
}
/* ============================================
   FIX — Quitar efecto diagonal del CTA verde
============================================ */

.cta-btn::after,
.cta-btn:hover::after {
    content: none !important;
    display: none !important;
}
/* ============================================
   FIX CRÍTICO — Ocultar navbar al abrir sidebar
============================================ */

body.sidebar-open .navbar {
    visibility: hidden;
}

/* FIX DEFINITIVO — Idiomas en sidebar */
.lang-submenu {
    display: none;
    margin: 12px 0 24px;
}

.lang-submenu.open {
    display: block;
}

.sidebar {
    overflow-y: auto;
}
/* Overlay solo tapa el fondo, NO el sidebar */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 3000;
}

.sidebar {
    z-index: 5000;
}

/* IMPORTANTE: permitir clicks dentro del sidebar */
.sidebar,
.sidebar * {
    pointer-events: auto;
}

/* Idiomas sidebar */
.lang-submenu {
    display: none;
    margin: 12px 0 24px;
}

.lang-submenu.open {
    display: block;
}

.lang-submenu li {
    padding: 6px 0;
    font-size: 1.1rem;
    color: #ffffff;
}
/* X tipo sistema (fina, estable) */

/* Ocultar navbar cuando la hamburguesa está abierta */
body.sidebar-open .navbar {
    display: none;
}
/* Botón cerrar sidebar (único y definitivo) */
/* Botón cerrar sidebar (posición natural) */
.close-sidebar {
    position: absolute;
    top: 16px;
    right: 16px;

    width: 36px;
    height: 36px;

    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 6px;

    color: #ffffff;
    font-size: 20px;
    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    z-index: 10;
}
/* ============================
   BENEFICIOS
============================ */

.benefits {
    background: #ffffff;
    padding: 100px 6%;
    text-align: center;
}

.benefits h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #00305f;
    margin-bottom: 48px;
}

.benefits-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.benefit-card {
    background: #f7f9fc;
    padding: 28px 26px;
    border-radius: 16px;
    text-align: left;
}

.benefit-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #00305f;
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}
/* ============================
   PRICING
============================ */

.pricing {
    background: #f2f4f8;
    padding: 80px 6%;
    text-align: center;
}

.pricing h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #00305f;
    margin-bottom: 12px;
}

.pricing-subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 48px;
}

.pricing-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.pricing-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 36px 28px;
    text-align: left;
    position: relative;
}

.pricing-card h3 {
    margin-bottom: 2px;
}

.price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2ecc71;
    margin-top: 0;
    margin-bottom: 10px;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 28px;
}

.pricing-card ul li {
    margin-bottom: 10px;
    color: #555;
}

.pricing-cta {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    color: #00305f;
    background: #e5e9f0;
}

.pricing-cta.primary {
    background: #2ecc71;
    color: #ffffff;
}

/* Plan destacado */
.pricing-card.featured {
    border: 2px solid #2ecc71;
}

.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #2ecc71;
    color: #ffffff;
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 12px;
}
/* ============================
   INTEGRACIONES
============================ */

.integrations {
    background: #ffffff;
    padding: 80px 6%;
    text-align: center;
}

.integrations h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #00305f;
    margin-bottom: 12px;
}

.integrations-subtitle {
    color: #555;
    margin-bottom: 40px;
}

.integrations-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
}

.integration-item {
    background: #f7f9fc;
    padding: 18px;
    border-radius: 12px;
    font-weight: 600;
    color: #00305f;
}
/* ============================ BILLING TOGGLE ============================ */

.billing-toggle {
    display: inline-flex;
    gap: 8px;
    background: #e5e9f0;
    padding: 6px;
    border-radius: 999px;
    margin-bottom: 40px;
}

.billing-btn {
    border: none;
    background: transparent;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    color: #00305f;
}

.billing-btn span {
    color: #2ecc71;
}

.billing-btn.active {
    background: #ffffff;
}

.price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2ecc71;
    margin-bottom: 20px;
}
/* ============================
   FAQ
============================ */

.faq {
    background: #ffffff;
    padding: 80px 6%;
}

.faq h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #00305f;
    margin-bottom: 48px;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item h3 {
    margin-bottom: 18px;
}

.faq-item p {
    margin-bottom: 32px;
    line-height: 1.65;
}


.faq-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}
.price-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: -12px;
    margin-bottom: 18px;
}
.price-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: -12px;
    margin-bottom: 18px;
}
.institutional-note {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 24px;
    background: #f7f9fb;
    border-left: 4px solid #2ecc71;
    font-size: 0.95rem;
    color: #333;
}

.institutional-note p {
    margin-bottom: 10px;
}

.institutional-note a {
    color: #00305f;
    font-weight: 600;
    text-decoration: none;
}
.ai-carousel {
  width: 100%;
  overflow: hidden;
  margin-top: 40px;
}

.carousel-track {
  display: flex;
}

.carousel-slide {
  min-width: 100%;
  height: 420px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 48, 95, 0.75);
}

.carousel-panel {
  position: absolute;
  bottom: 40px;
  left: 6%;
  max-width: 520px;
  background: #ffffff;
  padding: 28px;
  border-radius: 16px;
}

.carousel-panel h3 {
  font-size: 1.5rem;
  color: #00305f;
  margin-bottom: 10px;
}

.carousel-panel p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 14px;
}

.languages span {
  font-size: 1.2rem;
  margin-right: 6px;
}
background-image: url('img/carrousel-peru.png');
background-size: cover;
background: rgba(0, 48, 95, 0.8);
/* ============================
   FRANJA INSTITUCIONAL — FIX
============================ */

.institutional-band {
    background: #ffffff;
    padding: 90px 20px;
}

.institutional-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.institutional-desc {
    font-size: 1.05rem;
    color: #555;
    margin: 20px 0 28px;
    line-height: 1.6;
}

.institutional-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2ecc71;
    margin-bottom: 30px;
}

.institutional-price span {
    font-size: 0.9rem;
    color: #666;
}

.institutional-note {
    background: #f7f9fb;
    padding: 26px 28px;
    border-radius: 10px;
    margin: 0 auto 30px;
    font-size: 0.95rem;
    color: #333;
    max-width: 760px;
}

.institutional-contact a {
    color: #00305f;
    font-weight: 600;
    text-decoration: none;
}
:root {
    --altura-navbar: 80px;   /* +8px */
    --altura-sectigo: 64px;  /* -8px */
}
.sectigo-bar {
    display: flex;
    align-items: center;
    justify-content: center;
}
.faq-item p {
    line-height: 1.65;
}
.faq-item h3 {
    margin-bottom: 14px;
}
.price {
    margin-top: 0;
}
.faq-item h3 {
    font-weight: 800;
}
.faq-item h3 {
    margin-bottom: 18px;
}
.faq-item p {
    margin-top: 0;
    line-height: 1.65;
}
.faq-item > *:first-child {
    font-weight: 800;
    margin-bottom: 18px;
    display: block;
}
.faq-item > *:nth-child(2) {
    margin-top: 0;
    line-height: 1.65;
}
.hero {
    padding-bottom: 100px;
}
.pricing-section {
    padding-top: 100px;
    padding-bottom: 80px;
}
.institutional {
    margin-top: 80px;
    margin-bottom: 80px;
}
.faq {
    padding-top: 100px;
}

.price {
    margin-top: 0;
}
/* FIX DEFINITIVO — BLOQUE PRECIO */
.pricing-card .price {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2;
}

.pricing-card .price-value {
    display: block;
    margin-top: 0;
    margin-bottom: 10px;
}
.pricing-card h3 {
    margin-bottom: 4px;
}

.pricing-card .price {
    margin-bottom: 14px;
}

.plan-description {
    margin-bottom: 18px;
    line-height: 1.55;
}
.plan-tagline {
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    margin: 6px 0 14px;
}
.price-annual {
    font-size: 0.85rem;
    color: #666;
    margin: 10px 0 18px;
    line-height: 1.4;
}
.pricing-card.featured ul {
    margin-top: 12px;
}

.pricing-card.featured ul li {
    margin-bottom: 12px;
    line-height: 1.45;
}
.plan-subclaim {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 14px;
}
.pricing-card .highlight {
    font-weight: 700;
    color: #00305f;
}
.pricing-card:first-child .pricing-cta {
    margin-top: 18px;
}
.pricing-card ul li {
    margin-bottom: 14px;
}

.pricing-card ul li strong {
    display: block;
    font-weight: 600;
    color: #00305f;
}

.pricing-card .item-detail {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 2px;
    line-height: 1.4;
}
.faq-item.cta h3 {
    font-weight: 800;
}



.faq-cta:hover {
    background: #004a8f;
}
.faq-item p {
    font-weight: 400;
}
.faq-cta {
  margin-top: 48px;
}

.cta-box {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px;
  background: #00305f;
  border-radius: 14px;
  text-align: center;
}

.cta-box h3 {
  color: #ffffff;
  margin-bottom: 16px;
}

.cta-button {
  display: inline-block;
  padding: 14px 28px;
  background: #2ecc71;
  color: #ffffff;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
}

#faq {
  padding-bottom: 64px;
}
#faq-cta {
  margin-bottom: 96px;
}
#faq-cta {
  padding-top: 48px;
  padding-bottom: 48px;
}
/* FAQ */
#faq {
  padding: 80px 6% 40px;   /* cierre más corto */
  background: #ffffff;
}

/* FAQ */
#faq {
  padding: 80px 6% 40px;   /* cierre más corto */
  background: #ffffff;
}


/* CTA post-FAQ */
#faq-cta {
  padding: 40px 6% 80px;   /* CTA sube y respira */
  background: #f7f9fb;
}
#faq-cta {
  padding: 60px 6% 100px; /* espacio real antes del footer */
  background: #f7f9fb;
}

/* Caja del CTA */
.faq-cta-box {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 32px;
  background: #00305f;
  border-radius: 16px;
}

/* CTA texto */
.faq-cta-box h3 {
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 12px;
}

.faq-cta-box p {
  color: #dbe6f3;
  margin-bottom: 24px;
  font-size: 1.05rem;
}

/* Botón */
.faq-cta-btn {
  display: inline-block;
  padding: 14px 28px;
  background: #2ecc71;
  color: #ffffff;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
}

.faq-cta-btn:hover {
  background: #27ae60;
}
body {
  display: block;
}
/* ============================
   FAQ (FINAL LIMPIO)
============================ */
#faq {
  background: #ffffff;
  padding: 100px 6% 60px;
}

.faq h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: #00305f;
  margin-bottom: 48px;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item h3 {
  font-weight: 800;
  margin-bottom: 14px;
}

.faq-item p {
  font-weight: 400;
  color: #555;
  line-height: 1.65;
  margin-bottom: 32px;
}

/* ============================
   CTA POST-FAQ (FINAL LIMPIO)
============================ */
#faq-cta {
  background: #f7f9fb;
  padding: 80px 6% 120px;
}

.faq-cta-box {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 32px;
  background: #00305f;
  border-radius: 16px;
  text-align: center;
}

.faq-cta-box h3 {
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 12px;
}

.faq-cta-box p {
  color: #dbe6f3;
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.faq-cta-btn {
  display: inline-block;
  padding: 14px 28px;
  background: #2ecc71;
  color: #ffffff;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
}

.faq-cta-btn:hover {
  background: #27ae60;
}
/* ============================
   FIX DEFINITIVO — FAQ CTA
============================ */

.faq-cta {
  margin: 80px auto 120px;   /* aire real antes del footer */
  padding: 60px 6%;
  background: #f7f9fb;
}

.faq-cta h3 {
  max-width: 900px;
  margin: 0 auto 24px;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #00305f;
}

.faq-cta a {
  display: inline-block;
  margin: 0 auto;
}
.form-autopiloto {
  margin-top: 16px;
  max-width: 340px;
}

.form-autopiloto input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  outline: none;
}

.form-autopiloto input::placeholder {
  color: rgba(255,255,255,0.6);
}

.form-autopiloto button {
  width: 100%;
  padding: 12px;
  background: #FFD700;
  color: #000;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.form-note {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.8;
}
.agent-box {
  margin-top: 40px;
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  max-width: 400px;
}

.agent-box input {
  margin: 10px 0;
}

.agent-box button {
  padding: 10px;
  background: #FFD700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
/* ==============================
🔥 FORMULARIO AUTOPILOTO PREMIUM
============================== */

.form-autopiloto {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);

    box-shadow: 0 0 25px rgba(0, 200, 255, 0.25);

    animation: glow 3s infinite alternate;
}


/* INPUTS */
.form-autopiloto input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: none;

    background: rgba(255,255,255,0.15);
    color: white;

    outline: none;
    transition: 0.3s;
}

.form-autopiloto input::placeholder {
    color: rgba(255,255,255,0.6);
}

.form-autopiloto input:focus {
    background: rgba(255,255,255,0.25);
    box-shadow: 0 0 10px #00d4ff;
}


/* BOTÓN */
.form-autopiloto button {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;

    font-weight: bold;
    cursor: pointer;

    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: black;

    transition: 0.3s;
}

.form-autopiloto button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #FFD700;
}


/* TEXTO PEQUEÑO */
.form-note {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    text-align: center;
}


/* ANIMACIÓN */
@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(0,200,255,0.2);
    }
    to {
        box-shadow: 0 0 30px rgba(0,200,255,0.6);
    }
}
/* 🔥 BOTÓN VIVO */
.form-autopiloto button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}
.form-autopiloto input:hover {
    box-shadow: 0 0 8px rgba(0,200,255,0.5);
}
@media (max-width: 768px) {
    
    body {
        padding: 10px;
    }

    h1 {
        font-size: 24px;
        text-align: center;
    }

    .form-section {
        width: 100%;
        padding: 15px;
    }

    input {
        width: 100%;
        font-size: 16px;
        margin-bottom: 10px;
    }

    button {
        width: 100%;
        font-size: 18px;
        padding: 12px;
    }

    .container,
    .row,
    .hero {
        flex-direction: column;
        text-align: center;
    }
}
/* MOBILE FIX REAL */
@media (max-width: 768px) {

    .hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .hero-left,
    .hero-right {
        width: 100%;
    }

    .hero h1 {
        font-size: 26px;
        line-height: 1.3;
        text-align: center;
    }

    .hero p {
        font-size: 14px;
        text-align: center;
    }

    .form-section {
        width: 100%;
        max-width: 100px;
        margin-top: 20px;
    }

    input {
        width: 100%;
        font-size: 16px;
    }

    button {
        width: 100%;
        font-size: 18px;
    }
}
@media (max-width: 768px) {

    .hero {
        display: flex;
        flex-direction: column;
    }

    .hero-image {
        order: 3; /* la imagen baja */
    }

    .form-section {
        order: 2;
    }

    .hero-text {
        order: 1;
    }
}
/* ===== MOBILE FINAL ===== */
@media (max-width: 768px) {

  .hero {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }

  .hero-text {
    order: 1;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .hero-text p {
    font-size: 14px;
  }

  .form-section {
    order: 2;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 16px;
    border-radius: 12px;
    background: rgba(0,0,0,0.2);
  }

  input {
    width: 100%;
    font-size: 16px;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
  }

  button {
    width: 100%;
    font-size: 18px;
    padding: 14px;
    border-radius: 10px;
  }

  .hero-image {
    order: 3;
    width: 100%;
    text-align: center;
  }

  .hero-image img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
  }
}
html, body {
    overflow-x: hidden;
}
@media (max-width: 768px) {

    .hero,
    .row,
    .container {
        display: flex;
        flex-direction: column !important;
        align-items: center;
    }

    .hero > div {
        width: 100% !important;
        max-width: 400px;
    }

}
.form-section {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}
@media (max-width: 768px) {

  .hero,
  .container,
  .row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .hero > div {
    width: 100% !important;
    max-width: 420px !important;
  }

}
@media (max-width: 768px) {

  .form-section {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 15px;
  }

  input {
    width: 100%;
    font-size: 16px;
    padding: 12px;
  }

  button {
    width: 100%;
    font-size: 18px;
    padding: 14px;
  }

}
/* ===== FIX MOBILE REAL ===== */
@media (max-width: 768px) {

  .hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 16px;
    gap: 12px;
  }

  /* Orden correcto en móvil */
  .hero-text { order: 1; width: 100% !important; max-width: 420px !important; text-align: center; }
  .form-section { order: 2; width: 100% !important; max-width: 380px !important; margin: 0 auto; }
  .hero-image { order: 3; width: 100% !important; max-width: 420px !important; text-align: center; }

  /* Tipografía */
  .hero-text h1 {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .hero-text p {
    font-size: 14px;
  }

  /* Formulario usable con dedo */
  input {
    width: 100% !important;
    font-size: 16px;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
  }

  button {
    width: 100% !important;
    font-size: 18px;
    padding: 14px;
    border-radius: 10px;
  }

  /* Imagen (zepelín) controlada */
  .hero-image img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
  }

  /* Evita desbordes horizontales */
  html, body {
    overflow-x: hidden;
  }
}
/* 🔥 FIX DEFINITIVO SUPERPOSICIÓN */
.form-section {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
}

/* Evita que algo se monte encima */
.hero * {
  position: relative;
}
@media (max-width: 768px) {

  .hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .hero-text,
  .form-section,
  .hero-image {
    width: 100% !important;
    max-width: 400px;
  }

  .form-section {
    margin-top: 15px;
  }

}
@media (max-width: 768px) {

  .hero {
    flex-direction: column !important;
    text-align: center;
    padding: 40px 20px;
  }

  .hero-content,
  .form-autopiloto,
  .hero-visual {
    width: 100%;
    max-width: 420px;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 10px;
  }

}
.form-autopiloto {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  padding: 18px;
  border-radius: 14px;
  margin-top: 20px;
}
@media (max-width: 768px) {
  .btn-primary {
    width: 100%;
    text-align: center;
  }

  .btn-secondary {
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 768px) {
  .hero-stats-card {
    display: none;
  }
}
.hero h1 {
  font-size: 26px;
}

.hero-subtitle {
  font-size: 15px;
}
/* ===== HERO LIMPIO ===== */
.form-autopiloto {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  padding: 18px;
  border-radius: 14px;
  margin-top: 20px;
}

/* 🧠 AGENTE */
.agent-box {
  margin-top: 20px;
  background: rgba(255,255,255,0.06);
  padding: 16px;
  border-radius: 12px;
}

/* ===== SECCIÓN EXTRA ===== */
.hero-extra {
  text-align: center;
  padding: 40px 20px;
  background: #ffffff;
}

.hero-extra .hero-stats-card {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-extra .hero-illustration {
  max-width: 320px;
  width: 100%;
}

/* ===== MOBILE FIX FINAL ===== */
@media (max-width: 768px) {

  .hero {
    flex-direction: column !important;
    text-align: center;
    padding: 40px 20px;
  }

  .hero-content,
  .form-autopiloto,
  .agent-box {
    width: 100%;
    max-width: 420px;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 10px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

}
/* Zepelín flotante */
.zeppelin {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 120px;
  opacity: 0.85;
  pointer-events: none;
  animation: floatZeppelin 6s ease-in-out infinite;
  z-index: 0;
}

@keyframes floatZeppelin {
  0%   { transform: translateY(0px) translateX(0px); }
  50%  { transform: translateY(-12px) translateX(-6px); }
  100% { transform: translateY(0px) translateX(0px); }
}

/* En mobile lo hacemos más pequeño y menos dominante */
@media (max-width: 768px) {
  .zeppelin {
    width: 80px;
    top: 5%;
    right: 2%;
    opacity: 0.6;
  }
}
.btn-primary {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.btn-primary:active {
  transform: scale(0.97);
}
.form-autopiloto {
  animation: fadeUp 0.6s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
input:focus {
  outline: none;
  border: 2px solid #ffd700;
  box-shadow: 0 0 8px rgba(255,215,0,0.4);
}
.extra-toggle {
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.8;
  cursor: pointer;
}

.extra-inputs {
  display: none;
  margin-top: 10px;
}

.extra-inputs input {
  width: 100%;
  margin-top: 6px;
}
/* DROP ZONE */
.drop-zone {
  border: 2px dashed rgba(255,255,255,0.3);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
}

.drop-zone:hover {
  background: rgba(255,255,255,0.05);
}

/* BOTÓN */
#uploadBtn {
  margin-top: 12px;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: #ffd700;
  border: none;
  font-weight: bold;
  cursor: pointer;
  opacity: 0.5;
}

#uploadBtn.active {
  opacity: 1;
}

/* PROGRESO */
.progress-container {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  margin-top: 12px;
  overflow: hidden;
  display: none;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: #00ffcc;
  transition: width 0.3s;
}

/* ESTADO */
#uploadStatus {
  margin-top: 10px;
  font-size: 14px;
}
.trust-note{
  display:block;
  margin-top:8px;
  font-size:12px;
  opacity:.8;
}
.spinner{
  display:inline-block;
  width:14px;height:14px;
  border:2px solid rgba(255,255,255,.3);
  border-top-color:#00ffcc;
  border-radius:50%;
  animation:spin .8s linear infinite;
  margin-right:6px;
}
@keyframes spin{to{transform:rotate(360deg)}}
.cta-next{
  display:inline-block;
  margin-top:8px;
  color:#00ffcc;
  font-weight:700;
  text-decoration:none;
}
.trust-note{
    display:block;
    margin-top:10px;
    font-size:12px;
    color: rgba(255,255,255,0.7);
    text-align:center;
    letter-spacing:0.3px;
}
.trust-note{
    opacity:0;
    transform:translateY(5px);
    animation:fadeTrust .6s ease forwards;
}

@keyframes fadeTrust{
    to{
        opacity:0.7;
        transform:translateY(0);
    }
}