/* Furever — Landing page styles v3 (header flotante, dark mode, marquee, spacing calibrado)
   Layout + motion only; all visual values come from the design-system tokens. */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 126px;
  color-scheme: light;
}
html.scheme-dark { color-scheme: dark; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body, system-ui);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  /* Spacing calibrado a alturas reales (laptop 1366×768 / iPhone 16 Pro 393×852):
     respira en pantallas altas, no desborda en las bajas. */
  --sec-pad: clamp(56px, 9vh, 110px);
  --sec-pad-sm: clamp(44px, 6.5vh, 80px);
}
body[data-density="compacta"] {
  --sec-pad: clamp(44px, 6.5vh, 84px);
  --sec-pad-sm: clamp(36px, 5vh, 64px);
}

/* ---------- tema: variables locales light/dark ---------- */
:root {
  --header-bg: rgba(255, 255, 255, 0.82);
  --wash: linear-gradient(160deg, var(--fur-estrella) 0%, #EEF3FA 100%);
  --wash-cap: rgba(255, 255, 255, 0.7);
}
html.scheme-dark {
  --header-bg: rgba(57, 56, 61, 0.78);
  --wash: linear-gradient(160deg, #45444B 0%, #3D4046 100%);
  --wash-cap: rgba(57, 56, 61, 0.72);
}
html.scheme-dark .blob-estrella { opacity: 0.08; }
html.scheme-dark .blob-nubes { opacity: 0.45; }
html.scheme-dark .wm-iso { opacity: 0.05; }

img { max-width: 100%; display: block; }

/* Cero CLS: los logos se dimensionan solo por height/width en CSS; reservamos su
   caja con el ratio intrínseco (viewBox) desde antes de que el SVG cargue. */
img[src*="furever-iso-mono"] { aspect-ratio: 268.51 / 157.03; }
img[src*="furever-hrz-"] { aspect-ratio: 827.05 / 123.33; }

::selection { background: var(--fur-nubes); color: var(--fur-ceniza); }

.fur-icon { display: inline-flex; line-height: 0; flex: none; }
.fur-icon svg { width: 1em; height: 1em; stroke-width: var(--fur-icon-sw, 1.75); }

image-slot { display: block; width: 100%; height: auto; }

main { padding-top: 108px; }

/* ---------- layout primitives ---------- */
.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 32px);
}
.wrap-narrow { max-width: var(--container-narrow); }

.sec { padding-block: var(--sec-pad); position: relative; }
.sec-sm { padding-block: var(--sec-pad-sm); position: relative; }

/* ---------- type ---------- */
.h-display, .h-title, .h-card {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
  margin: 0;
  text-wrap: balance;
}
.h-display { font-size: clamp(2.65rem, 6.4vw, 4.5rem); line-height: var(--lh-display); }
.h-title { font-size: clamp(1.9rem, 4vw, 3rem); line-height: var(--lh-title); }
.h-card { font-size: clamp(1.3rem, 2vw, 1.625rem); line-height: var(--lh-tight); }

.lead {
  font-size: clamp(1.06rem, 1.6vw, 1.25rem);
  line-height: var(--lh-body);
  color: var(--text-muted);
  margin: 0;
  text-wrap: pretty;
}
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-body-sm); }

.sec-head { max-width: 58ch; position: relative; z-index: 1; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .h-title { margin-top: 14px; }
.sec-head .lead { margin-top: 16px; }
/* Medallón del ícono de sección (espejo del ícono en el menú lateral) */
.sec-ico {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-soft);
  background: var(--surface-raised);
  color: var(--fur-polvo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
html.scheme-dark .sec-ico, .scheme-dark .sec-ico { color: var(--fur-nubes); background: transparent; }
.sec-head .sec-ico { display: flex; }
.sec-head.center .sec-ico { margin-inline: auto; }

a.quiet-link { color: inherit; text-decoration: none; }
a.quiet-link:hover { opacity: .82; }

/* ---------- ambient layers (blobs + watermarks) ----------
   Los blobs son gradientes radiales que se desvanecen a transparente:
   nunca producen bordes duros ni "cortes" al tocar los límites de la sección. */
.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.blob-nubes { background: radial-gradient(circle closest-side, var(--fur-nubes-20) 0%, rgba(167, 205, 247, 0) 72%); }
.blob-estrella { background: radial-gradient(circle closest-side, var(--fur-estrella) 0%, rgba(255, 249, 212, 0) 74%); opacity: .9; }

.wm-iso {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: .04;
  will-change: transform;
}

/* Detalles laterales: easter eggs de afecto en los márgenes. Glifos a distintos
   ángulos; al hacer hover se animan y revelan una notita. Solo en escritorio. */
.side-deco {
  position: absolute;
  z-index: 0;
  user-select: none;
  pointer-events: auto;
  line-height: 0;
  perspective: 520px;
}
.side-deco:hover { z-index: 8; }
.sd-body {
  display: block;
  transform: rotate(var(--rot, 0deg));
  transition: transform .5s var(--ease-soft), opacity .5s var(--ease-soft);
  transform-style: preserve-3d;
  will-change: transform;
}
.side-deco-iso .sd-body { opacity: .12; }
html.scheme-dark .side-deco-iso .sd-body { opacity: .07; }
.side-deco-glyph .sd-body { color: var(--fur-polvo); opacity: .3; }
html.scheme-dark .side-deco-glyph .sd-body { color: var(--fur-nubes); opacity: .24; }
.side-deco:hover .sd-body { opacity: .85; }
.sd-body[data-fx="grow"] { transform-origin: 50% 100%; }

/* La notita de afecto: aparece hacia el contenido (derecha si el glifo va a la
   izquierda, y viceversa) */
.sd-note {
  position: absolute;
  top: 50%;
  background: var(--surface-raised);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(var(--note-slide, 8px));
  transition: opacity .45s var(--ease-soft), transform .45s var(--ease-soft), visibility 0s linear .45s;
}
.sd-left .sd-note { left: calc(100% + 14px); --note-slide: -8px; }
.sd-right .sd-note { right: calc(100% + 14px); --note-slide: 8px; }
.side-deco:hover .sd-note {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
  transition: opacity .45s var(--ease-soft), transform .45s var(--ease-soft), visibility 0s;
}

/* Reacciones al hover, cada glifo a su manera \u2014 y un vaiv\u00e9n suave en reposo */
@media (prefers-reduced-motion: no-preference) {
  html.js-anim body[data-anim="completa"] .side-deco:not(:hover) .sd-body {
    animation: sd-idle 7s ease-in-out infinite;
    animation-delay: var(--idle-d, 0ms);
  }
  .side-deco:hover .sd-body[data-fx="beat"] { animation: sd-beat 1.1s var(--ease-soft) infinite; }
  .side-deco:hover .sd-body[data-fx="float"] { animation: sd-float 2.2s var(--ease-soft) infinite; }
  .side-deco:hover .sd-body[data-fx="spin"] { animation: sd-spin 2.8s linear infinite; }
  .side-deco:hover .sd-body[data-fx="sway"] { animation: sd-sway 1.8s var(--ease-soft) infinite; }
  .side-deco:hover .sd-body[data-fx="twinkle"] { animation: sd-twinkle 1.4s var(--ease-soft) infinite; }
  .side-deco:hover .sd-body[data-fx="hop"] { animation: sd-hop 1.3s var(--ease-soft) infinite; }
  .side-deco:hover .sd-body[data-fx="grow"] { animation: sd-grow 1.6s var(--ease-soft) infinite; }
  .side-deco:hover .sd-body[data-fx="flip"] { animation: sd-flip 1.3s var(--ease-soft) 1 both; }
}
@keyframes sd-beat {
  0%, 100% { transform: rotate(var(--rot)) scale(1); }
  28% { transform: rotate(var(--rot)) scale(1.22); }
  46% { transform: rotate(var(--rot)) scale(1.06); }
  62% { transform: rotate(var(--rot)) scale(1.18); }
}
@keyframes sd-float {
  0%, 100% { transform: rotate(var(--rot)) translateY(0); }
  50% { transform: rotate(var(--rot)) translateY(-9px); }
}
@keyframes sd-spin {
  to { transform: rotate(calc(var(--rot) + 360deg)); }
}
@keyframes sd-sway {
  0%, 100% { transform: rotate(calc(var(--rot) - 9deg)); }
  50% { transform: rotate(calc(var(--rot) + 9deg)); }
}
@keyframes sd-twinkle {
  0%, 100% { transform: rotate(var(--rot)) scale(1); }
  50% { transform: rotate(var(--rot)) scale(1.3); }
}
@keyframes sd-hop {
  0%, 100% { transform: rotate(var(--rot)) translateY(0); }
  30% { transform: rotate(var(--rot)) translateY(-9px); }
  50% { transform: rotate(var(--rot)) translateY(0); }
  70% { transform: rotate(var(--rot)) translateY(-4px); }
  85% { transform: rotate(var(--rot)) translateY(0); }
}
@keyframes sd-grow {
  0%, 100% { transform: rotate(var(--rot)) scale(1); }
  50% { transform: rotate(var(--rot)) scaleX(1.06) scaleY(1.2); }
}
@keyframes sd-flip {
  to { transform: rotate(var(--rot)) rotateY(360deg); }
}
@keyframes sd-idle {
  0%, 100% { transform: rotate(var(--rot)) translateY(0); }
  50% { transform: rotate(var(--rot)) translateY(-6px); }
}
@media (max-width: 1099px) { .side-deco { display: none; } }

/* ---------- header (barra madre flot. con chips; más grande en escritorio) ---------- */
.site-header {
  position: fixed;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  width: min(calc(var(--container) + 8px), calc(100% - 20px));
  border-radius: var(--radius-pill);
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  transition:
    transform .52s var(--ease-soft),
    box-shadow var(--dur) var(--ease-soft),
    background var(--dur) var(--ease-soft);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.site-header.hide { transform: translate(-50%, calc(-100% - 34px)); }

.header-in {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
  padding-block: 12px;
  padding-inline: clamp(18px, 3vw, 30px);
  position: relative;
}
/* Luz degradada que sigue el mouse dentro de la barra (se recorta al pill) */
.hdr-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  background: radial-gradient(240px circle at var(--hx, 50%) var(--hy, 50%), var(--fur-nubes-20) 0%, rgba(167, 205, 247, 0) 72%);
  opacity: 0;
  transition: opacity .5s var(--ease-soft);
  pointer-events: none;
}
.header-in:hover .hdr-glow { opacity: 1; }
.header-in > *:not(.hdr-glow) { position: relative; z-index: 1; }

.hdr-brand { display: inline-flex; align-items: center; }
.hdr-logo { height: 38px; width: auto; display: block; }

/* Chips: barras hijas dentro de la barra madre */
.hdr-chip {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  padding: 5px 7px;
  background: var(--surface-raised);
}
.header-nav { gap: 2px; margin-inline: auto; }
.header-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: var(--fw-bold);
  font-size: var(--fs-body-sm);
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background var(--dur) var(--ease-soft);
}
.header-nav a:hover { background: var(--fur-nubes-20); }
.header-cta { display: flex; align-items: center; margin-left: auto; }
.hdr-tools { gap: 7px; padding: 5px; }

.theme-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  border: none;
  background: none;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  transition: opacity var(--dur-fast) var(--ease-soft), background var(--dur) var(--ease-soft);
}
.theme-btn:hover { opacity: .8; background: var(--fur-nubes-20); }
.theme-btn:active { transform: scale(.96); }

/* Menú Contáctanos: panel con las dos vías, como las del dock */
.cmenu { position: relative; display: inline-flex; }
.cmenu-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 238px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface-raised);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .4s var(--ease-soft), transform .4s var(--ease-soft), visibility 0s linear .4s;
  z-index: 66;
}
.cmenu[data-open] .cmenu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity .4s var(--ease-soft), transform .4s var(--ease-soft), visibility 0s;
}
/* Puente invisible para que el hover no se corte entre botón y panel */
.cmenu::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 16px;
}
.cmenu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 18px;
  border-radius: var(--radius-pill);
  font-weight: var(--fw-bold);
  font-size: var(--fs-body-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--dur-fast) var(--ease-soft), transform var(--dur) var(--ease-soft);
}
.cmenu-item:hover { opacity: .9; transform: translateY(-1px); }
.cmenu-item:active { transform: scale(.97); }
.cmenu-wa { background: var(--text); color: var(--bg); }
.cmenu-call { background: var(--accent); color: var(--text-on-accent); }

@media (max-width: 1023px) {
  .header-nav { display: none; }
  .header-cta { margin-left: auto; }
  .hdr-logo { height: 31px; }
}
@media (max-width: 599px) {
  .site-header { top: 8px; width: calc(100% - 16px); }
  .header-in { padding-block: 11px; padding-inline: 16px; }
  .hdr-logo { height: 25px; }
  .hdr-tools { padding: 4px; gap: 4px; }
  .cmenu-panel { right: -10px; min-width: 224px; }
  main { padding-top: 86px; }
}
@media (max-width: 409px) {
  .hdr-logo { height: 21px; }
  .theme-btn { width: 34px; }
}

/* ---------- hero (editorial) ---------- */
.hero { overflow: clip; position: relative; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(28px, 5vh, 72px) clamp(56px, 9vh, 110px);
}
@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: clamp(24px, 4vh, 48px) clamp(56px, 8vh, 88px); }
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(24px, 3.5vh, 36px); }
.hero-ctas > * { min-height: 48px; }

/* Laptop bajo (≈1366×768): que el hero quepa en un viewport */
@media (min-width: 900px) and (max-height: 840px) {
  .hero-grid { padding-block: clamp(20px, 3vh, 40px) clamp(44px, 7vh, 80px); }
  .hero .h-display { font-size: clamp(2.4rem, 4.8vw, 3.4rem); }
  /* width expl&#237;cito (no solo max-width): con margin auto el grid item pasa a
     shrink-to-fit y su contenido aspect-ratio colapsar&#237;a a 0px de ancho. */
  .hero-comp { width: min(440px, 56vh, 100%); margin-inline: auto; }
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(22px, 3vh, 34px);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-soft);
  background: var(--surface-raised);
  color: var(--text);
  font-size: var(--fs-body-sm);
  position: relative;
  transition: transform .46s var(--ease-soft), box-shadow .46s var(--ease-soft);
}
.chip .fur-icon { color: var(--fur-polvo); }

/* Borde-gradiente que se desvanece (profundidad sutil) — chips y zone-chips */
.chip::before, .zone-chip::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(
    135deg,
    var(--fur-nubes) 0%,
    rgba(167, 205, 247, 0) 42%,
    rgba(113, 130, 149, 0) 58%,
    var(--fur-polvo) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s var(--ease-soft);
}
.chip:hover, .zone-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm), 0 6px 18px rgba(57, 56, 61, .06); }
.chip:hover::before, .zone-chip:hover::before { opacity: 1; }

/* layered photo composition */
.hero-comp {
  position: relative;
  margin-bottom: 28px;
  will-change: transform;
  transition: transform var(--dur-slow) var(--ease-soft);
  transform-style: preserve-3d;
}
.hero-comp .hero-main { box-shadow: var(--shadow); border-radius: var(--radius-xl); }
.hero-mini {
  position: absolute;
  bottom: -28px;
  left: clamp(-28px, -2vw, -14px);
  width: clamp(140px, 38%, 220px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--surface-raised);
  padding: 8px;
  z-index: 2;
}
.hero-chip-card {
  position: absolute;
  top: 18px;
  right: clamp(-18px, -1.5vw, -10px);
  z-index: 2;
  max-width: min(72%, 300px);
}
@media (max-width: 899px) {
  .hero-mini { left: -6px; bottom: -22px; }
  .hero-chip-card { right: -4px; }
}

/* hero (tipográfico) */
.hero-typo {
  text-align: center;
  padding-block: clamp(36px, 6vh, 90px) clamp(32px, 5vh, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-typo .h-display { font-size: clamp(3rem, 9vw, 7rem); max-width: 12ch; }
.hero-typo .lead { max-width: 46ch; margin-top: clamp(20px, 2.5vh, 28px); }
.hero-typo .hero-ctas { justify-content: center; }
.hero-typo .chip-row { justify-content: center; }
.hero-typo-photo { padding-bottom: clamp(40px, 7vh, 88px); }

/* word-rise (signature hero resolve) */
.hw { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; margin-bottom: -.12em; }
.hwi { display: inline-block; }

/* Motion is governed by the Tweaks control (body[data-anim]). */
@keyframes fur-rise {
  from { transform: translateY(116%); }
  to { transform: none; }
}
@keyframes fur-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes fur-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
html.js-anim body[data-anim="completa"] .hwi {
  animation: fur-rise .9s var(--ease-soft) both;
  animation-delay: var(--d, 0ms);
}
html.js-anim .hero-el {
  animation: fur-fade-up .9s var(--ease-soft) both;
  animation-delay: var(--d, 0ms);
}
html.js-anim .hero-el-soft {
  animation: fur-fade 1.3s var(--ease-soft) both;
  animation-delay: var(--d, 0ms);
}

/* scroll reveals — bloque por bloque, fade + slide suave */
html.js-anim .rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft);
  transition-delay: var(--d, 0ms);
}
html.js-anim body[data-anim="sutil"] .rv { transform: none; }
html.js-anim .rv.in { opacity: 1; transform: none; }

/* comparison checks pop */
html.js-anim body[data-anim="completa"] .cmp .cmp-check,
html.js-anim body[data-anim="completa"] .cmp .cmp-dash .fur-icon {
  transform: scale(.3);
  opacity: 0;
  transition: transform .55s var(--ease-soft), opacity .55s var(--ease-soft);
  transition-delay: var(--d, 0ms);
}
html.js-anim body[data-anim="completa"] .cmp.in .cmp-check,
html.js-anim body[data-anim="completa"] .cmp.in .cmp-dash .fur-icon {
  transform: none;
  opacity: 1;
}

/* ---------- claim strip ----------
   Desktop: marquee automático continuo. Móvil: drift reactivo al scroll (JS). */
.strip {
  overflow: clip;
  border-block: 1px solid var(--line-soft);
  padding-block: clamp(30px, 4.5vh, 56px);
  background: var(--bg);
}
.strip-track {
  display: flex;
  width: max-content;
  will-change: transform;
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 1.1;
  color: var(--fur-polvo-24);
}
.strip-half {
  display: flex;
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
  padding-right: clamp(40px, 5vw, 72px);
  white-space: nowrap;
}
.strip-half img { height: .72em; opacity: .35; }
/* El desplazamiento del strip corre por JS (ClaimStrip) en todos los tamaños. */

/* ---------- trust tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(30px, 5vh, 56px);
  /* start: al expandirse una tile, las demás NO se estiran con ella */
  align-items: start;
  position: relative;
  z-index: 1;
}
.tile {
  cursor: pointer;
  position: relative;
  transition: transform var(--dur-slow) var(--ease-soft), box-shadow var(--dur-slow) var(--ease-soft);
}
.tile:hover, .tile[data-open] { transform: translateY(-6px); box-shadow: var(--shadow); }
.tile .h-card { font-size: clamp(1.22rem, 1.7vw, 1.5rem); padding-right: 30px; }
/* Flechita sutil: señal de que la tarjeta se expande */
.tile-chev {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform .5s var(--ease-soft), background var(--dur) var(--ease-soft);
}
.tile[data-open] .tile-chev { transform: rotate(180deg); background: var(--fur-nubes-20); }
/* Descripción + foto: escondidas hasta hover/tap (solo una tile abierta a la vez) */
.tile-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .6s var(--ease-soft);
  margin-top: -14px;
}
.tile[data-open] .tile-body { grid-template-rows: 1fr; }
.tile-body > div {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tile-body > div > p { padding-top: 14px; }
.tile-ico {
  width: 52px; height: 52px;
  border-radius: var(--radius-pill);
  background: var(--fur-nubes-20);
  color: var(--fur-polvo);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-slow) var(--ease-soft), color var(--dur-slow) var(--ease-soft), transform var(--dur-slow) var(--ease-soft);
}
.tile:hover .tile-ico, .tile[data-open] .tile-ico {
  background: var(--accent);
  color: var(--text-on-accent);
  transform: scale(1.06);
}
/* En táctil, el toque (en cualquier parte de la tarjeta, ícono incluido)
   dispara el estado completo: elevación + ícono acentuado. */
@media (hover: none) {
  .tile:active { transform: translateY(-4px); box-shadow: var(--shadow); }
  .tile:active .tile-ico { background: var(--accent); color: var(--text-on-accent); transform: scale(1.06); }
  .ptl-head:active .ptl-medal { background: var(--accent); color: var(--text-on-accent); }
  .chip:active::before, .zone-chip:active::before { opacity: 1; }
}
@media (max-width: 719px) {
  .tiles {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * clamp(20px, 5vw, 32px));
    padding-inline: clamp(20px, 5vw, 32px);
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .tiles::-webkit-scrollbar { display: none; }
  .tiles > * { flex: 0 0 min(300px, 82%); scroll-snap-align: center; }
}

/* ---------- plans ---------- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(24px, 3.5vh, 40px);
  max-width: 940px;
  margin-inline: auto;
  align-items: stretch;
  position: relative;
  z-index: 1;
}
.plan-card {
  transition: transform var(--dur-slow) var(--ease-soft), box-shadow var(--dur-slow) var(--ease-soft);
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan-slot { margin: -8px -8px 4px; }
.plan-feats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.plan-feats li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; }
.plan-feats .fur-icon { color: var(--fur-polvo); margin-top: 3px; }
@media (max-width: 899px) {
  .plans-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * clamp(20px, 5vw, 32px));
    padding-inline: clamp(20px, 5vw, 32px);
    padding-top: 14px;
    padding-bottom: 10px;
    scrollbar-width: none;
  }
  .plans-grid::-webkit-scrollbar { display: none; }
  .plans-grid > * { flex: 0 0 min(330px, 86%); scroll-snap-align: center; }
}
.snap-hint {
  display: none;
  justify-content: center;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: var(--fs-body-sm);
}
@media (max-width: 899px) {
  .snap-hint { display: flex; }
}

/* ---------- comparison ---------- */
.cmp {
  margin-top: clamp(32px, 5vh, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(96px, 14vw, 170px) clamp(96px, 14vw, 170px);
  position: relative;
  z-index: 1;
}
.cmp > div {
  padding: clamp(14px, 2vw, 20px) clamp(10px, 1.6vw, 20px);
  display: flex;
  align-items: center;
}
.cmp .cmp-head {
  font-weight: var(--fw-bold);
  font-size: var(--fs-body-sm);
  color: var(--text-muted);
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding-bottom: 18px;
  flex-direction: column;
  gap: 7px;
}
.cmp .cmp-head.f { color: var(--text); }
.cmp .cmp-head img { height: 24px; }
.cmp-generic {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.cmp .cmp-feat { border-top: 1px solid var(--line-soft); padding-left: 0; text-wrap: pretty; }
.cmp .cmp-cell { border-top: 1px solid var(--line-soft); justify-content: center; }
.cmp .cmp-f { background: var(--fur-nubes-20); }
.cmp .cmp-f.first { border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-top-color: transparent; }
.cmp .cmp-f.last { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.cmp-check {
  width: 30px; height: 30px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--text-on-accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.cmp-dash { color: var(--line-soft); }
.cmp-note { margin-top: 22px; }
@media (max-width: 599px) {
  .cmp { grid-template-columns: minmax(0, 1fr) 70px 70px; }
  .cmp > div { padding: 14px 8px; }
  .cmp .cmp-feat { font-size: var(--fs-body-sm); padding-left: 0; padding-right: 6px; }
  .cmp .cmp-head { font-size: 13px; }
}

/* ---------- coverage ---------- */
.map-frame {
  margin-top: clamp(28px, 4vh, 48px);
  position: relative;
  z-index: 1;
}
.zones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(22px, 3vh, 36px);
  position: relative;
  z-index: 1;
}
.zone-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-soft);
  font-size: var(--fs-body-sm);
  color: var(--text);
  background: var(--surface-raised);
  position: relative;
  transition: transform .46s var(--ease-soft), background var(--dur) var(--ease-soft), box-shadow .46s var(--ease-soft);
}

/* ---------- faq ---------- */
.faq-grid { position: relative; z-index: 1; }
@media (min-width: 900px) {
  .faq-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr);
    gap: clamp(40px, 5vw, 72px);
    align-items: start;
  }
  .faq-aside { position: sticky; top: 100px; }
}
.faq-aside-card { margin-top: 28px; }
.faq { border-top: 1px solid var(--line-soft); }
@media (max-width: 899px) {
  .faq { margin-top: clamp(28px, 4vh, 40px); }
}
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  font-weight: var(--fw-bold);
  color: var(--text);
  padding: clamp(18px, 2.4vw, 26px) 2px;
  min-height: 44px;
  transition: color var(--dur-fast) var(--ease-soft);
}
.faq-q:hover { color: var(--fur-polvo); }
html.scheme-dark .faq-q:hover { color: var(--fur-nubes); }
.faq-q .faq-chev {
  width: 32px; height: 32px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-soft);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  flex: none;
  transition: transform var(--dur-slow) var(--ease-soft), background var(--dur-slow) var(--ease-soft);
}
.faq-item.open .faq-chev { transform: rotate(180deg); background: var(--fur-nubes-20); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-soft);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; min-height: 0; }
.faq-a p {
  margin: 0;
  padding: 0 2px clamp(20px, 2.4vw, 26px);
  color: var(--text-muted);
  max-width: 64ch;
  text-wrap: pretty;
}

/* ---------- closing ---------- */
.closing { background: var(--bg); color: var(--text); overflow: clip; position: relative; }
.closing .wm-iso {
  width: clamp(380px, 52vw, 720px);
  left: 50%;
  top: 50%;
  margin-left: calc(clamp(380px, 52vw, 720px) / -2);
  margin-top: calc(clamp(380px, 52vw, 720px) / -3);
}
.closing-in {
  text-align: center;
  padding-block: clamp(72px, 11vh, 144px);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}
.closing .h-display { font-size: clamp(2.3rem, 5.4vw, 3.5rem); max-width: 16ch; }
.closing .lead { max-width: 44ch; margin-top: 20px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(36px, 6vh, 64px);
}
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h4 {
  margin: 0 0 14px;
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--text);
  text-decoration: none;
  font-size: var(--fs-body-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
}
.footer-col a:hover { opacity: .78; }
.footer-col a .fur-icon { color: var(--text-muted); }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 13px;
}

/* focus visibility for custom controls */
.faq-q:focus-visible, .zone-chip:focus-visible, .theme-btn:focus-visible {
  outline: none;
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 3px var(--fur-nubes-20);
}
