/* ==========================================================================
   Rodina Styleroom — estilos
   Paleta y tipografía en :root. Cambia aquí y se actualiza todo el sitio.
   ========================================================================== */

:root {
  --bg: #f6f1ea;          /* hueso */
  --bg-2: #eadfd0;        /* arena */
  --surface: #fbf8f3;
  --ink: #231a15;         /* café */
  --ink-2: #4a3f37;
  --muted: #74685e;
  --accent: #a4552f;      /* terracota */
  --accent-ink: #84421f;
  --brass: #b8975e;       /* latón: solo líneas y detalles */
  --deep: #2f4a3a;        /* verde Provenza */
  --deep-2: #385644;
  --on-deep: #f1eadf;
  --line: rgba(35, 26, 21, 0.14);
  --line-deep: rgba(239, 231, 219, 0.18);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --radius-arch: 999px 999px 0 0;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* ---------- idioma (ES / EN) ---------- */
html[lang="es"] [lang="en"]:not(html),
html[lang="en"] [lang="es"]:not(html) { display: none !important; }

/* ---------- utilidades ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}
.serif { font-family: var(--serif); }
.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;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}
h2 { font-size: clamp(40px, 5.4vw, 76px); }
h3 { font-size: clamp(26px, 2.4vw, 32px); }
em { font-style: italic; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 13px; font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--light { border-color: var(--on-deep); color: var(--on-deep); }
.btn--light:hover { background: var(--on-deep); color: var(--deep); }
.btn svg { width: 18px; height: 18px; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.link-arrow span[aria-hidden] { transition: transform .35s var(--ease); }
.link-arrow:hover span[aria-hidden] { transform: translateX(4px); }

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

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding: 22px 0;
}
.header.is-scrolled {
  background: rgba(246, 241, 234, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { text-decoration: none; display: inline-flex; align-items: center; gap: 14px; line-height: 1; }
.logo__mark { height: 52px; width: auto; flex: none; transition: height .4s var(--ease); }
.header.is-scrolled .logo__mark { height: 44px; }
.logo__text { display: inline-flex; flex-direction: column; }
.logo__word {
  font-family: var(--serif); font-size: 30px; font-weight: 400;
  letter-spacing: .32em; text-transform: uppercase; margin-right: -.32em;
}
.logo__sub {
  font-size: 10px; letter-spacing: .58em; text-transform: uppercase;
  color: var(--muted); margin-top: 6px; padding-left: 2px;
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav__links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  text-decoration: none; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  position: relative; padding: 6px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: currentColor; transition: right .35s var(--ease);
}
.nav__links a:hover::after { right: 0; }

.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px;
}
.lang button {
  border: 0; background: none; cursor: pointer;
  font-size: 11px; letter-spacing: .14em; padding: 6px 10px; border-radius: 999px; color: var(--muted);
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.header .btn { padding: 12px 22px; }

/* botón de Instagram (icono) */
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--ink); color: var(--ink); text-decoration: none;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.icon-btn:hover { background: var(--ink); color: var(--bg); }
.icon-btn svg { width: 19px; height: 19px; }
.header__ig { display: none; }

.menu-toggle {
  display: none; border: 0; background: none; cursor: pointer; padding: 10px; margin-right: -10px;
}
.menu-toggle span { display: block; width: 26px; height: 1px; background: var(--ink); margin: 7px 0; transition: transform .3s var(--ease), opacity .3s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  padding: 140px 0 72px;
  display: flex; align-items: center;
  position: relative;
}
.hero__grid {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 6vw, 96px); align-items: end;
}
.hero h1 {
  font-size: clamp(54px, 8.2vw, 128px);
  line-height: .95;
  letter-spacing: -0.02em;
  margin: 22px 0 30px;
}
.hero h1 em { color: var(--accent); }
.hero__lead { max-width: 30em; color: var(--ink-2); font-size: 18px; margin: 0 0 40px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 34px; margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--line); font-size: 14px; color: var(--muted);
}
.hero__meta strong { display: block; font-weight: 400; color: var(--ink); font-size: 15px; }

.hero__media { position: relative; isolation: isolate; justify-self: end; width: 100%; max-width: 520px; }
/* Marcos: un solo arco (el del hero) como firma de la marca; el resto son rectángulos editoriales de esquina recta. */
.arch, .frame { overflow: hidden; background: var(--bg-2); }
.arch { border-radius: var(--radius-arch); }
.frame { position: relative; }
.arch img, .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__media .arch { aspect-ratio: 4 / 5.4; }
/* contorno de bronce desplazado detrás del arco */
.hero__media::before {
  content: ""; position: absolute; inset: -16px 16px 16px -16px; z-index: -1;
  border: 1px solid var(--brass); border-radius: var(--radius-arch); pointer-events: none;
}
.hero__badge {
  position: absolute; left: -44px; bottom: 56px;
  width: 132px; height: 132px; border-radius: 50%;
  background: var(--deep); color: var(--on-deep);
  display: grid; place-items: center; text-align: center;
  font-family: var(--serif); font-size: 17px; line-height: 1.15; padding: 18px;
  font-style: italic;
}
.hero__badge small {
  display: block; font-family: var(--sans); font-style: normal; font-size: 9px; letter-spacing: .24em;
  text-transform: uppercase; margin-top: 6px; opacity: .75;
}

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 20px 0; background: var(--bg);
}
.marquee__track {
  display: flex; gap: 48px; width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); font-style: italic; color: var(--ink-2);
}
.marquee__track span { display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee__track span::after { content: "✦"; font-style: normal; font-size: .5em; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- secciones ---------- */
.section { padding: clamp(88px, 12vw, 160px) 0; }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section__head p { color: var(--ink-2); max-width: 32em; margin: 0; justify-self: end; }
.section__head .eyebrow { margin-bottom: 18px; display: block; }

/* manifiesto */
.manifesto { text-align: center; }
.manifesto__quote {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 3.9vw, 54px); line-height: 1.18;
  max-width: 22em; margin: 26px auto 0;
}
.manifesto__quote em { color: var(--accent); }
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: clamp(64px, 8vw, 104px); border-top: 1px solid var(--line); text-align: left;
}
.pillar { padding: 36px 36px 0 0; }
.pillar + .pillar { padding-left: 36px; border-left: 1px solid var(--line); }
.pillar__num { font-family: var(--serif); font-size: 18px; color: var(--accent); font-style: italic; }
.pillar h3 { font-size: 28px; margin: 10px 0 12px; }
.pillar p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* servicios */
.services { background: var(--surface); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 36px); align-items: start; }
.service { text-decoration: none; display: block; }
.service .frame { aspect-ratio: 3 / 4; margin-bottom: 22px; }
/* filete blanco interior, como el paspartú de un cuadro */
.service .frame::after {
  content: ""; position: absolute; inset: 12px;
  border: 1px solid rgba(255, 255, 255, .5); pointer-events: none;
}
.service .frame img { transition: transform 1.1s var(--ease); }
.service:hover .frame img { transform: scale(1.045); }
/* columna central desplazada hacia abajo (solo con 3 columnas) */
@media (min-width: 901px) {
  .service:nth-child(3n+2) { margin-top: 88px; }
}
.service__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.service h3 { font-size: 30px; }
.service__from { font-size: 13px; color: var(--muted); white-space: nowrap; letter-spacing: .04em; }
.service__from b { font-weight: 400; color: var(--ink); }
.service p { margin: 8px 0 0; color: var(--ink-2); font-size: 15.5px; }

/* menú de precios */
.prices__note {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px;
  font-size: 15px; color: var(--ink-2); margin-bottom: 56px; max-width: 760px;
}
.prices__note svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--accent); }
.menu { columns: 2; column-gap: clamp(40px, 7vw, 112px); }
.menu__group { break-inside: avoid; margin-bottom: 64px; }
.menu__group h3 {
  font-size: 34px; display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 16px; border-bottom: 1px solid var(--ink); margin-bottom: 6px;
}
.menu__group h3 small { font-family: var(--sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.menu__item { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.menu__name { font-weight: 400; font-size: 16.5px; }
.menu__desc { grid-column: 1 / -1; font-size: 14px; color: var(--muted); margin: 0; }
.menu__price { font-variant-numeric: tabular-nums; font-size: 16.5px; text-align: right; white-space: nowrap; }
.menu__price small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.menu__tiers { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.menu__tiers span {
  font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.menu__tiers span b { font-weight: 400; color: var(--muted); margin-right: 6px; }

/* ritual */
.ritual { background: var(--deep); color: var(--on-deep); }
.ritual .eyebrow { color: rgba(239, 231, 219, .62); }
.ritual__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.ritual__media .frame { aspect-ratio: 4 / 5; background: var(--deep-2); }
.ritual h2 { margin: 18px 0 44px; }
.ritual h2 em { color: #e2b48f; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line-deep); }
.steps li:last-child { border-bottom: 1px solid var(--line-deep); }
.steps__n { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; color: #e2b48f; }
.steps h3 { font-size: 26px; margin-bottom: 6px; }
.steps p { margin: 0; color: rgba(239, 231, 219, .78); font-size: 15.5px; }

/* trabajo: carrusel */
.work { padding-bottom: clamp(72px, 9vw, 120px); }
.work__controls { display: flex; align-items: center; justify-content: flex-end; gap: 28px; flex-wrap: wrap; }
.carousel__btns { display: flex; gap: 10px; }
.carousel__btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--ink); background: none;
  display: grid; place-items: center; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), opacity .3s;
}
.carousel__btn:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.carousel__btn:disabled { opacity: .28; cursor: default; }
.carousel__btn svg { width: 20px; height: 20px; }
.carousel {
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-left: var(--edge);
  scrollbar-width: none; cursor: grab;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.carousel.is-dragging img { pointer-events: none; }
.carousel__track {
  display: flex; gap: clamp(14px, 1.8vw, 24px); list-style: none; margin: 0;
  padding: 0 0 0 var(--edge); width: max-content;
}
.carousel__track::after { content: ""; flex: 0 0 calc(var(--edge) - clamp(14px, 1.8vw, 24px)); }
.slide { flex: 0 0 clamp(250px, 27vw, 360px); scroll-snap-align: start; }
.slide figure { margin: 0; }
.slide .frame { aspect-ratio: 4 / 5; }
.slide img { -webkit-user-drag: none; user-select: none; transition: transform 1.1s var(--ease); }
.slide:hover img { transform: scale(1.035); }
.slide figcaption { font-family: var(--serif); font-style: italic; font-size: 22px; margin-top: 14px; }
.carousel__progress { height: 1px; background: var(--line); margin-top: 44px; overflow: hidden; }
.carousel__progress span { display: block; height: 100%; width: 30%; background: var(--ink); transition: transform .2s linear; }

/* faq */
.faq { background: var(--surface); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 112px); }
.faq h2 { margin-top: 18px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 0; display: flex; justify-content: space-between; gap: 24px;
  font-family: var(--serif); font-size: 25px; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--sans); font-weight: 200; font-size: 30px; line-height: 1;
  transition: transform .35s var(--ease); flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 26px; color: var(--ink-2); max-width: 40em; }

/* reserva / contacto */
.booking { padding-bottom: 0; }
.booking__card {
  background: var(--accent); color: #fbf3ea;
  border-radius: 28px; padding: clamp(40px, 6vw, 88px);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 96px);
  position: relative; overflow: hidden;
}
.booking__card::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; border: 1px solid rgba(251, 243, 234, .22);
}
.booking .eyebrow { color: rgba(251, 243, 234, .75); }
.booking h2 { margin: 18px 0 22px; }
.booking p { margin: 0 0 34px; max-width: 30em; color: rgba(251, 243, 234, .9); }
.booking .btn--solid { background: #fbf3ea; color: var(--accent-ink); border-color: #fbf3ea; }
.booking .btn--solid:hover { background: var(--ink); color: #fbf3ea; border-color: var(--ink); }
.booking .btn--ghost { border-color: rgba(251, 243, 234, .7); color: #fbf3ea; }
.booking .btn--ghost:hover { background: #fbf3ea; color: var(--accent-ink); }
.booking__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.info { list-style: none; margin: 0; padding: 0; position: relative; }
.info li { padding: 20px 0; border-top: 1px solid rgba(251, 243, 234, .28); }
.info li:last-child { border-bottom: 1px solid rgba(251, 243, 234, .28); }
.info .eyebrow { display: block; margin-bottom: 6px; }
.info a { text-decoration: none; border-bottom: 1px solid rgba(251, 243, 234, .45); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 2px 24px; font-variant-numeric: tabular-nums; }

/* footer */
.footer { padding: clamp(80px, 10vw, 128px) 0 40px; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer__brand { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.footer__mark { height: clamp(58px, 12vw, 184px); width: auto; flex: none; }
.footer__word {
  font-family: var(--serif); font-weight: 400; line-height: .85;
  font-size: clamp(64px, 14vw, 210px); letter-spacing: .06em; text-transform: uppercase; margin: 0;
}
.footer__links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer__links a { text-decoration: none; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.footer__links a:hover { color: var(--accent); }
.footer__ig { display: inline-flex; align-items: center; gap: 8px; }
.footer__ig svg { width: 16px; height: 16px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: 13px; color: var(--muted); }

/* whatsapp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--ink); color: var(--on-deep);
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(241, 234, 223, .35), 0 10px 30px rgba(35, 26, 21, .28);
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.wa-float:hover { transform: translateY(-3px); background: var(--accent); }
.wa-float svg { width: 26px; height: 26px; }

/* animaciones de entrada */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { gap: 22px; }
  .header .btn { display: none; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .menu-toggle { display: block; }
  .icon-btn--nav { display: none; }
  .header__ig { display: grid; margin-left: auto; margin-right: -8px; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    background: var(--bg);
    flex-direction: column; justify-content: center; gap: 40px;
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  /* el blur del header crearía un contenedor para el menú fijo: se quita al abrirlo */
  .menu-open .header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu-open { overflow: hidden; }
  .menu-open .wa-float { display: none; }
  .nav__links { flex-direction: column; align-items: center; gap: 22px; }
  .nav__links a { font-family: var(--serif); font-size: 34px; letter-spacing: 0; text-transform: none; }
  .header .btn { display: inline-flex; }

  .hero { padding-top: 120px; min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; gap: 0; }
  /* en móvil la foto aparece justo después del titular */
  .hero__copy { display: contents; }
  .hero .eyebrow { order: 1; }
  .hero h1 { order: 2; margin-bottom: 28px; }
  .hero__media { order: 3; justify-self: center; max-width: 440px; margin-bottom: 36px; }
  .hero__lead { order: 4; }
  .hero__ctas { order: 5; }
  .hero__meta { order: 6; }
  .hero__badge { left: -12px; bottom: 28px; width: 112px; height: 112px; font-size: 15px; }

  .section__head, .faq__grid, .ritual__grid, .booking__card { grid-template-columns: 1fr; }
  .work__controls { justify-content: space-between; }
  .section__head p { justify-self: start; }

  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }

  .service-grid { grid-template-columns: 1fr 1fr; }
  .menu { columns: 1; }

}

@media (max-width: 600px) {
  .service-grid { grid-template-columns: 1fr; }
  .service .frame { aspect-ratio: 4 / 4.4; }
  .hero__media::before { inset: -10px 10px 10px -10px; }
  .hero h1 { font-size: clamp(48px, 13.5vw, 72px); }
  .hero__ctas .btn { flex: 1 1 100%; justify-content: center; }
  .hero__meta { gap: 16px 28px; }
  .booking__card { border-radius: 20px; }
  .booking__ctas .btn { flex: 1 1 100%; justify-content: center; }
  .faq summary { font-size: 22px; }
  .logo__word { font-size: 24px; }
  .logo { gap: 10px; }
  .logo__mark, .header.is-scrolled .logo__mark { height: 40px; }
  .footer__top { align-items: flex-start; }
}

/* ==========================================================================
   Blog (portada, listado y artículos). Las páginas se generan con _blog/build.mjs
   ========================================================================== */

/* portada: tres artículos en columnas, solo texto */
.post-lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px clamp(24px, 3vw, 48px); }
.post-line { display: flex; flex-direction: column; text-decoration: none; padding-top: 26px; border-top: 1px solid var(--ink); }
.post-line__top { display: flex; align-items: baseline; gap: 14px; }
.post-line__num { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--accent); }
.post-line h3 { font-size: clamp(26px, 2.3vw, 32px); line-height: 1.1; margin: 16px 0 12px; transition: color .35s var(--ease); }
.post-line:hover h3 { color: var(--accent); }
.post-line p { margin: 0 0 18px; color: var(--ink-2); font-size: 15.5px; }
.post-line .post-card__more { margin-top: auto; }
.blog-teaser__all { display: flex; justify-content: center; margin-top: clamp(48px, 6vw, 80px); }

/* tarjetas con foto (listado y "sigue leyendo") */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(44px, 5vw, 72px) clamp(20px, 2.4vw, 36px); align-items: start; }
.post-card { display: block; text-decoration: none; }
.post-card .frame { aspect-ratio: 4 / 5; margin-bottom: 20px; }
.post-card .frame img { transition: transform 1.1s var(--ease); }
.post-card:hover .frame img { transform: scale(1.04); }
.post-card h3 { font-size: clamp(24px, 2.1vw, 29px); line-height: 1.12; margin: 10px 0 10px; transition: color .35s var(--ease); }
.post-card:hover h3 { color: var(--accent); }
.post-card p { margin: 0 0 16px; color: var(--ink-2); font-size: 15.5px; }
.post-card__cat { font-size: 11px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-ink); }
.post-card__more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase;
}
.post-card__more svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.post-card:hover .post-card__more svg, .post-line:hover .post-card__more svg { transform: translateX(4px); }

/* encabezado del listado */
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.page-head { padding: clamp(140px, 15vw, 200px) 0 clamp(40px, 5vw, 64px); }
.page-head h1 { font-size: clamp(50px, 7.4vw, 112px); line-height: .96; letter-spacing: -.02em; margin: 20px 0 28px; max-width: 11em; }
.page-head h1 em { color: var(--accent); }
.page-head__lead { max-width: 34em; margin: 0; color: var(--ink-2); font-size: 18px; }
.blog-list { padding-top: clamp(24px, 4vw, 48px); }

/* artículo */
.post__head { padding: clamp(130px, 14vw, 180px) 0 clamp(56px, 7vw, 96px); }
.post__head-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.post__intro h1 { font-size: clamp(42px, 5.4vw, 80px); line-height: 1.02; letter-spacing: -.02em; margin: 18px 0 24px; }
.post__dek { margin: 0 0 32px; max-width: 32em; color: var(--ink-2); font-size: clamp(18px, 1.5vw, 21px); }
.post__meta { margin: 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; letter-spacing: .04em; color: var(--muted); }
.post__lang-note { margin: 12px 0 0; font-size: 14px; color: var(--accent-ink); }
.post__cover { aspect-ratio: 4 / 5; }

.prose { max-width: 700px; margin: 0 auto; padding-bottom: clamp(16px, 3vw, 40px); font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2em; font-size: clamp(32px, 3.3vw, 44px); line-height: 1.08; color: var(--ink); }
.prose h3 { margin-top: 1.7em; font-size: clamp(24px, 2.1vw, 28px); line-height: 1.15; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: .75em; }
.prose strong { font-weight: 500; color: var(--ink); }
.prose a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--accent); }
.prose .note { font-size: 15px; color: var(--muted); }

/* "En resumen": la respuesta corta, arriba */
.tldr { padding: 26px 30px 28px; background: var(--surface); border-top: 1px solid var(--ink); }
.tldr > .eyebrow { display: block; margin-bottom: 10px; }
.tldr p { margin: 0; color: var(--ink); }
.tldr ul { margin: 0; padding-left: 1.2em; color: var(--ink); }

/* tablas de precios y comparaciones */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.prose th, .prose td { padding: 13px 16px 13px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { font-size: 11px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--ink); }
.prose td:first-child { color: var(--ink); }
.prose th:last-child, .prose td:last-child { padding-right: 0; }

.post-cta { padding-top: clamp(48px, 6vw, 80px); }
.related { padding-top: clamp(88px, 10vw, 140px); }

@media (max-width: 900px) {
  .post-lines { grid-template-columns: 1fr; gap: 0; }
  .post-line { padding: 26px 0 30px; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post__head-grid { grid-template-columns: 1fr; }
  .post__cover { max-width: 520px; aspect-ratio: 4 / 4.2; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .prose { font-size: 17px; }
  .prose table { font-size: 15px; }
  .tldr { padding: 22px 20px 24px; }
}
