/* JB Soluciones WiFi — hoja de estilos única */
:root {
  --ink: #07111F;
  --paper: #F3F6F8;
  --white: #FFFFFF;
  --line: #D3DCE4;
  --muted: #44566A;
  --blue: #1B5FD6;
  --blue-dark: #144AA8;
  --blue-light: #4C95FF;
  --wa: #25D366;
  --strong: #12A57A;
  --mid: #F0B429;
  --weak: #E5484D;
  --maxw: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  font-stretch: 100%;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--ink); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografía ---------- */
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.3rem); font-weight: 800; font-stretch: 125%; line-height: 1.03; }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.6rem); font-weight: 750; font-stretch: 112%; line-height: 1.1; }
h3 { font-size: 1.25rem; font-weight: 700; font-stretch: 108%; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 58ch; margin: 22px 0 0; }
.prose { max-width: 66ch; }
.prose p { color: #1E2E40; }
.muted { color: var(--muted); }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(7, 17, 31, .97); backdrop-filter: blur(8px); border-bottom: 1px solid #1B2D45; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 800; font-stretch: 118%; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.1; }
.brand:hover { color: #fff; }
.brand img { height: 46px; width: auto; flex: none; }
.brand b { color: var(--blue-light); font-weight: 800; }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a { color: #DCE7F3; text-decoration: none; padding: 9px 11px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.nav a:hover { background: #14263D; color: #fff; }
.nav a[aria-current="page"] { background: var(--blue); color: #fff; }
.site-header :focus-visible { outline-color: var(--blue-light); }
.menu-btn { display: none; align-items: center; gap: 8px; background: transparent; border: 2px solid #4A6483; color: #fff; border-radius: 10px; padding: 8px 14px; font: 700 .95rem var(--font); cursor: pointer; }

@media (max-width: 1060px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); top: 100%; background: var(--ink); flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; border-bottom: 1px solid #1B2D45; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
}
/* Sin JavaScript: el menú queda siempre visible */
.no-js .menu-btn { display: none; }
.no-js .nav { display: flex; flex-wrap: wrap; position: static; flex-direction: row; padding: 0; border: 0; background: none; }
.no-js .bar { flex-wrap: wrap; padding-block: 10px; }

/* ---------- Botones ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 10px; font-weight: 700; text-decoration: none; font-size: 1rem; border: 2px solid transparent; line-height: 1.2; }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-wa { background: var(--wa); color: var(--ink); }
.btn-wa:hover { background: #1FBE5C; color: var(--ink); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.section-dark .btn-line { border-color: #EAF1F7; color: #EAF1F7; }
.section-dark .btn-line:hover { background: #EAF1F7; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 6vw, 84px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.checks { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--muted); font-size: .95rem; }
.checks li::before { content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--strong); margin-right: .55em; }

/* Plano de cobertura */
.plan-wrap { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: clamp(10px, 2vw, 18px); }
.plan { width: 100%; height: auto; }
.plan .room { fill: #fff; }
.plan .ext { fill: none; stroke: #8DA2B6; stroke-width: 2; stroke-dasharray: 6 6; }
.plan .wall { stroke: var(--ink); stroke-width: 3; fill: none; stroke-linecap: square; }
.plan .lbl { font: 600 13px var(--font); fill: var(--muted); }
.plan .dbm { font: 700 12px var(--font); fill: var(--ink); }
.plan .ap-dot { fill: var(--ink); stroke: #fff; stroke-width: 3; }
.plan .halo { transform-box: fill-box; transform-origin: center; animation: grow 1.4s cubic-bezier(.2, .7, .2, 1) both; }
.plan .h2 { animation-delay: .15s; }
.plan .h3 { animation-delay: .3s; }
@keyframes grow { from { transform: scale(.15); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .plan .halo { animation: none; } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--muted); padding: 10px 6px 2px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.sw.s { background: var(--strong); }
.sw.m { background: var(--mid); }
.sw.w { background: var(--weak); }

/* ---------- Secciones ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.section-dark { background: var(--ink); color: #EAF1F7; border-top: 0; }
.section-dark h2 { color: #fff; }
.section-dark .lead { color: #AFC0D2; }
.section-dark a:not(.btn) { color: #8DBBFF; }
.section-head { max-width: 720px; margin-bottom: clamp(24px, 4vw, 48px); }
.section-head .lead { margin-top: 14px; }

/* Filas (problemas) */
.rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 6px 32px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rows p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .rows li { grid-template-columns: 1fr; } }

/* Enlaces grandes (soluciones) */
.big-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 2px solid var(--ink); }
.big-links a { display: block; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.big-links .t { display: block; font-size: 1.4rem; font-weight: 750; font-stretch: 110%; letter-spacing: -.01em; line-height: 1.2; }
.big-links .d { display: block; margin-top: 6px; color: var(--muted); }
.big-links a:hover .t { color: var(--blue); text-decoration: underline; text-underline-offset: .15em; }
@media (max-width: 700px) { .big-links { grid-template-columns: 1fr; } }

/* Método (secuencia real) */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps li { counter-increment: step; border-top: 2px solid #3A5170; padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font-size: 2.6rem; font-weight: 800; font-stretch: 125%; line-height: 1; color: #6EA8FF; margin-bottom: 12px; }
.steps h3 { color: #fff; margin-bottom: 8px; }
.steps p { margin: 0; color: #AFC0D2; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.quote { margin: 40px 0 0; font-size: clamp(1.25rem, 2.4vw, 1.8rem); font-weight: 700; font-stretch: 112%; letter-spacing: -.01em; color: #fff; max-width: 30ch; }

/* Listas con viñeta */
.list { padding-left: 1.2em; margin: 0 0 1em; }
.list li { margin-bottom: .55em; padding-left: .2em; }
.list li::marker { color: var(--blue); }

/* Dos columnas (páginas de servicio) */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px clamp(24px, 5vw, 72px); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split + .split { margin-top: clamp(36px, 5vw, 64px); padding-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); }

/* Definiciones (proyectos) */
.defs { margin: 0; border-top: 2px solid var(--ink); }
.defs div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 6px 32px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.defs dt { font-weight: 700; font-stretch: 108%; }
.defs dd { margin: 0; color: #1E2E40; }
@media (max-width: 640px) { .defs div { grid-template-columns: 1fr; } }

/* Preguntas frecuentes */
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-stretch: 106%; font-size: 1.08rem; list-style-position: outside; }
.faq details p { margin: 12px 0 0; color: var(--muted); max-width: 62ch; }

/* Migas de pan */
.crumbs { font-size: .92rem; color: var(--muted); padding: 22px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-current] { color: var(--ink); font-weight: 600; }

.page-hero { padding: clamp(24px, 4vw, 48px) 0 clamp(36px, 5vw, 64px); }
.ph-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 820px) { .ph-grid { grid-template-columns: 1fr; } }

/* ---------- Fotos ---------- */
.photo { margin: 0; }
.photo img { width: 100%; height: auto; border-radius: 10px; background: #DDE5EC; }
.photo figcaption { margin-top: 8px; font-size: .9rem; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery-wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gallery, .gallery-wide { grid-template-columns: 1fr; } }
.photo-in { margin-top: 24px; max-width: 560px; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; border-top: 2px solid var(--ink); margin-top: 8px; }
.contact-grid > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-grid h3 { margin-bottom: 6px; }
.contact-grid p { margin: 0; color: var(--muted); }
.contact-grid a { font-weight: 700; word-break: break-word; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: #AFC0D2; padding: 48px 0 96px; }
.site-footer a { color: #EAF1F7; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 1rem; font-weight: 700; font-stretch: 106%; color: #fff; margin-bottom: 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .brand { margin-bottom: 14px; }
.site-footer small { display: block; margin-top: 32px; color: #8CA0B5; }

/* ---------- Motivo del logo: el globo de puntos y los arcos WiFi recorren las secciones ---------- */
main { --motif-dots: url("motif/dots-light.svg"); --motif-arcs: url("motif/arcs-light.svg"); }
main > .section-dark { --motif-dots: url("motif/dots-dark.svg"); --motif-arcs: url("motif/arcs-dark.svg"); }

main > :is(.hero, .page-hero, .section) { position: relative; overflow: hidden; isolation: isolate; }
main > :is(.hero, .page-hero, .section)::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  aspect-ratio: 1;
  width: min(var(--msize, 420px), 80vw);
  background-repeat: no-repeat;
  background-size: contain;
}
main > :is(.hero, .page-hero, .section):nth-child(4n+1)::before { --msize: 560px; background-image: var(--motif-dots); right: -170px; top: -150px; }
main > :is(.hero, .page-hero, .section):nth-child(4n+2)::before { --msize: 380px; background-image: var(--motif-arcs); left: -60px; bottom: -70px; }
main > :is(.hero, .page-hero, .section):nth-child(4n+3)::before { --msize: 460px; background-image: var(--motif-dots); left: -190px; bottom: -200px; }
main > :is(.hero, .page-hero, .section):nth-child(4n+4)::before { --msize: 440px; background-image: var(--motif-arcs); right: -70px; top: 20px; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    main > :is(.hero, .page-hero, .section)::before { animation: motif-drift linear both; animation-timeline: view(); }
    @keyframes motif-drift {
      from { transform: translateY(70px) rotate(-9deg); }
      to { transform: translateY(-70px) rotate(9deg); }
    }
  }
}

/* ---------- Botón de mensaje (WhatsApp / Telegram) ---------- */
.chat { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.chat-btn { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 24px rgba(7, 17, 31, .3); padding: 0; }
.chat-btn:hover { background: var(--blue-dark); }
.chat-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.chat-btn svg { width: 30px; height: 30px; fill: currentColor; }
.chat-menu { display: none; flex-direction: column; gap: 8px; align-items: flex-end; }
.chat:hover .chat-menu, .chat.open .chat-menu { display: flex; }
.chat:has(:focus-visible) .chat-menu { display: flex; }
.no-js .chat-menu { display: flex; }
.chat-opt { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--ink); box-shadow: 0 6px 18px rgba(7, 17, 31, .25); }
.chat-opt svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.chat-opt-wa { background: var(--wa); }
.chat-opt-wa:hover { background: #1FBE5C; color: var(--ink); }
.chat-opt-tg { background: #2AABEE; }
.chat-opt-tg:hover { background: #1F98D8; color: var(--ink); }
.chat-opt:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .chat-menu { animation: pop .18s ease-out; }
  @keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
.ph-grid .contact-grid { grid-template-columns: 1fr; }

/* =====================================================================
   Versión 2 — "mapa de cobertura": cabeceras oscuras con un rastro de señal
   que sigue al puntero, secciones con medidas y fotos con marcas de encuadre.
   ===================================================================== */
@property --mx { syntax: "<percentage>"; inherits: true; initial-value: 72%; }
@property --my { syntax: "<percentage>"; inherits: true; initial-value: 42%; }

main > :is(.hero, .page-hero, .section) { overflow: clip; }
main > :is(.hero, .page-hero) { --motif-dots: url("motif/dots-dark.svg"); --motif-arcs: url("motif/arcs-dark.svg"); }

.hero, .page-hero { background: var(--ink); color: #EAF1F7; --mx: 72%; --my: 42%; }
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); }
.page-hero { padding: 0 0 clamp(44px, 6vw, 80px); }
.hero h1, .page-hero h1 { color: #fff; }
.hero .lead, .page-hero .lead { color: #B6C6D8; }
.hero a:not(.btn), .page-hero a:not(.btn) { color: #8DBBFF; }
.hero .checks { color: #B6C6D8; }
:is(.hero, .page-hero) .btn-line { border-color: #EAF1F7; color: #EAF1F7; }
:is(.hero, .page-hero) .btn-line:hover { background: #EAF1F7; color: var(--ink); }
:is(.hero, .page-hero) :focus-visible { outline-color: var(--blue-light); }
.page-hero .crumbs { color: #8CA0B5; padding: 22px 0 clamp(18px, 3vw, 34px); }
.page-hero .crumbs a { color: #B6C6D8; }
.page-hero .crumbs span[aria-current] { color: #fff; }
.page-hero .photo figcaption, .section-dark .photo figcaption { color: #9FB3C8; }
.page-hero .contact-grid { border-top-color: #3A5170; }
.page-hero .contact-grid > div { border-bottom-color: #2B4262; }
.page-hero .contact-grid h3 { color: #fff; }
.page-hero .contact-grid p { color: #B6C6D8; }
.page-hero .contact-grid a { color: #8DBBFF; }
.page-hero .photo img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Rastro de señal: puntos y brillo que acompañan al puntero (o derivan solos) */
.heat { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle 320px at var(--mx) var(--my), rgba(18, 165, 122, .30), rgba(240, 180, 41, .13) 52%, rgba(229, 72, 77, 0) 74%); }
.heat::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(110, 168, 255, .75) 1.2px, transparent 1.7px) 0 0 / 24px 24px;
  -webkit-mask-image: radial-gradient(circle 380px at var(--mx) var(--my), #000 0, transparent 100%);
  mask-image: radial-gradient(circle 380px at var(--mx) var(--my), #000 0, transparent 100%); }
@media (prefers-reduced-motion: no-preference) {
  .hero:not(.live), .page-hero:not(.live) { animation: idle 16s ease-in-out infinite alternate; }
  @keyframes idle { 0% { --mx: 60%; --my: 28%; } 50% { --mx: 82%; --my: 60%; } 100% { --mx: 52%; --my: 72%; } }
  .hero .plan-wrap { transform: perspective(1100px) rotateY(calc((var(--px, 0) * -5deg))) rotateX(calc(var(--py, 0) * 4deg)); transition: transform .25s ease-out; }
}
.hero .plan-wrap { border: 0; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08); }
.hero .legend { color: var(--muted); }

/* Progreso de lectura: una línea de señal bajo el menú */
.site-header { position: sticky; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; transform-origin: left; background: linear-gradient(90deg, var(--blue), var(--blue-light), #6FE3C1); animation: read linear both; animation-timeline: scroll(root); }
    @keyframes read { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

/* Cabeceras de sección con regla de medición */
.section-head::before { content: ""; display: block; width: 72px; height: 10px; margin-bottom: 16px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 2px, transparent 2px 9px); }
.section-dark .section-head::before { background: repeating-linear-gradient(90deg, var(--blue-light) 0 2px, transparent 2px 9px); }

/* Frase de impacto */
.section.statement { background: linear-gradient(135deg, #0A2A6B 0%, #1B5FD6 100%); padding: clamp(64px, 11vw, 150px) 0; }
.statement p { font-size: clamp(2.1rem, 6.2vw, 5rem); font-weight: 800; font-stretch: 125%; line-height: 1.02; letter-spacing: -.03em; color: #fff; max-width: 16ch; margin: 0; }
.statement p + p { color: #CFE3FF; }
.statement .btn { margin-top: 36px; }

/* Soluciones: filas con flecha */
.big-links a { position: relative; padding-right: 48px; transition: padding-left .2s ease, background-color .2s ease; }
.big-links a::after { content: "\2197"; position: absolute; right: 8px; top: 22px; font-size: 1.5rem; line-height: 1; color: var(--blue); transition: transform .2s ease; }
.big-links a:hover { padding-left: 14px; background: #fff; }
.big-links a:hover::after { transform: translate(3px, -3px); }
.big-links a:hover .t { text-decoration: none; }

/* Fotos con marcas de encuadre */
.photo { position: relative; }
.photo img { border-radius: 3px; }
.photo::before, .photo::after { content: ""; position: absolute; width: 22px; height: 22px; border: 0 solid var(--blue); pointer-events: none; z-index: 1; }
.photo::before { top: -7px; left: -7px; border-top-width: 3px; border-left-width: 3px; }
.photo::after { right: -7px; top: -7px; border-right-width: 3px; border-top-width: 3px; }
.page-hero .photo::before, .page-hero .photo::after, .section-dark .photo::before, .section-dark .photo::after { border-color: var(--blue-light); }

/* Mosaico de fotos */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 19vw, 230px); gap: 12px; }
.bento .b { position: relative; margin: 0; overflow: hidden; border-radius: 3px; background: #DDE5EC; }
.bento img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bento .b:hover img { transform: scale(1.05); }
.bento figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; font-weight: 600; font-size: .92rem; color: #fff; background: linear-gradient(0deg, rgba(7, 17, 31, .82), rgba(7, 17, 31, 0)); }
.bento .b1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.bento .b2 { grid-column: 3 / 5; }
.bento .b3 { grid-column: 3; grid-row: 2 / 4; }
.bento .b4 { grid-column: 4; }
.bento .b5 { grid-column: 1 / 3; }
.bento .b6 { grid-column: 4; }
.bento .b5 img { object-position: 50% 62%; }
@media (max-width: 700px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; }
  .bento .b { grid-column: auto; grid-row: auto; }
  .bento .b1 { grid-column: 1 / 3; grid-row: span 2; }
  .bento .b2 { grid-column: 1 / 3; }
}
@media (prefers-reduced-motion: reduce) { .bento img { transition: none; } .bento .b:hover img { transform: none; } }

/* Método: línea de tiempo vertical con foto fija */
.method { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.method-photo { position: sticky; top: 104px; }
@media (max-width: 900px) { .method { grid-template-columns: 1fr; } .method-photo { position: static; } }
.steps { display: block; position: relative; padding-left: 64px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 19px; top: 10px; bottom: 30px; width: 2px; background: #2B4262; }
.steps::after { background: var(--blue-light); transform-origin: top; }
.steps li { border-top: 0; padding: 0 0 30px; position: relative; }
.steps li::before { position: absolute; left: -64px; top: -4px; width: 40px; height: 40px; margin: 0; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 1.05rem; font-stretch: 100%; box-shadow: 0 0 0 5px var(--ink); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .steps::after { transform: scaleY(0); animation: draw linear both; animation-timeline: view(); animation-range: entry 15% cover 60%; }
    @keyframes draw { to { transform: scaleY(1); } }
  }
}

/* Botón de mensaje: aro que late tres veces para que se vea */
@media (prefers-reduced-motion: no-preference) {
  .chat-btn { position: relative; }
  .chat-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--blue-light); animation: ring 2.4s ease-out 1.5s 3 both; pointer-events: none; }
  @keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
}

/* Video vertical (celular) */
.video { margin: 0; justify-self: start; width: min(100%, 340px); position: relative; }
.video video { width: 100%; height: auto; aspect-ratio: 9 / 16; background: var(--ink); border-radius: 18px; display: block; box-shadow: 0 24px 50px -22px rgba(7, 17, 31, .55); }
.video figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.video.wide { width: 100%; max-width: 860px; justify-self: auto; }
.video.wide video { aspect-ratio: 16 / 9; border-radius: 4px; }
.gallery { align-items: start; }
.gallery .photo img, .gallery-wide .photo img { aspect-ratio: 1 / 1; object-fit: cover; }
.page-hero .photo.tall { max-width: 300px; justify-self: center; }
.page-hero .photo.tall img { aspect-ratio: 360 / 647; object-fit: cover; }
.gallery-wide .photo img { aspect-ratio: 1 / 1; }
.defs + .gallery-wide { margin-top: 32px; }
.gallery-wide + .prose { margin-top: 28px; }
