/* ============================================================
   Supportek - Estilos del sitio publico  (v4)
   Separado de style.css (panel interno) a proposito:
   el panel y la tienda evolucionan por caminos distintos.

   v4: rediseno de la portada y unificacion visual de todo el
   sitio publico. Estructura del archivo:
     1. Identidad y base
     2. Barra superior y pie
     3. Portada (paths animados)
     4. Secciones de la portada
     5. Tarjetas de equipo, medidores y carrusel
     6. Preguntas frecuentes
     7. Paginas internas publicas (catalogo, detalle, agendar)
     8. Accesibilidad y movimiento reducido
   ============================================================ */

* { box-sizing: border-box; }

:root {
    /* Identidad Supportek */
    --navy: #14213D;
    --navy-soft: #1E2F52;
    --blue: #3D79AD;
    --blue-deep: #2C5D87;
    --deep: #2C4487;
    --blue-wash: #E8EFF7;
    --paper: #F3F5F9;
    --white: #FFFFFF;
    --ink: #1C2B36;
    --muted: #5B6B77;
    --line: #DDE3EC;
    --chip: #E6ECF5;
    --amber: #D98B3F;
    --amber-wash: #FBF0E2;

    /* Degradado de los medidores y botones de accion */
    --g1: #2C4487;
    --g2: #3D79AD;
    --btn: #2C4487;
    --link: #2C4487;

    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(20,33,61,.05), 0 8px 24px rgba(20,33,61,.06);
    --shadow-lift: 0 2px 4px rgba(20,33,61,.06), 0 16px 40px rgba(20,33,61,.12);
    --maxw: 1160px;

    --f-head: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
    --f-body: 'Poppins', system-ui, Arial, sans-serif;
    --f-mono: 'Space Mono', 'DejaVu Sans Mono', Consolas, monospace;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    font-family: var(--f-body);
    background: var(--paper);
    color: var(--ink);
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--f-head);
    line-height: 1.12;
    margin: 0;
    letter-spacing: -0.02em;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
p { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* Icono generico de trazo (usa el sprite inline de public_header.php) */
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Logos de marca (WhatsApp, Facebook, Instagram): llevan su propio color */
.br { width: 22px; height: 22px; flex: none; display: inline-block; }
.wa-i { width: 1.3em; height: 1.3em; vertical-align: -.3em; margin: 0 .32em 0 .12em; color: #25D366; }
.nb { white-space: nowrap; }

/* Etiqueta pequena que rotula una seccion (en minusculas: la marca no grita) */
.eyebrow {
    font-family: var(--f-mono);
    font-size: 13.5px;
    color: var(--link);
    margin: 0 0 12px;
    display: block;
}

/* ---------------- Barra superior ---------------- */
.topbar {
    background: rgba(20,33,61,.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
}
.topbar .wrap { display: flex; align-items: center; gap: 26px; height: 68px; }
.topbar .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.topbar .logo img { height: 32px; width: auto; }
.topbar .logo b {
    font-family: var(--f-head);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #F3F5F9;
}
.topbar .logo b span { color: #6FA6D8; }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.topbar nav a {
    color: #C6D3E4;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color .15s ease;
}
.topbar nav a:hover, .topbar nav a:focus-visible { color: #fff; }

.btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #05331A !important;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 13.5px;
    text-decoration: none;
    white-space: nowrap;
}
.btn-wa:hover { background: #1FBA5A; }
.btn-wa .br { width: 18px; height: 18px; color: #05331A; }

.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; width: 42px; height: 42px; color: #fff; font-size: 22px; cursor: pointer; margin-left: auto; }

/* ---------------- Pie ---------------- */
.pie { background: #0F1A31; color: #B9C6DE; padding: 56px 0 30px; font-size: 14px; }
.pie-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px; }
.pie a { color: #B9C6DE; text-decoration: none; }
.pie a:hover { color: #fff; }
.pie h4 { color: #fff; margin: 0 0 12px; font-size: 16px; }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pie .logo { display: inline-flex; align-items: center; gap: 10px; }
.pie .logo img { height: 30px; width: auto; }
.pie .logo b { font-family: var(--f-head); font-size: 20px; color: #F3F5F9; letter-spacing: -0.02em; }
.pie .logo b span { color: #6FA6D8; }
.pie .ct { display: inline-flex; align-items: center; gap: 10px; }
.pie .ct .ic { width: 22px; height: 22px; color: #6FA6D8; }
.pie .ct--off { opacity: .6; cursor: default; }
.pie li.ct { display: flex; }
.pie .legal {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 22px;
    margin-top: 6px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.pie .interno { font-family: var(--f-mono); font-size: 12px; opacity: .7; }
@media (max-width: 760px) { .pie-grid { grid-template-columns: 1fr; } }

/* Eslogan bicolor: gris + azul de marca, en mono (regla de marca) */
.slogan { font-family: var(--f-mono); font-weight: 700; }
.slogan .t1 { color: #9AA5B8; }
.slogan .t2 { color: #3D79AD; }
.pie .slogan { font-size: 15px; margin-top: 14px; }

/* WhatsApp flotante: mismo canal unico de contacto */
.wa-flotante {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 30px -8px rgba(20,33,61,.6);
    transition: transform .2s, background .2s;
}
.wa-flotante:hover { transform: scale(1.07); background: #20BD5A; }
.wa-flotante .br { width: 32px; height: 32px; }

/* ---------------- Botones ---------------- */
.btn-primary, .btn-ghost {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
    padding: 13px 26px;
    border-radius: 999px;
    transition: transform .12s ease, background .15s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #4A88BE; transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(255,255,255,.28); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.09); }

/* Boton de vidrio de la portada y del cierre (unico llamado a WhatsApp) */
.btn-glass {
    display: inline-block;
    padding: 1px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(157,192,227,.55), rgba(61,121,173,.25));
    box-shadow: 0 12px 40px -12px rgba(61,121,173,.6);
    text-decoration: none;
}
.btn-glass > span {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    border-radius: 17px;
    background: rgba(20,33,61,.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    font-weight: 600;
    font-size: 16.5px;
    transition: background .25s, transform .25s;
}
.btn-glass:hover > span { background: rgba(44,68,135,.9); transform: translateY(-2px); }
.btn-glass .ic { transition: transform .25s; }
.btn-glass:hover .ic { transform: translateX(4px); }
.btn-glass .lbl { text-align: left; }

/* ---------------- Paths animados (fondo de la portada, del CTA y de banners) ---------------- */
.bp-wrap { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bp { position: absolute; inset: 0; width: 100%; height: 100%; }
.bp path { vector-effect: non-scaling-stroke; }
.bp .flow { stroke-dasharray: .32 1.68; animation: flow var(--d, 24s) linear infinite; }
@keyframes flow { from { stroke-dashoffset: 2; } to { stroke-dashoffset: 0; } }

/* ---------------- Portada ---------------- */
.hero-home {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient(90% 70% at 50% 0%, #1d3466 0%, #14213D 55%, #0f1a31 100%);
    color: #fff;
}
.hero-home::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(15,26,49,.9));
    z-index: -1;
}
.hh-in {
    min-height: min(88vh, 780px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 72px 20px 100px;
}
.hh-kicker {
    font-size: 14.5px;
    color: #B9C6DE;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.05);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 26px;
    animation: fade 1s .1s both;
}
.hero-home h1 {
    font-size: clamp(3.4rem, 16vw, 9rem);
    font-weight: 700;
    letter-spacing: -.05em;
    line-height: 1;
    margin-bottom: 14px;
    color: #fff;
}
.ltr {
    display: inline-block;
    color: #fff;
    animation: rise 1s cubic-bezier(.16,1,.3,1) both;
    animation-delay: calc(var(--i) * 55ms + 180ms);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .ltr {
        background: linear-gradient(180deg, #fff 20%, #9DC0E3 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }
}
@keyframes rise { from { opacity: 0; transform: translateY(70px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hero-home .slogan { font-size: clamp(1.15rem, 3vw, 1.8rem); margin-bottom: 22px; animation: fade 1s .95s both; }
.hh-sub { max-width: 560px; color: #C3CDE0; font-size: 16.5px; margin-bottom: 34px; animation: fade 1s 1.1s both; }
.hero-home .btn-glass { animation: fade 1s 1.25s both; }

/* Cabecera de las paginas internas (agendar): la misma piel, mas baja */
.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient(90% 120% at 50% 0%, #1d3466 0%, #14213D 60%, #0f1a31 100%);
    color: #fff;
    padding: 74px 0 80px;
}
.hero h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; margin-bottom: 16px; }
.hero p.lead { color: #BECBDD; font-size: 16.5px; max-width: 46ch; margin: 0; }
.hero .eyebrow { color: #8FBBE6; }

/* ---------------- Franja de confianza (sin tarjetas) ---------------- */
.tira { background: var(--white); border-bottom: 1px solid var(--line); }
.tira-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.tira-item { display: flex; gap: 12px; align-items: flex-start; padding: 26px 22px; border-left: 1px solid var(--line); }
.tira-item:first-child { border-left: 0; padding-left: 0; }
.tira-item .ic { color: var(--blue); margin-top: 2px; }
.tira-item b { display: block; font-family: var(--f-head); font-size: 16px; line-height: 1.25; }
.tira-item span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.45; margin-top: 3px; }
@media (max-width: 900px) {
    .tira-grid { grid-template-columns: 1fr 1fr; }
    .tira-item:nth-child(3) { border-left: 0; padding-left: 0; }
    .tira-item { border-top: 1px solid var(--line); }
    .tira-item:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 520px) {
    .tira-grid { grid-template-columns: 1fr; }
    .tira-item { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
    .tira-item:first-child { border-top: 0; }
}

/* ---------------- Secciones ---------------- */
.seccion { padding: clamp(60px, 9vw, 112px) 0; }
.seccion-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.seccion-head h2, .split h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.seccion-head p, .split .lead { color: var(--muted); margin-top: 14px; font-size: 16.5px; }
.seccion-head.center { max-width: none; text-align: center; }
.seccion-head.center p { max-width: 52ch; margin-inline: auto; }
.seccion--claro { background: var(--white); border-block: 1px solid var(--line); }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split ul.pts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.split ul.pts li { display: flex; gap: 12px; align-items: flex-start; }
.split ul.pts .ic { color: var(--blue); margin-top: 3px; }
.split ul.pts b { font-weight: 600; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }


/* ---------------- Ficha de unidad (portada): etiqueta con folio ---------------- */
.folio {
    font-family: var(--f-mono);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--blue-deep);
}
/* Insignias de grado: A azul, B azul profundo, C con contorno */
.grado {
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--deep);
    color: #fff;
    white-space: nowrap;
}
.grado--a { background: var(--blue); }
.grado--c { background: transparent; color: var(--ink); border: 1px solid var(--muted); }

.chip {
    font-size: 12.5px;
    font-weight: 500;
    background: var(--chip);
    color: var(--ink);
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.tagf {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 30px 28px 24px;
    transform: rotate(-1.6deg);
    box-shadow: 0 30px 60px -30px rgba(20,33,61,.45);
    max-width: 440px;
    justify-self: center;
    width: 100%;
}
.tagf::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 50%;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--line);
}
.tagf-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-bottom: 14px; border-bottom: 1.5px dashed var(--line); }
.tagf .folio { font-size: 1.25rem; letter-spacing: .02em; color: var(--ink); }
.tagf-foto { height: 170px; margin-top: 14px; display: flex; align-items: center; justify-content: center; background: #F7F9FC; border-radius: 10px; padding: 12px; }
.tagf-foto img { width: 100%; height: 100%; object-fit: contain; }
.tagf-foto .vacio { color: #A9B4C4; font-size: 13px; }
.tagf h3 { font-size: 1.25rem; margin-top: 16px; }
.tagf-specs { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.tagf-link { display: block; margin-top: 16px; text-align: center; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--link); border: 1.5px solid var(--btn); padding: 10px; border-radius: 12px; transition: background .2s, color .2s; }
.tagf-link:hover { background: var(--btn); color: #fff; }
.ficha-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 14px; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks .ic { width: 18px; height: 18px; color: #fff; background: var(--blue); border-radius: 50%; padding: 3px; stroke-width: 2.6; }

/* ---------------- Medidores de marca ----------------
   Se calculan en el servidor y se llenan una sola vez al entrar en vista. */
.vsum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; font-size: 13.5px; }
.vsum b { font-family: var(--f-mono); }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.seg i { height: 6px; border-radius: 99px; background: var(--chip); transform-origin: left; }
.seg i.ok { background: linear-gradient(90deg, var(--g1), var(--g2)); transition: transform .5s ease; transition-delay: calc(var(--k, 0) * 130ms); }
.js .seg:not(.in) i.ok { transform: scaleX(0); }

.gauge-row { margin-top: 20px; padding-top: 16px; border-top: 1.5px dashed var(--line); display: flex; align-items: center; gap: 18px; }
.gauge { position: relative; width: 88px; height: 88px; flex: none; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.gauge .trk { stroke: var(--chip); }
.gauge .val { stroke-dasharray: 254.5; stroke-dashoffset: var(--off); transition: stroke-dashoffset 1.5s cubic-bezier(.2,.8,.2,1); }
.js .gauge:not(.in) .val { stroke-dashoffset: 254.5; }
.gauge b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-mono); font-size: 1.2rem; }
.gauge-row .lbl b { display: block; font-family: var(--f-head); font-size: 16px; }
.gauge-row .lbl span { color: var(--muted); font-size: 13.5px; line-height: 1.4; display: block; margin-top: 2px; }

.meter { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; color: var(--muted); }
.meter .bar { height: 6px; border-radius: 99px; background: var(--chip); overflow: hidden; }
.meter .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--g1), var(--g2)); transform-origin: left; transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.js .meter:not(.in) .bar i { transform: scaleX(0); }
.meter b { font-family: var(--f-mono); color: var(--ink); }
.vmini { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; font-size: 13.5px; color: var(--muted); }
.vmini .seg { margin-top: 0; }

/* Barra de bateria de la pagina de detalle (misma piel que .meter) */
.bateria { margin: 0 0 14px; }
.bateria-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.bateria-top b { font-family: var(--f-mono); color: var(--ink); }
.bateria-barra { height: 6px; background: var(--chip); border-radius: 99px; overflow: hidden; }
.bateria-barra span { display: block; height: 100%; background: linear-gradient(90deg, var(--g1), var(--g2)); border-radius: 99px; }

/* ---------------- Verificacion: panel + lista con filetes ---------------- */
.verif { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: stretch; }
@media (max-width: 900px) { .verif { grid-template-columns: 1fr; } }
.clean {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    color: #fff;
    border-radius: 28px 28px 90px 28px;
    padding: clamp(28px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 36px;
    min-height: 360px;
}
.clean::before { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(61,121,173,.55), transparent 65%); }
.clean .ic { width: 44px; height: 44px; color: #9DC0E3; stroke-width: 1.5; position: relative; }
.clean h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); position: relative; margin-top: 18px; }
.clean p { color: #C3CDE0; margin-top: 12px; position: relative; }
.clean .rule { position: relative; font-family: var(--f-mono); font-size: 16px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; color: #fff; }
.vlist { list-style: none; margin: 0; padding: 0; align-self: center; width: 100%; }
.vlist li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.vlist li:last-child { border-bottom: 1px solid var(--line); }
.vlist .ic { width: 30px; height: 30px; color: var(--blue); margin-top: 2px; }
.vlist b { font-family: var(--f-head); font-size: 18px; display: block; }
.vlist span { color: var(--muted); font-size: 14.5px; }

/* ---------------- Proceso: linea de tiempo (es una secuencia real) ---------------- */
.steps { list-style: none; margin: 0; padding: 0; position: relative; max-width: 760px; }
.steps::before { content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--blue), var(--line)); }
.steps li { position: relative; padding: 0 0 38px 74px; }
.steps li:last-child { padding-bottom: 0; }
.steps .n { position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--f-mono); font-weight: 700; border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--blue); }
.steps h3 { font-size: 1.3rem; margin-bottom: 6px; padding-top: 10px; }
.steps p { color: var(--muted); max-width: 56ch; }

/* ---------------- Grados: una escala, no tres tarjetas ---------------- */
.scale { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.scale > div { padding: 28px 26px 30px; background: var(--paper); }
.scale > div + div { border-left: 1px solid var(--line); }
.scale .bar { height: 6px; margin: -28px -26px 22px; }
.scale .a .bar { background: var(--blue); }
.scale .b .bar { background: var(--deep); }
.scale .c .bar { background: var(--muted); }
.scale h3 { font-size: 1.4rem; display: flex; align-items: baseline; gap: 10px; }
.scale h3 small { font-family: var(--f-body); font-weight: 400; font-size: 13.5px; color: var(--muted); }
.scale p { color: var(--muted); margin-top: 10px; font-size: 15px; }
@media (max-width: 760px) { .scale { grid-template-columns: 1fr; } .scale > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------------- Encabezado enmascarado del catalogo ----------------
   La imagen se ve a traves de las letras. Adaptacion en JS/CSS puros del
   componente MaskedHeading (React Bits), sin GSAP.                       */
.seccion-head h2.mh {
    margin: 6px 0 0;
    font-size: clamp(3.1rem, 12.5vw, 8.6rem);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.04;
    text-wrap: balance;
    text-align: center;
    padding: .02em .04em .12em;
    color: var(--navy);
    background-image: url("img/mh-teclado.svg");
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 125% auto;
    clip-path: inset(-.1em -.05em -.12em -.05em);
    transition: clip-path 1.2s cubic-bezier(.65,0,.35,1);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .seccion-head h2.mh { -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
}
.js .seccion-head h2.mh:not(.in) { clip-path: inset(-.1em 100% -.12em -.05em); }

/* ---------------- Tarjeta de equipo + carrusel ---------------- */
.rail-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.rail-bar .cnt { color: var(--muted); font-size: 15px; }
.rail-bar .cnt b { font-family: var(--f-mono); color: var(--ink); font-size: 16px; }
.rail-ctl { display: flex; gap: 10px; }
.rail-ctl button {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--white); color: var(--ink);
    display: grid; place-items: center; cursor: pointer;
    transition: background .2s, color .2s, opacity .2s, border-color .2s;
}
.rail-ctl button:hover:not(:disabled) { background: var(--btn); border-color: var(--btn); color: #fff; }
.rail-ctl button:disabled { opacity: .35; cursor: default; }
.rail-ctl .ic { width: 20px; height: 20px; stroke-width: 2.2; }
.rail-wrap { position: relative; }
.rail-wrap::before, .rail-wrap::after { content: ""; position: absolute; top: 0; bottom: 10px; width: 56px; z-index: 2; pointer-events: none; transition: opacity .25s; }
.rail-wrap::before { left: 0; background: linear-gradient(to right, var(--paper), transparent); opacity: 0; }
.rail-wrap::after { right: 0; background: linear-gradient(to left, var(--paper), transparent); opacity: 1; }
.rail-wrap.scrolled::before { opacity: 1; }
.rail-wrap.at-end::after { opacity: 0; }
@media (max-width: 700px) { .rail-wrap::before, .rail-wrap::after { width: 22px; } }
.rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px; margin: 0 -2px; scroll-padding-inline: 2px; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > .eq { flex: 0 0 min(300px, 82%); scroll-snap-align: start; }
.rail-prog { height: 3px; border-radius: 99px; background: var(--chip); margin-top: 14px; position: relative; overflow: hidden; }
.rail-prog i { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--g1), var(--g2)); }
.more { margin-top: 26px; text-align: center; }
.more a { font-weight: 600; color: var(--link); }

/* Rejilla del catalogo completo (misma tarjeta) */
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }

.eq { background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.eq-ph { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: linear-gradient(160deg, var(--chip), var(--white) 92%); color: var(--blue); text-decoration: none; }
.eq-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 46px 18px 14px; }
.eq-ph > .ic { width: 84px; height: 84px; stroke-width: 1.1; opacity: .55; }
.eq-ph .grado { position: absolute; left: 14px; top: 14px; }
.eq-bd { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.eq-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.eq-top .folio { font-size: 13.5px; }
.eq-gar { display: inline-flex; align-items: center; gap: 5px; }
.eq-gar .ic { width: 15px; height: 15px; color: var(--blue); }
.eq h3 { font-size: 18px; line-height: 1.2; }
.eq h3 a { text-decoration: none; }
.eq-sp { display: flex; flex-wrap: wrap; gap: 6px; }
.eq-buy { margin-top: auto; padding-top: 8px; }
.eq-price { font-family: var(--f-head); font-weight: 700; font-size: 1.55rem; line-height: 1; color: var(--navy); }
.eq-price small { font-family: var(--f-body); font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 6px; }
.eq-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.eq-acts a { text-align: center; text-decoration: none; font-weight: 600; font-size: 14px; padding: 10px 8px; border-radius: 12px; border: 1.5px solid var(--btn); transition: background .2s, color .2s, border-color .2s, transform .1s; }
.eq-acts .ver { color: var(--link); }
.eq-acts .ver:hover { background: var(--btn); color: #fff; }
.eq-acts .apt { background: var(--btn); color: #fff; }
.eq-acts .apt:hover { background: var(--blue); border-color: var(--blue); }
.eq-acts a:active { transform: scale(.97); }

.vacio-estado {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    background: var(--white);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}
.vacio-estado b { display: block; font-family: var(--f-head); color: var(--ink); font-size: 17px; margin-bottom: 6px; }

/* ---------------- Apartado (seccion navy) ---------------- */
.apartado { background: var(--navy); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.apartado::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 100% 0%, rgba(61,121,173,.35), transparent 70%); }
.apartado .seccion-head p { color: #C3CDE0; }
.apartado .eyebrow { color: #8FBBE6; }
.flow3 { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(255,255,255,.16); border-radius: 22px; overflow: hidden; }
.flow3 > div { padding: 30px 28px; }
.flow3 > div + div { border-left: 1px solid rgba(255,255,255,.16); }
.flow3 .big { font-family: var(--f-head); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; color: #fff; }
.flow3 .big em { font-style: normal; color: #6FA6D8; }
.flow3 p { color: #C3CDE0; margin-top: 12px; font-size: 15px; }
@media (max-width: 820px) { .flow3 { grid-template-columns: 1fr; } .flow3 > div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.16); } }
.fine { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; color: #C3CDE0; font-size: 14.5px; }
.fine div { display: flex; gap: 10px; align-items: flex-start; }
.fine .ic { width: 20px; height: 20px; color: #6FA6D8; margin-top: 3px; }
@media (max-width: 720px) { .fine { grid-template-columns: 1fr; } }
.apartado .btn-outline { display: inline-block; margin-top: 30px; text-decoration: none; font-weight: 600; color: #fff; border: 1px solid rgba(255,255,255,.35); padding: 12px 24px; border-radius: 999px; }
.apartado .btn-outline:hover { background: rgba(255,255,255,.1); }

/* ---------------- Entrega ---------------- */
.zonecard { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 6px 28px 10px; width: 100%; max-width: 480px; justify-self: center; }
.zonecard h3 { font-size: 17.5px; padding: 22px 0 14px; }
.zonecard ul { list-style: none; margin: 0; padding: 0; }
.zonecard li { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.zonecard li .ic { color: var(--blue); width: 20px; height: 20px; }
.zonecard li b { font-weight: 600; display: block; line-height: 1.25; }
.zonecard li span { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.entrega-cta { display: inline-block; margin-top: 26px; font-weight: 600; color: var(--link); text-decoration: none; border-bottom: 1.5px solid var(--blue); padding-bottom: 2px; }

/* ---------------- Preguntas frecuentes: tarjetas con panel degradado inclinado ----------------
   Adaptacion en CSS puro de Gradient Card Showcase (21st.dev).                                   */
.faqs .seccion-head { margin-bottom: clamp(28px, 4vw, 48px); }
.sk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px 46px; padding: 28px 18px 24px; }
@media (max-width: 900px) { .sk-grid { grid-template-columns: 1fr; gap: 44px; padding: 16px 14px 16px 16px; } }
.sk { position: relative; isolation: isolate; display: flex; }
.sk-back { position: absolute; top: -14px; bottom: -14px; left: 56px; width: 52%; border-radius: 22px; transform: skewX(15deg); background: linear-gradient(315deg, var(--c1), var(--c2)); transition: transform .5s ease, left .5s ease, width .5s ease; z-index: -1; }
.sk-glow { position: absolute; width: 74px; height: 74px; border-radius: 18px; background: var(--g); filter: blur(34px); opacity: .85; transition: transform .5s ease, opacity .5s ease; z-index: -1; }
.sk-glow.g1 { top: -16px; left: 76px; }
.sk-glow.g2 { bottom: -16px; right: 96px; }
.sk-body {
    position: relative; flex: 1; display: flex; flex-direction: column; gap: 14px;
    padding: 34px 34px 30px; border-radius: 22px;
    background: rgba(14,24,48,.40);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 26px 46px -26px rgba(0,0,0,.65);
    transition: transform .5s ease;
}
@media (max-width: 520px) { .sk-body { padding: 28px 22px 24px; } }
.sk-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--c1), var(--g)); color: #fff; box-shadow: 0 10px 24px -8px var(--g); }
.sk-ico .ic { width: 24px; height: 24px; }
.sk h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); color: #fff; line-height: 1.15; }
.sk-lead { color: #E6EDF8; font-size: 16px; }
.sk-pts, .sk-steps { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 11px; color: #CBD6EA; font-size: 15px; }
.sk-pts li { display: flex; gap: 10px; align-items: flex-start; }
.sk-pts .ic { width: 18px; height: 18px; color: #9DC0E3; margin-top: 3px; stroke-width: 2.4; }
.sk-steps { counter-reset: s; }
.sk-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; counter-increment: s; }
.sk-steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; background: rgba(157,192,227,.2); color: #fff; font-family: var(--f-mono); font-weight: 700; font-size: 12.5px; display: grid; place-items: center; margin-top: 1px; }
.sk-note { font-size: 13.5px; color: #C6D1E4; border-top: 1px dashed rgba(255,255,255,.22); padding-top: 12px; margin-top: 2px; }
.sk-link { margin-top: auto; align-self: flex-start; color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 1.5px solid rgba(157,192,227,.65); padding-bottom: 2px; }
.sk-link:hover { border-color: #fff; }
.sk-link:focus-visible { outline-color: #9DC0E3; }
@media (hover: hover) {
    .sk:hover .sk-back, .sk:focus-within .sk-back { transform: skewX(0); left: 14px; width: calc(100% - 14px); }
    .sk:hover .sk-body, .sk:focus-within .sk-body { transform: translate(-14px, -14px); }
    .sk:hover .sk-glow.g1, .sk:focus-within .sk-glow.g1 { transform: translate(-30px, -8px) scale(1.5); }
    .sk:hover .sk-glow.g2, .sk:focus-within .sk-glow.g2 { transform: translate(30px, 8px) scale(1.5); }
}
.faqs { padding-bottom: clamp(72px, 10vw, 128px); }

/* ---------------- Cierre ---------------- */
.cierre-wrap { padding: clamp(48px, 7vw, 88px) 0 clamp(48px, 7vw, 88px); }
.cta { position: relative; overflow: hidden; background: radial-gradient(90% 100% at 50% 0%, #1d3466, #14213D 70%); color: #fff; border-radius: 32px; isolation: isolate; text-align: center; padding: clamp(48px, 8vw, 96px) 24px; }
.cta h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 12px; }
.cta .slogan { font-size: clamp(1.1rem, 2.6vw, 1.5rem); margin-bottom: 22px; }
.cta p.s { color: #C3CDE0; max-width: 540px; margin: 0 auto 30px; font-size: 16.5px; }
.cta .otros { margin-top: 26px; font-size: 14.5px; color: #B9C6DE; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.cta .otros a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid rgba(157,192,227,.6); padding-bottom: 2px; }
.cta .otros a:hover { border-color: #fff; }


/* ============================================================
   Paginas internas publicas: catalogo, detalle, agendar, solicitud
   ============================================================ */

.precio {
    font-family: var(--f-head);
    font-size: 27px;
    font-weight: 700;
    color: var(--navy);
    margin: 4px 0 0;
}
.precio small { font-size: 12.5px; font-weight: 500; color: var(--muted); display: block; letter-spacing: 0; font-family: var(--f-body); }

/* ---------------- Barra de filtros del catalogo ---------------- */
.filtros { background: var(--white); border-bottom: 1px solid var(--line); padding: 20px 0; }
.filtros form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filtros input[type="text"], .filtros select {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--ink);
}
.filtros input[type="text"] { flex: 1; min-width: 210px; }
.filtros button {
    font-family: 'Poppins', sans-serif;
    background: var(--navy);
    color: #fff;
    border: 0;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.filtros button:hover { background: var(--navy-soft); }
.filtros .limpiar { color: var(--muted); font-size: 13.5px; text-decoration: none; }
.filtros .limpiar:hover { color: var(--ink); }
.conteo { font-family: 'Space Mono', monospace; font-size: 12.5px; color: var(--muted); }

/* ---------------- Detalle de equipo ---------------- */
.detalle-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; padding: 44px 0 70px; }
.galeria .marco {
    background: #F7F9FC;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 26px;
}
.galeria .marco img { width: 100%; height: 100%; object-fit: contain; }
.miniaturas { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.miniaturas img {
    width: 66px; height: 66px; object-fit: contain;
    background: #F7F9FC; padding: 5px;
    border-radius: 8px; border: 2px solid var(--line); cursor: pointer;
}
.miniaturas img.activa { border-color: var(--blue); }

.detalle h1 { font-size: clamp(24px, 3vw, 31px); margin: 10px 0 6px; }
.detalle .precio { font-size: 34px; margin: 14px 0 18px; }

.acciones { display: grid; gap: 9px; margin-bottom: 30px; }
.btn-bloque {
    display: block; text-align: center; text-decoration: none;
    padding: 14px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 14.5px;
}
.btn-bloque.wa { background: #25D366; color: #05331A; }
.btn-bloque.wa:hover { background: #1FBA5A; }
.btn-bloque.sec { border: 1px solid var(--line); color: var(--ink); background: var(--white); }
.btn-bloque.sec:hover { border-color: var(--blue); color: var(--blue-deep); }

.bloque-titulo {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: var(--link);
    border-bottom: 1px solid var(--line);
    padding-bottom: 7px;
    margin: 28px 0 12px;
}
table.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
table.specs td { padding: 9px 2px; border-bottom: 1px solid var(--line); }
table.specs td.k { color: var(--muted); width: 45%; }
table.specs td.v { font-weight: 600; text-align: right; font-family: 'Space Mono', monospace; font-size: 12.5px; }

.aviso-garantia {
    background: var(--blue-wash);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 13.5px;
    color: var(--blue-deep);
    margin-bottom: 20px;
}
.aviso-garantia b { font-family: 'Space Grotesk', sans-serif; }

/* ---------------- Visor de fotos a pantalla completa ----------------
   Con nueve tomas por equipo, poder verlas en grande es parte del
   argumento: el cliente revisa antes de decidir.                       */
.marco--ampliable { cursor: zoom-in; position: relative; }
.marco--ampliable .lupa {
    position: absolute;
    right: 14px; bottom: 14px;
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(20,33,61,.82);
    color: #fff;
    font-size: 12px; font-weight: 500;
    padding: 7px 12px;
    border-radius: 999px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
}
.marco--ampliable:hover .lupa,
.marco--ampliable:focus-visible .lupa { opacity: 1; transform: translateY(0); }

.visor {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(10,17,33,.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 70px;
    animation: aparecerVisor .16s ease;
}
.visor[hidden] { display: none; }
@keyframes aparecerVisor { from { opacity: 0; } to { opacity: 1; } }

.visor__figura {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.visor__figura img {
    max-width: 100%;
    max-height: calc(100vh - 150px);
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}
.visor__pie {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'Space Mono', monospace;
    font-size: 12.5px;
    color: #A8BBD4;
}
.visor__folio { color: #7FB0DA; letter-spacing: .06em; }

.visor__cerrar {
    position: absolute;
    top: 18px; right: 22px;
    background: none; border: 0;
    color: #C6D3E4;
    font-size: 38px; line-height: 1;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 8px;
}
.visor__cerrar:hover { color: #fff; background: rgba(255,255,255,.08); }

.visor__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.16);
    color: #fff;
    font-size: 30px; line-height: 1;
    width: 48px; height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding-bottom: 4px;
}
.visor__nav:hover { background: rgba(255,255,255,.16); }
.visor__nav--prev { left: 18px; }
.visor__nav--next { right: 18px; }

@media (max-width: 680px) {
    .visor { padding: 20px 12px; }
    .visor__figura img { max-height: calc(100vh - 130px); }
    .visor__nav { width: 40px; height: 40px; font-size: 25px; }
    .visor__nav--prev { left: 6px; }
    .visor__nav--next { right: 6px; }
    /* En pantallas tactiles no hay hover: la lupa se muestra siempre */
    .marco--ampliable .lupa { opacity: 1; transform: none; }
}

/* ---------------- Banner del inventario ----------------
   Reproduce el banner de marca en codigo, no como imagen: asi se adapta
   a cualquier ancho y el circuito puede animarse.                        */
.banner-inv {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(115deg, #16233F 0%, #1B2C4E 55%, #223761 100%);
    min-height: 260px;
    display: flex;
    align-items: center;
    padding: 46px 50px;
}
.banner-inv__texto { position: relative; z-index: 2; }
.banner-inv h2 {
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    font-size: clamp(27px, 3.4vw, 42px);
    line-height: 1.12;
    margin: 0;
}
.banner-inv h2 span { color: #7FB0DA; }
.banner-inv__sub {
    font-family: 'Space Mono', monospace;
    color: #A8BBD4;
    font-size: 13.5px;
    letter-spacing: .04em;
    margin: 18px 0 0;
}
.banner-inv__linea {
    display: block;
    width: 74px;
    height: 3px;
    background: #7FB0DA;
    border-radius: 2px;
    margin-top: 16px;
}

/* Circuito */
.banner-inv__svg {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    height: 118%;
    width: auto;
    z-index: 1;
    pointer-events: none;
}
.traza-base path {
    stroke: #3D79AD;
    stroke-width: 2;
    opacity: .38;
    fill: none;
}
/* Un destello corto viaja por cada traza, como una señal que se comprueba */
.traza-pulso path {
    stroke: #9CC5E8;
    stroke-width: 2.4;
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 26 460;
    stroke-dashoffset: 486;
    animation: recorrerTraza 4.4s linear infinite;
}
@keyframes recorrerTraza {
    0%   { stroke-dashoffset: 486; opacity: 0; }
    8%   { opacity: 1; }
    70%  { opacity: 1; }
    85%  { stroke-dashoffset: 0; opacity: 0; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}

.bi-pantalla, .bi-base {
    stroke: #4C86BB;
    stroke-width: 2.4;
    fill: rgba(61,121,173,.10);
}
.bi-pantalla { animation: latirPantalla 5s ease-in-out infinite; }
@keyframes latirPantalla {
    0%, 100% { fill: rgba(61,121,173,.08); }
    50%      { fill: rgba(61,121,173,.20); }
}
.bi-bisagra { fill: #4C86BB; opacity: .55; }

.bi-nodo {
    fill: #6FA5D2;
    animation: pulsarNodo 4.4s ease-in-out infinite;
}
.bi-nodo--grande { fill: #9CC5E8; }
@keyframes pulsarNodo {
    0%, 100% { opacity: .45; }
    45%      { opacity: 1; }
}

@media (max-width: 900px) {
    .banner-inv { min-height: 210px; padding: 36px 34px; }
    .banner-inv__svg { opacity: .5; right: -80px; }
}
@media (max-width: 680px) {
    .banner-inv { padding: 30px 26px; min-height: 180px; }
    .banner-inv__svg { opacity: .28; right: -140px; }
    .banner-inv__sub { font-size: 12px; }
}


/* ---------------- Puntos de entrega ---------------- */
.puntos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}
.punto {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 3px solid var(--blue);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
}
.punto b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 14.5px; margin-bottom: 2px; }
.punto span { font-family: 'Space Mono', monospace; font-size: 11.5px; color: var(--muted); }

/* ---------------- Contenedor para Forms / Bookings ----------------
   Los iframes de Microsoft traen su propio estilo. Se enmarcan en una
   tarjeta de la marca para que no floten sueltos sobre la pagina.
   La altura es generosa: Bookings necesita espacio para servicio +
   calendario + horarios sin generar un scroll dentro del scroll.      */
.embed-marco {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    min-height: 900px;
}
.embed-marco iframe { width: 100%; min-height: 900px; border: 0; display: block; }
.embed-marco--form { min-height: 680px; max-width: 820px; }
.embed-marco--form iframe { min-height: 680px; }

@media (max-width: 680px) {
    .embed-marco { min-height: 780px; border-radius: var(--radius-sm); }
    .embed-marco iframe { min-height: 780px; }
    .embed-marco--form, .embed-marco--form iframe { min-height: 640px; }
}



/* ---------------- Detalle: medidor circular y verificacion ---------------- */
.detalle .gauge-row { margin-top: 6px; padding-top: 0; border-top: 0; }
.detalle .vsum { margin-top: 4px; }
.detalle .checks { margin-top: 14px; }
.nota-apartado { font-size: 13.5px; color: var(--muted); margin: -12px 0 24px; }
.nota-apartado b { color: var(--ink); font-weight: 600; }
.btn-bloque .br { width: 20px; height: 20px; vertical-align: -4px; margin-right: 8px; color: #05331A; display: inline-block; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
    .detalle-grid { grid-template-columns: 1fr; gap: 30px; }
    .topbar nav {
        display: none;
        position: absolute;
        top: 68px; left: 0; right: 0;
        background: var(--navy);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 22px 18px;
        border-top: 1px solid rgba(255,255,255,.1);
    }
    .topbar nav.abierto { display: flex; }
    .topbar nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
    .topbar nav .btn-wa { justify-content: center; margin-top: 14px; padding: 12px 16px; border-bottom: 0; }
    .nav-toggle { display: grid; place-items: center; }
}
@media (max-width: 680px) {
    .hero { padding: 52px 0 60px; }
    .galeria .marco { height: 300px; padding: 16px; }
    .hh-in { padding: 56px 20px 84px; }
}

/* Accesibilidad */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
    /* Sin movimiento, los paths de fondo quedan fijos y el circuito se muestra completo */
    .bp .flow { display: none; }
    .traza-pulso path { stroke-dashoffset: 0; stroke-dasharray: none; opacity: .7; }
    .bi-nodo { opacity: .8; }
    .seccion-head h2.mh { clip-path: none !important; }
}
