/* AILOG Home — Adobe XD */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --orange: #FF800D;
    --orange-dark: #e07010;
    --dark: #0B0E14;
    --dark-2: #141824;
    --dark-nav: rgba(11, 14, 20, 0.92);
    --gray-text: #2E3140;
    --gray-muted: #6B7280;
    --card-bg: #E8E6EF;
    --white: #ffffff;
    --max: 1200px;
    --section-max: 1537px;
    --section-x: 2rem;
    --agente-card-w: 293px;
    --agente-card-bg: #F3F2F8;
    --beneficios-bg: #F5F4F8;
}

html { scroll-behavior: smooth; }

/* Fondo oscuro de marca (gradiente gris + cuadrícula) */
.bg-dark-brand,
.site-footer,
.section-que-es,
.section-contacto {
    background-color: #14161D;
    background-image:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 90px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 90px),
        radial-gradient(1100px 540px at 82% 0%, rgba(126, 138, 170, 0.16), transparent 62%),
        linear-gradient(152deg, #0E1016 0%, #171A22 48%, #2B2F3B 100%);
}

body {
    font-family: "Figtree", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--white);
    color: var(--gray-text);
    line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== TOP BAR ===== */
.topbar {
    background: var(--orange);
    padding: 0.35rem 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    flex-wrap: wrap;
}
.topbar span {
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.topbar img { height: 12px; max-height: 12px; width: auto; }
.topbar a { display: inline-flex; align-items: center; opacity: 0.95; transition: opacity 0.15s; }
.topbar a:hover { opacity: 1; }

/* ===== NAVBAR ===== */
.site-header { position: sticky; top: 0; z-index: 1000; }

.navbar {
    background: var(--dark-nav);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 2rem;
    gap: 1.5rem;
}
.navbar-logo img { height: 52px; }
.navbar-center { flex: 1; display: flex; justify-content: center; min-width: 0; }
.navbar-links { display: flex; gap: 2rem; align-items: center; }
.navbar-links a {
    color: var(--white);
    font-size: 1rem;
    font-weight: 400;
    transition: opacity 0.2s;
}
.navbar-links a:hover { opacity: 0.75; }
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.features-wrapper, .login-wrapper, .academia-wrapper { position: relative; flex-shrink: 0; }

.nav-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    border: 2px solid var(--orange);
    color: var(--orange);
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    height: 42px;
    white-space: nowrap;
    font-family: inherit;
}
.nav-btn-outline:hover { background: rgba(255, 128, 13, 0.08); }

.nav-btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    color: var(--white);
    border: 2px solid var(--orange);
    padding: 0.45rem 1.4rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    height: 42px;
    white-space: nowrap;
    transition: background 0.2s;
}
.nav-btn-solid:hover { background: var(--orange-dark); border-color: var(--orange-dark); }

/* Pill blanco ACADEMIA en navbar (mismo alto/padding que nav-btn-outline) */
.nav-btn-white,
.navbar-actions .academia-btn.academia-btn--nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    min-height: 42px;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav-btn-white:hover,
.navbar-actions .academia-btn.academia-btn--nav:hover {
    background: #f8fafc !important;
    background-color: #f8fafc !important;
    border-color: #f8fafc !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
.navbar-mobile .academia-btn.academia-btn--nav.nav-btn-white {
    margin: 0.85rem auto 0.35rem;
}

/* Botón ACADEMIA — flotante y logo */
.academia-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1;
}
.academia-btn__logo {
    display: block;
    width: auto;
    height: 22px;
    max-width: 115px;
}
.navbar-mobile .academia-btn--nav.academia-btn--mobile .academia-btn__logo { height: 24px; max-width: 125px; }

.academia-btn--float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10000;
    height: 42px;
    padding: 0.45rem 1.1rem;
    background: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.academia-btn--float:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.academia-btn--float .academia-btn__logo {
    height: 24px;
    max-width: 125px;
}
@media (max-width: 900px) {
    .academia-btn--float {
        right: 16px;
        bottom: 16px;
    }
}

.arrow {
    display: inline-block;
    width: 8px; height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
}
.nav-btn-outline .arrow { color: var(--orange); }

.features-dropdown, .login-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 18px 35px rgba(0,0,0,.25);
    overflow: hidden;
    z-index: 10001;
    display: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s;
}
.login-dropdown { width: 260px; }
.dropdown-active { display: block !important; opacity: 1 !important; transform: translateY(0) !important; }
.features-item, .login-item {
    display: block;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    color: var(--dark-2);
    border-bottom: 1px solid rgba(15,23,42,.06);
}
.login-item { text-align: left; }
.features-item:last-child, .login-item:last-child { border-bottom: none; }
.features-item:hover, .login-item:hover { background: #f4f5f7; color: var(--orange); }

.navbar-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--orange);
    width: 46px; height: 34px;
    border-radius: 999px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.navbar-toggle span { width: 18px; height: 2px; background: var(--orange); position: relative; }
.navbar-toggle span::before, .navbar-toggle span::after {
    content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--orange);
}
.navbar-toggle span::before { top: -6px; }
.navbar-toggle span::after { top: 6px; }

.navbar-mobile {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #1a1b26;
    flex-direction: column;
    border-top: 1px solid rgba(255,255,255,.08);
    padding-bottom: 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 1001;
}
.mobile-open { display: flex !important; }
body.nav-mobile-open {
    overflow: hidden;
}
.navbar-mobile > a {
    color: #fff;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 1.05rem;
    font-weight: 600;
    opacity: 1;
}
.navbar-mobile > a:hover,
.navbar-mobile > a:active {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
.mobile-acc-btn {
    width: 94%; margin: 12px auto 0;
    background: rgba(255,128,13,.1);
    border: 1px solid rgba(255,128,13,.3);
    color: #fff;
    border-radius: 0.6rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: inherit;
}
.mobile-acc-panel {
    display: none;
    background: rgba(255,255,255,.06);
    border-radius: 0.6rem;
    margin: 0.4rem 3%;
    overflow: hidden;
}
.mobile-panel-open { display: block !important; }
.navbar-mobile .login-item {
    color: #fff;
    border-bottom-color: rgba(255,255,255,.08);
    font-weight: 500;
}
.navbar-mobile .login-item:hover,
.navbar-mobile .login-item:active {
    background: rgba(255, 128, 13, 0.14);
    color: #fff;
}
.acc-arrow {
    width: 8px; height: 8px;
    border-right: 2px solid var(--orange);
    border-bottom: 2px solid var(--orange);
    transform: rotate(45deg);
    transition: transform 0.3s;
}
.mobile-acc-btn.active .acc-arrow { transform: rotate(-135deg); }

/* ===== HERO ===== */
.hero {
    position: relative;
    /* 31.25vw = proporción exacta de los banners (1920x600): sin recortes hasta el tope */
    height: min(31.25vw, 500px);
    max-height: 500px;
    min-height: 0;
    background: var(--dark);
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-color: var(--dark);
    background-image: var(--hero-bg);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
    z-index: 0;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Banners con gráfico completo (1024×320): encajar sin recortar de más */
.hero-slide--graphic {
    background-size: cover;
    background-position: center center;
}

.hero-slide--center {
    align-items: flex-end;
    justify-content: center;
    padding-bottom: clamp(1.75rem, 4.5vh, 3rem);
}

.hero-slide--center .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    padding-top: 0;
}

.hero-slide--left .hero-inner {
    max-width: var(--max);
}

.hero-slide--left .hero-title {
    max-width: 14ch;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

.hero-title {
    font-size: clamp(2.1rem, 4.2vw, 3.1rem);
    line-height: 1.08;
    font-weight: 800;
    color: var(--white);
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.hero-title em {
    color: var(--orange);
    font-style: italic;
    font-weight: 800;
}

.hero-accent {
    color: var(--orange);
}

.hero-slide--left .hero-title--wide {
    max-width: 18ch;
}

.hero-title--inline-logo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.55rem 0.75rem;
    max-width: none;
    margin-bottom: 1.6rem;
}

.hero-title--inline-logo .hero-title__text {
    color: var(--white);
}

.hero-logo-inline {
    height: clamp(2.4rem, 5vw, 3.35rem);
    width: auto;
    display: block;
}

.hero-sub {
    color: var(--white);
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    max-width: 30rem;
    margin: 0 0 1.5rem;
    line-height: 1.45;
}

.hero-sub strong { font-weight: 700; }

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #FF800D 0%, #FF9A3D 100%);
    color: var(--white);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.9rem 2.35rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(255, 128, 13, 0.28);
    transition: filter 0.2s, transform 0.15s;
}

.hero-cta:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.75);
    font-size: 2.2rem;
    font-weight: 300;
    cursor: pointer;
    padding: 1rem 1.1rem;
    line-height: 1;
}

.hero-arrow:hover { color: var(--white); }
.hero-arrow.prev { left: 0.35rem; }
.hero-arrow.next { right: 0.35rem; }

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 1.35rem;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.55rem;
}

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.hero-dot.is-active {
    background: var(--orange);
    transform: scale(1.15);
}

/* Franja naranja entre hero y secciones */
.section-divider-orange {
    height: 8px;
    width: 100%;
    background: var(--orange);
}

/* ===== QUÉ ES ===== */
.section-que-es {
    padding: 4.5rem 2rem 5rem;
    text-align: center;
}
.section-que-es h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
}
.section-que-es h2 span { color: var(--orange); }
.section-que-es p {
    color: rgba(255,255,255,0.88);
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 720px;
    margin: 0 auto 1.8rem;
    line-height: 1.65;
}
.section-que-es p em { font-style: italic; }
.section-que-es .divider {
    width: 48px;
    height: 3px;
    background: var(--orange);
    margin: 0 auto;
    border-radius: 2px;
}

/* ===== AGENTES (Adobe XD) ===== */
.section-agentes {
    background: #fff;
    padding: 4rem var(--section-x) 5.5rem;
    overflow: visible;
}

.section-agentes .wrap,
.section-beneficios .wrap {
    max-width: var(--section-max);
    margin: 0 auto;
    overflow: visible;
}

.agentes-header {
    margin-bottom: 1.5rem;
}

.section-agentes h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #141824;
    margin: 0 0 0.75rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.section-agentes h2 span {
    color: #FF800D;
    font-style: italic;
    font-weight: 800;
}

.section-agentes .lead {
    color: #2E3140;
    font-size: 1.125rem;
    font-weight: 400;
    max-width: 42rem;
    line-height: 1.5;
    margin: 0;
}

.agentes-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 24px;
    width: 100%;
}

.scroll-hint { display: none; }

.agente-card {
    flex: 1 1 0;
    width: auto;
    max-width: var(--agente-card-w);
    min-width: 0;
    margin-top: 90px; /* la card gris baja para que la imagen quede por encima */
    background: var(--agente-card-bg);
    text-decoration: none;
    color: inherit;
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: visible;
    align-self: stretch;
}

.agente-card-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -90px; /* imagen sobresale del borde superior de la card */
    margin-bottom: 0.25rem;
    padding: 0 0.5rem;
    pointer-events: none;
    flex: 0 0 auto;
}

.agente-card-visual img {
    width: 100%;
    height: auto;
    max-height: 210px;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.agente-card-label {
    color: #FF800D;
    font-weight: 700;
    font-size: 0.9375rem;
    line-height: 1.3;
    text-align: center;
    padding: 0.5rem 0.75rem 1.35rem;
    margin: 0;
    margin-top: auto;
    min-height: 3.4em; /* 2 líneas: todas las cards igualan altura */
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* ===== BENEFICIOS ===== */
.section-beneficios {
    background: var(--beneficios-bg);
    padding: 0 var(--section-x);
    overflow: visible;
}

.beneficios-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 3.5vw, 3.5rem);
    align-items: center;
}

.beneficios-inner h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FF800D;
    margin: 0 0 1.5rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.beneficios-list { list-style: none; }

.beneficios-list li {
    position: relative;
    padding: 0.875rem 0 0.875rem 1.35rem;
    color: #292533;
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.45;
    border-bottom: 1px solid rgba(41, 37, 51, 0.14);
}

.beneficios-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 9px;
    height: 9px;
    border: 2px solid #FF800D;
    border-radius: 50%;
    background: transparent;
}

.beneficios-visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 280px;
}

.beneficios-visual img {
    width: 100%;
    max-width: 640px;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center right;
}

/* ===== PROPUESTA IA ===== */
.section-propuesta {
    background: var(--white);
    padding: 4.5rem 2rem;
}
.propuesta-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.propuesta-visual img { width: 100%; max-width: 520px; }
.propuesta-text h2 {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    color: var(--dark-2);
    line-height: 1.15;
    margin-bottom: 1.2rem;
}
.propuesta-text h2 span { color: var(--orange); font-style: italic; }
.propuesta-text p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--gray-text);
}

/* ===== PUESTA EN MARCHA ===== */
.section-marcha {
    position: relative;
    padding: 4rem 2rem 4.5rem;
    background-color: var(--orange);
    background-position: center right;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}
.section-marcha::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Deja ver el fondo en el lado derecho; refuerza el naranja a la izquierda para el texto */
    background: linear-gradient(
        90deg,
        rgba(255, 128, 13, 0.92) 0%,
        rgba(255, 128, 13, 0.7) 32%,
        rgba(255, 128, 13, 0.25) 58%,
        rgba(255, 128, 13, 0.05) 80%,
        rgba(255, 128, 13, 0) 100%
    );
    pointer-events: none;
}
.marcha-inner {
    position: relative;
    z-index: 1;
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
    align-items: center;
}
.marcha-intro h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    font-style: italic;
    line-height: 1.05;
    margin-bottom: 0.75rem;
}
.marcha-intro p {
    color: rgba(255,255,255,0.95);
    font-size: 1.05rem;
    max-width: 280px;
}
.marcha-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.marcha-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.25rem 1.2rem;
}
.marcha-card h3 {
    color: var(--orange);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--orange);
}
.marcha-card p {
    color: #292533;
    font-size: 0.88rem;
    line-height: 1.4;
    opacity: 0.9;
}

/* ===== ECOSISTEMA / PARTNERS ===== */
.section-ecosistema {
    background: var(--white);
    padding: 4.5rem var(--section-x) 4rem;
}

.ecosistema-inner {
    max-width: var(--section-max);
    margin: 0 auto;
}

.ecosistema-header {
    text-align: center;
    margin-bottom: 2.75rem;
}

.ecosistema-header h2 {
    font-size: clamp(2rem, 3.4vw, 2.5rem);
    font-weight: 800;
    color: #141824;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0;
}

.ecosistema-header h2 span {
    color: var(--orange);
    font-style: italic;
    font-weight: 800;
}

.ecosistema-lead {
    margin: 0.85rem 0 0;
    color: #2E3140;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.07em;
}

.ecosistema-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    --partner-gap: 22px;
    --partner-visible: 5;
}

.ecosistema-viewport {
    flex: 1;
    overflow: hidden;
    min-width: 0;
    container-type: inline-size;
}

.ecosistema-track {
    display: flex;
    gap: var(--partner-gap);
    will-change: transform;
}

.partner-card {
    flex: 0 0 calc((100cqw - (var(--partner-visible) - 1) * var(--partner-gap)) / var(--partner-visible));
    width: calc((100cqw - (var(--partner-visible) - 1) * var(--partner-gap)) / var(--partner-visible));
    min-height: 340px;
    background: #EBEBF0;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.partner-card-logo {
    margin: 1.35rem 1.35rem 0;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
    min-height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.75rem 1.25rem;
}

.partner-card-logo img {
    width: auto;
    max-width: 100%;
    max-height: 82px;
    object-fit: contain;
}

.partner-card-body {
    padding: 1.35rem 1.25rem 1.65rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.partner-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2E3140;
    margin: 0 0 0.75rem;
}

.partner-card-body p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #6B7280;
}

.ecosistema-arrow {
    flex: 0 0 auto;
    background: transparent;
    border: none;
    color: #141824;
    font-size: 2.15rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    opacity: 0.9;
    transition: opacity 0.15s ease;
}

.ecosistema-arrow:hover {
    opacity: 1;
}

.ecosistema-footer {
    margin: 2.75rem auto 0;
    max-width: 760px;
    text-align: center;
    color: #2E3140;
    font-size: 0.98rem;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .ecosistema-carousel {
        --partner-visible: 2;
    }

    .partner-card {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .section-ecosistema {
        padding-top: 3.5rem;
        padding-bottom: 3rem;
    }

    .ecosistema-header {
        margin-bottom: 2rem;
    }

    .ecosistema-arrow {
        font-size: 1.85rem;
        padding: 0.25rem;
    }

    .ecosistema-footer {
        margin-top: 2rem;
        font-size: 0.92rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ecosistema-track {
        will-change: auto;
    }
}

/* ===== CONTACTO ===== */
.section-contacto {
    padding: 2rem 2rem;
}
.contacto-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.contacto-text h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 2rem;
}
.contacto-text h2 span { color: var(--orange); }
.contacto-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.15s, background 0.2s;
}
.btn-contact:hover { transform: translateY(-1px); }
.btn-contact img { width: 22px; height: 22px; }
.btn-contact.outline {
    background: transparent;
    border: 2px solid var(--orange);
    color: var(--orange);
}
.btn-contact.outline:hover { background: rgba(255,128,13,0.12); }
.btn-contact.solid {
    background: var(--orange);
    border: 2px solid var(--orange);
    color: var(--white);
}
.btn-contact.solid:hover { background: var(--orange-dark); }
.contacto-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.contacto-visual img {
    max-width: 380px;
    width: 100%;
}

/* ===== NEWSLETTER ===== */
.section-newsletter {
    background: var(--orange);
    padding: 1.5rem 2rem;
}
.newsletter-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.newsletter-inner p {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 500;
    flex: 1;
    min-width: 200px;
}
.newsletter-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    max-width: 520px;
    justify-content: flex-end;
}
.newsletter-form input {
    flex: 1;
    min-width: 160px;
    background: transparent;
    border: 2px solid var(--white);
    border-radius: 999px;
    padding: 0.65rem 1.1rem;
    color: var(--white);
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.75); }
.newsletter-form button {
    background: var(--white);
    color: var(--orange);
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.6rem;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.newsletter-form button:hover { opacity: 0.92; }
.newsletter-form button:disabled { opacity: 0.7; cursor: wait; }
.newsletter-feedback {
    width: 100%;
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    text-align: right;
    display: none;
}
.newsletter-feedback.show { display: block; }
.newsletter-form-wrap { flex: 1; max-width: 520px; }
.newsletter-form-wrap .newsletter-form { max-width: none; }
@media (max-width: 900px) {
    .newsletter-form-wrap { width: 100%; max-width: 100%; }
    .newsletter-feedback { text-align: center; }
}

/* ===== FOOTER ===== */
.site-footer {
    color: var(--white);
    padding: 2.5rem 2rem 0;
}
.footer-top {
    max-width: var(--max);
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-logo img { height: 48px; }
.footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.footer-social span {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}
.footer-social a { display: flex; opacity: 0.85; transition: opacity 0.2s; }
.footer-social a:hover { opacity: 1; }
.footer-social img { height: 28px; width: 28px; }

.footer-brands {
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
}
.footer-brands a { display: flex; }
.footer-brands img { height: 28px; width: auto; opacity: 0.9; transition: opacity 0.2s, transform 0.15s; }
.footer-brands a:hover img { opacity: 1; transform: translateY(-1px); }
.footer-brands .sep {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.2);
}

.footer-bottom {
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.25rem 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-bottom p, .footer-links {
    color: rgba(255,255,255,0.45);
    font-size: 0.72rem;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
}
.footer-links a:hover { color: rgba(255,255,255,0.7); }

/* ===== POPUP ===== */
.popup-overlay {
    position: fixed; inset: 0; z-index: 10000;
    display: none; align-items: center; justify-content: center;
    padding: 18px;
    background: rgba(2, 6, 23, 0.58);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.22s ease;
}
.popup-overlay.active { display: flex; opacity: 1; }
.popup-box {
    width: min(520px, 100%);
    background: rgba(255,255,255,0.96);
    border-radius: 26px;
    padding: 18px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    transform: translateY(18px) scale(0.98);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.popup-overlay.active .popup-box { transform: translateY(0) scale(1); }
.popup-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.popup-left { display: flex; gap: 12px; align-items: flex-start; }
.popup-icon {
    width: 56px; height: 56px; border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-success { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.22); }
.icon-error { background: rgba(239,68,68,0.10); color: #ef4444; border: 1px solid rgba(239,68,68,0.22); }
.popup-icon svg { width: 26px; height: 26px; fill: currentColor; }
.popup-title { font-size: 1.15rem; font-weight: 800; color: var(--dark-2); margin-bottom: 6px; }
.popup-message { font-size: 0.95rem; color: #475569; line-height: 1.5; }
.popup-close-x {
    border: 0; background: transparent; color: #0f172a; opacity: 0.55;
    font-size: 24px; cursor: pointer; padding: 6px 8px; border-radius: 10px;
}
.popup-close-x:hover { opacity: 0.9; background: rgba(15,23,42,0.06); }
.popup-btn {
    width: 100%; border: 0; border-radius: 14px; padding: 12px;
    font-weight: 800; font-size: 0.9rem; cursor: pointer; margin-top: 14px;
}
.popup-btn.ok { background: linear-gradient(135deg, #1e1b2e, #0f172a); color: #fff; }
.popup-btn.err { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .agentes-grid {
        gap: 16px;
    }
    .agente-card {
        margin-top: 70px;
    }
    .agente-card-visual {
        margin-top: -70px;
    }
    .agente-card-visual img {
        max-height: 170px;
    }
}
@media (max-width: 900px) {
    .navbar-center, .navbar-actions { display: none !important; }
    .navbar-toggle { display: flex !important; }
    .navbar { padding: 0.65rem 1rem; }
    .section-agentes {
        padding: 2.5rem 0 3.5rem;
        overflow: hidden;
    }
    .section-agentes .wrap {
        padding: 0 1rem;
        max-width: none;
        overflow: visible;
    }
    /* Carrusel horizontal: evita cards cortadas y permite swipe */
    .agentes-scroll {
        position: relative;
    }
    .agentes-grid {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: stretch;
        gap: 1rem;
        width: auto;
        margin: 0 -1rem;
        padding: 80px 1rem 0.75rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .agentes-grid::-webkit-scrollbar { display: none; }
    .scroll-hint {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.55rem;
        margin-top: 0.35rem;
        padding: 0 0.25rem;
    }
    .scroll-hint__label {
        margin: 0;
        color: #FF800D;
        font-size: 0.82rem;
        font-weight: 600;
        letter-spacing: 0.01em;
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        animation: scroll-hint-pulse 1.6s ease-in-out infinite;
    }
    .scroll-hint__label span {
        font-size: 1.15rem;
        line-height: 1;
        animation: scroll-hint-slide 1.6s ease-in-out infinite;
    }
    .agentes-scroll.is-end .scroll-hint__label { opacity: 0.35; animation: none; }
    .scroll-hint__dots {
        display: flex;
        gap: 0.4rem;
        align-items: center;
        justify-content: center;
    }
    .scroll-hint__dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        border: 0;
        padding: 0;
        background: rgba(255, 128, 13, 0.28);
        transition: background 0.2s, transform 0.2s;
    }
    .scroll-hint__dot.is-active {
        background: #FF800D;
        transform: scale(1.2);
    }
    @keyframes scroll-hint-pulse {
        0%, 100% { opacity: 0.7; }
        50% { opacity: 1; }
    }
    @keyframes scroll-hint-slide {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(4px); }
    }
    .agente-card {
        flex: 0 0 min(260px, 78vw);
        width: min(260px, 78vw);
        min-width: min(260px, 78vw);
        max-width: none;
        margin-top: 0;
        scroll-snap-align: start;
    }
    .agente-card-visual {
        margin-top: -80px;
    }
    .agente-card-visual img {
        max-height: 180px;
    }
    .beneficios-inner, .propuesta-inner, .marcha-inner, .contacto-inner {
        grid-template-columns: 1fr;
    }
    .beneficios-visual { order: -1; justify-content: center; }
    .beneficios-visual img { object-position: center; }
    .propuesta-visual { order: -1; }
    .marcha-intro p { max-width: none; }
    .newsletter-inner { flex-direction: column; text-align: center; }
    .newsletter-form { width: 100%; max-width: 100%; justify-content: center; }
}

/* Hint de scroll horizontal (tabs Features/Agentes) — solo mobile */
.tab-scroll-hint { display: none; }
@media (max-width: 900px) {
    .tab-scroll {
        position: relative;
        margin-bottom: 1.1rem;
    }
    .tab-scroll .tab-row { margin-bottom: 0.45rem; }
    .tab-scroll-hint {
        display: inline-flex;
        margin: 0;
        color: #FF800D;
        font-size: 0.8rem;
        font-weight: 600;
        align-items: center;
        gap: 0.2rem;
        animation: scroll-hint-pulse 1.6s ease-in-out infinite;
    }
    .tab-scroll-hint span {
        font-size: 1.1rem;
        animation: scroll-hint-slide 1.6s ease-in-out infinite;
    }
    .tab-scroll.is-end .tab-scroll-hint {
        opacity: 0.35;
        animation: none;
    }
}
@media (max-width: 768px) {
    .hero {
        height: 470px;
        max-height: 470px;
    }

    .hero-slide {
        background-image: var(--hero-bg-mb, var(--hero-bg));
        background-position: center bottom;
        background-size: cover;
    }

    /* Banner 2-mb: gráfico arriba, texto abajo */
    .hero-slide--center {
        background-position: top center;
        align-items: flex-end;
        justify-content: center;
        padding-bottom: 4.5rem;
    }

    /* Banners 1/3/4-mb: visual abajo, texto arriba */
    .hero-slide--left {
        align-items: flex-start;
    }

    .hero-slide--left .hero-inner {
        padding-top: 4.5rem;
        padding-bottom: 2rem;
    }

    .hero-slide--left .hero-title,
    .hero-slide--left .hero-title--wide {
        max-width: 16ch;
    }

    .hero-title {
        font-size: clamp(1.85rem, 8vw, 2.35rem);
        margin-bottom: 0.85rem;
    }

    .hero-sub {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }

    .hero-arrow { display: none; }

    .hero-dots {
        bottom: 1.15rem;
    }
}

@media (max-width: 600px) {
    .section-beneficios { padding: 0 1rem; }
    .section-agentes h2,
    .beneficios-inner h2 { font-size: 1.85rem; }
    .agente-card {
        flex: 0 0 min(260px, 82vw);
        width: min(260px, 82vw);
        min-width: min(260px, 82vw);
    }
    .marcha-grid { grid-template-columns: 1fr; }
    .contacto-actions { flex-direction: column; }
    .btn-contact { width: 100%; justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
    .newsletter-form { flex-direction: column; align-items: stretch; width: 100%; }
    .newsletter-form input,
    .newsletter-form button { width: 100%; min-width: 0; box-sizing: border-box; }
}
