/* ==========================================================================
   Creixensa Pilates & Fitness Studio
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/figtree.woff2") format("woff2");
}

:root {
  --ivory: #F7F5F0;
  --paper: #FCFBF8;
  --sand: #E8E1D6;
  --sand-soft: #F0EBE3;
  --sage: #879681;
  --sage-soft: #DCE3D7;
  --forest: #36483F;
  --forest-deep: #263830;
  --charcoal: #242824;
  --muted: #565D56;
  --gold: #A88452;
  --gold-text: #7A5C31;
  --gold-light: #D9BC8C;
  --line: rgba(36, 40, 36, 0.14);
  --line-light: rgba(247, 245, 240, 0.2);

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 136px);
  --radius: 6px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { margin: 0; font-weight: 500; }
h1, h2 {
  font-family: var(--font-display);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.1rem, 2.4vw + 1.3rem, 3.4rem); }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--gold); }

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

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--charcoal);
  color: var(--ivory);
  border-radius: var(--radius);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 14px;
}
.kicker-light { color: var(--gold-light); }

.section { padding-block: var(--section-y); }

.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p:not(.kicker) { margin-top: 18px; color: var(--muted); font-size: 1.125rem; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 0.9375rem/1.2 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--forest); color: var(--ivory); }
.btn-primary:hover { background: var(--forest-deep); }
.btn-ghost { border-color: rgba(36, 40, 36, 0.35); color: var(--charcoal); background: transparent; }
.btn-ghost:hover { border-color: var(--charcoal); background: rgba(36, 40, 36, 0.04); }
.btn-light { background: var(--ivory); color: var(--forest-deep); }
.btn-light:hover { background: #fff; }
.btn-small { min-height: 42px; padding: 9px 18px; font-size: 0.875rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}
.link-arrow::after {
  content: "";
  width: 18px; height: 1px;
  background: currentColor;
  transition: width .3s var(--ease);
}
.link-arrow:hover::after { width: 28px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(36, 40, 36, .35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--forest-deep);
}
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-word { width: auto; height: 26px; flex: none; }

.site-nav ul { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.site-nav a:not(.btn) {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  padding-block: 6px;
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 1px no-repeat;
  transition: background-size .3s var(--ease);
}
.site-nav a:not(.btn):hover { background-size: 100% 1px; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 4px 8px 12px;
  border: 0;
  background: none;
  color: var(--charcoal);
  font: 600 0.875rem var(--font-body);
  cursor: pointer;
}
.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
  display: block;
  width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle-icon { position: relative; }
.menu-toggle-icon::before,
.menu-toggle-icon::after { content: ""; position: absolute; left: 0; }
.menu-toggle-icon::before { top: -7px; }
.menu-toggle-icon::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 379px) {
  .menu-toggle-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .menu-toggle { padding-left: 10px; min-width: 44px; justify-content: center; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-word { height: 22px; }
  .brand { gap: 10px; }
}

@media (max-width: 899px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px var(--gutter) 24px;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -24px rgba(36, 40, 36, .45);
  }
  .site-nav:not(.is-open) { display: none; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a:not(.btn) {
    display: block;
    padding: 14px 0;
    font-size: 1.0625rem;
    background: none;
  }
  .nav-cta { margin-top: 8px; min-height: 48px; }
}

/* ---------- Hero ---------- */
/* Foto de la clienta a sangre completa, algo desaturada y con un velo gris oscuro
   uniforme (acabado cinematográfico) más un refuerzo en la zona del texto. */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(560px, calc(100svh - var(--header-h)), 900px);
  padding-block: clamp(64px, 8vw, 120px);
  overflow: hidden;
  background: #161717;
  color: var(--ivory);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: saturate(.62) contrast(1.04);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 15, 15, .62) 0%, rgba(14, 15, 15, .42) 40%, rgba(14, 15, 15, .08) 72%, rgba(14, 15, 15, 0) 100%),
    linear-gradient(0deg, rgba(14, 15, 15, .4) 0%, rgba(14, 15, 15, 0) 30%),
    rgba(24, 25, 25, .38);
}
.hero :focus-visible { outline-color: var(--gold-light); }

.hero-copy { max-width: 640px; }
.hero h1 {
  font-size: clamp(2.75rem, 5.2vw + 0.8rem, 5.6rem);
  line-height: 0.98;
  color: var(--ivory);
}
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero h1 .eyebrow {
  display: block;
  margin-bottom: 24px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--gold-light);
}
.hero-lead {
  max-width: 34rem;
  margin-top: 28px;
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem);
  color: rgba(247, 245, 240, .88);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .btn-primary { background: var(--ivory); color: var(--forest-deep); }
.hero .btn-primary:hover { background: #fff; }
.hero .btn-ghost { border-color: rgba(247, 245, 240, .6); color: var(--ivory); }
.hero .btn-ghost:hover { border-color: var(--ivory); background: rgba(247, 245, 240, .1); }
.hero-note { margin-top: 24px; font-size: 0.9375rem; color: rgba(247, 245, 240, .8); }
.hero-note a { color: var(--ivory); font-weight: 600; text-decoration-color: var(--gold-light); }

.rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 12px 18px 12px 16px;
  background: rgba(14, 15, 15, .45);
  border: 1px solid rgba(247, 245, 240, .28);
  border-radius: var(--radius);
  color: var(--ivory);
  text-decoration: none;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.rating-chip:hover { border-color: var(--gold-light); background: rgba(14, 15, 15, .62); }
.rating-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
}
.rating-text { font-size: 0.8125rem; font-weight: 600; line-height: 1.3; }
.rating-text span { font-weight: 400; color: rgba(247, 245, 240, .75); }

.hero-caption {
  position: absolute;
  right: var(--gutter);
  bottom: 20px;
  font-size: 0.8125rem;
  color: rgba(247, 245, 240, .75);
}

/* Transición hero → «El estudio»: el hero queda fijo y la sección siguiente sube por encima
   como una hoja. --hero-stick y --hero-cover (0 → 1) los calcula main.js al hacer scroll. */
.hero-stage { position: relative; }
.values {
  position: relative;
  z-index: 1;
  background: var(--ivory);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -28px 56px -32px rgba(0, 0, 0, .55);
}
@media (prefers-reduced-motion: no-preference) {
  .hero { position: sticky; top: var(--hero-stick, 0px); }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #0e0f0f;
    opacity: calc(var(--hero-cover, 0) * .55);
    pointer-events: none;
  }
  .hero-copy {
    opacity: calc(1 - var(--hero-cover, 0) * .7);
    transform: translateY(calc(var(--hero-cover, 0) * -48px));
  }
}

/* Móvil y tablet: el hero es más alto y estrecho que la foto. Para no ampliarla de más, la foto ocupa
   la parte superior (se ve la sala entera, centrada) y se funde con el fondo oscuro detrás del texto. */
@media (max-width: 819px) {
  .hero {
    --hero-photo-h: clamp(430px, 125vw, 600px);
    align-items: flex-end;
    min-height: calc(100svh - var(--header-h));
    padding-top: calc(var(--hero-photo-h) - 130px);
    padding-bottom: 40px;
  }
  .hero-bg {
    height: var(--hero-photo-h);
    bottom: auto;
    object-position: 50% 50%;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(14, 15, 15, 0) 0, rgba(14, 15, 15, .08) calc(var(--hero-photo-h) * .5), rgba(14, 15, 15, .6) calc(var(--hero-photo-h) * .85), rgba(14, 15, 15, .78) 100%),
      rgba(24, 25, 25, .32);
  }
  .hero-caption { position: static; margin-top: 28px; }
}
@media (max-width: 420px) {
  .hero-actions .btn { width: 100%; }
  .rating-num { font-size: 2rem; }
}

/* ---------- Values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.values-intro { position: sticky; top: calc(var(--header-h) + 40px); }
.values-intro h2 { color: var(--forest-deep); }
.values-intro p:not(.kicker) { margin-top: 22px; color: var(--muted); font-size: 1.125rem; max-width: 30rem; }

.values-list li {
  padding-block: 32px;
  border-top: 1px solid var(--line);
}
.values-list li:last-child { border-bottom: 1px solid var(--line); }
.values-list h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1vw + 1.2rem, 2rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--forest-deep);
}
.values-list p { margin-top: 14px; color: var(--muted); max-width: 34rem; }

@media (max-width: 819px) {
  .values-grid { grid-template-columns: 1fr; }
  .values-intro { position: static; }
}

/* ---------- Classes ---------- */
.classes { background: var(--sand-soft); }
.classes h2 { color: var(--forest-deep); }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(72px, 9vw, 128px); }
.feature-reverse .feature-media { order: 2; }
.feature-media { margin: 0; }
.feature-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.feature-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 3vw + 1.4rem, 4rem);
  font-weight: 500;
  line-height: 1;
  color: var(--forest-deep);
}
.feature-lead { margin-top: 18px; color: var(--muted); font-size: 1.125rem; max-width: 32rem; }

.class-list { margin-top: 32px; }
.class-list > div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 4px 20px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
}
.class-list > div:last-child { border-bottom: 1px solid var(--line); }
.class-list dt { font-weight: 600; color: var(--forest-deep); }
.class-list dd { color: var(--muted); }

.services-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 88px);
  margin-top: clamp(64px, 8vw, 112px);
}
.service-block { padding-top: 28px; border-top: 2px solid var(--forest); }
.service-block h3 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4vw + 1.3rem, 2.5rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--forest-deep);
}
.service-block > p { margin-top: 14px; color: var(--muted); }
@media (min-width: 820px) { .service-block-tall { grid-row: span 2; } }

.fitness-details { margin-top: 22px; }
.fitness-details > div { padding-block: 14px; border-top: 1px solid var(--line); }
.fitness-details > div:last-child { border-bottom: 1px solid var(--line); }
.fitness-details dt { font-weight: 600; color: var(--forest-deep); }
.fitness-details dd { margin-top: 4px; color: var(--muted); }
.service-media { margin: 28px 0 0; }
.service-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 42%; }
.plain-list { margin-top: 18px; }
.plain-list li { padding-block: 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.plain-list li:first-child { border-top: 1px solid var(--line); }
.plain-list strong { color: var(--forest-deep); font-weight: 600; }

@media (max-width: 819px) {
  .feature, .services-split { grid-template-columns: 1fr; }
  .feature-media img { aspect-ratio: 4 / 3; }
  .feature-reverse .feature-media { order: 0; }
}
@media (max-width: 479px) {
  .class-list > div { grid-template-columns: 1fr; }
}

/* ---------- Schedule ---------- */
.schedule-head {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
}
.schedule-head > div { max-width: 600px; }
.schedule h2 { color: var(--forest-deep); }

.filter {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}
.filter-btn {
  min-height: 40px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--charcoal);
  font: 500 0.9375rem var(--font-body);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.filter-btn[aria-pressed="true"] { background: var(--forest); color: var(--ivory); }
.filter-btn:not([aria-pressed="true"]):hover { background: var(--sand-soft); }

.schedule-table-wrap { display: block; }
.schedule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 8px;
  margin-inline: -8px;
  width: calc(100% + 16px);
  table-layout: fixed;
}
.schedule-table thead th {
  padding: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.schedule-table thead th:first-child { width: 72px; border-bottom: 0; }
.schedule-table tbody th {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  text-align: left;
  color: var(--forest-deep);
  vertical-align: middle;
}
.schedule-table td { height: 64px; padding: 0; vertical-align: top; }
.slot {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 64px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.25;
  transition: opacity .25s, background-color .25s;
}
.slot[data-type="pilates"], .day li[data-type="pilates"] { background: var(--sage-soft); color: var(--forest-deep); }
.slot[data-type="fitness"], .day li[data-type="fitness"] { background: var(--paper); color: var(--charcoal); box-shadow: inset 0 0 0 1px var(--line); }
.slot.is-dimmed, .day li.is-dimmed { opacity: .28; }

.schedule-days { display: none; }
.day h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--forest-deep);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.day ul { display: grid; gap: 8px; }
.day li {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: opacity .25s;
}
.day time {
  min-width: 3.2rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.schedule-foot { margin-top: 28px; color: var(--muted); font-size: 0.9375rem; }

@media (max-width: 819px) {
  .schedule-table-wrap { display: none; }
  .schedule-days { display: grid; gap: 36px; }
}
@media (min-width: 560px) and (max-width: 819px) {
  .schedule-days { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
}

/* ---------- Approach ---------- */
.approach { background: var(--forest-deep); color: var(--ivory); }
.approach :focus-visible { outline-color: var(--gold-light); }
.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
}
.approach-media { margin: 0; }
.approach-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px var(--radius) var(--radius);
}
.approach h2 { color: var(--ivory); }
.approach-lead { margin-top: 22px; font-size: 1.1875rem; color: rgba(247, 245, 240, .82); max-width: 36rem; }

.steps { margin: 36px 0 40px; }
.steps li {
  padding: 20px 0;
  border-top: 1px solid var(--line-light);
}
.steps li:last-child { border-bottom: 1px solid var(--line-light); }
.steps h3 { font-size: 1.125rem; color: var(--ivory); }
.steps p { margin-top: 6px; color: rgba(247, 245, 240, .75); }

@media (max-width: 819px) {
  .approach-grid { grid-template-columns: 1fr; }
  .approach-media { max-width: 420px; }
  .approach-media img { aspect-ratio: 1; border-radius: var(--radius); }
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(40px, 7vw, 112px);
}
.reviews h2 { color: var(--forest-deep); }
.reviews-score { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.reviews-num {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: .9;
  color: var(--forest-deep);
}
.reviews-meta { font-weight: 600; line-height: 1.35; }
.reviews-source { margin-top: 18px; font-size: 0.875rem; color: var(--muted); max-width: 22rem; }

.reviews-summary { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
/* Reseñas de distinta longitud: columnas tipo mosaico para evitar huecos. */
.reviews-columns { columns: 2; column-gap: 48px; }
.reviews-columns .review { break-inside: avoid; margin-bottom: 40px; }
.review { margin: 0; padding-top: 24px; border-top: 1px solid var(--line); }
.review blockquote { margin: 0; }
.review p {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--charcoal);
}
.review figcaption { margin-top: 16px; font-size: 0.875rem; font-weight: 600; color: var(--muted); }

@media (max-width: 899px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .reviews-summary { position: static; }
}
@media (max-width: 599px) {
  .reviews-columns { columns: 1; }
  .reviews-columns .review p { font-size: 1.375rem; }
}

/* ---------- Contact ---------- */
.contact { background: var(--sand-soft); }
.contact h2 { color: var(--forest-deep); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.info-list > div {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 4px 24px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}
.info-list > div:last-child { border-bottom: 1px solid var(--line); }
.info-list dt { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-text); padding-top: 3px; }
.info-list dd { color: var(--charcoal); }
.info-list .link-arrow { margin-top: 10px; }
.info-big {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.1;
  color: var(--forest-deep);
  text-decoration: none;
}
.info-actions { display: block; margin-top: 6px; }
.info-actions a, .info-list dd a:not(.link-arrow):not(.info-big) { color: var(--forest); font-weight: 600; }

.map {
  margin-top: 32px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(54, 72, 63, .14) 1px, transparent 1.5px) 0 0 / 22px 22px,
    var(--sand);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--muted);
}
.map-placeholder .btn { background: var(--paper); }

.contact-form {
  padding: clamp(24px, 4vw, 44px);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -48px rgba(36, 40, 36, .6);
}
.contact-form h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--forest-deep);
}
.form-help { margin-top: 10px; font-size: 0.9375rem; color: var(--muted); }

.field { margin: 22px 0 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}
.optional { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(36, 40, 36, .28);
  border-radius: var(--radius);
  background: #fff;
  color: var(--charcoal);
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color .2s, box-shadow .2s;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--charcoal) 50%), linear-gradient(135deg, var(--charcoal) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(36, 40, 36, .5); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(168, 132, 82, .45);
}
.field [aria-invalid="true"] { border-color: #A3402E; }
.field-error { margin-top: 6px; font-size: 0.875rem; font-weight: 500; color: #A3402E; }

.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid rgba(36, 40, 36, .22);
  border-radius: 999px;
  font-weight: 500 !important;
  cursor: pointer;
}
.radio:has(input:checked) { border-color: var(--forest); background: var(--sage-soft); }
.radio input { accent-color: var(--forest); margin: 0; }

.contact-form .btn-block { margin-top: 28px; }
.form-status:not(:empty) {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--sage);
  background: var(--sand-soft);
  font-size: 0.9375rem;
}
.form-alt { margin-top: 16px; font-size: 0.9375rem; color: var(--muted); text-align: center; }
.form-alt a { color: var(--forest); font-weight: 600; }

@media (max-width: 899px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 479px) {
  .info-list > div { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-deep);
  color: rgba(247, 245, 240, .82);
  padding-block: 72px 32px;
  font-size: 0.9375rem;
}
.site-footer :focus-visible { outline-color: var(--gold-light); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
.footer-logo { width: 220px; height: auto; margin-left: -3px; }
.footer-brand p { margin-top: 14px; max-width: 18rem; }
/* Lema del logo como texto real, en una línea del mismo ancho que la palabra «creixensa» */
.footer-brand .footer-tagline {
  width: 220px;
  max-width: none;
  margin: 5px 0 0 -3px;
  font-size: 0.53125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: #D4A756;
}
.footer-brand .footer-tagline + p { margin-top: 18px; }
.footer-title {
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.site-footer li + li, .site-footer p + p { margin-top: 8px; }
.site-footer a { color: var(--ivory); text-decoration-color: rgba(247, 245, 240, .35); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
  font-size: 0.8125rem;
  color: rgba(247, 245, 240, .6);
}

@media (max-width: 819px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 419px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Mobile CTA ---------- */
.mobile-cta { display: none; }
@media (max-width: 767px) {
  .mobile-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--ivory);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform .35s var(--ease);
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta .btn { min-height: 46px; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 96px; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Legal page ---------- */
.legal { padding-block: clamp(48px, 8vw, 104px); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.4rem, 3vw + 1.4rem, 3.6rem); color: var(--forest-deep); }
.legal h2 { font-size: 1.9rem; margin-top: 48px; color: var(--forest-deep); }
.legal p, .legal ul { margin-top: 14px; color: var(--muted); }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal li + li { margin-top: 6px; }
.legal h2 { padding-top: 32px; border-top: 1px solid var(--line); }
.legal h3 { margin-top: 28px; font-size: 1.0625rem; color: var(--charcoal); }
.legal a { color: var(--forest); }
.legal-updated { font-size: 0.875rem; }
.legal-toc ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; }
.legal-toc li + li { margin-top: 0; }
.legal-toc a { font-weight: 600; }
.legal-data { margin-top: 18px; }
.legal-data > div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 2px 20px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
}
.legal-data > div:last-child { border-bottom: 1px solid var(--line); }
.legal-data dt { font-weight: 600; color: var(--charcoal); }
.legal-data dd { color: var(--muted); }
@media (max-width: 479px) {
  .legal-data > div { grid-template-columns: 1fr; }
}
