/* ==========================================================================
   Raíz Café de Especialidad
   Dirección: tostaduría nórdica, fría y minimalista, con acento salvia
   (hoja de cafeto / plantas de la barra) sobre papel gris frío.
   ========================================================================== */

:root {
  /* Superficies (gris papel frío, sin crema) */
  --paper: #eef0ef;
  --paper-2: #e3e7e5;
  --surface: #f7f8f7;

  /* Tinta (carbón frío, sin marrón) */
  --ink: #1a1d1e;
  --ink-2: #474e51;
  --ink-3: #62696c;
  --line: #d0d6d3;
  --line-strong: #b8c0bc;

  /* Acento único: salvia apagado */
  --accent: #56705f;
  --accent-ink: #3e5446;
  --accent-soft: #d3ded6;
  --on-accent: #f7f8f7;

  /* Tipografía */
  --font-display: "Bricolage Grotesque", "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --h1: clamp(2.35rem, min(5.4vw, 8.6vh), 4.75rem);
  --h2: clamp(1.9rem, min(3.6vw, 6.6vh), 3.25rem);
  --h3: clamp(1.15rem, 1.4vw, 1.35rem);
  --text: 1.0625rem;
  --small: 0.875rem;

  /* Espacio y forma */
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1280px;
  --section-y: clamp(56px, min(9vw, 13vh), 128px);
  --radius: 10px;          /* imágenes y tarjetas */
  --radius-pill: 999px;    /* botones y tabs */
  --header-h: 68px;

  /* Movimiento */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --reveal-y: 24px;
  --reveal-d: 640ms;

  --shadow: 0 1px 2px rgb(26 29 30 / 0.04), 0 12px 32px -12px rgb(26 29 30 / 0.14);

  color-scheme: light;
}

@media (max-width: 959px) {
  /* En móvil nada depende del alto de ventana: la barra del navegador no mueve el layout. */
  :root {
    --header-h: 60px; --reveal-y: 14px; --reveal-d: 520ms;
    --h1: clamp(2.35rem, 10.5vw, 3.6rem);
    --h2: clamp(1.85rem, 7.6vw, 2.6rem);
    --section-y: clamp(56px, 14vw, 88px);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

/* ---------- Tipografía ---------- */
.hero-title, .h2, .h3, .brand-name, .plan-name, .plan-price span, .stat dd, .price {
  font-family: var(--font-display);
  font-optical-sizing: auto;
}
.hero-title {
  font-size: var(--h1);
  font-weight: 600;
  font-stretch: 88%;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2 {
  font-size: var(--h2);
  font-weight: 600;
  font-stretch: 90%;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h3 { font-size: var(--h3); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}
.section-lead { color: var(--ink-2); max-width: 52ch; margin-top: 14px; text-wrap: pretty; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.9375rem; line-height: 1;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-ink { background: var(--ink); color: var(--surface); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-paper { background: var(--surface); color: var(--ink); }
.btn-block { width: 100%; }
.btn:has(.icon:last-child) { padding-right: 20px; }
.btn:has(.icon:first-child) { padding-left: 20px; }
.btn .icon { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover { background: #2c3133; }
  .btn-line:hover { border-color: var(--ink); background: var(--surface); }
  .btn-accent:hover { background: var(--accent-ink); }
  .btn-paper:hover { background: #fff; }
  .hero-actions .btn-ink:hover .icon { transform: translateX(3px); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
@media (hover: hover) and (pointer: fine) {
  .site-header {
    background: rgb(238 240 239 / 0.82);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
  }
}
.header-row { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; color: var(--accent); flex: none; }
.brand-name { display: flex; flex-direction: column; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.brand-sub { font-family: var(--font-body); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }

.nav { margin-left: auto; }
.nav-list { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.nav-list a {
  position: relative; text-decoration: none; font-size: 0.9375rem; font-weight: 500; color: var(--ink-2);
  padding: 8px 0; transition: color 200ms ease;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 260ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav-list a:hover { color: var(--ink); }
  .nav-list a:hover::after { transform: scaleX(1); }
}
.header-cta { min-height: 42px; padding: 0 18px; }
.nav-cta-mobile, .nav-toggle { display: none; }

@media (max-width: 959px) {
  .header-cta { display: none; }
  .nav-toggle {
    display: inline-grid; place-items: center; margin-left: auto;
    width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
    background: transparent; cursor: pointer;
  }
  .nav-toggle .icon { width: 20px; height: 20px; grid-area: 1 / 1; transition: opacity 180ms ease, transform 220ms var(--ease-out); }
  .nav-toggle .icon-close { opacity: 0; transform: rotate(-45deg); }
  .nav-open .nav-toggle .icon-open { opacity: 0; transform: rotate(45deg); }
  .nav-open .nav-toggle .icon-close { opacity: 1; transform: none; }

  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 200ms ease, transform 240ms var(--ease-out), visibility 0s linear 240ms;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity 220ms ease, transform 280ms var(--ease-out), visibility 0s; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 14px 0; font-size: 1.125rem; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav-list a::after { display: none; }
  .nav-cta-mobile { display: flex; width: 100%; margin-top: 20px; }
}

/* ---------- Hero ---------- */
.hero { height: var(--hero-h, 640px); padding-block: clamp(16px, 3vh, 32px); }
.hero-grid {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 3.4vw, 56px);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; }
.hero-title { max-width: 14ch; }
.hero-lead { margin-top: clamp(14px, 2.4vh, 24px); color: var(--ink-2); font-size: clamp(1rem, 1.3vw, 1.1875rem); max-width: 44ch; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(18px, 3.4vh, 32px); }
.hero-media { height: 100%; min-height: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }

.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  margin-top: clamp(22px, 4.4vh, 48px);
  padding-top: clamp(14px, 2.4vh, 22px);
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column-reverse; gap: 2px; }
.stat dd { font-size: clamp(1.75rem, min(2.8vw, 5vh), 2.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat dt { font-size: var(--small); color: var(--ink-3); }

@media (max-width: 959px) {
  .hero { height: auto; padding-block: 20px 8px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-media { height: calc(var(--hero-h, 640px) * 0.46); order: 2; }
  .hero-title { max-width: 15ch; }
  .hero-lead { margin-top: 16px; font-size: 1.0625rem; }
  .hero-actions { margin-top: 24px; }
  .stats { margin-top: 28px; padding-top: 18px; }
  .stat dd { font-size: 2rem; }
  .section-head { margin-bottom: 32px; }
  .roaster-quote { margin: 24px 0; }
  .roaster-quote p, .quote-lg blockquote p { font-size: 1.375rem; }
  .plan-price span { font-size: 2.25rem; }
  .cta-inner { padding-block: 72px; }
}

/* Entrada del hero (solo transform/opacity) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-in, .js .hero-in-media { opacity: 0; transform: translateY(var(--reveal-y)); animation: rise var(--reveal-d) var(--ease-out) forwards; }
  .js .hero-in:nth-child(2) { animation-delay: 60ms; }
  .js .hero-in:nth-child(3) { animation-delay: 120ms; }
  .js .hero-in:nth-child(4) { animation-delay: 180ms; }
  .js .hero-in:nth-child(5) { animation-delay: 240ms; }
  .js .hero-in-media { transform: translateY(0) scale(0.985); animation-delay: 80ms; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Secciones ---------- */
.section { padding-block: var(--section-y); }
.section-tint { background: var(--paper-2); }
.section-head { margin-bottom: clamp(28px, min(4.5vw, 7vh), 56px); }
.section-head-center { text-align: center; }
.section-head-center .section-lead { margin-inline: auto; }

/* Scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(var(--reveal-y)); transition: opacity var(--reveal-d) var(--ease-out), transform var(--reveal-d) var(--ease-out); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .reveal-group > .reveal:nth-child(2) { transition-delay: 70ms; }
  .reveal-group > .reveal:nth-child(3) { transition-delay: 140ms; }
  .reveal-group > .reveal:nth-child(4) { transition-delay: 70ms; }
  .reveal-group > .reveal:nth-child(5) { transition-delay: 140ms; }
  .reveal-group > .reveal:nth-child(6) { transition-delay: 210ms; }
}

/* ---------- Menú ---------- */
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(16px, 2.2vw, 28px); }
.menu-img { aspect-ratio: 4 / 3; max-height: 70vh; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.menu-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .menu-card:hover .menu-img img { transform: scale(1.03); } }
.menu-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 16px; }
.menu-meta h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.price { font-size: 1.125rem; font-weight: 600; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.menu-note { margin-top: 4px; color: var(--ink-3); font-size: 0.9375rem; }

@media (max-width: 959px) { .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .menu-grid { grid-template-columns: 1fr; } }

/* ---------- Timeline de origen ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.timeline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px;
  background: var(--line-strong);
}
.step { position: relative; padding-top: 34px; }
.step-node {
  position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%;
  background: var(--paper-2); border: 2px solid var(--accent);
}
.step:last-child .step-node { background: var(--accent); }
.step-img { aspect-ratio: 3 / 2; max-height: 42vh; border-radius: var(--radius); overflow: hidden; background: var(--paper); margin-bottom: 18px; }
.step-img img { width: 100%; height: 100%; object-fit: cover; }
.step-meta { font-size: var(--small); font-weight: 600; color: var(--accent-ink); margin-bottom: 4px; }
.step p:last-child { margin-top: 8px; color: var(--ink-2); font-size: 0.96875rem; max-width: 40ch; }

@media (max-width: 959px) {
  .timeline { grid-template-columns: 1fr; gap: 36px; padding-left: 32px; }
  .timeline::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .step { padding-top: 0; }
  .step-node { left: -32px; top: 2px; }
  .step-img { max-height: none; }
}

/* ---------- Métodos (tabs) ---------- */
.methods-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(24px, 4.5vh, 44px); }
.methods-head .section-head { margin-bottom: 0; }
.tab-list {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface);
}
.tab {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--ink-2); font-weight: 600; font-size: 0.9375rem; cursor: pointer;
  transition: background-color 220ms ease, color 220ms ease, transform 160ms var(--ease-out);
}
.tab:active { transform: scale(0.97); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--surface); }
@media (hover: hover) and (pointer: fine) { .tab[aria-selected="false"]:hover { color: var(--ink); background: var(--paper-2); } }

.panels { display: grid; }
.panel {
  grid-area: 1 / 1;
  display: grid; grid-template-columns: min(460px, 52vh, 42%) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}
.panel.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 420ms var(--ease-out) 80ms, transform 480ms var(--ease-out) 80ms, visibility 0s;
}
.panel-img { aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.panel-img img { width: 100%; height: 100%; object-fit: cover; }
.panel-body .h3 { font-size: clamp(1.75rem, min(3vw, 5.4vh), 2.5rem); font-family: var(--font-display); font-stretch: 90%; letter-spacing: -0.03em; line-height: 1.05; }
.panel-body > p { margin-top: clamp(10px, 1.8vh, 16px); color: var(--ink-2); font-size: clamp(1rem, 1.25vw, 1.125rem); max-width: 56ch; }
.recipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: clamp(18px, 3.4vh, 30px); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.recipe div { background: var(--surface); padding: clamp(12px, 2vh, 18px) clamp(14px, 1.6vw, 22px); }
.recipe dt { font-size: 0.8125rem; color: var(--ink-3); }
.recipe dd { font-family: var(--font-display); font-size: clamp(1.125rem, 1.6vw, 1.4rem); font-weight: 600; letter-spacing: -0.015em; margin-top: 4px; line-height: 1.2; }
.panel-tip { display: flex; flex-direction: column; gap: 2px; margin-top: clamp(14px, 2.6vh, 24px); padding: 12px 0 0 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.9375rem; }
.panel-tip strong { color: var(--accent-ink); font-size: 0.8125rem; font-weight: 600; }

@media (max-width: 959px) {
  .methods-head { margin-bottom: 24px; }
  .tab-list { display: flex; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: var(--radius-pill); }
  .tab-list::-webkit-scrollbar { display: none; }
  .tab { flex: 1 0 auto; padding: 0 10px; font-size: 0.875rem; }
  .panel { grid-template-columns: 1fr; align-items: start; gap: 22px; }
  .panel-img { aspect-ratio: 4 / 3; max-height: none; }
  .recipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Maestro tostador ---------- */
.roaster { display: grid; grid-template-columns: min(480px, 58vh, 42%) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.roaster-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; width: 100%; }
.roaster-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.roaster-quote { margin: clamp(18px, 3.4vh, 32px) 0; padding-left: 20px; border-left: 2px solid var(--accent); }
.roaster-quote p { font-family: var(--font-display); font-size: clamp(1.35rem, min(2.4vw, 4.4vh), 2.125rem); font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; max-width: 38ch; }
.roaster-body > p { color: var(--ink-2); max-width: 66ch; font-size: clamp(1rem, 1.2vw, 1.0625rem); }
.roaster-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(18px, 3.4vh, 30px); padding-top: clamp(14px, 2.4vh, 20px); border-top: 1px solid var(--line-strong); }
.roaster-facts div { display: flex; flex-direction: column; gap: 2px; }
.roaster-facts dt { font-size: 0.8125rem; color: var(--ink-3); }
.roaster-facts dd { font-family: var(--font-display); font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 600; letter-spacing: -0.015em; }
.roaster-sign { display: flex; flex-direction: column; margin-top: clamp(16px, 3vh, 24px); }
.roaster-sign strong { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
.roaster-sign span { font-size: var(--small); color: var(--ink-3); }

@media (max-width: 959px) {
  .roaster { grid-template-columns: 1fr; }
  .roaster-img { max-width: 420px; }
}

/* ---------- Testimonios ---------- */
.quotes { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: clamp(14px, 2vw, 24px); }
.quote {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 32px);
}
.quote-lg { grid-row: 1 / span 2; justify-content: space-between; background: var(--accent-soft); border-color: transparent; }
.quote-lg blockquote p { font-family: var(--font-display); font-size: clamp(1.5rem, 2.5vw, 2.4rem); font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; }
.quote blockquote p { color: var(--ink); text-wrap: pretty; }
.stars { display: flex; gap: 3px; color: var(--accent); }
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote figcaption > span:last-child { display: flex; flex-direction: column; font-size: var(--small); color: var(--ink-3); line-height: 1.4; }
.quote figcaption strong { color: var(--ink); font-weight: 600; font-size: 0.9375rem; }
.avatar {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--ink); color: var(--surface); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em;
}
.quote-lg .avatar { background: var(--accent-ink); }

@media (max-width: 759px) {
  .quotes { grid-template-columns: 1fr; }
  .quote-lg { grid-row: auto; }
}

/* ---------- Suscripción ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); align-items: stretch; max-width: 1120px; margin-inline: auto; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 34px);
}
.plan-featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan-badge {
  position: absolute; top: -13px; left: clamp(24px, 2.6vw, 34px);
  background: var(--accent); color: var(--on-accent);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; padding: 5px 12px; border-radius: var(--radius-pill);
}
.plan-name { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
.plan-price { margin-top: 10px; color: var(--ink-3); font-size: 0.9375rem; }
.plan-price span { font-size: clamp(2rem, min(3vw, 5.4vh), 2.625rem); font-weight: 600; color: var(--ink); letter-spacing: -0.03em; margin-right: 2px; }
.plan-list { display: grid; gap: 12px; margin: 22px 0 28px; padding-top: 22px; border-top: 1px solid var(--line); flex: 1; }
.plan-list li { display: flex; gap: 10px; font-size: 0.9375rem; color: var(--ink-2); line-height: 1.45; }
.plan-list svg { width: 18px; height: 18px; flex: none; fill: var(--accent); margin-top: 2px; }

@media (max-width: 959px) {
  .plans { grid-template-columns: 1fr; max-width: 520px; gap: 28px; }
}

/* ---------- Ubicación ---------- */
.location { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.location-address { display: flex; gap: 12px; margin-top: clamp(20px, 3.4vh, 32px); font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.45; }
.location-address .icon { color: var(--accent); margin-top: 4px; width: 1.2em; height: 1.2em; }
.location-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 4vh, 36px); }
.location-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 32px); }
.side-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); }
.side-title .icon { color: var(--accent); }
.side-title + * { margin-top: 12px; }
.hours + .side-title { margin-top: 26px; }
.hours { display: grid; gap: 10px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; font-size: 0.9375rem; }
.hours dt { color: var(--ink-2); }
.hours dd { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.contact-lines { font-size: 0.9375rem; line-height: 1.9; }
.contact-lines a { text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: border-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .contact-lines a:hover { border-color: var(--ink); } }

@media (max-width: 859px) { .location { grid-template-columns: 1fr; } }

/* ---------- CTA final ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--surface); }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(20 23 24 / 0.88) 0%, rgb(20 23 24 / 0.7) 45%, rgb(20 23 24 / 0.3) 100%);
}
.cta-inner { padding-block: clamp(64px, min(10vw, 15vh), 136px); }
.cta-inner .h2 { max-width: 16ch; }
.cta-inner p { margin: 16px 0 28px; max-width: 44ch; color: rgb(247 248 247 / 0.82); }

@media (max-width: 759px) {
  .cta-band::before { background: linear-gradient(180deg, rgb(20 23 24 / 0.78), rgb(20 23 24 / 0.86)); }
}

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(48px, 7vw, 88px); background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-tagline { margin-top: 16px; color: var(--ink-2); max-width: 32ch; font-size: 0.9375rem; }
.footer-col h3 { font-size: var(--small); font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink-2); font-size: 0.9375rem; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .footer-col a:hover { color: var(--ink); } }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(40px, 6vw, 72px); padding-block: 22px; border-top: 1px solid var(--line); font-size: var(--small); color: var(--ink-3); }

@media (max-width: 759px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
