/* ==========================================================================
   Grupo Megabyte Chile — Sistema de diseño
   Heredado del sitio global grupomegabyte.net
   ========================================================================== */

:root {
    --mb-blue:        #1ca5ea;  /* Azul principal (botones / acentos) */
    --mb-blue-bright: #00aff2;  /* Azul brillante (enlaces) */
    --mb-blue-dark:   #0016b2;  /* Azul oscuro (títulos) */
    --mb-gold:        #dd9933;  /* Dorado (acento) */
    --mb-gray:        #686868;  /* Texto de cuerpo */
    --mb-gray-light:  #f5f7fa;  /* Fondos suaves */
    --mb-white:       #ffffff;
    --mb-dark:        #0016b2;  /* Fondo footer (banda azul, igual al sitio global) */

    --radius-btn: 20px;
    --radius-card: 12px;
    --shadow-card: 0 8px 30px rgba(0, 22, 178, 0.08);
    --shadow-hover: 0 16px 40px rgba(0, 22, 178, 0.15);
    --max-width: 1180px;
    --font: 'Montserrat', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--mb-gray);
    background: var(--mb-white);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font);
    color: var(--mb-blue-dark);
    line-height: 1.2;
    margin: 0 0 .5em;
    font-weight: 600;
}

a { color: var(--mb-blue-bright); text-decoration: none; transition: color .2s; }
a:hover { color: var(--mb-blue-dark); }

img { max-width: 100%; height: auto; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--mb-blue-dark);
    color: #fff; padding: 10px 18px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ------------------------------ Buttons ---------------------------------- */
.btn {
    display: inline-block;
    font-family: var(--font);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .3px;
    text-transform: uppercase;
    padding: 13px 32px;
    border-radius: var(--radius-btn);
    border: 0;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .2s;
}
.btn-primary { background: var(--mb-blue); color: #fff; box-shadow: 0 6px 18px rgba(28,165,234,.35); }
.btn-primary:hover { background: var(--mb-blue-bright); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(28,165,234,.45); }
.btn-outline { background: transparent; color: var(--mb-blue-dark); border: 2px solid var(--mb-blue); }
.btn-outline:hover { background: var(--mb-blue); color: #fff; transform: translateY(-2px); }
.btn-gold { background: var(--mb-gold); color: #fff; }
.btn-gold:hover { background: #c9862a; color: #fff; transform: translateY(-2px); }

/* ------------------------------ Header ----------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: #fff;
    box-shadow: 0 1px 10px rgba(0,0,0,.08);
}
.site-header .header-inner { max-width: 1480px; }
.header-inner { display: flex; align-items: center; gap: 24px; height: 92px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-logo { height: 62px; width: auto; display: block; }
.brand-flag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 700; color: var(--mb-blue-dark);
    background: var(--mb-gray-light); padding: 4px 10px; border-radius: 20px;
    border: 1px solid #e3e8ef;
}
.flag-cl, .flag-pa { width: 20px; height: auto; display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }

/* Selector de país (bandera desplegable) */
.country-switch { position: relative; flex: 0 0 auto; }
.country-current { cursor: pointer; font-family: var(--font); line-height: 1; }
.country-current:focus-visible { outline: 2px solid var(--mb-blue); outline-offset: 2px; }
.country-caret { font-size: 10px; color: var(--mb-gray); transition: transform .18s; }
.country-switch.open .country-caret { transform: rotate(180deg); }
.country-menu {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 950;
    background: #fff; border: 1px solid #e3e8ef; border-radius: 12px;
    box-shadow: var(--shadow-card); padding: 6px; min-width: 100%;
    animation: countryIn .16s ease;
}
@keyframes countryIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.country-option {
    display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px;
    font-size: 13px; font-weight: 700; color: var(--mb-blue-dark); white-space: nowrap;
    text-decoration: none;
}
.country-option:hover { background: var(--mb-gray-light); }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 1.3vw, 24px); flex: 1 1 auto; }
.main-nav a {
    color: var(--mb-blue); font-weight: 600; font-size: 13px;
    text-transform: uppercase; letter-spacing: .3px; white-space: nowrap;
}
.main-nav a:hover { color: var(--mb-blue-dark); }
.nav-cta {
    margin-left: auto;
    background: var(--mb-blue); color: #fff !important; padding: 11px 20px;
    border-radius: var(--radius-btn); box-shadow: 0 6px 16px rgba(28,165,234,.3);
    font-size: 12px !important;
}
.nav-cta:hover { background: var(--mb-blue-bright); color: #fff !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--mb-blue-dark); border-radius: 3px; transition: .3s; }

/* ------------------------------ Hero ------------------------------------- */
/* El hero es un <section>: hereda padding: 84px 0. Recortamos ese espacio
   muerto a la mitad (sin alterar el tamaño del hero en sí). */
.hero { position: relative; overflow: hidden; padding: 42px 0; }

/* Pista y diapositivas — efecto fundido (fade) como el original */
.hero-track { position: relative; }
.hero-slide {
    position: absolute; inset: 0;
    background-position: center center; background-size: cover; background-repeat: no-repeat;
    display: flex; align-items: center;
    min-height: 720px;
    opacity: 0; visibility: hidden;
    transition: opacity 1.2s ease;
}
.hero-slide.is-active { position: relative; opacity: 1; visibility: visible; z-index: 1; }
/* Velo blanco suave: aclara la foto (más a la izquierda) para leer el texto azul */
.hero-slide::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.45) 34%, rgba(255,255,255,.12) 66%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}
.hero-inner {
    position: relative; z-index: 2;
    width: 100%; max-width: var(--max-width);
    margin: 0 auto; padding: 0 clamp(24px, 5vw, 90px);
}
.hero-kicker {
    display: block; color: var(--mb-blue); font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; font-size: clamp(15px, 1.6vw, 20px); margin-bottom: 6px;
}
.hero-stat {
    margin: 0; color: var(--mb-blue-dark); font-weight: 500;
    font-size: clamp(2rem, 4.3vw, 3.15rem); line-height: 1.04;
}
.hero-stat b { font-weight: 700; }
.hero-desc {
    color: var(--mb-blue-dark); font-size: 1.1rem; max-width: 430px; margin: 18px 0 26px;
}
.hero-slide .btn { margin-top: 4px; }

/* Flechas finas azules, sin fondo (como el original) */
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
    width: 44px; height: 44px; border: 0; cursor: pointer;
    background: transparent; color: var(--mb-blue-dark); font-size: 40px; line-height: 1;
    display: grid; place-items: center; transition: color .2s, transform .2s;
}
.hero-arrow:hover { color: var(--mb-blue); transform: translateY(-50%) scale(1.15); }
.hero-arrow:focus-visible { outline: 2px solid var(--mb-blue); outline-offset: 2px; }
.hero-prev { left: 18px; }
.hero-next { right: 18px; }

/* ------------------------------ Sections --------------------------------- */
section { padding: 84px 0; }
/* Espaciado reducido a la mitad entre secciones (Por qué Megabyte → Clientes) */
.sec-tight { padding: 42px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-head .kicker { color: var(--mb-gold); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 14px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 8px; }
.section-head p { font-size: 1.08rem; }
.bg-soft { background: var(--mb-gray-light); }

/* ------------------------------ Grupo Megabyte (intro) ------------------- */
#nosotros { padding-top: 30px; padding-bottom: 64px; }
#nosotros .container { max-width: 1320px; }
.mb-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.mb-intro-img { padding-right: 15px; }
.mb-intro-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; border-radius: 12px; }
.mb-intro-card { background: #f1f1f1; border-radius: 20px; padding: 36px 40px 36px 30px; }
.mb-intro-card h1, .mb-intro-card h2 { color: var(--mb-blue-dark); font-size: 26px; font-weight: 600; margin-bottom: 12px; }
.mb-intro-card .kicker { display: block; margin-bottom: 4px; color: var(--mb-gold); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 14px; }
.mb-intro-card .mb-intro-more { margin: 14px 0 0; font-size: .95rem; font-weight: 600; }
.mb-intro-card p { margin: 0 0 20px; font-size: .95rem; line-height: 1.55; }

/* ------------------------------ Soluciones grid -------------------------- */
.sol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.sol-card {
    background: #fff; border-radius: var(--radius-card); padding: 32px 28px;
    box-shadow: var(--shadow-card); border: 1px solid #eef1f6;
    transition: transform .22s ease, box-shadow .22s ease;
}
.sol-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.sol-card .icon {
    width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(135deg, #1ca5ea, #0016b2); color: #fff; font-size: 26px; margin-bottom: 18px;
}
.sol-card h3 { font-size: 1.15rem; color: var(--mb-blue-dark); }
.sol-card p { margin: 0; font-size: .96rem; }

/* Tarjeta enlazada (con imagen) */
.sol-card--link { display: block; color: inherit; }
.sol-card--link:hover { color: inherit; }
.sol-card .icon--img {
    width: 100%; height: 170px; border-radius: 12px; overflow: hidden;
    background: none; padding: 0; margin-bottom: 18px; display: block;
}
.sol-card .icon--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sol-more { display: inline-block; margin-top: 14px; color: var(--mb-blue); font-weight: 600; font-size: .92rem; }
.sol-card--link:hover .sol-more { color: var(--mb-blue-dark); }

/* ------------------------------ Hero de solución (subpáginas) ------------ */
.sol-hero {
    display: flex; align-items: center; justify-content: center;
    gap: clamp(28px, 4vw, 72px); min-height: 460px;
    padding: 48px clamp(24px, 5vw, 72px); overflow: hidden; background: #fff;
}
.sol-hero-text { flex: 0 1 560px; min-width: 0; }
.sol-hero-media { flex: 0 0 auto; }
/* Tope 1000px: por debajo del ancho nativo (1280px), se mantiene nítida */
.sol-hero-media img { width: clamp(280px, 56vw, 1000px); height: auto; display: block; }
/* Reducida al 50% (SVG vectorial, mantiene nitidez) */
.sol-hero-media img.hero-img-half { width: clamp(140px, 28vw, 500px); }
.sol-hero-kicker { display: block; color: var(--mb-blue); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 15px; margin-bottom: 6px; }
.sol-hero h1 { color: var(--mb-blue-dark); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; margin-bottom: 14px; }
.sol-hero p { color: var(--mb-blue-dark); font-size: 1.1rem; margin-bottom: 26px; }

/* ------------------------------ Industrias RFID -------------------------- */
.ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.ind-card {
    background: #fff; border-radius: var(--radius-card); padding: 32px 30px;
    box-shadow: var(--shadow-card); border: 1px solid #eef1f6;
    border-top: 4px solid var(--mb-blue);
}
.ind-card h3 { font-size: 1.25rem; color: var(--mb-blue-dark); margin-bottom: 6px; }
.ind-card .ind-sub { font-size: .96rem; margin: 0 0 16px; }
.ind-card ul { list-style: none; padding: 0; margin: 0; }
.ind-card ul li { position: relative; padding: 6px 0 6px 26px; font-size: .93rem; border-top: 1px solid #f0f2f6; }
.ind-card ul li:first-child { border-top: 0; }
.ind-card ul li::before { content: "▸"; position: absolute; left: 4px; color: var(--mb-blue); font-weight: 700; }

/* Clientes RFID: carrusel a la izquierda + imagen a la derecha */
.rfid-clients { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.rfid-clients-main, .rfid-clients-img { min-width: 0; } /* evita que el carrusel infle su columna */
.rfid-clients-head { text-align: center; max-width: none; margin: 0 0 26px; }
.rfid-clients-img img { width: 100%; height: auto; border-radius: 20px; display: block; }

/* ------------------------------ Certificaciones -------------------------- */
.cert-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 56px; }
.cert-item {
    display: grid; place-items: center; height: 273px; padding: 12px 22px;
}
.cert-item img { max-height: 260px; max-width: 100%; width: auto; object-fit: contain; }

/* ------------------------------ Carrusel de logos (marcas / clientes) ---- */
.logo-carousel {
    position: relative; display: flex; align-items: center; gap: 10px;
    width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 8px;
}
.logo-viewport {
    position: relative; overflow: hidden; flex: 1 1 auto;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.logo-track { display: flex; will-change: transform; }
.logo-slide {
    flex: 0 0 calc(100% / var(--per-view, 4));
    height: 150px; padding: 0 22px; box-sizing: border-box;
    display: grid; place-items: center;
}
/* Logos a color, sin escala de grises (marcas y clientes por igual) */
.logo-slide img { max-height: 92px; max-width: 100%; width: auto; object-fit: contain; }
/* Marcas: logos al doble del tamaño base */
.logo-carousel--marcas .logo-slide { height: 210px; }
.logo-carousel--marcas .logo-slide img { max-height: 184px; }

/* Flechas laterales, como en el sitio original */
.logo-arrow {
    flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid #e2e6ef; background: #fff; color: var(--mb-blue);
    font-size: 26px; line-height: 1; cursor: pointer;
    display: grid; place-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
    transition: background .2s, color .2s, box-shadow .2s;
}
.logo-arrow:hover { background: var(--mb-blue); color: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .14); }
.logo-arrow:focus-visible { outline: 3px solid var(--mb-gold); outline-offset: 2px; }

/* ------------------------------ Nosotros / franjas ----------------------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split ul { list-style: none; padding: 0; margin: 20px 0 0; }
.split ul li { padding: 8px 0 8px 32px; position: relative; }
.split ul li::before { content: "✓"; position: absolute; left: 0; color: var(--mb-blue); font-weight: 800; }
.about-visual {
    background: linear-gradient(135deg, #0016b2, #1ca5ea); border-radius: 18px; min-height: 320px;
    display: grid; place-items: center; color: #fff; text-align: center; padding: 40px;
}
.about-visual .big { font-size: 3.4rem; font-weight: 800; }

/* ------------------------------ Contacto / CTA --------------------------- */
.cta-band {
    background: linear-gradient(135deg, #0016b2 0%, #1ca5ea 100%);
    color: #fff; text-align: center; border-radius: 20px; padding: 60px 32px; margin: 0 24px;
}
.cta-band h2 { color: #fff; font-size: 2rem; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 1.1rem; margin-bottom: 28px; }

.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 { color: var(--mb-blue-dark); }
.contact-info .info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-info .info-item .ico { font-size: 22px; }
.contact-form { background: #fff; border-radius: var(--radius-card); padding: 34px; box-shadow: var(--shadow-card); border: 1px solid #eef1f6; }
.contact-form label { display: block; font-weight: 600; color: var(--mb-blue-dark); margin: 0 0 6px; font-size: .92rem; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 12px 14px; border: 1px solid #dfe4ec; border-radius: 10px;
    font-family: var(--font); font-size: 15px; margin-bottom: 18px; color: var(--mb-gray);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--mb-blue); box-shadow: 0 0 0 3px rgba(28,165,234,.15); }
.form-note { font-size: .85rem; margin-top: 4px; }

/* ------------------------------ Footer ----------------------------------- */
.site-footer { background: var(--mb-dark); color: rgba(255,255,255,.72); padding-top: 62px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-logo { height: 40px; background: #fff; padding: 6px 10px; border-radius: 8px; }
.footer-brand p { margin: 16px 0; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.72); }
.footer-col a:hover { color: var(--mb-blue-bright); }
.contact-list li { margin-bottom: 12px; }
.social { display: flex; gap: 10px; margin-top: 6px; }
.social a {
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255,255,255,.1); color: #fff; font-weight: 700; font-size: 13px; text-transform: lowercase;
}
.social a:hover { background: var(--mb-blue); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; font-size: .88rem; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-legal a { color: rgba(255,255,255,.72); }
.footer-legal a:hover { color: var(--mb-blue-bright); }

/* Aviso de cookies (solo existe si hay Analytics:MeasurementId). Abajo a la izquierda: el chat flotante está a la derecha. */
.cookie-aviso {
    position: fixed; left: 16px; bottom: 16px; z-index: 1200;
    width: min(420px, calc(100vw - 32px));
    background: var(--mb-white); color: var(--mb-gray);
    border-radius: var(--radius-card); box-shadow: var(--shadow-hover);
    border: 1px solid rgba(0, 22, 178, .12);
    padding: 16px 18px; font-size: .88rem; line-height: 1.45;
}
.cookie-aviso p { margin: 0 0 12px; }
.cookie-aviso a { color: var(--mb-blue-dark); text-decoration: underline; }
.cookie-botones { display: flex; gap: 10px; justify-content: flex-end; }
.cookie-botones button {
    font: inherit; font-weight: 600; cursor: pointer; padding: 8px 20px;
    border-radius: var(--radius-btn); border: 2px solid var(--mb-blue-dark);
    background: var(--mb-white); color: var(--mb-blue-dark);
}
.cookie-botones button:hover, .cookie-botones button:focus-visible { background: var(--mb-blue-dark); color: var(--mb-white); }

/* ------------------------------ Responsive ------------------------------- */
@media (max-width: 900px) {
    .split, .contact-wrap, .mb-intro, .rfid-clients { grid-template-columns: 1fr; }
    .rfid-clients-img { order: -1; }
    .mb-intro-img { padding-right: 0; margin-bottom: 22px; }
    .mb-intro-img img { height: auto; }
    .mb-intro-card { padding: 34px 26px 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Menú: con 8 enlaces + botón ya no cabe en una fila bajo ~1280 px, así que se pasa a menú desplegable antes que el resto del diseño */
@media (max-width: 1280px) {
    .nav-toggle { display: flex; }
    .header-inner { justify-content: space-between; }
    .main-nav {
        position: absolute; top: 92px; left: 0; right: 0; background: #fff;
        flex-direction: column; align-items: stretch; gap: 0; padding: 12px 0;
        box-shadow: 0 12px 24px rgba(0,0,0,.1); display: none;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 14px 24px; border-bottom: 1px solid #f0f2f6; }
    .nav-cta { border-radius: 0; margin: 8px 24px; text-align: center; }
}
@media (max-width: 900px) {
    .hero-slide { min-height: 520px; }
    .sol-hero { flex-direction: column; align-items: stretch; gap: 28px; min-height: 0; padding: 40px clamp(20px, 6vw, 40px); }
    .sol-hero-text { flex: 0 0 auto; }
    .sol-hero-media img { width: 100%; max-width: 520px; margin: 0 auto; }
    .sol-hero-media img.hero-img-half { max-width: 260px; }
    .hero-arrow { font-size: 32px; }
    .hero-prev { left: 6px; }
    .hero-next { right: 6px; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-slide { min-height: 440px; }
    .logo-slide { height: 120px; padding: 0 14px; }
    .logo-slide img { max-height: 70px; }
    .logo-carousel--marcas .logo-slide { height: 160px; }
    .logo-carousel--marcas .logo-slide img { max-height: 140px; }
    .logo-arrow { width: 36px; height: 36px; font-size: 22px; }
    .cert-strip { gap: 26px; }
    section { padding: 60px 0; }
    .sec-tight { padding: 30px 0; }
}

/* Respeta la preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: none; }
    .logo-track { transition: none !important; }
}

/* ============================ Contacto flotante (Eva + WhatsApp) ========== */
.chat-stack {
    position: fixed; right: 20px; bottom: 20px; z-index: 901;
    display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}

/* ---- Cuadro de WhatsApp (debajo de Eva) ---- */
.wa-box {
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
    max-width: 260px; text-align: left; font-family: var(--font);
    background: #fff; color: var(--mb-gray); border: 1px solid #e6eaf1;
    border-radius: 26px; padding: 8px 16px 8px 8px;
    box-shadow: 0 8px 24px rgba(0, 22, 178, .16);
    transition: transform .18s ease, box-shadow .18s ease;
}
.wa-box:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.wa-box:focus-visible { outline: 3px solid var(--mb-gold); outline-offset: 3px; }
.wa-box-icon {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    background: #e8f8ee; color: #25d366;   /* verde oficial de WhatsApp */
}
.wa-box-text { font-size: .86rem; font-weight: 600; color: var(--mb-blue); line-height: 1.25; }

.wa-panel {
    width: 340px; max-width: calc(100vw - 40px);
    background: #fff; border-radius: var(--radius-card);
    box-shadow: var(--shadow-card); overflow: hidden;
    animation: waIn .2s ease;
}
@keyframes waIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.wa-header {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--mb-blue-dark); color: #fff; padding: 14px 16px;
}
.wa-header-brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: .95rem; }
.wa-header-dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
.wa-close {
    background: transparent; border: 0; color: rgba(255,255,255,.85); cursor: pointer;
    font-size: 1.5rem; line-height: 1; width: 32px; height: 32px; border-radius: 8px;
}
.wa-close:hover { background: rgba(255,255,255,.12); color: #fff; }
.wa-close:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

.wa-body { padding: 18px 16px 6px; }
.wa-step-num { margin: 0 0 4px; font-size: .78rem; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--mb-blue); }
.wa-step-title { font-size: 1.05rem; margin: 0 0 14px; }

.wa-options { display: flex; flex-direction: column; gap: 8px; }
.wa-option {
    text-align: left; font-family: var(--font); font-size: .92rem; color: var(--mb-blue-dark);
    background: var(--mb-gray-light); border: 2px solid transparent; border-radius: 10px;
    padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s;
}
.wa-option:hover { border-color: var(--mb-blue); }
.wa-option:focus-visible { outline: 2px solid var(--mb-blue); outline-offset: 2px; }
.wa-option--sel { border-color: var(--mb-blue); background: #eaf6fe; }

.wa-field { margin-bottom: 6px; }
.wa-input {
    width: 100%; font-family: var(--font); font-size: .95rem; color: var(--mb-gray);
    padding: 12px 14px; border: 2px solid #e2e6ee; border-radius: 10px; background: #fff;
    transition: border-color .15s;
}
.wa-input:focus { outline: 0; border-color: var(--mb-blue); }
.wa-input--err { border-color: #d64545; }
.wa-error { min-height: 1.1em; margin: 6px 2px 0; font-size: .82rem; color: #d64545; }

.wa-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }
.wa-back, .wa-next {
    font-family: var(--font); font-weight: 600; font-size: .9rem; cursor: pointer;
    padding: 10px 20px; border-radius: var(--radius-btn); transition: background .18s, transform .18s;
}
.wa-back { background: transparent; border: 2px solid #e2e6ee; color: var(--mb-gray); }
.wa-back:hover { border-color: var(--mb-blue); color: var(--mb-blue-dark); }
.wa-next { background: var(--mb-blue); border: 0; color: #fff; margin-left: auto; }
.wa-next:hover { background: var(--mb-blue-bright); transform: translateY(-1px); }
.wa-back:focus-visible, .wa-next:focus-visible { outline: 2px solid var(--mb-gold); outline-offset: 2px; }

.wa-summary { background: var(--mb-gray-light); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.wa-summary p { margin: 0 0 8px; font-size: .9rem; color: var(--mb-blue-dark); }
.wa-summary p:last-child { margin-bottom: 0; }
.wa-summary span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .4px; color: var(--mb-gray); }

.wa-cta {
    display: block; text-align: center; font-family: var(--font); font-weight: 600;
    background: #25d366; color: #fff; padding: 13px 20px; border-radius: var(--radius-btn);
    transition: background .18s, transform .18s;
}
.wa-cta:hover { background: #1fb959; color: #fff; transform: translateY(-1px); }
.wa-cta:focus-visible { outline: 3px solid var(--mb-blue-dark); outline-offset: 2px; }

.wa-legal { margin: 0; padding: 12px 16px 16px; font-size: .74rem; line-height: 1.5; color: var(--mb-gray); }
.wa-legal a { color: var(--mb-blue-bright); }

@media (max-width: 420px) {
    .chat-stack { right: 14px; bottom: 14px; }
    .wa-panel { width: calc(100vw - 28px); }
    .wa-box { max-width: calc(100vw - 28px); }
}

@media (prefers-reduced-motion: reduce) {
    .wa-panel { animation: none; }
    .wa-launcher, .wa-next, .wa-cta, .wa-option, .wa-back { transition: none; }
    .wa-launcher:hover, .wa-next:hover, .wa-cta:hover { transform: none; }
}

/* ============================ Chatbot Eva (captura de leads) ============== */
/* Front únicamente; el envío al backend (SQL Server) queda pendiente.        */
/* El atributo hidden debe ganarle al display:flex del panel */
.eva-panel[hidden] { display: none; }

/* Lanzador de Eva: botón con el texto "Eva" (sin ícono) */
.eva-launcher {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: 0;
    font-family: var(--font); font-size: .95rem; font-weight: 700; letter-spacing: .3px;
    background: var(--mb-blue); color: #fff; border-radius: 24px; padding: 11px 20px;
    box-shadow: 0 8px 24px rgba(0, 22, 178, .28);
    transition: transform .18s ease, box-shadow .18s ease, background .2s;
}
.eva-launcher:hover { background: var(--mb-blue-bright); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.eva-launcher:focus-visible { outline: 3px solid var(--mb-gold); outline-offset: 3px; }
.eva-launcher-dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .3); }

.eva-panel {
    width: 360px; max-width: calc(100vw - 40px);
    height: 520px; max-height: calc(100vh - 120px);
    display: flex; flex-direction: column;
    background: #fff; border-radius: var(--radius-card);
    box-shadow: var(--shadow-card); overflow: hidden; animation: evaIn .2s ease;
}
@keyframes evaIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.eva-header {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--mb-blue); color: #fff; padding: 12px 14px; flex: 0 0 auto;
}
.eva-header-brand { display: flex; align-items: center; gap: 10px; }
.eva-avatar {
    width: 38px; height: 38px; border-radius: 50%; background: var(--mb-gold);
    display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; color: #fff;
}
.eva-header-text { display: flex; flex-direction: column; line-height: 1.2; }
.eva-name { font-weight: 600; font-size: .98rem; }
.eva-status { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: rgba(255, 255, 255, .8); }
.eva-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); }
.eva-close {
    background: transparent; border: 0; color: rgba(255, 255, 255, .85); cursor: pointer;
    font-size: 1.5rem; line-height: 1; width: 32px; height: 32px; border-radius: 8px;
}
.eva-close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.eva-close:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

.eva-body {
    flex: 1 1 auto; overflow-y: auto; padding: 16px 14px; background: var(--mb-gray-light);
    display: flex; flex-direction: column; gap: 10px;
}
.eva-msg { max-width: 85%; padding: 11px 14px; font-size: .9rem; line-height: 1.45; border-radius: 14px; }
.eva-msg--bot { align-self: flex-start; background: var(--mb-blue); color: #fff; border-bottom-left-radius: 4px; }
.eva-msg--user { align-self: flex-end; background: #eaeff5; color: var(--mb-blue-dark); border-bottom-right-radius: 4px; }

.eva-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: #fff; border-radius: 14px; border-bottom-left-radius: 4px; }
.eva-typing span { width: 7px; height: 7px; border-radius: 50%; background: #c3ccd8; animation: evaBlink 1s infinite; }
.eva-typing span:nth-child(2) { animation-delay: .2s; }
.eva-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes evaBlink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

.eva-input-area { flex: 0 0 auto; padding: 12px 14px; border-top: 1px solid #eef1f6; background: #fff; }
.eva-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.eva-chip {
    font-family: var(--font); font-size: .85rem; color: var(--mb-blue-dark);
    background: #fff; border: 1.5px solid #d6deea; border-radius: 18px;
    padding: 8px 14px; cursor: pointer; transition: border-color .15s, background .15s;
}
.eva-chip:hover { border-color: var(--mb-blue); background: #eaf6fe; }
.eva-chip:focus-visible { outline: 2px solid var(--mb-blue); outline-offset: 2px; }

.eva-form { display: flex; flex-direction: column; gap: 6px; }
.eva-input-row { display: flex; gap: 8px; }
.eva-input {
    flex: 1 1 auto; font-family: var(--font); font-size: .92rem; color: var(--mb-gray);
    padding: 11px 13px; border: 2px solid #e2e6ee; border-radius: 10px; background: #fff;
    transition: border-color .15s;
}
.eva-input:focus { outline: 0; border-color: var(--mb-blue); }
.eva-input--err { border-color: #d64545; }
.eva-send {
    flex: 0 0 auto; background: var(--mb-blue); border: 0; color: #fff; cursor: pointer;
    border-radius: 10px; padding: 0 16px; font-weight: 600; font-family: var(--font);
    transition: background .18s;
}
.eva-send:hover { background: var(--mb-blue-bright); }
.eva-send:focus-visible { outline: 2px solid var(--mb-gold); outline-offset: 2px; }
.eva-err { min-height: 1em; margin: 2px; font-size: .8rem; color: #d64545; }
.eva-legal { margin: 0 2px 10px; font-size: .72rem; line-height: 1.4; color: var(--mb-gray); }
.eva-legal a { color: var(--mb-blue-bright); }
.eva-restart {
    font-family: var(--font); font-size: .85rem; font-weight: 600; cursor: pointer;
    background: transparent; border: 2px solid #e2e6ee; color: var(--mb-gray);
    border-radius: var(--radius-btn); padding: 9px 16px; transition: border-color .15s, color .15s;
}
.eva-restart:hover { border-color: var(--mb-blue); color: var(--mb-blue-dark); }

@media (max-width: 420px) {
    .eva-panel { width: calc(100vw - 28px); height: calc(100vh - 130px); }
}
@media (prefers-reduced-motion: reduce) {
    .eva-panel { animation: none; }
    .eva-typing span { animation: none; opacity: .55; }
    .eva-launcher, .eva-chip, .eva-send, .wa-box { transition: none; }
    .eva-launcher:hover, .wa-box:hover { transform: none; }
}

/* ==========================================================================
   Landing: Auditoría de envíos  (/auditoria-de-envios)
   Móvil primero, carga ligera. Reutiliza el sistema de diseño del sitio.
   ========================================================================== */

.ae-section { padding: 72px 0; }
.ae-narrow { max-width: 820px; }

/* ------------------------------ 6.1 Hero --------------------------------- */
.ae-hero {
    padding: 0;
    background:
        radial-gradient(1200px 500px at 50% -10%, rgba(28,165,234,.10), transparent 60%),
        var(--mb-white);
    border-bottom: 1px solid #eef1f6;
}
.ae-hero-inner { padding: 56px 24px 40px; text-align: center; max-width: 900px; }
.ae-badge {
    display: inline-block; background: rgba(221,153,51,.14); color: #a86a10;
    font-weight: 700; font-size: 13px; letter-spacing: .3px; text-transform: uppercase;
    padding: 7px 16px; border-radius: 20px; margin-bottom: 20px;
}
.ae-hero h1 {
    font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -.5px;
    margin-bottom: 18px;
}
.ae-hero-sub { font-size: clamp(1.02rem, 2.4vw, 1.22rem); color: var(--mb-gray); max-width: 720px; margin: 0 auto 28px; }
.ae-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.ae-btn-ghost {
    background: transparent; color: var(--mb-blue-dark); border: 2px solid #d9dee8;
    text-transform: none;
}
.ae-btn-ghost:hover { border-color: var(--mb-blue); color: var(--mb-blue-dark); transform: translateY(-2px); }
.ae-hero-micro { font-size: .9rem; color: var(--mb-gray); margin: 18px 0 0; }

/* --------------------- 6.2 Barra de credibilidad ------------------------- */
.ae-cred { background: var(--mb-blue-dark); color: #fff; padding: 18px 0; text-align: center; }
.ae-cred-line { font-weight: 700; font-size: clamp(.95rem, 2.4vw, 1.1rem); letter-spacing: .3px; margin: 0; color: #fff; }
.ae-cred-sub { font-size: .9rem; color: rgba(255,255,255,.82); margin: 4px 0 0; }

/* --------------------------- Tarjetas / bloques -------------------------- */
.ae-cards-3, .ae-cards-2 { display: grid; gap: 22px; }
.ae-cards-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ae-cards-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ae-card {
    background: #fff; border: 1px solid #eceff4; border-radius: var(--radius-card);
    padding: 26px 24px; box-shadow: var(--shadow-card);
}
.ae-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.ae-card p { margin: 0; font-size: .97rem; }

.ae-highlight {
    margin: 34px auto 0; max-width: 760px; text-align: center;
    font-size: clamp(1.05rem, 2.6vw, 1.25rem); font-weight: 600; color: var(--mb-blue-dark);
    border-left: 4px solid var(--mb-gold); background: rgba(221,153,51,.08);
    padding: 16px 22px; border-radius: 8px;
}

/* ------------------------- 6.4 Autodiagnóstico --------------------------- */
.ae-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ae-checklist li {
    position: relative; padding: 14px 16px 14px 46px; background: #fff;
    border: 1px solid #eceff4; border-radius: 10px; font-size: .98rem;
}
.ae-checklist li::before {
    content: "\2713"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px; line-height: 20px; text-align: center;
    color: var(--mb-blue); font-weight: 800;
}

/* ----------------------------- 6.5 Pasos -------------------------------- */
.ae-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.ae-step { display: flex; gap: 20px; align-items: flex-start; background: #fff; border: 1px solid #eceff4; border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-card); }
.ae-step-num {
    flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
    background: var(--mb-blue); color: #fff; font-weight: 800; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
}
.ae-step h3 { margin-bottom: 6px; font-size: 1.15rem; }
.ae-step p { margin: 0; font-size: .97rem; }

/* ------------------------- 6.7 Por qué Megabyte ------------------------- */
.ae-reasons { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.ae-reasons li { position: relative; padding-left: 28px; font-size: 1.02rem; }
.ae-reasons li::before { content: "\25B8"; position: absolute; left: 4px; color: var(--mb-gold); font-weight: 800; }
.ae-reasons strong { color: var(--mb-blue-dark); }

/* --------------------------- 6.8/6.9 Formularios ------------------------ */
.ae-form-section { background: var(--mb-gray-light); }
.ae-counter {
    display: inline-block; background: #fff; border: 1px solid #e3e8ef;
    color: var(--mb-blue-dark); font-weight: 700; font-size: .9rem;
    padding: 6px 16px; border-radius: 20px; margin-top: 6px;
}
.ae-form {
    background: #fff; border: 1px solid #eceff4; border-radius: var(--radius-card);
    box-shadow: var(--shadow-card); padding: 30px; margin-top: 10px;
}
.ae-field { margin-bottom: 18px; }
.ae-field > label, .ae-fieldset > legend {
    display: block; font-weight: 600; color: var(--mb-blue-dark);
    font-size: .92rem; margin-bottom: 7px;
}
.ae-opt { font-weight: 400; color: var(--mb-gray); }
.ae-field input[type="text"],
.ae-field input[type="email"],
.ae-field input[type="tel"],
.ae-field input:not([type]),
.ae-field select,
.ae-field textarea {
    width: 100%; font-family: var(--font); font-size: 1rem; color: var(--mb-gray);
    padding: 12px 14px; border: 1.5px solid #dce1ea; border-radius: 10px;
    background: #fff; transition: border-color .15s, box-shadow .15s;
}
.ae-field input:focus, .ae-field select:focus, .ae-field textarea:focus {
    outline: none; border-color: var(--mb-blue); box-shadow: 0 0 0 3px rgba(28,165,234,.15);
}
.ae-field textarea { resize: vertical; }
.ae-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ae-fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.ae-checks, .ae-radios { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.ae-check, .ae-radio {
    display: flex; align-items: center; gap: 9px; font-size: .95rem; font-weight: 400;
    color: var(--mb-gray); cursor: pointer; padding: 10px 12px;
    border: 1.5px solid #e3e8ef; border-radius: 10px; margin: 0;
}
.ae-check input, .ae-radio input { width: 18px; height: 18px; accent-color: var(--mb-blue); flex: 0 0 auto; }
.ae-check:has(input:checked), .ae-radio:has(input:checked) { border-color: var(--mb-blue); background: rgba(28,165,234,.06); }
.ae-submit { width: 100%; margin-top: 6px; }
.ae-legal { font-size: .82rem; color: var(--mb-gray); margin: 16px 0 0; text-align: center; }

/* Mensajes de validación */
.ae-form span.field-validation-error, .ae-form-errors {
    display: block; color: #c0392b; font-size: .85rem; margin-top: 6px;
}
.ae-field input.input-validation-error,
.ae-field select.input-validation-error,
.ae-field textarea.input-validation-error { border-color: #c0392b; }

/* Honeypot: fuera de pantalla, sin display:none para que los bots lo llenen */
.ae-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only, .ae-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Gancho secundario: correo + botón en línea */
.ae-form-inline { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.ae-form-inline .ae-field { flex: 1 1 240px; margin-bottom: 0; }
.ae-form-inline .btn { flex: 0 0 auto; }

/* Estado de agradecimiento */
.ae-thanks {
    background: #fff; border: 1px solid #eceff4; border-left: 4px solid var(--mb-blue);
    border-radius: var(--radius-card); box-shadow: var(--shadow-card);
    padding: 34px; text-align: center;
}
.ae-thanks h2 { margin-bottom: 10px; }
.ae-thanks p { max-width: 560px; margin: 0 auto 18px; }

/* --------------------- Calculadora de peso volumétrico ------------------- */
.ae-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ae-field input[aria-invalid="true"], .ae-div-input[aria-invalid="true"] { border-color: #c0392b; }
.ae-calc-result { margin-top: 26px; }
.ae-calc-summary {
    background: #fff; border: 1px solid #eceff4; border-left: 4px solid var(--mb-gold);
    border-radius: var(--radius-card); padding: 16px 20px; margin: 0 0 18px;
    color: var(--mb-blue-dark); font-weight: 600;
}
.ae-table-wrap {
    overflow-x: auto; background: #fff; border: 1px solid #eceff4;
    border-radius: var(--radius-card); box-shadow: var(--shadow-card);
}
.ae-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.ae-table th, .ae-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #eef1f6; }
.ae-table thead th {
    background: var(--mb-gray-light); color: var(--mb-blue-dark);
    font-size: .82rem; text-transform: uppercase; letter-spacing: .03em;
}
.ae-table tbody th { color: var(--mb-blue-dark); font-weight: 700; }
.ae-table tbody tr:last-child th, .ae-table tbody tr:last-child td { border-bottom: 0; }
.ae-table .calc-fact { font-weight: 700; color: var(--mb-blue-dark); }
.ae-div-input {
    width: 84px; font-family: var(--font); font-size: .95rem; color: var(--mb-gray);
    padding: 7px 9px; border: 1.5px solid #dce1ea; border-radius: 8px; background: #fff;
}
.ae-div-input:focus { outline: none; border-color: var(--mb-blue); box-shadow: 0 0 0 3px rgba(28,165,234,.15); }
.ae-calc-note { font-size: .82rem; color: var(--mb-gray); margin: 14px 2px 0; }
.ae-calc-cta { text-align: center; margin-top: 28px; }
.ae-calc-cta p { max-width: 560px; margin: 0 auto 16px; }

/* --------------------------- 6.10 Pie de landing ------------------------ */
.ae-footer-band { background: var(--mb-blue-dark); color: #fff; padding: 40px 0; text-align: center; }
.ae-footer-band p { margin: 4px 0; color: rgba(255,255,255,.9); font-size: .95rem; }
.ae-footer-band a { color: #fff; text-decoration: underline; }

/* --------------------------- Gráficos (SVG) ----------------------------- */
/* Iconos de apoyo en las tarjetas del problema (§6.3) */
.ae-card--icon { padding-top: 24px; }
.ae-card-icon { width: 56px; height: 56px; display: block; margin-bottom: 12px; }

/* Diagrama de proceso (§6.5) */
.ae-proceso { margin: 8px auto 44px; max-width: 1100px; }
.ae-proceso img { display: block; width: 100%; height: auto; }

/* Bloques imagen + texto alternados (§6.5) */
.ae-feature {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
    margin: 40px 0;
}
.ae-feature-media { text-align: center; }
.ae-feature-media img { display: block; width: 100%; height: auto; max-width: 420px; margin: 0 auto; }
.ae-feature--reverse .ae-feature-media img { max-width: 560px; }
/* Captura de pantalla de teléfono: se muestra a tamaño reducido para no pixelarse */
.ae-feature-media img.ae-phone-shot,
.ae-feature--reverse .ae-feature-media img.ae-phone-shot { max-width: 260px; }
.ae-feature-text h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: 12px; }
.ae-feature-text p { font-size: 1.05rem; margin: 0; }
/* En "reverse", la imagen va a la derecha en escritorio */
.ae-feature--reverse .ae-feature-media { order: 2; }
.ae-feature--reverse .ae-feature-text { order: 1; }

/* Variante compacta de los bloques imagen + texto (landing /audita-envios): mismas ilustraciones,
   pero con altura limitada y menos margen para que la sección no obligue a hacer tanto scroll. */
.ae-features-compact .ae-proceso { margin: 0 auto 28px; }
.ae-features-compact .ae-feature { margin: 24px 0; gap: 32px; }
.ae-features-compact .ae-feature-media img,
.ae-features-compact .ae-feature--reverse .ae-feature-media img { width: auto; max-width: 100%; max-height: 330px; }
.ae-features-compact .ae-feature-media img.ae-phone-shot,
.ae-features-compact .ae-feature--reverse .ae-feature-media img.ae-phone-shot { max-height: 330px; }

/* Bloque imagen + texto + foto (tres columnas): la foto va a la derecha y, en móvil, debajo del texto */
.ae-feature--trio { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto; }
.ae-feature-extra { text-align: center; }
.ae-feature-extra img {
    display: block; width: auto; max-width: 100%; height: auto; max-height: 330px;
    margin: 0 auto; border-radius: 14px; box-shadow: var(--shadow-card);
}

/* ------------------------------ Página /nosotros ------------------------------ */
.nos-migas { font-size: .85rem; color: var(--mb-gray); margin-bottom: 18px; }
.nos-migas a { color: var(--mb-gray); text-decoration: underline; }
.nos-hero h1 { color: var(--mb-blue-dark); font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; margin-bottom: 14px; }
.nos-lead { font-size: 1.15rem; line-height: 1.6; color: var(--mb-blue-dark); margin: 0 0 24px; max-width: 760px; }
.nos-link { display: inline-block; margin-top: 8px; font-weight: 600; font-size: .92rem; }
.nos-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.nos-chips li {
    background: #fff; border: 1.5px solid #e3e8ef; border-radius: 999px;
    padding: 8px 16px; font-size: .92rem; color: var(--mb-blue-dark); font-weight: 600;
}
/* Logos de marcas: MISMO tamaño que el carrusel de la portada (casilla 210 px, logo hasta 184 px de alto,
   4 por fila; 2 en tablet). En móvil el carrusel muestra 1 por vez; aquí 2 por fila, algo más chicos. */
.nos-logos { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.nos-logos li { background: #fff; border: 1px solid #eceff4; border-radius: 12px; height: 210px; padding: 0 22px; display: grid; place-items: center; box-sizing: border-box; }
.nos-logos img { display: block; max-width: 100%; max-height: 184px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 900px) { .nos-logos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
    .nos-logos { gap: 12px; }
    .nos-logos li { height: 130px; padding: 0 14px; }
    .nos-logos img { max-height: 110px; }
}
.nos-datos { margin: 0; display: grid; gap: 12px; }
.nos-datos > div { background: #fff; border: 1px solid #eceff4; border-radius: 10px; padding: 14px 18px; display: grid; grid-template-columns: 180px 1fr; gap: 12px; }
.nos-datos dt { font-weight: 700; color: var(--mb-blue-dark); }
.nos-datos dd { margin: 0; color: var(--mb-gray); }
.nos-faq details { background: #fff; border: 1px solid #eceff4; border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.nos-faq summary { cursor: pointer; font-weight: 700; color: var(--mb-blue-dark); }
.nos-faq details[open] summary { margin-bottom: 8px; }
.nos-faq details p { margin: 0; color: var(--mb-gray); line-height: 1.55; }
@media (max-width: 640px) { .nos-datos > div { grid-template-columns: 1fr; gap: 2px; } }

/* Hub /rfid: pasos numerados y tabla comparativa */
.rfid-subtitulo { display: block; margin-top: 8px; font-size: .5em; font-weight: 600; line-height: 1.25; color: var(--mb-blue); }
.rfid-acciones { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.rfid-pasos { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 10px; line-height: 1.55; color: var(--mb-gray); }
.rfid-pasos strong { color: var(--mb-blue-dark); }
.tabla-comp-wrap { overflow-x: auto; }
.tabla-comp { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #eceff4; font-size: .95rem; }
.tabla-comp th, .tabla-comp td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #eceff4; line-height: 1.5; }
.tabla-comp thead th { background: var(--mb-blue-dark); color: #fff; }
.tabla-comp tbody th { color: var(--mb-blue-dark); white-space: nowrap; }
.tabla-comp td { color: var(--mb-gray); }
@media (max-width: 640px) { .tabla-comp tbody th { white-space: normal; } .tabla-comp { font-size: .88rem; } }

/* Tira de iconos de cierre (§6.6) */
.ae-seticons { margin-top: 48px; text-align: center; }
.ae-seticons img { display: block; width: 100%; height: auto; max-width: 1000px; margin: 0 auto; }

/* Revelado discreto al hacer scroll (§7) */
.ae-reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.ae-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .ae-reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 820px) {
    .ae-feature { grid-template-columns: 1fr; gap: 20px; }
    /* En móvil, la imagen siempre primero (§2) */
    .ae-feature-media { order: 0 !important; }
    .ae-feature-text { order: 1 !important; }
    .ae-feature-media img, .ae-feature--reverse .ae-feature-media img { max-width: 360px; }
    .ae-feature--trio { grid-template-columns: 1fr; }
    .ae-feature-extra { order: 2; }   /* tras la ilustración (0) y el texto (1) */
    .ae-feature-extra img { max-height: 280px; }
    .ae-features-compact .ae-feature { margin: 18px 0; gap: 14px; }
    .ae-features-compact .ae-feature-media img,
    .ae-features-compact .ae-feature--reverse .ae-feature-media img,
    .ae-features-compact .ae-feature-media img.ae-phone-shot { max-height: 250px; }
}
@media (max-width: 640px) {
    .ae-grid-4 { grid-template-columns: 1fr 1fr; gap: 14px; }
    .ae-section { padding: 52px 0; }
    .ae-hero-inner { padding: 40px 20px 32px; }
    .ae-hero-cta .btn { width: 100%; }
    .ae-grid-2 { grid-template-columns: 1fr; }
    .ae-form { padding: 22px; }
    .ae-form-inline { flex-direction: column; }
    .ae-form-inline .btn { width: 100%; }
    .ae-step { gap: 14px; padding: 18px; }
}

/* ==========================================================================
   Página de evidencia de demo  (/e/demo)  — destino del QR de la etiqueta
   Usa el sistema visual de los gráficos: navy / teal / ámbar.
   ========================================================================== */
.ev-section { padding: 48px 0 72px; background: #F2F5F7; min-height: 60vh; }
.ev-wrap { max-width: 760px; }
.ev-demo-note {
    text-align: center; font-size: .8rem; letter-spacing: .5px; text-transform: uppercase;
    color: #5A6672; font-weight: 700; margin: 0 0 16px;
}
.ev-card {
    background: #fff; border: 1px solid #C9D4DC; border-radius: 16px; overflow: hidden;
    box-shadow: 0 10px 34px rgba(14,34,51,.10);
}
.ev-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
    padding: 26px 28px 20px; border-bottom: 1px solid #C9D4DC;
}
.ev-head h1 { color: #0E2233; font-size: clamp(1.4rem, 4vw, 1.9rem); margin: 0 0 6px; }
.ev-sub { color: #5A6672; font-size: .95rem; margin: 0; }
.ev-badge {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
    background: #0F7B8A; color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .5px;
    padding: 8px 14px; border-radius: 20px;
}
.ev-grid { display: grid; grid-template-columns: 300px 1fr; gap: 28px; padding: 28px; }
.ev-media {
    background: #F2F5F7; border: 1px solid #C9D4DC; border-radius: 12px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 26px 16px;
}
.ev-media-cap { color: #5A6672; font-size: .82rem; margin: 14px 0 0; text-align: center; }
.ev-data { margin: 0; display: grid; gap: 4px; align-content: start; }
.ev-data > div { padding: 12px 0; border-bottom: 1px solid #eef1f4; }
.ev-data dt {
    color: #5A6672; font-size: .72rem; font-weight: 700; letter-spacing: .8px;
    text-transform: uppercase; margin-bottom: 4px;
}
.ev-data dd { margin: 0; color: #0E2233; font-size: 1.25rem; font-weight: 700; }
.ev-amber { background: rgba(232,163,61,.10); border-left: 4px solid #E8A33D; border-radius: 8px; padding-left: 12px !important; }
.ev-amber dt { color: #B57619; }
.ev-amber dd { color: #E8A33D; font-size: 1.6rem; font-weight: 800; }
.ev-foot {
    padding: 18px 28px; background: #0E2233; color: #C7D2D8; font-size: .82rem;
}
.ev-foot code { color: #fff; font-family: 'Courier New', monospace; }
.ev-cta { text-align: center; margin: 26px 0 0; color: #5A6672; }
.ev-cta a { font-weight: 700; }
@media (max-width: 620px) {
    .ev-grid { grid-template-columns: 1fr; gap: 20px; }
    .ev-head { flex-direction: column; }
}


/* Productos: grilla compacta (usada por /productos y las páginas por categoría) */
/* ---- Productos: grilla compacta y minimalista ---- */
.prod-wrap { max-width: 1180px; margin: 0 auto; padding: 2.2rem 1.25rem 3rem; }
.prod-top { display: flex; align-items: baseline; justify-content: space-between;
    flex-wrap: wrap; gap: .5rem; border-bottom: 1px solid #e7ebf1; padding-bottom: 1rem; margin-bottom: 1.6rem; }
.prod-top h2 { font-size: 1.7rem; margin: 0; color: #0b1b3a; }
.prod-top .prod-sub { color: #6b7684; font-size: .95rem; margin: 0; }

.prod-grid { display: grid; gap: 1.1rem;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.prod-card { border: 1px solid #e7ebf1; border-radius: 12px; background: #fff;
    display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.prod-card:hover { box-shadow: 0 10px 24px rgba(11,27,58,.10); transform: translateY(-3px); }

.prod-img { background: #f6f8fb; height: 150px; display: flex; align-items: center; justify-content: center; padding: .8rem; }
.prod-img img { max-height: 100%; max-width: 100%; object-fit: contain; }

.prod-body { padding: .85rem 1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.prod-cat { font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: #9aa4b2; margin: 0 0 .2rem; }
.prod-name { font-size: 1.05rem; font-weight: 700; color: #1f6feb; margin: 0 0 .5rem; }
.prod-desc { font-size: .85rem; line-height: 1.45; color: #4a5563; margin: 0 0 1rem; flex: 1; }

.prod-actions { display: flex; flex-direction: column; gap: .5rem; }
.prod-btn { display: block; text-align: center; font-size: .82rem; font-weight: 600;
    padding: .55rem .75rem; border-radius: 8px; text-decoration: none; cursor: pointer; }
.prod-btn--ghost { border: 1px solid #cfd7e3; color: #1f6feb; background: #fff; }
.prod-btn--ghost:hover { border-color: #1f6feb; }
.prod-btn--solid { background: #0b1b3a; color: #fff; border: 1px solid #0b1b3a; }
.prod-btn--solid:hover { background: #13294b; }

.zebra-logo { height: 30px; width: auto; flex: 0 0 auto; }

@media (max-width: 520px) { .prod-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } .zebra-logo { height: 24px; } }

/* Páginas de contenido (hubs, guías, artículos): Services/Contenido.cs */
.pc-subtitulo { display: block; margin-top: 8px; font-size: .5em; font-weight: 600; line-height: 1.25; color: var(--mb-blue); }
.pc-fecha { font-size: .85rem; color: var(--mb-gray); margin: 0 0 14px; }
.pc-texto p { line-height: 1.7; color: #37414f; margin: 0 0 1rem; }
.pc-lista { line-height: 1.65; color: #37414f; margin: 0 0 1rem; padding-left: 1.3rem; display: grid; gap: 8px; }
.pc-lista strong { color: var(--mb-blue-dark); }
.pc-texto a, .nos-faq a { color: var(--mb-blue); text-decoration: underline; }
.pc-grupo { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.pc-grupo .prod-top { margin-top: 2rem; }
.pc-pre { background: #0b1b3a; color: #e8eefc; padding: 14px 16px; border-radius: 10px; overflow-x: auto; font-size: .88rem; line-height: 1.5; margin: 0 0 1rem; }
.rfid-guias { margin: 22px 0 0; text-align: center; color: var(--mb-gray); }
.rfid-guias a { color: var(--mb-blue); text-decoration: underline; }

/* /productos: enlace "Otras Marcas" a la derecha del logo de Zebra */
.prod-top-right { display: flex; align-items: center; gap: 1.1rem; }
.prod-otras { font-size: .85rem; font-weight: 700; color: var(--mb-blue); text-decoration: none; white-space: nowrap;
    border: 2px solid var(--mb-blue); border-radius: 999px; padding: .4rem 1rem; }
.prod-otras:hover { background: var(--mb-blue); color: #fff; }

/* Teléfono de oficina en el encabezado, a la derecha de "Contáctanos" */
.main-nav a.nav-tel { display: inline-flex; align-items: center; gap: 8px; color: var(--mb-blue-dark); font-weight: 700; font-size: 13px; letter-spacing: 0; text-transform: none; }
.main-nav a.nav-tel:hover { color: var(--mb-blue); }
.nav-tel-icon { flex: 0 0 auto; }
/* Entre 1281 y 1440 px no hay sitio para el número: queda el ícono (con el número en el tooltip) */
@media (min-width: 1281px) and (max-width: 1440px) { .nav-tel-num { display: none; } }
@media (max-width: 1280px) {
    .main-nav a.nav-tel { padding: 14px 24px; border-bottom: 1px solid #f0f2f6; font-size: 14px; }
}

/* /rfid: tres formas de leer (móvil, pórtico, túnel) */
.rfid-modos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rfid-modo { border: 1px solid #e7ebf1; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 6px 20px rgba(11,27,58,.06); display: flex; flex-direction: column; }
.rfid-modo-media { position: relative; aspect-ratio: 3 / 2; background: #f6f8fb; }
.rfid-modo-main { display: block; width: 100%; height: 100%; object-fit: cover; }
.rfid-modo-inset { position: absolute; right: 10px; bottom: 10px; width: 36%; aspect-ratio: 4 / 3; object-fit: cover; border: 3px solid #fff; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.28); }
.rfid-modo-body { padding: 20px 22px 24px; }
.rfid-modo-body h3 { margin: 0 0 4px; color: var(--mb-blue-dark); font-size: 1.3rem; }
.rfid-modo-eq { margin: 0 0 12px; color: var(--mb-blue); font-weight: 700; font-size: .95rem; }
.rfid-modo-body ul { margin: 0; padding-left: 1.1rem; color: var(--mb-gray); line-height: 1.7; }
/* /rfid: metal y líquidos */
.rfid-cond { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.rfid-cond-card { border: 1px solid #e7ebf1; border-radius: 14px; padding: 22px; background: #f8fafc; }
.rfid-cond-sello { display: inline-block; background: #e6f4ea; color: #1f8a4c; font-weight: 700; font-size: .75rem; padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; }
.rfid-cond-card h3 { margin: 0 0 8px; color: var(--mb-blue-dark); }
.rfid-cond-card p { margin: 0 0 10px; color: var(--mb-gray); line-height: 1.65; }
.rfid-cond-card ul { margin: 0; padding-left: 1.1rem; color: var(--mb-gray); line-height: 1.65; }
@media (max-width: 900px) { .rfid-modos, .rfid-cond { grid-template-columns: 1fr; } }

/* Portada: efecto "máquina de escribir" (wwwroot/js/escritura.js) */
.tw-linea { display: inline-block; min-height: 1.2em; }
.tw-us { color: #1ca5ea; font-weight: 700; }
.tw-us.tw-off { visibility: hidden; }
