/* Archivo (variable, wdth+wght) autoalojada: sin dependencias externas */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-stretch: 75% 125%; font-display: swap; src: url(/fonts/archivo-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-stretch: 75% 125%; font-display: swap; src: url(/fonts/archivo-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Paleta: blanco dominante, tinta azulada (texto y una banda), turquesa Jofemar (acento),
   rojo Nach solo en acciones. Rojo y turquesa nunca se tocan: los separa blanco o neutro. */
:root {
  --ink: #0c2230;
  --ink-soft: #3d5463;
  --teal: #2e9eb7;
  --teal-ink: #1b7088;      /* turquesa legible sobre blanco (AA) */
  --sky: #eef6f9;
  --sky-2: #dcecf2;
  --line: #d6e4ea;
  --red: #e30016;
  --red-dark: #b8000f;
  --white: #fff;
  --radius: 10px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); }
h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; font-stretch: 108%; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); font-weight: 750; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* Botones */
.btn {
  display: inline-block; background: var(--red); color: #fff; text-decoration: none;
  font: inherit; font-weight: 700; padding: .8rem 1.4rem; border-radius: 999px;
  border: 2px solid var(--red); cursor: pointer; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-sm { padding: .45rem 1.05rem; font-size: .95rem; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-wa { background: var(--ink); border-color: var(--ink); }
.btn-wa:hover { background: #17384d; border-color: #17384d; }
.more { font-weight: 700; text-decoration: none; }
.more::after { content: " \2192"; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 0; min-height: 72px; }
.brand { align-self: stretch; display: flex; align-items: center; padding-right: 24px; }
.brand img { height: 46px; width: auto; }
.dist { align-self: stretch; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-soft); font-size: .8rem; padding-left: 24px; border-left: 1px solid var(--line); }
.dist img { height: 30px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--teal); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(28px, 4vw, 48px); overflow: hidden; color: #fff; background: radial-gradient(ellipse at 75% 45%, #14405a 0%, #0b2433 45%, #050f17 100%); }
.hero .stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { max-width: 15ch; color: #fff; }
.hero .lead { color: #c4d7e0; }
.hero .btn-line { color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn-line:hover { background: #fff; color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8rem 0 1.2rem; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 480px; width: 100%; margin-inline: auto; }
.hero-art::before { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, rgba(70,190,220,.38), rgba(70,190,220,0) 70%); }
.orbits { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit { fill: none; stroke: url(#orbita-grad); stroke-width: 1.3; filter: drop-shadow(0 0 3px rgba(127,214,234,.6)); }
.sats { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--o1) 55%, var(--o2)); box-shadow: 0 0 5px 1px rgba(127,214,234,.35); }
.hero-slides { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 1; }
.hero-slides li { position: absolute; inset: 0; opacity: 0; transform: translateX(24px) scale(.97); transition: opacity .8s ease, transform .8s ease; pointer-events: none; }
.hero-slides li.on { opacity: 1; transform: none; pointer-events: auto; }
.hero-slides a { position: absolute; inset: 6% 0 12%; display: flex; justify-content: center; color: #fff; text-decoration: none; }
.hero-slides img { height: 100%; width: auto; max-width: 70%; object-fit: contain; filter: drop-shadow(0 0 22px rgba(120,210,235,.35)) drop-shadow(0 18px 24px rgba(0,0,0,.5)); }
.hero-slides span { position: absolute; bottom: -9%; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: #c4d7e0; white-space: nowrap; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: -4%; display: flex; justify-content: center; gap: 10px; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.35); cursor: pointer; }
.hero-dots button.on { background: var(--red); }
.hero-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .hero-slides li { transition: none; } }

/* Distribuidor oficial */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tight { padding: clamp(36px, 5vw, 64px) 0; }
.section.alt, .alt { background: var(--sky); }
.official { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: 28px 32px; border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: var(--radius); }
.official h2 { margin-bottom: .3em; }
.official p { margin: 0; color: var(--ink-soft); max-width: 62ch; }

/* Sectores */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 2rem; }
.sector { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: border-color .2s, transform .2s; }
.sector:hover { border-color: var(--teal); transform: translateY(-2px); }
.sector-img { position: relative; background: var(--sky); aspect-ratio: 4 / 3; }
.sector-img img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; mix-blend-mode: multiply; }
.sector-body { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 20px; }
.sector-body strong { font-size: 1.1rem; font-stretch: 108%; }
.sector-body span { color: var(--ink-soft); font-size: .95rem; }
.sector-body .count { color: var(--teal-ink); font-weight: 700; font-size: .85rem; margin-top: 6px; }

/* Banda oscura (única) */
.band { background: var(--ink); color: #fff; padding: clamp(44px, 6vw, 72px) 0; position: relative; overflow: hidden; }
.band::before, .band::after { content: ""; position: absolute; border-radius: 50%; border: 1.5px solid var(--teal); opacity: .35; }
.band::before { width: 420px; height: 420px; right: -120px; top: -160px; }
.band::after { width: 260px; height: 260px; right: 0; top: -70px; opacity: .5; }
.band h2 { color: #fff; }
.band .lead { color: #bcd2dc; }
.band-grid { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }

/* Clientes: carrusel automático */
.marquee { display: flex; overflow: hidden; margin-top: 2rem; padding: 6px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track { display: flex; flex: 0 0 auto; align-items: center; gap: 24px; padding-right: 24px; animation: scroll 34s linear infinite; }
.marquee-track li { flex: 0 0 auto; width: 190px; height: 120px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.marquee-track img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.wordmark { font-weight: 800; font-size: 1.6rem; color: var(--ink-soft); font-stretch: 112%; }
@keyframes scroll { to { transform: translateX(-100%); } }

/* Nosotros (inicio) */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }

/* Páginas interiores */
.page-head { background: var(--sky); padding: clamp(32px, 5vw, 56px) 0; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); margin-bottom: .3em; }
.page-head .lead { margin: 0; }
.crumbs { font-size: .875rem; margin-bottom: 14px; color: var(--ink-soft); }
.crumbs a { color: var(--teal-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4rem; }
.chips a { display: inline-block; padding: .35rem .9rem; border: 1px solid var(--teal); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem; background: #fff; }
.chips a:hover { background: var(--teal); color: #fff; }
/* Cabecera de catálogo: se va con el scroll; al salir de pantalla aparece una barra flotante compacta */
.cat-head .chips { margin-top: 1rem; }
.cat-float { position: fixed; left: 0; right: 0; top: var(--hh, 72px); z-index: 40; background: rgba(238,246,249,.97); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); padding: 8px 0; transform: translateY(-110%); opacity: 0; visibility: hidden; transition: transform .25s ease, opacity .25s ease, visibility 0s .25s; }
.cat-float.show { transform: none; opacity: 1; visibility: visible; transition: transform .25s ease, opacity .25s ease; }
.cat-float .crumbs { margin-bottom: 6px; }
.cat-float .chips { margin-top: 0; }
.cat-float .chips a { padding: .2rem .7rem; font-size: .82rem; }
.group + .group { margin-top: 3rem; }
.group h2 { margin-bottom: 1rem; }

/* Grilla de productos */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--teal); transform: translateY(-2px); }
.card-img { position: relative; background: var(--sky); aspect-ratio: 1; }
.card-img img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; mix-blend-mode: multiply; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.card-body strong { font-stretch: 108%; }
.card-body span { color: var(--ink-soft); font-size: .9rem; line-height: 1.45; }

/* Ficha de producto */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.product-img { position: relative; background: var(--sky); border-radius: var(--radius); aspect-ratio: 1; }
.product-img img { position: absolute; inset: 28px; width: calc(100% - 56px); height: calc(100% - 56px); object-fit: contain; mix-blend-mode: multiply; }
.tag { display: inline-block; background: var(--sky-2); color: var(--ink); font-weight: 600; font-size: .85rem; padding: .2rem .7rem; border-radius: 999px; margin-bottom: 1rem; }
/* Ficha con panorámica de fondo y velo translúcido */
.prod-hero { background: linear-gradient(rgba(255,255,255,.86), rgba(255,255,255,.93)), var(--fondo) center / cover no-repeat; }
.prod-hero .product-img { background: rgba(238,246,249,.85); }
/* Carrusel de la ficha */
.gallery { overflow: hidden; }
.gallery-track { list-style: none; margin: 0; padding: 0; display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track li { position: relative; flex: 0 0 100%; scroll-snap-align: center; }
.gallery-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.92); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); }
.gallery-btn:hover { background: #fff; border-color: var(--teal); }
.gallery-btn.prev { left: 10px; }
.gallery-btn.next { right: 10px; }
.gallery-count { position: absolute; right: 12px; bottom: 10px; margin: 0; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.9); font-size: .8rem; }
.product h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }

/* Texto corrido y avisos provisorios */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.tbd { background: #fff7d6; border: 1px dashed #c9a400; border-radius: 8px; padding: .6rem .9rem; font-size: .9rem; color: #5b4a00; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
address { font-style: normal; }
address a:not(.btn) { font-weight: 700; text-decoration: none; }
.form { scroll-margin-top: calc(var(--hh, 72px) + 16px); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 16px; background: #fff; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input, .form select, .form textarea { font: inherit; padding: .7rem .85rem; border: 1px solid #b9cdd6; border-radius: 8px; background: #fff; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(46,158,183,.25); }
.form .invalid { border-color: var(--red); }
.form .btn { justify-self: start; }
.map { margin-top: 24px; }
.map iframe { display: block; width: 100%; height: 200px; border: 1px solid var(--line); border-radius: var(--radius); transition: height .25s; }
.map.is-big iframe { height: 440px; }
.map-toggle { margin-top: 10px; font: inherit; font-weight: 700; font-size: .9rem; color: var(--teal-ink); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; }

/* Footer */
.site-footer { background: var(--sky); border-top: 1px solid var(--line); padding: 48px 0 88px; font-size: .92rem; }
.foot { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.foot-brand img { mix-blend-mode: multiply; margin-bottom: 12px; }
.foot-brand p { color: var(--ink-soft); margin: 0; }
.foot-h { font-size: .95rem; font-weight: 750; margin-bottom: .6rem; }
.foot li + li { margin-top: 4px; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { color: var(--teal-ink); text-decoration: underline; }
.foot address p { margin: 0 0 .8em; }
.foot-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.foot-legal p { margin: 0; }
.foot-legal a { color: var(--ink-soft); }

/* WhatsApp flotante */
.wa { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; background: #1fa855; color: #fff; text-decoration: none; font-weight: 700; padding: 12px 16px; border-radius: 999px; box-shadow: 0 6px 18px rgba(12,34,48,.28); }
.wa:hover { background: #178a45; }

/* Responsive */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .sectors { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-grid, .about, .contact-grid, .product { grid-template-columns: 1fr; gap: 32px; }
  /* Hero mobile: título y texto arriba, botones abajo y la máquina centrada en el espacio que queda */
  .hero { padding: 24px 0 28px; }
  .hero-grid { grid-template-rows: auto auto minmax(300px, 1fr) auto; gap: 14px; min-height: calc(100svh - 72px - 52px); }
  .hero-copy { display: contents; }
  .hero h1 { grid-row: 1; max-width: none; font-size: clamp(2rem, 9vw, 2.6rem); margin: 0; }
  .hero .lead { grid-row: 2; margin: 0; font-size: 1rem; }
  .hero-art { grid-row: 3; align-self: stretch; justify-self: center; height: 100%; width: auto; max-width: 100%; max-height: 440px; aspect-ratio: 1; margin: 0; }
  .hero .cta { grid-row: 4; margin: 6px 0 0; flex-direction: column; }
  .hero .cta .btn { text-align: center; }
  .official { grid-template-columns: 1fr; gap: 16px; }
  .foot { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; text-align: center; }
  .dist span { display: none; }
  .dist { padding-left: 12px; }
  .brand img { height: 38px; }
  .dist img { height: 24px; }
}
@media (max-width: 520px) {
  .sectors { grid-template-columns: 1fr; }
  .wa span { display: none; }
  .wa { padding: 14px; }
  .marquee-track li { width: 150px; height: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .marquee { mask-image: none; overflow-x: auto; }
  .marquee-track { animation: none; }
  .marquee-track[aria-hidden="true"] { display: none; }
}

/* Catálogo vista B: acordeón */
.acc { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 14px; }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; cursor: pointer; font-weight: 700; font-size: 1.15rem; font-stretch: 108%; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--teal-ink); margin-left: auto; }
.acc[open] summary::after { content: "\2212"; }
.acc-count { color: var(--teal-ink); font-weight: 700; font-size: .85rem; background: var(--sky); border-radius: 999px; padding: .1rem .65rem; }
.acc > p, .acc > .grid { margin: 0 22px 22px; }
.acc > p { margin-bottom: 16px; }

/* Guía de selección: diálogo a pantalla completa */
.guia-link { font: inherit; background: none; border: 0; color: var(--teal-ink); text-decoration: underline; cursor: pointer; padding: 0; }
.guia-pend { font-size: .82rem; color: var(--ink-soft); }
.guia-pend summary { cursor: pointer; color: var(--teal-ink); }
.guia-pend ul { padding-left: 1.1em; list-style: disc; margin-top: 4px; }
.guia-mini { display: none; margin-left: auto; margin-right: 6px; white-space: nowrap; }
.g-short { display: none; }
.guia-nav-btn { white-space: nowrap; }

.gd { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: var(--ink); z-index: 200;
  background: radial-gradient(1100px 520px at 85% -10%, var(--sky-2), transparent 70%), radial-gradient(800px 480px at -10% 110%, var(--sky), transparent 70%), #fff; }
.gd[open] { display: flex; flex-direction: column; }
html:has(.gd[open]) { overflow: hidden; }
.gd-top { display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 40px); flex: none; }
.gd-logo { height: 42px; width: auto; flex: none; }
.gd-progress { flex: 1; height: 6px; border-radius: 99px; background: var(--sky-2); overflow: hidden; max-width: 420px; margin-inline: auto; }
.gd-progress span { display: block; height: 100%; width: 0; background: var(--teal); border-radius: inherit; transition: width .45s ease; }
.gd-close { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s; }
.gd-close:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.gd-body { flex: 1; overflow-y: auto; width: 100%; padding: clamp(8px, 3vh, 32px) clamp(16px, 4vw, 40px) 48px; } /* el scroll ocupa todo el ancho: la barra queda en el borde de la ventana */
.gd-cont { max-width: 1040px; margin-inline: auto; }
.gd-paso { animation: gd-in .4s ease both; }
.gd-paso h2 { outline: none; font-size: clamp(1.7rem, 4.2vw, 2.8rem); }
.gd-num { color: var(--teal-ink); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .5rem; }
.gd-ayuda { color: var(--ink-soft); font-size: 1.05rem; max-width: 62ch; }
.gd-chips { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; margin: 0 0 1.6rem; min-height: 34px; } /* siempre ocupa su lugar: las preguntas no se corren al aparecer las respuestas */
.gd-chip { font: inherit; font-size: .85rem; font-weight: 600; padding: .3rem .85rem; border: 1px solid var(--teal); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; }
.gd-chip:hover { background: var(--sky); }
.gd-chip .c-short { display: none; }
.gd-ops { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 1.8rem; }
.gd-op { position: relative; display: flex; flex-direction: column; gap: 6px; width: 100%; height: 100%; text-align: left; font: inherit; padding: 22px 52px 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.9); color: var(--ink); cursor: pointer; box-shadow: 0 1px 2px rgba(12,34,48,.04); transition: border-color .2s, transform .2s, box-shadow .2s; }
.gd-op:hover, .gd-op:focus-visible { border-color: var(--teal); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(12,34,48,.1); }
.gd-op strong { font-size: 1.15rem; font-stretch: 108%; }
.gd-op span { color: var(--ink-soft); font-size: .95rem; }
.gd-op i { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 1.4rem; color: var(--teal-ink); transition: transform .2s; }
.gd-op:hover i { transform: translate(5px, -50%); }
.gd-ops-grandes { grid-template-columns: repeat(2, 1fr); }
.gd-ops-grandes .gd-op { min-height: 260px; padding: 32px 56px 32px 32px; justify-content: center; background: linear-gradient(160deg, #fff, var(--sky)); }
.gd-ops-grandes .gd-op strong { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.gd-ops-grandes .gd-op span { font-size: 1.02rem; }
.gd-nav { display: flex; align-items: center; gap: 18px; margin-top: 2.2rem; }
.gd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin: 1.8rem 0 2rem; }
.gd-eq { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.gd-eq-link { flex: 1; display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; }
.gd-eq-img { display: grid; place-items: center; background: var(--sky); border-radius: 12px; aspect-ratio: 1; overflow: hidden; }
.gd-eq-img img { max-height: 100%; width: auto; object-fit: contain; }
.gd-eq-link strong { font-size: 1.05rem; font-stretch: 108%; }
.gd-eq-link:hover strong { color: var(--teal-ink); }
.gd-datos { padding-left: 1.1em; list-style: disc; color: var(--ink-soft); font-size: .88rem; }
.gd-eq .btn { text-align: center; }
.gd-cierre { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 1rem; }
@keyframes gd-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.gd-invite { position: fixed; inset: 0; margin: auto; width: min(480px, calc(100vw - 32px)); height: fit-content; padding: 36px 34px 30px; border: 0; border-radius: 22px; color: var(--ink); text-align: center;
  background: radial-gradient(420px 220px at 100% 0, var(--sky-2), transparent 70%), #fff; box-shadow: 0 30px 80px rgba(12,34,48,.4); }
.gd-invite[open] { animation: gd-pop .45s cubic-bezier(.2,.8,.2,1) both; }
.gd-invite[open]::backdrop { background: rgba(12,34,48,.62); backdrop-filter: blur(4px); animation: gd-fade .4s ease both; }
.gd-invite h2 { font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: .5em; }
.gd-invite-txt { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 1.6rem; }
.gd-invite-acc { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.gd-invite-acc .btn { font-size: 1.05rem; padding: .95rem 2.2rem; }
.gd-invite-x { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; font-size: 1.7rem; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.gd-invite-x:hover { background: var(--sky); }
@keyframes gd-pop { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes gd-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 760px) { .guia-mini { display: inline-block; } .guia-nav-btn { display: none; } .g-full { display: none; } .g-short { display: inline; } }
@media (max-width: 420px) { .brand { padding-right: 12px; } .dist { padding-left: 10px; } .dist img { height: 20px; } .brand img { height: 32px; } }
@media (max-width: 640px) {
  .gd-ops-grandes { grid-template-columns: 1fr; }
  .gd-ops-grandes .gd-op { min-height: 0; }
  /* mobile: que las dos opciones grandes del paso 1 entren en pantalla */
  .gd-body { padding-top: 4px; padding-bottom: 28px; }
  .gd-chips:empty { display: none; }
  /* respuestas elegidas: solo texto corrido, sin tags */
  .gd-chips { gap: 0 6px; margin-bottom: .8rem; min-height: 0; }
  .gd-chips li:not(:last-child)::after { content: "·"; margin-left: 6px; color: var(--ink-soft); }
  .gd-chip { border: 0; background: none; padding: 0; font-size: .82rem; font-weight: 500; color: var(--ink-soft); text-decoration: underline dotted; text-underline-offset: 3px; }
  .gd-chip .c-x { display: none; }
  .gd-chip .c-short { display: inline; }
  .gd-chip .c-full { display: none; }
  .gd-ayuda { font-size: 1rem; line-height: 1.45; }
  .gd-ops { margin-top: 1.1rem; gap: 12px; }
  .gd-ops-grandes .gd-op { padding: 16px 44px 16px 18px; gap: 4px; }
  .gd-ops-grandes .gd-op strong { font-size: 1.2rem; line-height: 1.25; }
  .gd-ops-grandes .gd-op span { font-size: .9rem; line-height: 1.45; }
  .gd-op i { right: 16px; }
  .gd-progress { margin-inline: 0; }
  .gd-top { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .gd-paso, .gd-invite[open], .gd-invite[open]::backdrop { animation: none; } .gd-op, .gd-op i, .gd-progress span { transition: none; } }
