/* M3S Technology — presentación premium al estilo de las páginas de producto de Apple.
   Fuente del sistema (SF Pro en Apple, Segoe UI en Windows), mucho aire, fotos grandes,
   mosaicos claros y oscuros, barra de navegación translúcida y movimiento que responde. */

:root {
  --bg: #FFFFFF;
  --tile: #F5F5F7;
  --ink: #1D1D1F;
  --ink-2: #6E6E73;
  --line: #D2D2D7;
  --dark: #000000;
  --dark-2: #161617;
  --dark-ink-2: #A1A1A6;
  --blue: #0066CC;
  --blue-hover: #0058B0;
  --blue-dark: #2997FF;
  --navy: #0B1E3F;
  --radius: 22px;
  --radius-s: 14px;
  --radius-btn: 0; /* esquinas de todos los botones: rectas, a pedido del cliente */
  --wrap: 1120px;
  --wide: 1360px;
  --gut: clamp(18px, 4vw, 40px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.47; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
::selection { background: #B4D5FE; color: var(--ink); }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid rgba(0, 113, 227, .55); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wide { max-width: var(--wide); margin: 0 auto; padding: 0 clamp(12px, 1.6vw, 22px); }
p { margin: 0 0 1em; }

/* ---------- Tipografía: tracking según tamaño ---------- */
h1, h2, h3 { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; font-weight: 600; text-wrap: balance; }
.display { font-size: clamp(2.5rem, 6.2vw, 5rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
h2, .h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.07; letter-spacing: -0.03em; font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.14; letter-spacing: -0.02em; }
.lead { font-size: clamp(1.12rem, 1.9vw, 1.45rem); line-height: 1.38; color: var(--ink-2); letter-spacing: -0.015em; max-width: 46ch; text-wrap: balance; }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Botones tipo píldora ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px; border-radius: var(--radius-btn); border: 1px solid var(--blue);
  background: var(--blue); color: #fff; font: inherit; font-size: 1.02rem; font-weight: 500; letter-spacing: -0.01em;
  cursor: pointer; text-decoration: none; transition: background-color .2s, transform .12s ease-out;
}
.btn:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn.line, .btn.ghost { background: transparent; color: var(--blue); }
.btn.line:hover, .btn.ghost:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.btn.small { min-height: 34px; padding: 0 16px; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.center .actions { justify-content: center; }
.links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 1.08rem; }
.center .links { justify-content: center; }

/* ---------- Navegación translúcida ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .08); }
@media (prefers-reduced-transparency: reduce) { .site-header { background: #fff; backdrop-filter: none; } }
.site-header .wrap { max-width: var(--wide); display: flex; align-items: center; gap: 20px; min-height: 68px; position: relative; }
.brand img { height: 52px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; color: rgba(0, 0, 0, .8); font-size: .9rem; border-radius: 8px; transition: color .2s; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav .btn:hover { color: #fff; }
.nav .btn { border-radius: var(--radius-btn); min-height: 32px; padding: 0 16px; font-size: .86rem; margin-left: 10px; color: #fff; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; border-radius: 10px; cursor: pointer; color: var(--ink); align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease-out); }
.menu-btn span::before { content: ""; position: absolute; top: 6px; }
.menu-btn span { transform: translateY(-3px); }
.menu-btn[aria-expanded="true"] span { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(-6px) rotate(-90deg); }
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - 68px); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 16px calc(var(--gut) + 8px) 40px;
    background: #fff; opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity .25s, transform .35s var(--ease-out), visibility 0s .35s; }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .25s, transform .35s var(--ease-out); }
  .nav a { font-size: 1.4rem; font-weight: 600; padding: 10px 0; color: var(--ink); }
  .nav .btn { margin: 14px 0 0; min-height: 46px; font-size: 1rem; align-self: flex-start; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.tile-bg, .section.sheet { background: var(--tile); }
.section.dark { background: var(--dark); color: #F5F5F7; }
.section.dark .lead, .section.dark .muted, .section.dark .section-head p { color: var(--dark-ink-2); }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head p { text-wrap: balance; color: var(--ink-2); font-size: clamp(1.06rem, 1.6vw, 1.3rem); margin: 14px auto 0; max-width: 46ch; }

/* Encabezado de páginas interiores */
.page-hero { padding: clamp(56px, 9vw, 112px) 0 clamp(36px, 6vw, 72px); text-align: center; }
.page-hero .wrap { display: flex; flex-direction: column; align-items: center; }
.page-hero .display { max-width: 16ch; }
.page-hero .lead { margin: 20px auto 0; max-width: 46ch; }
.crumb { font-size: .86rem; color: var(--ink-2); margin: 0 0 18px; }
.crumb a { color: var(--ink-2); }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) { .intro > * { animation: rise .9s var(--ease-out) both; } .intro > :nth-child(2) { animation-delay: .06s; } .intro > :nth-child(3) { animation-delay: .12s; } .intro > :nth-child(4) { animation-delay: .18s; } }

/* ---------- Portada: héroe azul noche (propuesta A) ---------- */
.hero-b { background: var(--navy); color: #fff; border-radius: 0 0 clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px); padding: clamp(40px, 6vw, 80px) 0 0; overflow: hidden; }
.hero-b .wrap { max-width: var(--wide); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 4vw, 56px); align-items: end; }
.hero-copy { padding-bottom: clamp(40px, 6vw, 88px); align-self: center; }
.hero-b .who { color: #9DB8F2; font-weight: 600; font-size: 1rem; margin: 0 0 12px; }
.hero-b .display { font-size: clamp(2.3rem, 4.8vw, 4.2rem); max-width: 14ch; }
.hero-b .lead { color: #C9D5EE; margin: 18px 0 28px; max-width: 40ch; }
.btn.white { background: #fff; border-color: #fff; color: var(--navy); }
.btn.white:hover { background: #E3EBFA; border-color: #E3EBFA; color: var(--navy); }
.btn.on-blue { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn.on-blue:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
@media (prefers-reduced-motion: no-preference) { .hero-shot { animation: rise 1.1s var(--ease-out) .2s both; } }
@media (max-width: 860px) {
  .hero-b .wrap { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-b .display { font-size: clamp(2.2rem, 9.5vw, 3rem); }
  .hero-b .actions { flex-wrap: nowrap; gap: 10px; }
  .hero-b .actions .btn { padding: 0 18px; }
}

/* Marcas: una sola línea en movimiento continuo; se detiene al pasar el mouse o con foco */
.brand-strip { padding: clamp(22px, 3vw, 36px) 0 0; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover ul, .marquee:focus-within ul { animation-play-state: paused; }
.marquee li { flex: 0 0 168px; }
.marquee a { display: grid; place-items: center; height: 76px; padding: 14px 18px; background: var(--tile); border-radius: var(--radius-s); transition: background-color .2s; }
.marquee a:hover { background: #ECECF0; }
.marquee img { max-height: 34px; width: auto; mix-blend-mode: multiply; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
@media (max-width: 860px) { .marquee li { flex-basis: 132px; } .marquee a { height: 62px; padding: 10px 14px; } .marquee img { max-height: 26px; } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee ul { animation: none; }
  .marquee li[aria-hidden="true"] { display: none; }
}

/* "¿Qué necesita?": cuadrícula compacta de líneas */
.needs h2 { margin-bottom: clamp(18px, 3vw, 32px); }
.need-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.need a { display: flex; flex-direction: column; height: 100%; background: var(--tile); border-radius: var(--radius); padding: 20px 18px 18px; color: var(--ink); transition: background-color .2s, transform .12s ease-out; }
.need a:hover { background: #ECECF0; text-decoration: none; }
.need a:active { transform: scale(.98); }
.need img { width: 100%; height: 150px; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--ease-out); }
.need a:hover img { transform: scale(1.04); }
.need span { display: grid; gap: 2px; margin-top: 14px; }
.need strong { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.need small { color: var(--ink-2); font-size: .88rem; }
.need em { font-style: normal; color: var(--ink-2); font-size: .92rem; margin-top: 6px; }
.need.big { grid-column: span 2; }
.need.big a { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 12px; }
.need.big img { height: 220px; }
/* El cliente puede agregar o quitar líneas: la última se estira para que la fila final nunca quede con un hueco (4 columnas, la primera ocupa 2). */
.need:last-child:not(.big):nth-child(4n+2) { grid-column: span 2; }
.need:last-child:not(.big):nth-child(4n+1) { grid-column: span 3; }
.need:last-child:not(.big):nth-child(4n) { grid-column: span 4; }
.need:last-child:not(.big):is(:nth-child(4n+2), :nth-child(4n+1), :nth-child(4n)) a { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 12px; }
@media (max-width: 860px) {
  .need-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .need a { padding: 14px 12px 12px; border-radius: 18px; }
  .need img { height: 96px; }
  .need strong { font-size: 1rem; }
  .need small { font-size: .8rem; }
  .need.big img { height: 130px; }
  /* En 2 columnas solo queda hueco si el total es par */
  .need:last-child:not(.big) { grid-column: auto; }
  .need:last-child:not(.big) a { display: flex; }
  .need:last-child:not(.big):nth-child(even) { grid-column: span 2; }
  .need:last-child:not(.big):nth-child(even) a { display: grid; }
}

/* "Más que un proveedor": banda azul noche con cuatro puntos */
.why-band { background: var(--navy); color: #fff; }
.why-band .section-head p { color: #C9D5EE; }
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.why-grid li { background: rgba(255, 255, 255, .07); border-radius: var(--radius); padding: 26px 24px 28px; }
.why-grid svg { width: 26px; height: 26px; fill: none; stroke: #8DB4FF; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.why-grid h3 { font-size: 1.15rem; margin-bottom: 6px; letter-spacing: -0.015em; }
.why-grid p { margin: 0; color: #B7C5E2; font-size: .96rem; line-height: 1.45; }
@media (max-width: 980px) { .why-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .why-grid li { padding: 18px 16px 20px; border-radius: 18px; } .why-grid svg { margin-bottom: 12px; } .why-grid h3 { font-size: 1.02rem; } .why-grid p { font-size: .88rem; } }

/* Videos: uno destacado y una lista para cambiarlo, sin deslizar de lado */
.vfeature { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: start; }
.vmain h3 { font-size: 1.2rem; margin-top: 14px; }
.vmain .tag { display: block; margin-top: 4px; color: var(--ink-2); font-size: .88rem; }
.vside { display: grid; gap: 16px; }
.vlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vrow { width: 100%; display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; align-items: center; padding: 8px; border: 0; border-radius: var(--radius-s); background: var(--tile); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background-color .2s, transform .12s ease-out; }
.vrow:hover { background: #ECECF0; }
.vrow:active { transform: scale(.98); }
.vrow img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.vrow strong { display: block; font-weight: 600; font-size: .98rem; line-height: 1.32; }
.vrow small { color: var(--ink-2); font-size: .84rem; }
.vside .btn { justify-self: start; }
@media (max-width: 860px) { .vfeature { grid-template-columns: 1fr; } .vrow { grid-template-columns: 112px minmax(0, 1fr); } }

/* Videos */
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; border: 0; padding: 0; width: 100%; cursor: pointer; display: block; overflow: hidden; border-radius: var(--radius-s); }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.yt:hover img { transform: scale(1.04); }
.yt .play { position: absolute; left: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; transition: transform .12s ease-out; }
.yt:active .play { transform: scale(.94); }
.yt .play::after { content: ""; width: 13px; height: 15px; background: var(--ink); clip-path: polygon(0 0, 100% 50%, 0 100%); margin-left: 3px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-grid h3 { font-size: 1.06rem; letter-spacing: -0.01em; margin-top: 14px; line-height: 1.3; font-weight: 600; }
.video-grid .tag { font-size: .88rem; color: var(--ink-2); margin-top: 4px; display: block; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 24px; }
.video-grid article[hidden] { display: none; }

/* Control segmentado (filtros) */
.filters { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; margin: 0 auto 40px; background: #E8E8ED; border-radius: var(--radius-btn); }
.filters-row { text-align: center; }
.filters button { font: inherit; font-size: .92rem; font-weight: 500; padding: 8px 18px; border: 0; border-radius: var(--radius-btn); background: transparent; color: var(--ink); cursor: pointer; transition: background-color .25s, box-shadow .25s; }
.filters button[aria-pressed="true"] { background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }

/* ---------- Llamado final ---------- */
.cta { background: var(--tile); }
.cta .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
.cta h2 { max-width: 18ch; }
.cta p { text-wrap: balance; color: var(--ink-2); font-size: clamp(1.06rem, 1.6vw, 1.3rem); margin: 16px auto 0; max-width: 44ch; }
.cta .actions { margin-top: 30px; justify-content: center; }
.cta dl { margin: 40px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; font-size: .95rem; }
.cta dl div { display: flex; gap: 8px; }
.cta dt { color: var(--ink-2); }
.cta dd { margin: 0; }

/* ---------- Pie ---------- */
.site-footer { background: var(--tile); color: var(--ink-2); font-size: .8rem; line-height: 1.5; }
.site-footer .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; padding-top: 22px; padding-bottom: 22px; position: relative; }
.site-footer > .wrap::before { content: ""; position: absolute; top: 0; left: var(--gut); right: var(--gut); height: 1px; background: var(--line); }
.site-footer h2 { font-size: .8rem; font-weight: 600; color: var(--ink); margin: 0 0 10px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }
.site-footer .flogo { height: 48px; width: auto; margin-bottom: 12px; mix-blend-mode: multiply; }
.site-footer .legal .wrap { display: block; padding-top: 0; }
.legal-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 16px 0 0; border-top: 1px solid var(--line); }
@media (min-width: 761px) { .legal-in { padding-bottom: 76px; } } /* el botón de WhatsApp no tapa la fila legal */
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Botón de WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #117A3E; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); transition: transform .12s ease-out; }
.wa-float:hover { color: #fff; text-decoration: none; }
.wa-float:active { transform: scale(.94); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float span { display: none; }
@media (max-width: 760px) { .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; } }

/* ---------- Nosotros ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.prose h2 { margin-bottom: 18px; }
.prose p { color: var(--ink-2); font-size: 1.1rem; max-width: 52ch; }
.photo-pair { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.photo-pair img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; border-radius: var(--radius-s); }
.photo-pair img:first-child { aspect-ratio: auto; grid-row: span 2; }
.photo-pair img:first-child:nth-last-child(2) { aspect-ratio: 4 / 5; grid-row: auto; } /* con solo 2 fotos van lado a lado */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.facts div { background: var(--tile); border-radius: var(--radius-s); padding: 18px 20px; }
.facts dt { font-size: .82rem; color: var(--ink-2); }
.facts dd { margin: 4px 0 0; font-weight: 600; font-size: 1.05rem; }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; } }
.section.sheet .split { align-items: stretch; }
.statement { background: var(--bg); border-radius: var(--radius); padding: clamp(32px, 4vw, 52px); }
.statement h2 { margin-bottom: 16px; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.statement p { color: var(--ink-2); font-size: 1.08rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--bg); border-radius: var(--radius); padding: 32px 28px 36px; }
.section.dark .steps li { background: var(--dark-2); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 600; margin-bottom: 20px; }
.steps h3 { font-size: 1.3rem; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-2); }
.section.dark .steps p { color: var(--dark-ink-2); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Marcas ---------- */
.brand-row { display: grid; grid-template-columns: 260px minmax(0, 1fr) 240px; gap: 28px 44px; align-items: start; background: var(--tile); border-radius: var(--radius); padding: clamp(24px, 3.4vw, 44px); margin-bottom: 12px; scroll-margin-top: 80px; }
.brand-logo { background: #fff; border-radius: var(--radius-s); display: grid; place-items: center; padding: 26px; aspect-ratio: 3 / 2; }
.brand-logo img { max-height: 76px; width: auto; }
.brand-row h2 { font-size: clamp(1.7rem, 2.8vw, 2.25rem); }
.brand-row p { margin: 12px 0 0; color: var(--ink-2); max-width: 62ch; }
.brand-row p a { font-weight: 500; }
.spec { margin: 0; display: grid; gap: 14px; align-content: start; }
.spec div { display: grid; gap: 2px; }
.spec dt { color: var(--ink-2); font-size: .82rem; }
.spec dd { margin: 0; font-weight: 600; }
@media (max-width: 960px) { .brand-row { grid-template-columns: 200px 1fr; } .brand-row .spec { grid-column: 2; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 28px; } }
@media (max-width: 640px) { .brand-row { grid-template-columns: 1fr; } .brand-row .spec { grid-column: auto; grid-template-columns: 1fr 1fr; } .brand-logo { max-width: 240px; } }

/* ---------- Productos ---------- */
.cat-strip { position: sticky; top: 69px; z-index: 30; background: rgba(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .08); overflow-x: auto; scrollbar-width: none; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip ul { list-style: none; margin: 0 auto; padding: 10px var(--gut); display: flex; justify-content: center; gap: 4px; white-space: nowrap; width: max-content; min-width: 100%; }
.cat-strip a { display: block; padding: 6px 14px; color: var(--ink); font-size: .88rem; border-radius: var(--radius-btn); transition: background-color .2s, color .2s; }
.cat-strip a:hover { background: var(--tile); text-decoration: none; }
.cat-strip a.active { background: var(--ink); color: #fff; }
.cat { padding: clamp(64px, 8vw, 104px) 0; scroll-margin-top: 120px; }
.cat:nth-of-type(even) { background: var(--tile); }
.cat-head { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; margin-bottom: 14px; }
.cat-head h2 { order: 1; }
.cat-head img { order: 0; height: 30px; width: auto; mix-blend-mode: multiply; }
.cat > .lead, .cat .wrap > .lead { text-align: center; margin: 0 auto 8px; max-width: 46ch; }
.subs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 36px; }
.sub { background: var(--tile); border-radius: var(--radius); padding: 28px 28px 30px; }
.cat:nth-of-type(even) .sub { background: #fff; }
.sub h3 { font-size: 1.25rem; margin-bottom: 12px; }
.sub p { color: var(--ink-2); margin: 0; }
.bullets { list-style: none; margin: 0; padding: 0; color: var(--ink-2); }
.bullets li { padding: 5px 0 5px 24px; position: relative; font-size: .98rem; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%230066CC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 7.5l3 3 6-7'/%3E%3C/svg%3E") no-repeat center / contain; }
.models { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.models li { background: var(--tile); border-radius: var(--radius-s); padding: 22px 18px 16px; display: flex; flex-direction: column; transition: transform .12s ease-out; }
.cat:nth-of-type(even) .models li { background: #fff; }
.models img { aspect-ratio: 4 / 3; width: 100%; object-fit: contain; object-position: center bottom; mix-blend-mode: multiply; }
.models .m { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 14px; margin-top: auto; }
.models .m strong { font-weight: 600; font-size: 1.02rem; }
.models .m a { font-size: .86rem; font-weight: 500; padding: 5px 12px; border-radius: var(--radius-btn); border: 1px solid var(--blue); }
.models .m a:hover { background: var(--blue); color: #fff; text-decoration: none; }
.note { font-size: .82rem; color: var(--ink-2); margin-top: 16px; text-align: center; }

/* ---------- Descargas ---------- */
.downloads { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; background: var(--tile); border-radius: var(--radius); overflow: hidden; }
.downloads li { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px 26px; }
.downloads li + li { border-top: 1px solid var(--line); }
.downloads .logo { background: #fff; border-radius: 12px; height: 76px; display: grid; place-items: center; padding: 12px; }
.downloads .logo img { max-height: 44px; width: auto; }
.downloads h2 { font-size: 1.2rem; letter-spacing: -0.015em; }
.downloads p { margin: 4px 0 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 640px) { .downloads li { grid-template-columns: 1fr; gap: 12px; } .downloads .logo { width: 150px; } }

/* ---------- Noticias ---------- */
.news-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; align-items: stretch; background: var(--tile); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.news-feature img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-feature > div { padding: clamp(28px, 4vw, 52px); align-self: center; }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.news-item { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 22px; padding: 22px; background: var(--tile); border-radius: var(--radius); height: 100%; }
.news-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
time { font-size: .85rem; color: var(--ink-2); display: block; margin-bottom: 6px; }
.news-item h3 { font-size: 1.15rem; margin-bottom: 8px; }
.news-feature h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 12px; }
.news-item p, .news-feature p { margin: 0; color: var(--ink-2); font-size: .97rem; }
details.more summary { cursor: pointer; color: var(--blue); font-weight: 500; margin-top: 10px; }
details.more p { margin-top: 10px; }
@media (max-width: 900px) { .news-list { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .news-feature { grid-template-columns: 1fr; } .news-item { grid-template-columns: 1fr; } .news-item img { aspect-ratio: 16 / 9; } }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px; align-items: start; }
.contact > div, form.quote { background: var(--tile); border-radius: var(--radius); padding: clamp(24px, 3.4vw, 44px); }
.contact h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.channels { list-style: none; margin: 20px 0 0; padding: 0; background: #fff; border-radius: var(--radius-s); overflow: hidden; }
.channels li { padding: 14px 18px; display: grid; grid-template-columns: 130px 1fr; gap: 14px; }
.channels li + li { border-top: 1px solid var(--line); }
.channels span { color: var(--ink-2); font-size: .9rem; }
.channels a { font-weight: 500; }
form.quote { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--ink-2); font-weight: 400; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; caret-color: var(--blue); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #AEAEB2; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, .18); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #C40000; }
.error { color: #C40000; font-size: .86rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.map { margin-top: 16px; border: 0; border-radius: var(--radius-s); aspect-ratio: 16 / 10; width: 100%; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } .channels li { grid-template-columns: 1fr; gap: 2px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

body:has(.nav.open) .wa-float { display: none; }

@media (max-width: 760px) { .site-footer .wrap > div:nth-child(2), .site-footer .wrap > div:nth-child(4) { display: none; } } /* en el celular esos enlaces ya están en el menú */


/* =====================================================================
   Movimiento
   Una sola curva (salida exponencial), entradas que se "materializan" (opacidad +
   desplazamiento corto + desenfoque), respuesta inmediata al tocar, y nada si el
   usuario pidió reducir el movimiento.
   ===================================================================== */

/* Transición entre páginas (navegadores con View Transitions entre documentos) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.wa-float { view-transition-name: wa-float; }
::view-transition-old(root) { animation: vt-out .26s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease-out) both; }
::view-transition-group(site-header), ::view-transition-group(wa-float) { animation-duration: .4s; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px) scale(.995); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }

/* Respaldo para navegadores sin esa API: la página se desvanece al salir y entra suave */
html.js:not(.vt) body { animation: page-in .45s var(--ease-out) both; }
html.leaving body { opacity: 0; transition: opacity .2s ease-in; }
@keyframes page-in { from { opacity: 0; } }

/* Aparición al hacer scroll, escalonada dentro de cada grupo */
html.js [data-reveal] { opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), filter .8s var(--ease-out); transition-delay: var(--d, 0ms); }
html.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

/* Cabecera: gana cuerpo al bajar */
.site-header { transition: box-shadow .35s var(--ease-out), background-color .35s; }
.site-header.scrolled { box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 10px 30px rgba(0, 0, 0, .05); }

/* Héroe: la máquina sube un poco más lento que la página (paralaje suave) */
.slides { will-change: translate; }

/* Tarjetas de líneas: se elevan al pasar el mouse, se hunden al tocar */
.need a { transition: background-color .25s, transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.need a:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16, 24, 40, .08); }
.need a:active { transform: translateY(-1px) scale(.985); transition-duration: .12s; }
.why-grid li { transition: background-color .3s, transform .45s var(--ease-out); }
.why-grid li:hover { background: rgba(255, 255, 255, .11); transform: translateY(-3px); }
.models li:hover { transform: translateY(-3px); }
.models li { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.models li:hover { box-shadow: 0 14px 32px rgba(16, 24, 40, .07); }
.brand-row, .downloads li, .news-item { transition: transform .45s var(--ease-out); }
.news-item:hover { transform: translateY(-3px); }

/* Imágenes que cargan después: aparecen con un fundido, nunca de golpe */
img.fade { opacity: 0; transition: opacity .6s var(--ease-out); }
img.fade.ready { opacity: 1; }

/* Menú móvil: los enlaces entran escalonados */
@media (max-width: 980px) {
  .nav.open a { animation: menu-in .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms + 60ms); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(12px); } }

/* Video destacado: cambio con fundido */
.vmain.swap .yt, .vmain.swap h3, .vmain.swap .tag { animation: swap-in .5s var(--ease-out) both; }
@keyframes swap-in { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }

/* Barra de categorías de Productos: la píldora activa se desliza */
.cat-strip ul { position: relative; }
.cat-strip .pill-ind { position: absolute; left: 0; top: 10px; height: calc(100% - 20px); border-radius: var(--radius-btn); background: var(--ink); z-index: 0;
  transition: transform .5s var(--ease-out), width .5s var(--ease-out); pointer-events: none; }
.cat-strip li { position: relative; z-index: 1; }
.cat-strip.has-ind a.active { background: transparent; }

/* Respeto total a "reducir movimiento" */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html.js:not(.vt) body { animation: none; }
  html.js [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .slides { translate: none !important; }
}


/* ---------- Héroe: máquinas que van cambiando ---------- */
.hero-shot { --dur: 5s; display: grid; gap: 14px; padding-bottom: clamp(20px, 3vw, 32px); }
.slides { display: grid; align-items: end; }
.slide { grid-area: 1 / 1; margin: 0; display: flex; justify-content: center; align-items: flex-end;
  opacity: 0; transform: translateY(14px) scale(.965); filter: blur(8px);
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), filter .9s var(--ease-out); pointer-events: none; }
.slide.is-on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.slide img { width: auto; max-width: 100%; height: clamp(260px, 38vw, 500px); object-fit: contain; object-position: center bottom; }
.slide-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.caps { display: grid; min-height: 44px; }
.cap { grid-area: 1 / 1; display: grid; color: #fff; text-decoration: none; animation: cap-in .7s var(--ease-out) both; }
.cap[hidden] { display: none; }
.cap:hover { text-decoration: none; }
.cap:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.cap strong { font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.cap span { color: #9DB8F2; font-size: .88rem; }
@keyframes cap-in { from { opacity: 0; transform: translateY(6px); } }
.dots { display: flex; align-items: center; gap: 6px; }
.dot { transition: width .5s var(--ease-out); width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dot i { display: block; width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .35); overflow: hidden; position: relative; transition: width .5s var(--ease-out), background-color .3s; }
.dot:hover i { background: rgba(255, 255, 255, .6); }
.dot.is-on { width: 46px; }
.dot.is-on i { width: 36px; background: rgba(255, 255, 255, .28); }
.dot.is-on i::after { content: ""; position: absolute; inset: 0; background: #fff; border-radius: inherit; transform-origin: left; animation: dot-fill var(--dur) linear both; }
.hero-shot.paused .dot.is-on i::after { animation-play-state: paused; }
.hero-shot.stopped .dot.is-on i::after { animation: none; transform: none; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 860px) { .slide img { height: 260px; } .slide-bar { gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .slide { transform: none; filter: none; transition: opacity .3s; } .cap { animation: none; } }

/* Productos en el celular: modelos en 2 columnas, tarjeta compacta (nombre arriba, Cotizar debajo) */
@media (max-width: 640px) {
  .models { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
  .models li { padding: 14px 12px 12px; border-radius: 16px; }
  .models .m { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; }
  .models .m strong { font-size: .95rem; line-height: 1.2; }
  .models .m a { text-align: center; padding: 6px 10px; font-size: .84rem; }
}



/* ---------- Productos: subsecciones con su texto y sus propias fotos ---------- */
.blocks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: clamp(28px, 4vw, 44px); }
.block { background: var(--tile); border-radius: var(--radius); padding: clamp(22px, 3.2vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 2.4vw, 28px); min-width: 0; }
.cat:nth-of-type(even) .block { background: #fff; }
.block-text { display: grid; gap: 10px; max-width: 76ch; }
.block-text h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom: 2px; }
.block-text p { color: var(--ink-2); margin: 0; }
.block-text .btn { justify-self: start; margin-top: 8px; }
.block .models { margin: 0; }
.block .models li { background: #fff; }
.cat:nth-of-type(even) .block .models li { background: var(--tile); }
.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.shots li { position: relative; background: #fff; border-radius: var(--radius-s); aspect-ratio: 4 / 3; overflow: hidden; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.shots li:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(16, 24, 40, .07); }
.cat:nth-of-type(even) .shots li { background: var(--tile); }
.shots li { min-width: 0; }
.shots img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; mix-blend-mode: multiply; border-radius: 8px; }
.ficha { margin: 4px 0 0; background: #fff; border-radius: var(--radius-s); padding: clamp(12px, 2vw, 20px); }
.cat:nth-of-type(even) .ficha { background: var(--tile); }
.ficha img { width: 100%; height: auto; border-radius: 8px; }
.ficha a:hover { text-decoration: none; }
.ficha figcaption { margin-top: 10px; font-size: .88rem; color: var(--ink-2); }
.ficha figcaption a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .block { padding: 18px 14px; border-radius: 18px; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .shots li { border-radius: 12px; }
  .shots img { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
}


/* ---------- Menú del celular: lista con flechas, página actual en azul y acciones abajo ---------- */
.nav-extra { display: none; }
@media (max-width: 980px) {
  .nav { padding: 6px calc(var(--gut) + 6px) calc(24px + env(safe-area-inset-bottom)); }
  .nav > a:not(.btn) { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; padding: 15px 2px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav > a:not(.btn)::after { content: ""; width: 9px; height: 9px; border-top: 2px solid #C7C7CC; border-right: 2px solid #C7C7CC; transform: rotate(45deg); margin-right: 6px; transition: border-color .2s, transform .3s var(--ease-out); }
  .nav > a:not(.btn):active::after { transform: translateX(3px) rotate(45deg); }
  .nav > a[aria-current="page"] { color: var(--blue); }
  .nav > a[aria-current="page"]::after { border-color: var(--blue); }
  .nav > .btn { display: none; }
  .nav-extra { display: grid; gap: 10px; margin-top: auto; padding-top: 28px; }
  .nav-extra .btn { width: 100%; min-height: 52px; font-size: 1.02rem; font-weight: 600; margin: 0; border-radius: var(--radius-btn); }
  .nav-extra .btn.wa { background: #117A3E; border-color: #117A3E; color: #fff; }
  .nav-extra .btn.wa:hover { background: #0D6532; border-color: #0D6532; color: #fff; }
  .nav-extra .btn.wa svg { width: 20px; height: 20px; }
  .nav-contact { display: grid; gap: 4px; justify-items: center; text-align: center; margin-top: 10px; font-size: .92rem; color: var(--ink-2); }
  .nav-contact a { color: var(--ink); font-weight: 500; padding: 2px 0; font-size: .95rem; }
}
