/* ==========================================================================
   PURO ZAPATO — Prototipo 2 · "Boutique compacta"
   Mobile-first: se diseña para 375 px y se amplía hacia escritorio.
   Página corta: las tres líneas de negocio viven en un selector con
   paneles, y el contenido largo se desliza en horizontal.
   ========================================================================== */

:root {
  --bg: #F3EFE8;
  --paper: #FBF9F5;
  --green: #1E3A25;        /* verde del logotipo */
  --green-d: #13261A;
  --green-dd: #0B1710;
  --ivory: #EAE6DF;        /* marfil del logotipo */
  --mint: #A6E0BC;
  --brass: #B79E6A;
  --ink: #13231A;
  --muted: rgba(19, 35, 26, .64);
  --line: rgba(19, 35, 26, .1);

  --serif: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --g: 20px;                 /* margen lateral */
  --header: 60px;
  --tabbar: 72px;
  --r: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 70px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom));
}
img, svg { display: block; max-width: 100%; }
svg { fill: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, ol, fieldset { margin: 0; }
ol { padding: 0; list-style: none; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--g); }
.skip { position: fixed; top: -80px; left: 12px; z-index: 99; background: var(--green); color: var(--ivory); padding: .5rem 1rem; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: 0 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: transform .3s var(--ease), background-color .3s, box-shadow .3s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.97); }
.btn--green { background: var(--green); color: var(--ivory); box-shadow: 0 12px 24px -12px rgba(30, 58, 37, .7); }
.btn--green:hover { background: #2A4D33; }
.btn--line { border: 1.5px solid rgba(19,35,26,.2); }
.btn--line:hover { border-color: var(--green); }
.btn--light { background: var(--ivory); color: var(--green-d); }
.btn--sm { min-height: 42px; padding: 0 1.1rem; font-size: .88rem; }
.btn--wide { width: 100%; }
.link-btn { font-size: .82rem; text-decoration: underline; opacity: .75; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header);
  background: rgba(243, 239, 232, .82); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.header.is-scrolled { border-color: var(--line); }
.header-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; }
.logo img { width: 38px; height: 38px; padding: 6px 8px; border-radius: 50%; background: var(--green); object-fit: contain; }
.logo b { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.logo small { display: block; font-size: .66rem; color: var(--muted); letter-spacing: .04em; }
.topnav, .header-cta { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 6px 0 26px; }
.hero-grid { display: flex; flex-direction: column; }
.hero-copy { order: 2; }
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .78rem; font-weight: 600; margin-bottom: 1rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #3FA266; box-shadow: 0 0 0 0 rgba(63,162,102,.5); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(63,162,102,0); } 100% { box-shadow: 0 0 0 0 rgba(63,162,102,0); } }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.35rem, 10.4vw, 4.6rem); line-height: .98; letter-spacing: -.02em; margin-bottom: .9rem; }
.hero h1 em { color: var(--green); }
.hero-sub { color: var(--muted); font-size: 1rem; margin-bottom: 1.4rem; max-width: 40ch; }
.hero-ctas { display: grid; gap: .6rem; }

/* Medallón 3D (CSS) */
.medal-stage { order: 1; position: relative; height: 240px; display: grid; place-items: center; perspective: 900px; margin: 0 calc(var(--g) * -1) 6px; overflow: hidden; }
.medal-stage::before { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(166,224,188,.55), rgba(166,224,188,0)); filter: blur(10px); }
.medal-tilt { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); }
.medal { --size: 158px; --depth: 14px; position: relative; width: var(--size); height: var(--size); transform-style: preserve-3d; animation: spinY 12s linear infinite; }
@keyframes spinY { to { transform: rotateY(360deg); } }
.medal-face {
  position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: radial-gradient(circle at 35% 30%, #2f5a3b, var(--green) 45%, var(--green-dd) 100%);
  box-shadow: inset 0 0 0 3px var(--brass), inset 0 0 0 7px var(--green), inset 0 0 0 8px rgba(234,230,223,.4), inset 0 -10px 30px rgba(0,0,0,.35);
}
.medal-face::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.28) 48%, transparent 60%); mix-blend-mode: screen; }
.medal-face img { width: 46%; height: auto; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.medal-face--front { transform: translateZ(calc(var(--depth) / 2)); }
.medal-face--back { transform: rotateY(180deg) translateZ(calc(var(--depth) / 2)); }
.medal-edge { position: absolute; inset: 0; transform-style: preserve-3d; }
.medal-edge i { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(90deg, #6f5d36, #d8c393 45%, #8a7444); }
.medal-orbit { position: absolute; width: 270px; height: 270px; transform: rotateX(74deg); transform-style: preserve-3d; }
.medal-orbit svg { width: 100%; height: 100%; animation: spinZ 26s linear infinite; }
.medal-orbit text { font: 600 8.6px var(--sans); letter-spacing: 3px; fill: var(--green); }
@keyframes spinZ { to { transform: rotate(360deg); } }
.medal-shadow { position: absolute; bottom: 30px; width: 120px; height: 14px; border-radius: 50%; background: rgba(19,35,26,.28); filter: blur(8px); animation: shadow 12s linear infinite; }
@keyframes shadow { 25%, 75% { transform: scaleX(.35); } 0%, 50%, 100% { transform: scaleX(1); } }
.chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .75rem; border-radius: 999px; background: rgba(251,249,245,.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); font-size: .74rem; font-weight: 600; box-shadow: 0 10px 24px -14px rgba(19,35,26,.4); animation: bob 5s ease-in-out infinite; }
.chip svg { width: 15px; height: 15px; color: var(--green); }
.chip--a { top: 22px; left: var(--g); }
.chip--b { bottom: 26px; right: var(--g); animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* ---------- Hub (selector + paneles) ---------- */
.hub { padding: 18px 0 40px; }
.hub-q { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin-bottom: .8rem; }
.seg {
  position: sticky; top: calc(var(--header) + 8px); z-index: 20;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 5px; border-radius: 20px;
  background: rgba(251,249,245,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); box-shadow: 0 14px 30px -22px rgba(19,35,26,.45);
}
.seg button { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .65rem .3rem; border-radius: 15px; font-size: .78rem; font-weight: 600; line-height: 1.15; text-align: center; color: var(--muted); transition: color .35s; }
.seg button svg { width: 20px; height: 20px; }
.seg button[aria-selected="true"] { color: var(--ivory); }
.seg-ink { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 18px) / 3); border-radius: 15px; background: var(--green); transform: translateX(calc(var(--i, 0) * (100% + 4px))); transition: transform .5s var(--ease); box-shadow: 0 10px 20px -10px rgba(30,58,37,.8); }

.panel { padding-top: 26px; animation: panelIn .55s var(--ease); }
.panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.panel-head { margin-bottom: 1.2rem; }
.panel-head h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 8vw, 3rem); line-height: 1.02; margin-bottom: .6rem; }
.panel-head h3 em { color: var(--green); }
.panel-head p { color: var(--muted); font-size: .96rem; max-width: 52ch; }
.panel > .btn--wide { margin-top: 1.2rem; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 1.2rem; }
.facts div { display: flex; flex-direction: column; gap: 2px; padding: .8rem .7rem; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.facts svg { width: 18px; height: 18px; color: var(--green); margin-bottom: .3rem; }
.facts b { font-family: var(--serif); font-size: 1.3rem; line-height: 1; }
.facts small { font-size: .7rem; color: var(--muted); line-height: 1.2; }

/* Carril horizontal con "snap" */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(var(--g) * -1); padding: 4px var(--g) 14px; scroll-padding-inline: var(--g);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-dots { display: flex; justify-content: center; gap: 6px; margin-top: 2px; }
.rail-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(19,35,26,.18); transition: width .35s var(--ease), background-color .35s; }
.rail-dots i.on { width: 20px; background: var(--green); }

.svc { border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); padding: 10px 10px 16px; }
.svc-img { aspect-ratio: 4 / 3; border-radius: 16px; margin-bottom: .8rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; color: rgba(234,230,223,.75); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; background: radial-gradient(70% 60% at 30% 20%, rgba(166,224,188,.25), transparent), linear-gradient(150deg, #2A4D33, var(--green-d)); }
.svc-img svg { width: 28px; height: 28px; }
.svc h4, .step h4, .prod h4 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; line-height: 1.1; margin: 0 6px .3rem; }
.svc p { font-size: .86rem; color: var(--muted); margin: 0 6px; }
.tbc { display: inline-block; font-style: normal; font-size: .64rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8A6E3A; border: 1px dashed currentColor; border-radius: 5px; padding: 0 .35rem; }

/* Productos */
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--g) * -1) .9rem; padding: 0 var(--g); }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: .84rem; font-weight: 600; color: var(--muted); transition: all .3s; }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.rail--products { grid-auto-columns: 66%; }
.prod { position: relative; display: flex; flex-direction: column; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); padding: 10px 10px 12px; animation: panelIn .5s var(--ease) both; }
.prod-img { position: relative; aspect-ratio: 1 / .82; border-radius: 16px; display: grid; place-items: center; margin-bottom: .75rem; background: radial-gradient(60% 60% at 50% 40%, rgba(166,224,188,.35), transparent 70%), linear-gradient(160deg, var(--green), var(--green-dd)); color: var(--ivory); }
.prod-img svg { width: 42%; filter: drop-shadow(0 12px 12px rgba(0,0,0,.35)); }
.prod-img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.prod-tag { position: absolute; top: 8px; left: 8px; font-size: .6rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #E6D3A8; border: 1px dashed rgba(230,211,168,.6); border-radius: 6px; padding: .1rem .4rem; }
.prod-cat { margin: 0 6px .15rem; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #3D6748; }
.prod-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem 6px 0; }
.prod-price { font-size: .72rem; color: var(--muted); line-height: 1.2; }
.prod-price b { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--ink); }
.prod-act { display: flex; gap: 6px; }
.ibtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; transition: all .25s; }
.ibtn svg { width: 18px; height: 18px; }
.ibtn--wa { background: var(--green); border-color: var(--green); color: var(--ivory); }
.ibtn.is-on { background: var(--mint); border-color: var(--mint); color: var(--green-d); }

.quotebar {
  position: sticky; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + 10px); z-index: 15;
  display: flex; align-items: center; gap: .8rem; margin-top: 1rem; padding: 8px 8px 8px 18px; border-radius: 999px;
  background: var(--ink); color: var(--ivory); box-shadow: 0 18px 36px -18px rgba(0,0,0,.6); animation: panelIn .4s var(--ease);
}
.quotebar[hidden] { display: none; }
.quotebar > span { font-size: .9rem; margin-right: auto; }
.quotebar .btn--green { background: var(--mint); color: var(--green-d); }

/* Pasos del modelo de negocio */
.steps { counter-reset: s; }
.step { position: relative; padding: 18px 18px 20px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.step-n { position: absolute; top: 14px; right: 16px; font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: rgba(30,58,37,.14); font-weight: 600; }
.step svg { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--green); color: var(--ivory); margin-bottom: .9rem; }
.step h4 { margin: 0 0 .35rem; }
.step p { font-size: .88rem; color: var(--muted); }
.note { display: flex; gap: .6rem; margin-top: 1.1rem; padding: .8rem .9rem; border-radius: 14px; border: 1px dashed rgba(30,58,37,.3); font-size: .78rem; color: var(--muted); }
.note svg { flex: none; width: 18px; height: 18px; color: var(--green); }

/* ---------- Contacto ---------- */
.contact { background: var(--green); color: var(--ivory); border-radius: 30px 30px 0 0; padding: 40px 0 36px; }
.contact h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 8.6vw, 3.2rem); line-height: 1.02; margin-bottom: .5rem; }
.contact h2 em { color: var(--mint); }
.contact-sub { color: rgba(234,230,223,.72); font-size: .95rem; margin-bottom: 1.4rem; }
.contact-grid { display: grid; gap: 18px; }
.quick { display: grid; gap: 14px; padding: 18px; border-radius: var(--r); background: rgba(234,230,223,.06); border: 1px solid rgba(234,230,223,.14); }
.quick fieldset { border: 0; padding: 0; min-width: 0; }
.quick legend { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(234,230,223,.6); margin-bottom: .5rem; padding: 0; }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.opts label { position: relative; }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts span { display: grid; place-items: center; min-height: 44px; border-radius: 12px; border: 1px solid rgba(234,230,223,.22); font-size: .88rem; font-weight: 600; transition: all .25s; cursor: pointer; }
.opts input:checked + span { background: var(--ivory); color: var(--green-d); border-color: var(--ivory); }
.opts input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }
.field span { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(234,230,223,.6); margin-bottom: .5rem; }
.field input { width: 100%; min-height: 48px; padding: 0 1rem; border-radius: 12px; border: 1px solid rgba(234,230,223,.22); background: rgba(0,0,0,.15); color: var(--ivory); font: inherit; font-size: 1rem; }
.field input::placeholder { color: rgba(234,230,223,.4); }
.field input:focus { outline: none; border-color: var(--mint); }
.sedes { display: grid; gap: 10px; }
.sede { display: flex; align-items: center; gap: .8rem; padding: 14px 14px 14px 18px; border-radius: 18px; background: rgba(234,230,223,.06); border: 1px solid rgba(234,230,223,.14); }
.sede div { margin-right: auto; min-width: 0; }
.sede h3 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.05; }
.sede p { font-size: .78rem; color: rgba(234,230,223,.66); }
.sede .tbc { color: #E6D3A8; }
.sede a { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(234,230,223,.22); }
.sede a svg { width: 18px; height: 18px; }
.sede a.wa { background: var(--ivory); color: var(--green-d); border-color: var(--ivory); }

.footer { background: var(--green-dd); color: rgba(234,230,223,.7); padding: 26px 0; font-size: .8rem; }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer img { height: 34px; width: auto; }
.social { display: flex; gap: 8px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(234,230,223,.2); color: var(--ivory); }
.social svg { width: 18px; height: 18px; }

/* ---------- Barra inferior (app) ---------- */
.tabbar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
  height: 62px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  border-radius: 22px; background: rgba(251,249,245,.9); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(19,35,26,.5);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .64rem; font-weight: 600; color: var(--muted); padding: 6px 0; transition: color .3s; }
.tabbar a svg { width: 21px; height: 21px; }
.tabbar a.on { color: var(--green); }
.tabbar-wa { justify-self: center; width: 54px; height: 54px; margin-top: -24px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 10px 22px -8px rgba(37,211,102,.8), 0 0 0 5px var(--bg); }
.tabbar-wa svg { width: 27px; height: 27px; }

/* ---------- Hoja de sede ---------- */
.sheet { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; }
.sheet[hidden] { display: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(11,23,16,.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.sheet-panel { position: relative; width: 100%; padding: 12px var(--g) calc(24px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--paper); animation: up .45s var(--ease); }
@keyframes up { from { transform: translateY(100%); } }
.sheet-grab { display: block; width: 40px; height: 4px; margin: 0 auto 14px; border-radius: 2px; background: rgba(19,35,26,.18); }
.sheet-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); }
.sheet-x svg { width: 16px; height: 16px; }
.sheet h2 { font-family: var(--serif); font-weight: 500; font-size: 1.8rem; margin-bottom: 1rem; }
.sheet-opts { display: grid; gap: 8px; }
.sheet-opts button { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-align: left; transition: all .25s; }
.sheet-opts button:hover, .sheet-opts button:active { background: var(--green); color: var(--ivory); }
.sheet-opts strong { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1; }
.sheet-opts small { font-size: .78rem; opacity: .7; }
.sheet-opts svg { width: 24px; height: 24px; }

.toast { position: fixed; left: 50%; top: calc(var(--header) + 12px); z-index: 95; translate: -50% 0; padding: .7rem 1.1rem; border-radius: 999px; background: var(--ink); color: var(--ivory); font-size: .86rem; font-weight: 600; opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .4s var(--ease); pointer-events: none; white-space: nowrap; }
.toast.on { opacity: 1; transform: none; }

/* ---------- Tablet y escritorio ---------- */
@media (min-width: 700px) {
  :root { --g: 32px; }
  .hero-ctas { display: flex; flex-wrap: wrap; }
  .rail { grid-auto-columns: 42%; }
  .rail--products { grid-auto-columns: 34%; }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .contact-grid > div:first-child { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  :root { --header: 76px; }
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .topnav { display: flex; gap: .2rem; }
  .topnav a { padding: .5rem .9rem; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--muted); transition: all .25s; }
  .topnav a:hover { color: var(--ink); background: rgba(19,35,26,.05); }
  .header-cta { display: inline-flex; }
  .logo img { width: 44px; height: 44px; }

  .hero { padding: 40px 0 30px; }
  .hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
  .hero-copy { order: 0; }
  .medal-stage { order: 0; height: 480px; margin: 0; overflow: visible; }
  .medal-stage::before { width: 520px; height: 520px; }
  .medal { --size: 280px; --depth: 22px; }
  .medal-orbit { width: 460px; height: 460px; }
  .medal-shadow { bottom: 50px; width: 200px; }
  .chip--a { top: 70px; left: 0; }
  .chip--b { bottom: 70px; right: 0; }

  .hub { padding: 30px 0 80px; }
  .hub-q { text-align: center; font-size: 2rem; }
  .seg { position: relative; top: auto; max-width: 640px; margin-inline: auto; }
  .seg button { flex-direction: row; justify-content: center; gap: .55rem; font-size: .9rem; padding: .9rem .6rem; }
  .seg button br { display: none; }
  .panel { padding-top: 46px; }
  .panel-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 2rem; }
  .panel > .btn--wide { width: auto; display: flex; margin: 2rem auto 0; max-width: 360px; }
  .facts { max-width: 640px; }

  /* En escritorio los carriles se convierten en cuadrículas */
  .rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; }
  .rail--products { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .rail-dots { display: none; }
  .note { max-width: 640px; margin-inline: auto; }

  .contact { padding: 80px 0; border-radius: 48px 48px 0 0; }
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 28px 48px; }
  .contact-grid > div:first-child { grid-column: 1; grid-row: 1 / span 2; }
  .quick { grid-column: 2; }
  .sedes { grid-column: 2; grid-template-columns: 1fr 1fr; }

  .sheet { align-items: center; justify-content: center; }
  .sheet-panel { width: min(460px, 92vw); border-radius: 26px; padding: 28px; animation: pop .4s var(--ease); }
  .sheet-grab { display: none; }
  @keyframes pop { from { opacity: 0; transform: scale(.96) translateY(10px); } }
  .toast { top: auto; bottom: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
