/* --------------------------------------------------------------
   0. Tipografia propia (SA Triumph, licencia del cliente)
   Solo mayusculas y sin ñ, í, ó, ú, ü, ¿, ¡ ni €: el unicode-range
   deja fuera esos signos para que caigan en la fuente siguiente.
   -------------------------------------------------------------- */
@font-face {
  font-family: "SA Triumph";
  src: url("/assets/fonts/satriumph.woff2") format("woff2"),
       url("/assets/fonts/satriumph.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00B7, U+2013, U+2014, U+2018-201D, U+2022;
}

@font-face {
  font-family: "SA Triumph Outline";
  src: url("/assets/fonts/satriumph-outline.woff2") format("woff2"),
       url("/assets/fonts/satriumph-outline.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00B7, U+2013, U+2014, U+2018-201D, U+2022;
}

/* ==========================================================================
   JR Microcemento Valencia
   Sistema visual: editorial cálido sobre crema de microcemento.
   Display: Bodoni Moda · Interfaz y texto: Jost. Mobile first.
   ========================================================================== */

/* --------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------- */
:root {
  /* superficies */
  --cream: #f3efe7;
  --cream-2: #ece6dc;
  --cream-3: #e3dbcd;
  --sand: #d8cebd;
  --clay: #c3b39c;
  --paper: #fbf9f5;

  /* tinta */
  --ink: #1e1a16;
  --ink-soft: #564d43;
  --ink-mute: #857a6d;
  --espresso: #17130f;

  /* acento */
  --accent: #a2582f;
  --accent-2: #c0764a;
  --accent-soft: rgba(162, 88, 47, 0.1);
  --wa: #1d9e52;

  /* tipografia */
  --font-display: "SA Triumph", "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-outline: "SA Triumph Outline", "SA Triumph", sans-serif;
  --font-serif: "Bodoni Moda", "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  /* espaciado */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 96px;

  /* geometria */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-pill: 999px;
  --line: rgba(30, 26, 22, 0.14);
  --line-soft: rgba(30, 26, 22, 0.08);
  --shadow: 0 20px 45px -30px rgba(30, 26, 22, 0.45);
  --shadow-lift: 0 34px 60px -34px rgba(30, 26, 22, 0.5);

  --container: 1280px;
  --gutter: 20px;
  --bar-h: 74px;

  --ease: cubic-bezier(0.25, 0.6, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

/* --------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 20px);
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.004em;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
picture,
svg,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

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

::selection {
  background: var(--ink);
  color: var(--cream);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }
}

/* --------------------------------------------------------------
   3. Tipografia
   -------------------------------------------------------------- */
/* Ojo: los titulares de paginas interiores llevan acentos y ñ, que la
   tipografia propia no dibuja. Por eso el h1 general va en la serif y
   SA Triumph se reserva para textos que controlamos (portada, etiquetas,
   navegacion y cifras). */
h1 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}

h2,
.display-serif {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

h3,
h4,
h5 {
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.005em;
  color: var(--ink);
}

h1 {
  font-size: clamp(1.95rem, 0.9rem + 3.1vw, 3.5rem);
}

h1 em {
  display: block;
  font-size: 1.12em;
  line-height: 1.02;
  text-transform: none;
  margin-top: 0.06em;
}

h2 {
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.35rem);
}

h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.35rem);
}

h4 {
  font-size: 1.02rem;
}

p {
  text-wrap: pretty;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 60ch;
}

.muted {
  color: var(--ink-mute);
}

.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

/* --------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 900px;
}

.section {
  padding-block: clamp(64px, 8vw, 128px);
  position: relative;
}

.section--tight {
  padding-block: clamp(44px, 5vw, 76px);
}

.section--alt {
  background: var(--cream-2);
}

.section--paper {
  background: var(--paper);
}

.section--dark {
  background: var(--espresso);
  color: rgba(243, 239, 231, 0.78);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark strong {
  color: var(--cream);
}

.section--dark .lead {
  color: rgba(243, 239, 231, 0.74);
}

.section--dark .eyebrow {
  color: var(--accent-2);
}

.section__head {
  max-width: 780px;
  margin-bottom: clamp(36px, 4.5vw, 64px);
}

.section__head--split {
  max-width: none;
  display: grid;
  gap: var(--sp-3);
  align-items: end;
}

.section__head p {
  margin-top: var(--sp-2);
}

.grid {
  display: grid;
  gap: var(--sp-3);
}

@media (min-width: 700px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .section__head--split {
    grid-template-columns: 1.5fr 1fr;
    gap: var(--sp-5);
  }
}

@media (min-width: 700px) and (max-width: 999px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --------------------------------------------------------------
   5. Botones y enlaces
   -------------------------------------------------------------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  overflow: hidden;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
    background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
  position: relative;
  z-index: 1;
}

.btn span {
  position: relative;
  z-index: 1;
}

/* relleno que sube al pasar el raton */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.42s var(--ease-out);
  z-index: 0;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover::after {
  transform: translateY(0);
}

.btn--primary {
  background: var(--ink);
  color: var(--cream);
}

.btn--primary::after {
  background: var(--accent);
}

.btn--outline {
  border-color: var(--line);
  color: var(--ink);
}

.btn--outline::after {
  background: var(--ink);
}

.btn--outline:hover {
  color: var(--cream);
  border-color: var(--ink);
}

.btn--wa {
  border-color: rgba(29, 158, 82, 0.45);
  color: #14532d;
}

.btn--wa svg {
  color: var(--wa);
}

.btn--wa::after {
  background: var(--wa);
}

.btn--wa:hover {
  color: #fff;
  border-color: var(--wa);
}

.btn--wa:hover svg {
  color: #fff;
}

.section--dark .btn--outline {
  border-color: rgba(243, 239, 231, 0.28);
  color: var(--cream);
}

.section--dark .btn--outline::after {
  background: var(--cream);
}

.section--dark .btn--outline:hover {
  color: var(--ink);
}

.section--dark .btn--wa {
  color: var(--cream);
  border-color: rgba(29, 158, 82, 0.5);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.link-arrow::after {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}

.link-arrow:hover {
  color: var(--accent);
}

.link-arrow:hover::after {
  width: 32px;
}

/* subrayado que crece */
.u-link {
  position: relative;
}

.u-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.u-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --------------------------------------------------------------
   6. Cabecera
   -------------------------------------------------------------- */
.topbar {
  background: var(--espresso);
  color: rgba(243, 239, 231, 0.66);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: height 0.4s var(--ease), opacity 0.3s var(--ease);
  height: 42px;
  overflow: hidden;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  height: 42px;
}

.topbar__group {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.topbar__item svg {
  width: 13px;
  height: 13px;
  color: var(--accent-2);
  flex: none;
}

.topbar a:hover {
  color: var(--cream);
}

@media (max-width: 980px) {
  .topbar {
    display: none;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(243, 239, 231, 0.92);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line-soft);
  transition: transform 0.45s var(--ease), box-shadow 0.35s var(--ease),
    background-color 0.35s var(--ease);
}

.site-header.is-stuck {
  box-shadow: 0 12px 30px -26px rgba(30, 26, 22, 0.6);
  background: rgba(243, 239, 231, 0.97);
}

.site-header.is-hidden {
  transform: translateY(-102%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: var(--bar-h);
  transition: min-height 0.35s var(--ease);
}

.site-header.is-stuck .site-header__inner {
  min-height: 64px;
}

/* marca */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: none;
}

.brand__mark {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: transparent;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

.brand:hover .brand__mark {
  background: var(--ink);
  color: var(--cream);
}

.brand__text {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
}

.brand__text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 3px;
}

/* navegacion */
.nav {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 15px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
}

.nav__link::before {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav__link:hover,
.nav__item:hover > .nav__link {
  color: var(--ink);
}

.nav__link:hover::before,
.nav__item:hover > .nav__link::before,
.nav__link[aria-current="page"]::before {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__link[aria-current="page"] {
  color: var(--ink);
}

.nav__caret {
  width: 9px;
  height: 9px;
  transition: transform 0.3s var(--ease);
}

.nav__item:hover .nav__caret {
  transform: rotate(180deg);
}

/* panel desplegable */
.mega {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translate(-50%, 12px);
  width: min(760px, calc(100vw - 40px));
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
  padding: var(--sp-4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.36s var(--ease-out), visibility 0.3s;
}

.mega--wide {
  width: min(880px, calc(100vw - 40px));
}

.nav__item:hover .mega,
.nav__item:focus-within .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 22px;
}

.mega__link {
  display: block;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    padding-left 0.25s var(--ease);
}

.mega__link:hover {
  background: var(--cream-2);
  color: var(--ink);
  padding-left: 17px;
}

.mega__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line-soft);
  font-size: 0.82rem;
  color: var(--ink-mute);
}

.header__actions {
  display: none;
  align-items: center;
  gap: 18px;
  flex: none;
}

.header__tel {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.header__tel svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.header__tel small {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 400;
}

.burger {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  flex: none;
  transition: background-color 0.3s var(--ease);
}

.burger:hover {
  background: var(--cream-2);
}

.burger span {
  display: block;
  width: 17px;
  height: 1.4px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), width 0.3s var(--ease);
}

.burger span:last-child {
  width: 11px;
}

.burger:hover span:last-child {
  width: 17px;
}

@media (min-width: 1120px) {
  .nav {
    display: block;
  }
  .header__actions {
    display: flex;
  }
  .burger {
    display: none;
  }
}

/* barra de progreso de lectura */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  z-index: 100;
}

/* --------------------------------------------------------------
   7. Menu movil a pantalla completa
   -------------------------------------------------------------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--espresso);
  color: var(--cream);
  padding: 20px var(--gutter) 40px;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.65s var(--ease-out), visibility 0.6s;
}

.mobile-nav.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
}

.mobile-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid rgba(243, 239, 231, 0.14);
}

.mobile-nav .brand__mark {
  border-color: rgba(243, 239, 231, 0.5);
  color: var(--cream);
}

.mobile-nav .brand__text {
  color: var(--cream);
}

.mobile-nav .brand__text small {
  color: rgba(243, 239, 231, 0.5);
}

.mobile-nav__close {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(243, 239, 231, 0.28);
  border-radius: var(--r-pill);
  color: var(--cream);
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease), background-color 0.3s var(--ease);
}

.mobile-nav__close:hover {
  transform: rotate(90deg);
  background: rgba(243, 239, 231, 0.08);
}

.mobile-nav__list {
  display: grid;
  margin-block: var(--sp-4);
}

.mnav-item {
  border-bottom: 1px solid rgba(243, 239, 231, 0.12);
  opacity: 0;
  transform: translateY(18px);
}

.mobile-nav.is-open .mnav-item {
  animation: mnav-in 0.55s var(--ease-out) forwards;
}

@keyframes mnav-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.mnav-item > a,
.mnav-item > button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 2px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--cream);
  text-align: left;
}

.mnav-item__icon {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(243, 239, 231, 0.45);
  transition: transform 0.3s var(--ease);
}

.mnav-item.is-open .mnav-item__icon {
  transform: rotate(45deg);
}

.mnav-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.mnav-item.is-open .mnav-sub {
  grid-template-rows: 1fr;
}

.mnav-sub > div {
  overflow: hidden;
}

.mnav-sub a {
  display: block;
  padding: 10px 0 10px 2px;
  font-size: 0.95rem;
  color: rgba(243, 239, 231, 0.7);
}

.mnav-sub a:hover {
  color: var(--accent-2);
}

.mnav-sub > div > div {
  padding-bottom: var(--sp-3);
}

.mobile-nav__foot {
  display: grid;
  gap: 14px;
  font-size: 0.95rem;
  color: rgba(243, 239, 231, 0.72);
}

.mobile-nav__foot .btn--primary {
  background: var(--cream);
  color: var(--ink);
  margin-top: var(--sp-2);
}

.mobile-nav__foot .btn--primary::after {
  background: var(--accent);
}

.mobile-nav__foot .btn--primary:hover {
  color: var(--cream);
}

/* --------------------------------------------------------------
   8. Hero editorial
   -------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(48px, 6vw, 92px) clamp(40px, 5vw, 72px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 70% at 88% 8%, rgba(192, 118, 74, 0.16) 0%, transparent 62%);
  pointer-events: none;
}

.hero__grid > * {
  min-width: 0;
}

.hero__grid {
  display: grid;
  gap: clamp(36px, 5vw, 60px);
  align-items: center;
  position: relative;
}

@media (min-width: 1000px) {
  .hero__grid {
    grid-template-columns: 1.06fr 0.94fr;
  }
}

.hero__badge {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(251, 249, 245, 0.7);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--sp-3);
}

.hero__badge b {
  color: var(--accent);
  font-weight: 500;
}

.hero h1 {
  margin-bottom: var(--sp-3);
  overflow-wrap: break-word;
}

.hero h1 em {
  color: var(--accent);
}

.hero__services span:not(:last-child)::after {
  content: "·";
  margin-left: 18px;
  color: var(--clay);
}

.hero__services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--sp-3);
}

.hero__sub {
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: var(--sp-4);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* media del hero */
.hero__media {
  position: relative;
}

.hero__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--cream-3);
  aspect-ratio: 4 / 5;
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero__tag {
  position: absolute;
  left: 0;
  bottom: 26px;
  max-width: 230px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 15px 20px;
  box-shadow: var(--shadow-lift);
}

.hero__tag b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
}

.hero__tag span {
  font-size: 0.8rem;
  color: var(--ink-mute);
}

@media (min-width: 1000px) {
  .hero__tag {
    left: -34px;
  }
}

/* franja de datos */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 5vw, 68px);
}

@media (min-width: 860px) {
  .stat-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  padding: var(--sp-4) var(--sp-3) var(--sp-3) 0;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

@media (max-width: 859px) {
  .stat:nth-child(2n) {
    border-right: 0;
    padding-left: var(--sp-3);
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
}

.stat > span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* hero de paginas interiores */
.page-hero {
  position: relative;
  padding-block: clamp(44px, 5vw, 78px) clamp(36px, 4vw, 60px);
  background: var(--cream-2);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -6%;
  top: -40%;
  width: 46%;
  height: 180%;
  background: radial-gradient(circle at center, rgba(192, 118, 74, 0.15) 0%, transparent 66%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 1.05rem + 2.1vw, 2.9rem);
  max-width: 22ch;
  margin-bottom: var(--sp-3);
}

.page-hero .lead {
  margin-bottom: var(--sp-3);
}

.breadcrumb {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--sp-3);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 9px;
  color: var(--clay);
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------
   9. Marquesina
   -------------------------------------------------------------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--cream-2);
  overflow: hidden;
  padding-block: 18px;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 38px;
  padding-right: 38px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 0.9rem + 1.1vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.marquee__track span::after {
  content: "✳";
  font-size: 0.72em;
  color: var(--accent);
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------
   10. Tarjetas
   -------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-3);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--line);
}

.section--alt .card {
  background: var(--paper);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-3);
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card__num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 12px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  font-size: 0.96rem;
}

.card__foot {
  margin-top: var(--sp-3);
}

.section--dark .card {
  background: rgba(243, 239, 231, 0.045);
  border-color: rgba(243, 239, 231, 0.14);
}

.section--dark .card p {
  color: rgba(243, 239, 231, 0.7);
}

.section--dark .card__icon {
  background: rgba(192, 118, 74, 0.18);
  color: var(--accent-2);
}

/* tarjeta de servicio */
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.svc-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-3);
}

.svc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s var(--ease-out);
}

.svc-card:hover .svc-card__media img {
  transform: scale(1.06);
}

.svc-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(23, 19, 15, 0.35) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.svc-card:hover .svc-card__media::after {
  opacity: 1;
}

.svc-card__body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: var(--sp-3);
  flex: 1;
}

.svc-card__body h3 {
  font-size: 1.22rem;
}

.svc-card__body p {
  font-size: 0.93rem;
  flex: 1;
}

/* tarjeta simple */
.tile {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: var(--sp-3);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.tile h3 {
  font-size: 1.08rem;
}

.tile p {
  font-size: 0.92rem;
}

.tile__meta {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --------------------------------------------------------------
   11. Proceso
   -------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 760px) {
  .steps--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .steps--4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .steps--5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

.step {
  padding: var(--sp-4) var(--sp-3) var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

@media (min-width: 1080px) {
  .step {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding-right: var(--sp-4);
  }
  .step:last-child {
    border-right: 0;
  }
}

.step b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 400;
  color: var(--clay);
  line-height: 1;
  margin-bottom: var(--sp-2);
  transition: color 0.4s var(--ease);
}

.step:hover b {
  color: var(--accent);
}

.step h3 {
  margin-bottom: 9px;
}

.step p {
  font-size: 0.93rem;
}

.section--dark .step,
.section--dark .steps {
  border-color: rgba(243, 239, 231, 0.16);
}

.section--dark .step b {
  color: rgba(243, 239, 231, 0.35);
}

.section--dark .step:hover b {
  color: var(--accent-2);
}

.section--dark .step p {
  color: rgba(243, 239, 231, 0.68);
}

/* --------------------------------------------------------------
   12. Bloque partido
   -------------------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(30px, 4.5vw, 62px);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--reverse .split__media {
    order: -1;
  }
}

.split__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--cream-3);
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}

.split__media:hover img {
  transform: scale(1.04);
}

.split__badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(251, 249, 245, 0.94);
  backdrop-filter: blur(6px);
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  max-width: 76%;
  box-shadow: var(--shadow);
}

.split__badge b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.2;
}

.check-list {
  display: grid;
  gap: 13px;
  margin-top: var(--sp-3);
}

.check-list li {
  position: relative;
  padding-left: 32px;
  font-size: 0.98rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 17px;
  height: 9px;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg);
}

.section--dark .check-list li {
  color: rgba(243, 239, 231, 0.72);
}

.section--dark .check-list li::before {
  border-color: var(--accent-2);
}

/* --------------------------------------------------------------
   13. Chips y zonas
   -------------------------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  background: var(--paper);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

a.chip:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.section--dark .chip {
  background: rgba(243, 239, 231, 0.06);
  border-color: rgba(243, 239, 231, 0.16);
  color: rgba(243, 239, 231, 0.8);
}

.zone-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .zone-list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: var(--sp-5);
  }
}

@media (min-width: 1040px) {
  .zone-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.zone-list a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  color: var(--ink);
  overflow: hidden;
  transition: padding-left 0.35s var(--ease), color 0.3s var(--ease);
}

.zone-list a:hover {
  padding-left: 14px;
  color: var(--accent);
}

.zone-list span {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.section--dark .zone-list,
.section--dark .zone-list a {
  border-color: rgba(243, 239, 231, 0.16);
}

.section--dark .zone-list a {
  color: var(--cream);
}

/* --------------------------------------------------------------
   14. Galeria
   -------------------------------------------------------------- */
.gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
  }
  .gallery figure:first-child,
  .gallery figure:nth-child(6) {
    grid-column: span 2;
    grid-row: span 2;
  }
  /* la segunda pieza grande va a la derecha: zigzag sin huecos */
  .gallery figure:nth-child(6) {
    grid-column: 3 / span 2;
  }
}

.gallery figure {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--cream-3);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  transition: transform 1s var(--ease-out);
}

.gallery figure:hover img {
  transform: scale(1.07);
}

.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 16px 14px;
  font-size: 0.8rem;
  color: #fff;
  background: linear-gradient(0deg, rgba(23, 19, 15, 0.82), transparent);
  transform: translateY(6px);
  opacity: 0;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.gallery figure:hover figcaption {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------- */
.faq {
  display: grid;
  max-width: 920px;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}

.faq__q:hover {
  color: var(--accent);
}

.faq__q i {
  position: relative;
  width: 15px;
  height: 15px;
  flex: none;
}

.faq__q i::before,
.faq__q i::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform 0.35s var(--ease);
}

.faq__q i::before {
  left: 0;
  top: 7px;
  width: 15px;
  height: 1.5px;
}

.faq__q i::after {
  left: 7px;
  top: 0;
  width: 1.5px;
  height: 15px;
}

.faq__item.is-open .faq__q i::after {
  transform: rotate(90deg);
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s var(--ease);
}

.faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
}

.faq__a > div {
  overflow: hidden;
}

.faq__a p {
  padding: 0 44px 24px 4px;
  font-size: 0.98rem;
}

.section--dark .faq,
.section--dark .faq__item {
  border-color: rgba(243, 239, 231, 0.16);
}

.section--dark .faq__q {
  color: var(--cream);
}

.section--dark .faq__a p {
  color: rgba(243, 239, 231, 0.7);
}

/* --------------------------------------------------------------
   16. Formularios
   -------------------------------------------------------------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 38px);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 640px) {
  .form-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-field--full {
    grid-column: 1 / -1;
  }
}

.form-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 2px;
  min-height: 50px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.3s var(--ease);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--clay);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"],
.form-field select[aria-invalid="true"] {
  border-color: #b3452b;
}

.form-error {
  display: block;
  font-size: 0.78rem;
  color: #a03c24;
  margin-top: 6px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.form-check input {
  width: 19px;
  height: 19px;
  margin-top: 3px;
  accent-color: var(--accent);
  flex: none;
}

.form-check a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-note {
  font-size: 0.84rem;
  color: var(--ink-mute);
  margin-top: 14px;
}

.form-status {
  margin-top: 16px;
  font-size: 0.92rem;
  padding: 13px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-ok {
  border-color: rgba(29, 158, 82, 0.4);
  background: rgba(29, 158, 82, 0.07);
  color: #17663a;
}

.form-status.is-error {
  border-color: rgba(179, 69, 43, 0.4);
  background: rgba(179, 69, 43, 0.06);
  color: #a03c24;
}

/* --------------------------------------------------------------
   17. CTA y contacto
   -------------------------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--espresso);
  color: rgba(243, 239, 231, 0.75);
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  left: -8%;
  bottom: -60%;
  width: 46%;
  height: 190%;
  background: radial-gradient(circle at center, rgba(192, 118, 74, 0.24) 0%, transparent 62%);
}

.cta-band__inner {
  position: relative;
  display: grid;
  gap: var(--sp-4);
  align-items: center;
  padding-block: clamp(52px, 6.5vw, 92px);
}

@media (min-width: 940px) {
  .cta-band__inner {
    grid-template-columns: 1.25fr 1fr;
  }
}

.cta-band h2 {
  color: var(--cream);
  max-width: 17ch;
}

.cta-band p {
  margin-top: var(--sp-2);
  max-width: 50ch;
  color: rgba(243, 239, 231, 0.72);
}

.contact-grid {
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr 1.08fr;
    gap: var(--sp-6);
  }
}

.info-list {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
}

.info-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.info-list svg {
  width: 19px;
  height: 19px;
  color: var(--accent);
  flex: none;
  margin-top: 4px;
}

.info-list b {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin-bottom: 3px;
}

.info-list a,
.info-list div > span {
  color: var(--ink);
  font-size: 1.02rem;
}

.info-list a:hover {
  color: var(--accent);
}

.map-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  line-height: 0;
  background: var(--cream-3);
  border: 1px solid var(--line-soft);
}

.map-frame iframe {
  width: 100%;
  height: 400px;
  border: 0;
  filter: grayscale(0.35) sepia(0.12) contrast(1.02);
}

.hours {
  display: grid;
  gap: 0;
  font-size: 0.98rem;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.hours div span:last-child {
  color: var(--ink);
}

/* --------------------------------------------------------------
   18. Blog
   -------------------------------------------------------------- */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.post-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream-3);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s var(--ease-out);
}

.post-card:hover .post-card__media img {
  transform: scale(1.05);
}

.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: var(--sp-3);
  flex: 1;
}

.post-card__tag {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.post-card__body h3 {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.22;
}

.post-card__body p {
  font-size: 0.93rem;
  flex: 1;
}

.post-card__meta {
  font-size: 0.78rem;
  color: var(--ink-mute);
}

/* articulo */
.article {
  max-width: 780px;
}

.article__hero {
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--sp-5);
  background: var(--cream-3);
}

.article__hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}

.prose {
  font-size: 1.06rem;
  line-height: 1.82;
  color: var(--ink-soft);
}

.prose > * + * {
  margin-top: var(--sp-3);
}

.prose h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.15rem);
  margin-top: var(--sp-6);
}

.prose h3 {
  font-size: 1.2rem;
  margin-top: var(--sp-4);
}

.prose ul,
.prose ol {
  display: grid;
  gap: 12px;
}

.prose ul li {
  position: relative;
  padding-left: 26px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}

.prose ol {
  counter-reset: n;
}

.prose ol li {
  position: relative;
  padding-left: 36px;
  counter-increment: n;
}

.prose ol li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--accent);
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose a:hover {
  color: var(--ink);
}

.prose blockquote {
  border-left: 2px solid var(--accent);
  padding: 6px 0 6px 24px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink);
}

.prose figure img {
  border-radius: var(--r-md);
  width: 100%;
}

.prose figcaption {
  font-size: 0.84rem;
  color: var(--ink-mute);
  margin-top: 9px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 480px;
}

.prose th,
.prose td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}

.prose tbody tr:last-child td {
  border-bottom: 0;
}

.prose th {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cream-2);
}

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--cream-2);
  padding: var(--sp-3) var(--sp-4);
  font-size: 0.98rem;
}

.callout b {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 7px;
}

.toc {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--cream-2);
  padding: var(--sp-3) var(--sp-4);
}

.toc b {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin-bottom: 14px;
}

.toc ol {
  display: grid;
  gap: 9px;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  font-size: 0.95rem;
}

.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-display);
  color: var(--accent);
  margin-right: 12px;
}

.toc a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------
   19. Pie
   -------------------------------------------------------------- */
.site-footer {
  background: var(--espresso);
  color: rgba(243, 239, 231, 0.68);
  padding-top: clamp(56px, 6vw, 92px);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: var(--sp-5);
  padding-bottom: var(--sp-6);
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.15fr;
  }
}

.footer-col h2 {
  font-family: var(--font-display);
  line-height: 1.28;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(243, 239, 231, 0.45);
  font-weight: 500;
  margin-bottom: var(--sp-3);
}

.footer-col ul {
  display: grid;
  gap: 11px;
}

.footer-col a {
  color: rgba(243, 239, 231, 0.72);
  transition: color 0.25s var(--ease);
}

.footer-col a:hover {
  color: var(--accent-2);
}

.site-footer .brand__mark {
  border-color: rgba(243, 239, 231, 0.4);
  color: var(--cream);
}

.site-footer .brand__text {
  color: var(--cream);
}

.site-footer .brand__text small {
  color: rgba(243, 239, 231, 0.45);
}

.footer-brand p {
  margin-top: var(--sp-3);
  max-width: 40ch;
  color: rgba(243, 239, 231, 0.62);
  font-size: 0.93rem;
}

.footer-nap {
  display: grid;
  gap: 14px;
}

.footer-nap span {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 239, 231, 0.4);
  margin-bottom: 2px;
}

.footer-nap a,
.footer-nap p {
  color: rgba(243, 239, 231, 0.85);
}

.footer-bottom {
  border-top: 1px solid rgba(243, 239, 231, 0.12);
  padding-block: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px var(--sp-4);
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(243, 239, 231, 0.45);
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.footer-bottom a:hover {
  color: var(--cream);
}

/* --------------------------------------------------------------
   20. Elementos flotantes
   -------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px -12px rgba(29, 158, 82, 0.7);
  transform: scale(0);
  transition: transform 0.4s var(--ease-out), background-color 0.3s var(--ease);
}

.wa-float.is-in {
  transform: scale(1);
}

.wa-float:hover {
  background: #17864a;
}

.wa-float svg {
  width: 29px;
  height: 29px;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 86px;
  z-index: 70;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.to-top.is-in {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.to-top svg {
  width: 17px;
  height: 17px;
}

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 75;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--espresso);
  border-top: 1px solid rgba(243, 239, 231, 0.14);
}

.mobile-bar a {
  padding: 15px 8px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 56px;
}

.mobile-bar a:first-child {
  border-right: 1px solid rgba(243, 239, 231, 0.14);
}

.mobile-bar svg {
  width: 16px;
  height: 16px;
}

.mobile-bar a:last-child svg {
  color: #52e08a;
}

body {
  padding-bottom: 56px;
}

@media (max-width: 859px) {
  .wa-float,
  .to-top {
    display: none;
  }
}

@media (min-width: 860px) {
  .mobile-bar {
    display: none;
  }
  body {
    padding-bottom: 0;
  }
}

/* cursor personalizado (solo raton fino) */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  margin: -3px 0 0 -3px;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(30, 26, 22, 0.35);
  margin: -17px 0 0 -17px;
  transition: opacity 0.3s var(--ease), width 0.3s var(--ease),
    height 0.3s var(--ease), margin 0.3s var(--ease), background-color 0.3s var(--ease);
}

html.has-cursor .cursor-dot,
html.has-cursor .cursor-ring {
  opacity: 1;
}

html.has-cursor .cursor-ring.is-hover {
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  background: rgba(162, 88, 47, 0.08);
  border-color: rgba(162, 88, 47, 0.4);
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* --------------------------------------------------------------
   21. Animaciones de entrada
   -------------------------------------------------------------- */
html.js [data-anim] {
  opacity: 0;
  will-change: opacity, transform;
}

html.js [data-anim="rise"] {
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

html.js [data-anim="fade"] {
  transition: opacity 0.9s var(--ease-out);
}

html.js [data-anim="left"] {
  transform: translateX(-28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

html.js [data-anim="right"] {
  transform: translateX(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

html.js [data-anim="zoom"] {
  transform: scale(0.96);
  transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out);
}

/* revelado por cortina: no se usa clip-path sobre el elemento observado
   porque el recorte impide que el IntersectionObserver lo detecte */
html.js [data-anim="clip"] {
  opacity: 1;
  position: relative;
}

html.js [data-anim="clip"]::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 3;
  background: var(--cream-2);
  transform-origin: bottom;
  transition: transform 1s var(--ease-out);
}

html.js [data-anim="clip"].is-in::before {
  transform: scaleY(0);
}

html.js [data-anim="clip"] img {
  transform: scale(1.14);
  transition: transform 1.6s var(--ease-out);
}

html.js [data-anim].is-in {
  opacity: 1;
  transform: none;
}

html.js [data-anim="clip"].is-in img {
  transform: none;
}

/* titulares por lineas */
html.js .line-mask {
  display: block;
  overflow: hidden;
}

html.js .line-mask > span {
  display: block;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease-out);
}

html.js .is-in .line-mask > span,
html.js .line-mask.is-in > span {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html.js [data-anim],
  html.js .line-mask > span {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .marquee__track {
    animation: none;
  }
}

/* --------------------------------------------------------------
   22. 404, legales y utilidades
   -------------------------------------------------------------- */
.error-page {
  min-height: 60vh;
  display: grid;
  align-content: center;
  text-align: center;
  padding-block: var(--sp-7);
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 3rem + 13vw, 12rem);
  font-weight: 400;
  line-height: 0.9;
  color: var(--sand);
  margin-bottom: var(--sp-3);
}

.error-page .btn-row {
  justify-content: center;
}

.error-page .lead {
  margin-inline: auto;
}

.text-center {
  text-align: center;
}

.mt-3 {
  margin-top: var(--sp-3);
}

.mt-4 {
  margin-top: var(--sp-4);
}

.mt-5 {
  margin-top: var(--sp-5);
}

.legal h2 {
  font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.9rem);
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-2);
}

.legal h3 {
  font-size: 1.12rem;
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-1);
}

.legal p,
.legal li {
  font-size: 1rem;
}

.legal ul {
  display: grid;
  gap: 9px;
  margin-top: var(--sp-2);
  padding-left: 22px;
  list-style: disc;
}

.legal ul li::marker {
  color: var(--accent);
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------
   23. Ajustes de contraste sobre la banda oscura de cierre
   -------------------------------------------------------------- */
.cta-band .eyebrow {
  color: var(--accent-2);
}

.cta-band .btn--outline {
  border-color: rgba(243, 239, 231, 0.3);
  color: var(--cream);
}

.cta-band .btn--outline::after {
  background: var(--cream);
}

.cta-band .btn--outline:hover {
  color: var(--ink);
  border-color: var(--cream);
}

.cta-band .btn--wa {
  color: var(--cream);
  border-color: rgba(29, 158, 82, 0.55);
}

.cta-band .btn--wa:hover {
  color: #fff;
}

/* --------------------------------------------------------------
   24. Textura de grano (mata el aspecto plano y digital)
   -------------------------------------------------------------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.09'/%3E%3C/svg%3E");
}

@media print {
  body::after {
    display: none;
  }
}

/* --------------------------------------------------------------
   25. Vídeo de obra real
   -------------------------------------------------------------- */
.v-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--cream-3);
  aspect-ratio: 478 / 850;
}

.v-frame video,
.v-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v-frame video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}

.v-frame video.is-ready {
  opacity: 1;
}

.v-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(23, 19, 15, 0.16) 0%, transparent 26%, transparent 62%, rgba(23, 19, 15, 0.32) 100%);
}

.v-badge {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(23, 19, 15, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: #fff;
}

.v-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e2593a;
  animation: rec 1.8s ease-in-out infinite;
}

@keyframes rec {
  50% {
    opacity: 0.25;
  }
}

.v-toggle {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(23, 19, 15, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.v-toggle:hover {
  background: rgba(23, 19, 15, 0.7);
  transform: scale(1.06);
}

.v-toggle svg {
  width: 15px;
  height: 15px;
}

.v-toggle .ico-pause {
  display: none;
}

.v-toggle.is-playing .ico-play {
  display: none;
}

.v-toggle.is-playing .ico-pause {
  display: block;
}

/* tira de reels */
.reels {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 900px) {
  .reels {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 599px) {
  .reels {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-inline: auto;
  }
}

.reel figcaption {
  margin-top: 14px;
}

.reel figcaption b {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 3px;
}

.reel figcaption span {
  font-size: 0.86rem;
  color: var(--ink-mute);
}

.section--dark .reel figcaption b {
  color: var(--cream);
}

.section--dark .reel figcaption span {
  color: rgba(243, 239, 231, 0.6);
}

/* nota bajo los vídeos */
.v-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--ink-mute);
}

.v-note::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--clay);
}

/* --------------------------------------------------------------
   26. Titular contorneado decorativo
   -------------------------------------------------------------- */
.outline-word {
  font-family: var(--font-outline);
  text-transform: uppercase;
  line-height: 0.9;
  color: var(--ink);
  opacity: 0.5;
  font-size: clamp(3rem, 1rem + 11vw, 9rem);
  pointer-events: none;
  user-select: none;
}

.section--dark .outline-word {
  color: var(--cream);
  opacity: 0.22;
}

/* la categoría del blog puede llevar acentos: se queda en la fuente de texto */
.eyebrow--text {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.18em;
}

/* --------------------------------------------------------------
   27. Vídeo del hero: formato vertical recortado para no alargar la portada
   -------------------------------------------------------------- */
.hero__media {
  max-width: 470px;
  margin-inline: auto;
}

.hero__media .v-frame {
  aspect-ratio: 4 / 5;
}

@media (min-width: 1000px) {
  .hero__media {
    margin-left: auto;
    margin-right: 0;
  }
}

@media (max-width: 599px) {
  .hero__media .v-frame {
    aspect-ratio: 4 / 5;
  }
  .hero__tag {
    position: static;
    max-width: none;
    margin-top: 14px;
    display: flex;
    align-items: baseline;
    gap: 12px;
  }
}

/* en móvil el vídeo debe verse antes: los dos botones secundarios comparten fila */
@media (max-width: 599px) {
  .hero__ctas .btn:first-child {
    width: 100%;
  }
  .hero__ctas .btn:not(:first-child) {
    flex: 1 1 44%;
    padding-inline: 16px;
  }
}

@media (max-width: 599px) {
  .hero__tag b {
    white-space: nowrap;
  }
}

@media (max-width: 419px) {
  .hero__ctas .btn:not(:first-child) {
    flex: 1 1 100%;
  }
}

/* vídeo vertical dentro de una página de servicio */
.svc-video {
  max-width: 400px;
  margin-inline: auto;
}

.svc-video .v-frame {
  aspect-ratio: 4 / 5;
}


/* ==============================================================
   28. Portada: vídeo de fondo, tipografía centrada y cabecera encima
   ============================================================== */
.hero--cinema {
  position: relative;
  min-height: clamp(600px, 88vh, 920px);
  display: grid;
  align-content: center;
  padding-block: clamp(90px, 14vh, 150px) clamp(40px, 6vh, 70px);
  background: var(--espresso);
  color: rgba(243, 239, 231, 0.82);
  overflow: hidden;
  isolation: isolate;
}

.hero--cinema::before {
  display: none;
}

/* capa de vídeo */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero__bg img,
.hero__bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  /* contraste bajo y desenfoque leve: el vídeo es textura, no protagonista */
  filter: saturate(0.5) contrast(0.9) brightness(1.02) blur(2px);
  transform: scale(1.08);
}

.hero__bg video {
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.hero__bg video.is-ready {
  opacity: 1;
}

/* velo de color para que el texto siempre se lea */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 42%, rgba(23, 19, 15, 0.42) 0%, rgba(23, 19, 15, 0.78) 62%, rgba(23, 19, 15, 0.94) 100%),
    linear-gradient(180deg, rgba(23, 19, 15, 0.9) 0%, transparent 26%, transparent 62%, var(--espresso) 100%);
}

.hero__inner {
  position: relative;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  color: rgba(243, 239, 231, 0.62);
  margin-bottom: clamp(20px, 3vh, 34px);
}

.hero__kicker::before,
.hero__kicker::after {
  content: "";
  width: clamp(24px, 5vw, 58px);
  height: 1px;
  background: rgba(243, 239, 231, 0.32);
}

/* titular */
.hero__title {
  margin: 0 0 clamp(18px, 2.6vh, 30px);
  line-height: 0.92;
  color: var(--cream);
}

.hero__title .t-line {
  display: block;
  font-family: var(--font-display);
  font-size: min(6.9rem, 8.2vw);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero__title .t-mid {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  font-size: min(2.6rem, 3.1vw);
  line-height: 1;
  color: var(--accent-2);
  margin-block: clamp(2px, 0.6vh, 10px);
}

.hero__title .t-outline {
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(243, 239, 231, 0.9);
  paint-order: stroke fill;
}

@supports (font-family: "SA Triumph Outline") {
  .hero__title .t-outline.has-outline-font {
    -webkit-text-stroke: 0;
    font-family: var(--font-outline);
    color: rgba(243, 239, 231, 0.95);
  }
}

/* frase con palabra rotatoria */
.hero__rot {
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
  color: rgba(243, 239, 231, 0.78);
  margin-bottom: clamp(26px, 3.4vh, 38px);
}

.rot {
  display: inline-grid;
  vertical-align: baseline;
  overflow: hidden;
  height: 1.3em;
  line-height: 1.3;
  text-align: left;
}

.rot span {
  grid-area: 1 / 1;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1em;
  line-height: 1.18;
  color: var(--accent-2);
  white-space: nowrap;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.5s var(--ease);
}

.rot span.is-in {
  transform: none;
  opacity: 1;
}

.rot span.is-out {
  transform: translateY(-110%);
  opacity: 0;
}

.hero--cinema .hero__ctas {
  justify-content: center;
}

.hero--cinema .btn--outline {
  border-color: rgba(243, 239, 231, 0.34);
  color: var(--cream);
}

.hero--cinema .btn--outline::after {
  background: var(--cream);
}

.hero--cinema .btn--outline:hover {
  color: var(--ink);
  border-color: var(--cream);
}

.hero--cinema .btn--wa {
  color: var(--cream);
  border-color: rgba(29, 158, 82, 0.55);
}

.hero--cinema .btn--wa:hover {
  color: #fff;
}

/* franja de datos dentro de la portada */
.hero__stats {
  width: 100%;
  margin-top: clamp(38px, 6vh, 76px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(243, 239, 231, 0.16);
}

@media (min-width: 800px) {
  .hero__stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hero__stats .stat {
  border-right: 1px solid rgba(243, 239, 231, 0.16);
  border-bottom: 0;
  padding: clamp(18px, 2.4vh, 26px) 16px;
  text-align: center;
}

.hero__stats .stat:last-child {
  border-right: 0;
}

@media (max-width: 799px) {
  .hero__stats .stat:nth-child(2n) {
    border-right: 0;
    padding-left: 16px;
  }
  .hero__stats .stat:nth-child(n + 3) {
    border-top: 1px solid rgba(243, 239, 231, 0.16);
  }
}

.hero__stats .stat b {
  color: var(--cream);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem);
  margin-bottom: 4px;
}

.hero__stats .stat > span {
  color: rgba(243, 239, 231, 0.55);
  font-size: 0.72rem;
}

/* indicador de scroll */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: rgba(243, 239, 231, 0.45);
}

.hero__cue i {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, rgba(243, 239, 231, 0.5), transparent);
  position: relative;
  overflow: hidden;
}

.hero__cue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -42px;
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, transparent, var(--accent-2));
  animation: cue 2.4s var(--ease) infinite;
}

@keyframes cue {
  to {
    transform: translateY(84px);
  }
}

@media (max-width: 720px) {
  .hero__cue {
    display: none;
  }
}

/* ---- cabecera transparente sobre la portada ---- */
.site-header--over {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

.site-header--over .brand__text,
.site-header--over .header__tel,
.site-header--over .nav__link {
  color: var(--cream);
}

.site-header--over .brand__mark {
  border-color: rgba(243, 239, 231, 0.55);
  color: var(--cream);
}

.site-header--over .brand:hover .brand__mark {
  background: var(--cream);
  color: var(--ink);
}

.site-header--over .brand__text small,
.site-header--over .header__tel small {
  color: rgba(243, 239, 231, 0.5);
}

.site-header--over .nav__link {
  color: rgba(243, 239, 231, 0.82);
}

.site-header--over .nav__link:hover,
.site-header--over .nav__item:hover > .nav__link,
.site-header--over .nav__link[aria-current="page"] {
  color: var(--cream);
}

.site-header--over .nav__link::before {
  background: var(--accent-2);
}

.site-header--over .btn--primary {
  background: var(--cream);
  color: var(--ink);
}

.site-header--over .btn--primary::after {
  background: var(--accent);
}

.site-header--over .btn--primary:hover {
  color: var(--cream);
}

.site-header--over .burger {
  border-color: rgba(243, 239, 231, 0.4);
}

.site-header--over .burger span {
  background: var(--cream);
}

/* al hacer scroll recupera el fondo crema */
.site-header--over.is-stuck {
  position: fixed;
  background: rgba(243, 239, 231, 0.97);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line-soft);
}

.site-header--over.is-stuck .brand__text,
.site-header--over.is-stuck .header__tel {
  color: var(--ink);
}

.site-header--over.is-stuck .brand__mark {
  border-color: var(--ink);
  color: var(--ink);
}

.site-header--over.is-stuck .brand__text small,
.site-header--over.is-stuck .header__tel small {
  color: var(--ink-mute);
}

.site-header--over.is-stuck .nav__link {
  color: var(--ink-soft);
}

.site-header--over.is-stuck .nav__link:hover,
.site-header--over.is-stuck .nav__item:hover > .nav__link,
.site-header--over.is-stuck .nav__link[aria-current="page"] {
  color: var(--ink);
}

.site-header--over.is-stuck .nav__link::before {
  background: var(--accent);
}

.site-header--over.is-stuck .btn--primary {
  background: var(--ink);
  color: var(--cream);
}

.site-header--over.is-stuck .burger {
  border-color: var(--line);
}

.site-header--over.is-stuck .burger span {
  background: var(--ink);
}

/* la topbar se desliza fuera al hacer scroll */
.topbar--over {
  position: relative;
  z-index: 81;
  background: rgba(23, 19, 15, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(243, 239, 231, 0.1);
}

/* con la cabecera fija, la portada arranca bajo la topbar */
body.has-over-header .hero--cinema {
  margin-top: -42px;
  padding-top: clamp(130px, 18vh, 200px);
}

@media (max-width: 980px) {
  body.has-over-header .hero--cinema {
    margin-top: 0;
  }
}

/* entrada del titular */
html.js .hero__title .t-line,
html.js .hero__title .t-mid {
  opacity: 0;
  transform: translateY(38px);
}

html.js .hero--cinema.is-live .hero__title .t-line,
html.js .hero--cinema.is-live .hero__title .t-mid {
  animation: heroIn 1.05s var(--ease-out) forwards;
}

html.js .hero--cinema.is-live .hero__title .t-mid {
  animation-delay: 0.14s;
}

html.js .hero--cinema.is-live .hero__title .t-line:last-child {
  animation-delay: 0.26s;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: none;
  }
}

html.js .hero--cinema .hero__kicker,
html.js .hero--cinema .hero__rot,
html.js .hero--cinema .hero__sub,
html.js .hero--cinema .hero__ctas,
html.js .hero--cinema .hero__stats,
html.js .hero--cinema .hero__cue {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease-out);
}

html.js .hero--cinema.is-live .hero__kicker,
html.js .hero--cinema.is-live .hero__rot,
html.js .hero--cinema.is-live .hero__sub,
html.js .hero--cinema.is-live .hero__ctas,
html.js .hero--cinema.is-live .hero__stats,
html.js .hero--cinema.is-live .hero__cue {
  opacity: 1;
  transform: none;
}

html.js .hero--cinema.is-live .hero__rot {
  transition-delay: 0.42s;
}

html.js .hero--cinema.is-live .hero__sub {
  transition-delay: 0.5s;
}

html.js .hero--cinema.is-live .hero__ctas {
  transition-delay: 0.58s;
}

html.js .hero--cinema.is-live .hero__stats {
  transition-delay: 0.68s;
}

html.js .hero--cinema.is-live .hero__cue {
  transition-delay: 0.9s;
}

@media (prefers-reduced-motion: reduce) {
  html.js .hero__title .t-line,
  html.js .hero__title .t-mid,
  html.js .hero--cinema .hero__kicker,
  html.js .hero--cinema .hero__rot,
  html.js .hero--cinema .hero__sub,
  html.js .hero--cinema .hero__ctas,
  html.js .hero--cinema .hero__stats,
  html.js .hero--cinema .hero__cue {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .hero__cue i::after {
    animation: none;
  }
  .hero__bg video {
    display: none;
  }
}


/* ==============================================================
   29. Bloque superior fijo sobre la portada
   ============================================================== */
.site-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
}

.site-top .site-header--over {
  position: relative;
}

/* al hacer scroll la barra de datos se recoge y la cabecera se vuelve sólida */
.site-top .topbar--over {
  transition: height 0.4s var(--ease), opacity 0.3s var(--ease);
}

body.is-scrolled .site-top .topbar--over {
  height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

/* la portada empieza por debajo del bloque fijo */
body.has-over-header .hero--cinema {
  margin-top: 0;
  padding-top: clamp(140px, 19vh, 210px);
}

@media (max-width: 980px) {
  body.has-over-header .hero--cinema {
    padding-top: clamp(120px, 16vh, 170px);
  }
}

/* velo algo más denso en la mitad superior, donde va el texto */
.hero__veil {
  background:
    radial-gradient(115% 85% at 50% 44%, rgba(23, 19, 15, 0.5) 0%, rgba(23, 19, 15, 0.82) 60%, rgba(23, 19, 15, 0.95) 100%),
    linear-gradient(180deg, rgba(23, 19, 15, 0.92) 0%, rgba(23, 19, 15, 0.55) 30%, rgba(23, 19, 15, 0.55) 60%, var(--espresso) 100%);
}

/* ==============================================================
   30. Portada: el vídeo es textura, el texto manda
   ============================================================== */
.hero__bg img,
.hero__bg video {
  filter: saturate(0.32) contrast(0.8) brightness(0.58) blur(2.5px);
  transform: scale(1.1);
}

html.js .hero--cinema.is-live .hero__bg video {
  animation: heroZoom 26s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1.2) translateY(-1.5%);
  }
}

.hero__veil {
  background:
    radial-gradient(120% 80% at 50% 46%, rgba(23, 19, 15, 0.34) 0%, rgba(23, 19, 15, 0.72) 58%, rgba(23, 19, 15, 0.92) 100%),
    linear-gradient(180deg, rgba(23, 19, 15, 0.94) 0%, rgba(23, 19, 15, 0.7) 26%, rgba(23, 19, 15, 0.74) 62%, var(--espresso) 100%);
}

/* la palabra rotatoria solo se desliza, sin desvanecerse */
.rot span {
  opacity: 1;
  transition: transform 0.62s var(--ease-out);
}

.rot span.is-in {
  opacity: 1;
}

.rot span.is-out {
  opacity: 1;
}

/* un punto más de peso en el texto de apoyo */
.hero__kicker {
  color: rgba(243, 239, 231, 0.72);
}

.hero--cinema .hero__sub {
  color: rgba(243, 239, 231, 0.84);
  max-width: 58ch;
  margin-inline: auto;
}

.hero__rot {
  color: rgba(243, 239, 231, 0.88);
}

@media (prefers-reduced-motion: reduce) {
  html.js .hero--cinema.is-live .hero__bg video {
    animation: none;
  }
}

/* el hueco de la palabra rotatoria se ajusta a cada palabra */
.rot {
  transition: width 0.5s var(--ease-out);
  will-change: width;
}

.rot span {
  transition: transform 0.48s var(--ease-out);
}


/* ==============================================================
   31. Fondo de portada: recortado y reescalado offline, ya no
   necesita desenfoque para disimular la ampliación del navegador
   ============================================================== */
.hero__bg picture {
  position: absolute;
  inset: 0;
}

.hero__bg img,
.hero__bg video {
  filter: saturate(0.42) contrast(0.86) brightness(0.66) blur(0.4px);
  transform: scale(1.04);
}

html.js .hero--cinema.is-live .hero__bg video {
  animation: heroZoom 30s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.12) translateY(-1%);
  }
}

/* el velo compensa el brillo extra ahora que el vídeo se ve más */
.hero__veil {
  background:
    radial-gradient(120% 82% at 50% 46%, rgba(23, 19, 15, 0.42) 0%, rgba(23, 19, 15, 0.76) 58%, rgba(23, 19, 15, 0.93) 100%),
    linear-gradient(180deg, rgba(23, 19, 15, 0.9) 0%, rgba(23, 19, 15, 0.66) 26%, rgba(23, 19, 15, 0.72) 62%, var(--espresso) 100%);
}

/* en pantallas pequeñas el texto ocupa casi todo el ancho: más velo */
@media (max-width: 799px) {
  .hero__bg img,
  .hero__bg video {
    filter: saturate(0.38) contrast(0.84) brightness(0.5) blur(0.6px);
  }

  .hero__veil {
    background:
      radial-gradient(130% 70% at 50% 42%, rgba(23, 19, 15, 0.5) 0%, rgba(23, 19, 15, 0.82) 60%, rgba(23, 19, 15, 0.95) 100%),
      linear-gradient(180deg, rgba(23, 19, 15, 0.92) 0%, rgba(23, 19, 15, 0.8) 30%, rgba(23, 19, 15, 0.84) 66%, var(--espresso) 100%);
  }

  .hero__title .t-outline {
    -webkit-text-stroke-width: 1.4px;
  }
}


/* ==============================================================
   32. Desplegables sin hueco muerto y botón de WhatsApp permanente
   ============================================================== */

/* el panel arranca pegado al enlace; el borde transparente hace de puente
   para que el ratón pueda bajar sin que se cierre */
.mega {
  top: 100%;
  border-top: 14px solid transparent;
  background-clip: padding-box;
}

.nav__item.is-open .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav__item.is-open > .nav__link {
  color: var(--ink);
}

.nav__item.is-open > .nav__link::before {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header--over .nav__item.is-open > .nav__link {
  color: var(--cream);
}

.nav__item.is-open .nav__caret {
  transform: rotate(180deg);
}

/* zona de seguridad bajo el enlace mientras el menú está abierto */
.nav__item.is-open::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
}

/* --- botón flotante de WhatsApp, visible siempre --- */
.wa-float {
  transform: scale(1);
  width: 58px;
  height: 58px;
  right: 22px;
  bottom: 22px;
  overflow: hidden;
  justify-items: center;
  gap: 0;
  transition: width 0.4s var(--ease-out), background-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.wa-float span {
  position: absolute;
  right: 66px;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--cream);
  background: var(--espresso);
  padding: 9px 14px;
  border-radius: var(--r-pill);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease-out);
  pointer-events: none;
}

.wa-float:hover span {
  opacity: 1;
  transform: none;
}

.wa-float:hover {
  background: #17864a;
  box-shadow: 0 16px 34px -12px rgba(29, 158, 82, 0.75);
}

/* un latido muy suave la primera vez, para que se vea sin molestar */
@media (prefers-reduced-motion: no-preference) {
  .wa-float::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--wa);
    animation: waPulse 2.8s ease-out 3;
  }
}

@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70%,
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

/* en móvil ya existe la barra inferior fija con Llamar y WhatsApp:
   el flotante se coloca justo encima y se mantiene siempre visible */
@media (max-width: 859px) {
  .wa-float {
    display: grid;
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 68px;
  }

  .wa-float span {
    display: none;
  }

  .to-top {
    display: none;
  }
}


/* ==============================================================
   33. Botones con relleno: se leen como botones, no como contornos
   ============================================================== */

/* WhatsApp, relleno en su verde de siempre */
.btn--wa {
  background: var(--wa);
  border-color: var(--wa);
  color: #fff;
}

.btn--wa svg {
  color: #fff;
}

.btn--wa::after {
  background: #17864a;
}

.btn--wa:hover {
  color: #fff;
  border-color: #17864a;
}

.btn--wa:hover svg {
  color: #fff;
}

/* secundario: relleno suave en vez de solo borde */
.btn--outline {
  background: var(--cream-3);
  border-color: rgba(30, 26, 22, 0.12);
}

.section--dark .btn--outline,
.cta-band .btn--outline,
.hero--cinema .btn--outline {
  background: rgba(243, 239, 231, 0.12);
  border-color: rgba(243, 239, 231, 0.24);
}

.section--dark .btn--wa,
.cta-band .btn--wa,
.hero--cinema .btn--wa {
  background: var(--wa);
  border-color: var(--wa);
  color: #fff;
}

/* en la portada oscura el botón principal va en claro para que destaque */
.hero--cinema .btn--primary {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

.hero--cinema .btn--primary svg {
  color: var(--accent);
}

.hero--cinema .btn--primary::after {
  background: var(--accent);
}

.hero--cinema .btn--primary:hover {
  color: var(--cream);
  border-color: var(--accent);
}

.hero--cinema .btn--primary:hover svg {
  color: var(--cream);
}

/* dos botones: un poco más de cuerpo */
.hero--cinema .hero__ctas .btn {
  padding-inline: 34px;
}

@media (max-width: 599px) {
  .hero--cinema .hero__ctas .btn {
    flex: 1 1 100%;
    padding-inline: 20px;
  }
}

/* verde algo más apagado en los botones: se reconoce sin gritar */
.btn--wa,
.section--dark .btn--wa,
.cta-band .btn--wa,
.hero--cinema .btn--wa {
  background: #1a7a45;
  border-color: #1a7a45;
}

.btn--wa::after {
  background: #146036;
}

.btn--wa:hover {
  border-color: #146036;
}

/* separación entre párrafos en las páginas legales */
.legal p + p,
.legal p + ul,
.legal ul + p {
  margin-top: var(--sp-2);
}


/* ==============================================================
   34. Titulares de paginas interiores en la serif editorial
   ============================================================== */
h1 em {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: none;
}

.page-hero h1 {
  font-size: clamp(2.05rem, 1.2rem + 2.7vw, 3.5rem);
  line-height: 1.05;
  max-width: 20ch;
}

/* la portada mantiene la tipografia propia, que ahi el texto lo controlamos */
.hero__title .t-line {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.96;
}

.hero__title .t-mid {
  font-family: var(--font-serif);
}

.error-page .code {
  font-family: var(--font-display);
}

/* ==============================================================
   35. Serif con más cuerpo: Bodoni Moda tiene un contraste muy alto
   y en pantalla los trazos finos se perdían. Se baja el eje de
   tamaño óptico (opsz) para usar el corte de texto, más robusto,
   y se sube el peso.
   ============================================================== */
h1,
h2,
.display-serif,
.cta-band h2 {
  font-weight: 700;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 10;
  letter-spacing: -0.012em;
}

/* piezas serif de tamaño medio */
.post-card__body h3,
.prose blockquote,
.callout b,
.reel figcaption b,
.hero__title .t-mid,
.serif-accent,
em {
  font-weight: 600;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 12;
}

/* la cursiva de la portada, algo más presente sobre el vídeo */
.hero__title .t-mid {
  font-weight: 600;
  font-variation-settings: "opsz" 14;
}

/* con más peso la serif ocupa más: se ajusta el titular en móvil */
.page-hero h1 {
  font-size: clamp(1.85rem, 1.05rem + 2.6vw, 3.4rem);
}

/* ==============================================================
   36. El "en" del titular de portada
   Escalaba solo con el ancho de pantalla y en movil se quedaba en
   12 px, descolgado de las dos palabras grandes. Ahora crece con el
   titular y respira por arriba y por abajo.
   ============================================================== */
.hero__title .t-mid {
  font-size: clamp(1.4rem, 0.75rem + 2.6vw, 2.6rem);
  line-height: 1.05;
  margin-block: clamp(6px, 1.1vw, 14px);
  letter-spacing: 0.01em;
}

@media (max-width: 599px) {
  .hero__title .t-mid {
    margin-block: 8px 6px;
  }
}

/* ==============================================================
   37. Carta de colores interactiva
   ============================================================== */
.paleta {
  display: grid;
  gap: clamp(26px, 3.5vw, 44px);
}

/* muestra grande del color activo */
.paleta__muestra {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c, var(--cream-3));
  aspect-ratio: 21 / 9;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow);
  transition: background-color 0.7s var(--ease);
}

@media (max-width: 700px) {
  .paleta__muestra {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
}

/* textura de microcemento sobre el color plano */
.paleta__muestra::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='t'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23t)' opacity='0.14'/%3E%3C/svg%3E");
}

/* leve degradado para que el texto se lea siempre */
.paleta__muestra::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(15deg, rgba(0, 0, 0, 0.3) 0%, transparent 55%);
}

.paleta__muestra.is-claro::after {
  background: linear-gradient(15deg, rgba(255, 255, 255, 0.42) 0%, transparent 55%);
}

.paleta__muestra figcaption {
  position: relative;
  z-index: 1;
  padding: clamp(20px, 3vw, 34px);
  color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

.paleta__muestra.is-claro figcaption {
  color: var(--ink);
  text-shadow: none;
}

.paleta__familia {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 6px;
}

.paleta__nombre {
  display: block;
  font-family: var(--font-serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 12;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 8px;
}

.paleta__nota {
  display: block;
  font-size: 0.95rem;
  max-width: 46ch;
  opacity: 0.92;
}

/* carrusel */
.paleta__carrusel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.paleta__viewport {
  overflow: hidden;
  padding-block: 12px;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.paleta__pista {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  width: max-content;
  will-change: transform;
  transition: transform 0.55s var(--ease-out);
}

.paleta__punto {
  --s: 0.8;
  --o: 0.35;
  flex: none;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 0;
  transform: scale(var(--s));
  opacity: var(--o);
  transition: transform 0.55s var(--ease-out), opacity 0.5s var(--ease);
  cursor: pointer;
}

.paleta__punto span {
  display: block;
  width: clamp(52px, 8vw, 72px);
  height: clamp(52px, 8vw, 72px);
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(30, 26, 22, 0.14), 0 10px 22px -12px rgba(30, 26, 22, 0.55);
  transition: box-shadow 0.4s var(--ease);
}

.paleta__punto i {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.paleta__punto[aria-selected="true"] {
  --s: 1.5;
  --o: 1;
  cursor: default;
}

.paleta__punto[aria-selected="true"] span {
  box-shadow: inset 0 0 0 1px rgba(30, 26, 22, 0.2), 0 0 0 4px var(--cream), 0 0 0 5px var(--accent),
    0 16px 30px -14px rgba(30, 26, 22, 0.6);
}

.paleta__punto[aria-selected="true"] i {
  opacity: 1;
  color: var(--ink);
}

.paleta__punto:hover span {
  box-shadow: inset 0 0 0 1px rgba(30, 26, 22, 0.2), 0 0 0 3px var(--cream), 0 0 0 4px var(--clay),
    0 14px 26px -12px rgba(30, 26, 22, 0.5);
}

.paleta__nav {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex: none;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.paleta__nav svg {
  width: 18px;
  height: 18px;
}

.paleta__nav:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.paleta__nav[disabled] {
  opacity: 0.3;
  pointer-events: none;
}

.paleta__pie {
  font-size: 0.85rem;
  color: var(--ink-mute);
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
}

/* sobre fondo oscuro */
.section--dark .paleta__punto i {
  color: rgba(243, 239, 231, 0.55);
}

.section--dark .paleta__punto[aria-selected="true"] i {
  color: var(--cream);
}

.section--dark .paleta__punto[aria-selected="true"] span {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2), 0 0 0 4px var(--espresso), 0 0 0 5px var(--accent-2);
}

.section--dark .paleta__nav {
  background: rgba(243, 239, 231, 0.08);
  border-color: rgba(243, 239, 231, 0.22);
  color: var(--cream);
}

.section--dark .paleta__nav:hover {
  background: var(--cream);
  color: var(--ink);
}

.section--dark .paleta__pie {
  color: rgba(243, 239, 231, 0.55);
}

/* rejilla completa de la carta */
.carta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
}

.carta__color {
  display: grid;
  gap: 10px;
}

.carta__color b {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(30, 26, 22, 0.12);
  position: relative;
  overflow: hidden;
}

.carta__color b::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23c)' opacity='0.13'/%3E%3C/svg%3E");
}

.carta__color strong {
  font-family: var(--font-serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 12;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.carta__color span {
  font-size: 0.82rem;
  color: var(--ink-mute);
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .paleta__pista,
  .paleta__punto,
  .paleta__muestra {
    transition: none;
  }
}

/* ==============================================================
   38. Ajustes del carrusel de colores
   El circulo activo crece 1,5 veces. Si se escala el boton entero,
   la etiqueta del nombre crece con el y se sale del recorte, asi que
   solo se escala el circulo.
   ============================================================== */
.paleta__viewport {
  padding-block: 30px 16px;
}

.paleta__punto {
  transform: none;
  gap: 8px;
}

.paleta__punto span {
  transform: scale(var(--s));
  transform-origin: center;
  transition: transform 0.55s var(--ease-out), box-shadow 0.4s var(--ease);
}

.paleta__punto[aria-selected="true"] i {
  margin-top: 14px;
}

/* en móvil caben menos círculos: se reducen y se suaviza el difuminado */
@media (max-width: 700px) {
  .paleta__viewport {
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }

  .paleta__punto span {
    width: 46px;
    height: 46px;
  }

  .paleta__pista {
    gap: 12px;
  }

  .paleta__nav {
    width: 40px;
    height: 40px;
  }

  .paleta__carrusel {
    gap: 4px;
  }
}

/* los botones de contorno sobre banda crema necesitan algo más de cuerpo */
.section--alt .btn--outline {
  background: var(--paper);
  border-color: rgba(30, 26, 22, 0.16);
}

/* ==============================================================
   39. Reclamos de la carta de colores
   ============================================================== */

/* puntos de color reutilizables */
.mega__puntos,
.promo-color__puntos {
  display: inline-flex;
  align-items: center;
}

.mega__puntos i,
.promo-color__puntos i {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(30, 26, 22, 0.14);
  margin-right: -6px;
}

.mega__puntos i:last-child,
.promo-color__puntos i:last-child {
  margin-right: 0;
}

/* tercer botón de la portada */
.btn--color {
  background: rgba(243, 239, 231, 0.14);
  border-color: rgba(243, 239, 231, 0.34);
  color: var(--cream);
  position: relative;
}

.btn--color::after {
  background: var(--accent);
}

.btn--color:hover {
  color: var(--cream);
  border-color: var(--accent);
}

.btn--color svg {
  color: var(--accent-2);
}

.btn--color:hover svg {
  color: var(--cream);
}

/* destacado dentro del mega-menú */
.mega__destacado {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: var(--sp-3);
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: linear-gradient(100deg, var(--cream-2) 0%, var(--cream-3) 100%);
  border: 1px solid var(--line-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.mega__destacado:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.mega__destacado b {
  display: block;
  font-family: var(--font-serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 12;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.mega__destacado small {
  font-size: 0.8rem;
  color: var(--ink-mute);
}

.mega__destacado svg {
  width: 18px;
  height: 18px;
  margin-left: auto;
  color: var(--accent);
  flex: none;
  transition: transform 0.3s var(--ease);
}

.mega__destacado:hover svg {
  transform: translateX(4px);
}

/* enlace de color dentro del menú móvil */
.mnav-color {
  display: flex !important;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 12px 14px !important;
  border-radius: var(--r-pill);
  background: rgba(243, 239, 231, 0.08);
  color: var(--cream) !important;
}

.mnav-color .mega__puntos i {
  width: 15px;
  height: 15px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

/* tarjeta destacada en el hub de servicios */
.promo-color {
  display: grid;
  gap: 16px;
  align-items: center;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--r-lg);
  background: linear-gradient(105deg, var(--paper) 0%, var(--cream-2) 55%, var(--cream-3) 100%);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

@media (min-width: 880px) {
  .promo-color {
    grid-template-columns: auto 1fr auto;
    gap: 28px;
  }
}

.promo-color:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.promo-color__puntos i {
  width: 30px;
  height: 30px;
  margin-right: -10px;
}

.promo-color__texto b {
  display: block;
  font-family: var(--font-serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 12;
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.7rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
}

.promo-color__texto span {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 62ch;
  display: block;
}

.promo-color__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  justify-self: start;
  transition: background-color 0.3s var(--ease);
}

.promo-color__cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.promo-color:hover .promo-color__cta {
  background: var(--accent);
}

.promo-color:hover .promo-color__cta svg {
  transform: translateX(4px);
}

/* el tercer botón de la portada, con algo más de cuerpo sobre el vídeo */
.hero--cinema .btn--color {
  background: rgba(243, 239, 231, 0.2);
  border-color: rgba(243, 239, 231, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (max-width: 599px) {
  .hero--cinema .hero__ctas .btn--color {
    flex: 1 1 100%;
  }
}


/* ==============================================================
   40. Ajustes de móvil pedidos por el cliente
   ============================================================== */

/* el botón de color, en terracota lleno: en pantalla pequeña el estilo
   traslúcido se perdía sobre el vídeo */
@media (max-width: 859px) {
  .hero--cinema .btn--color,
  .btn--color {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--cream);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .btn--color svg {
    color: var(--cream);
  }

  .btn--color::after {
    background: #8a4826;
  }
}

/* la carta de colores abre el desplegable de servicios del menú móvil */
.mnav-color {
  display: flex !important;
  align-items: center;
  gap: 14px;
  margin: 6px 0 16px;
  padding: 16px 18px !important;
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--cream) !important;
  transition: background-color 0.3s var(--ease);
}

.mnav-color:hover {
  background: #8a4826;
  color: var(--cream) !important;
}

.mnav-color__t {
  display: block;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.2;
}

.mnav-color__t small {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(243, 239, 231, 0.72);
  margin-top: 2px;
}

.mnav-color .mega__puntos i {
  width: 17px;
  height: 17px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2), 0 0 0 1.5px rgba(243, 239, 231, 0.6);
}


/* ==============================================================
   41. Botón de color en ocre también en escritorio, y arrastre
   ============================================================== */
.btn--color,
.hero--cinema .btn--color {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--cream);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.btn--color svg {
  color: var(--cream);
}

.btn--color::after {
  background: #8a4826;
}

.btn--color:hover,
.hero--cinema .btn--color:hover {
  color: var(--cream);
  border-color: #8a4826;
}

.btn--color:hover svg {
  color: var(--cream);
}

/* el carrusel se puede arrastrar; el dedo conserva el scroll vertical */
.paleta__pista {
  touch-action: pan-y;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.paleta__pista.is-dragging {
  cursor: grabbing;
  transition: none;
}

.paleta__punto span {
  pointer-events: none;
}

.paleta__viewport {
  overscroll-behavior-x: contain;
}


/* ==============================================================
   42. Carrusel de colores con scroll nativo
   El arrastre programado a mano no respondia en moviles reales.
   Con scroll nativo y anclaje, el gesto lo maneja el sistema: hay
   inercia, se puede pasar de uno en uno o de varios, y sigue
   funcionando el clic, las flechas y el teclado.
   ============================================================== */
.paleta__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x pan-y;
  cursor: grab;
}

.paleta__viewport::-webkit-scrollbar {
  display: none;
}

.paleta__viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

/* la pista ya no se mueve por transform: la mueve el scroll */
.paleta__pista {
  transform: none !important;
  transition: none;
  padding-inline: calc(50% - 36px);
  touch-action: auto;
  cursor: inherit;
}

.paleta__punto {
  scroll-snap-align: center;
  scroll-snap-stop: normal;
}

@media (max-width: 700px) {
  .paleta__pista {
    padding-inline: calc(50% - 23px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .paleta__viewport {
    scroll-behavior: auto;
  }
}

/* ==============================================================
   43. El botón blanco de la portada se dora al pasar por encima
   ============================================================== */
.hero--cinema .btn--primary::after {
  background: #ddbe86;
}

.hero--cinema .btn--primary:hover,
.hero--cinema .btn--primary:focus-visible {
  color: var(--ink);
  border-color: #ddbe86;
}

.hero--cinema .btn--primary:hover svg,
.hero--cinema .btn--primary:focus-visible svg {
  color: #8a5a24;
}


/* ==============================================================
   44. Aviso previo del mapa: el embed de Google instala cookies de
   terceros en cuanto se carga, asi que solo se pide si se pulsa.
   ============================================================== */
.map-aviso {
  display: grid;
  gap: 10px;
  place-content: center;
  justify-items: center;
  text-align: center;
  min-height: 400px;
  padding: 32px 20px;
  line-height: 1.6;
  background: var(--cream-3);
}

.map-aviso__t {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.map-aviso__p {
  max-width: 44ch;
  font-size: 0.92rem;
  color: var(--ink-mute);
}

.map-aviso__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 6px;
}
