/* ==========================================================================
   MehoMe Space coLiving — hoja de estilos principal
   Tu espacio. Nuestro hogar.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --paper:      #ffffff;
  --sand:       #f5f4f0;
  --sand-deep:  #ebe9e3;
  --ink:        #32312c;
  --ink-soft:   #55544e;
  --muted:      #7d7c75;
  --line:       #e3e1da;
  --line-soft:  #efede8;

  /* Marca — del cuadro de colores MehoMe Space coLiving */
  --brand:       #e6193f;  /* rojo de la marca */
  --brand-light: #ed4860;  /* media tinta del marcador */
  --brand-deep:  #c2122f;  /* estados activos */
  --brand-tint:  #fce7eb;
  /* Auxiliares: una cálida en la marca, frías y cálidas para contraste */
  --teal:       #2b9d95;
  --teal-deep:  #1f6f68;   /* el teal puro no contrasta como texto */
  --teal-tint:  #e2f1ef;
  --orange:     #ec9938;
  --vermilion:  #e36d32;
  --green:      #61b34d;
  --surface-dark: #22211d;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-xl: 34px;

  --shadow-s: 0 1px 2px rgba(21, 25, 29, .05), 0 2px 8px rgba(21, 25, 29, .04);
  --shadow-m: 0 2px 6px rgba(21, 25, 29, .05), 0 14px 34px rgba(21, 25, 29, .08);
  --shadow-l: 0 30px 70px rgba(21, 25, 29, .14);

  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 48px);

  --font-display: "Nunito", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:     #17181a;
    --sand:      #1d1f21;
    --sand-deep: #26282b;
    --ink:       #f2f1ec;
    --ink-soft:  #cbc9c2;
    --muted:     #9b9992;
    --line:      #33353a;
    --line-soft: #2a2c30;
    --brand:       #ff5068;
    --brand-light: #ff7e90;
    --brand-deep:  #ff7e90;
    --brand-tint:  #3a1c22;
    --teal:       #5ec9c0;
    --teal-deep:  #8fdcd5;
    --teal-tint:  #16302e;
    --orange:     #f0ae5b;
    --vermilion:  #ef8a57;
    --green:      #86cc74;
    --surface-dark: #181714;
    --shadow-s: 0 1px 2px rgba(0,0,0,.4);
    --shadow-m: 0 14px 34px rgba(0,0,0,.45);
    --shadow-l: 0 30px 70px rgba(0,0,0,.55);
  }
}
:root[data-theme="dark"] {
  --paper:     #17181a;
  --sand:      #1d1f21;
  --sand-deep: #26282b;
  --ink:       #f2f1ec;
  --ink-soft:  #cbc9c2;
  --muted:     #9b9992;
  --line:      #33353a;
  --line-soft: #2a2c30;
  --brand:       #ff5068;
  --brand-light: #ff7e90;
  --brand-deep:  #ff7e90;
  --brand-tint:  #3a1c22;
  --teal:       #5ec9c0;
  --teal-deep:  #8fdcd5;
  --teal-tint:  #16302e;
  --orange:     #f0ae5b;
  --vermilion:  #ef8a57;
  --green:      #86cc74;
  --surface-dark: #181714;
  --shadow-s: 0 1px 2px rgba(0,0,0,.4);
  --shadow-m: 0 14px 34px rgba(0,0,0,.45);
  --shadow-l: 0 30px 70px rgba(0,0,0,.55);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

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

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

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--sand { background: var(--sand); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 62ch; }
.section-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.grid { display: grid; gap: clamp(16px, 2.2vw, 26px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 920px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 4. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit; font-size: .97rem; font-weight: 600;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(230, 25, 63, .24); }
.btn--primary:hover { background: var(--brand-deep); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn--primary { color: #2a1008; box-shadow: none; }
}
:root[data-theme="dark"] .btn--primary { color: #2a1008; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: var(--sand); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--ink-soft); }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: .9rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--brand); font-size: .97rem;
}
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header__inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 22px; height: 34px; flex: none; }
.brand__text { display: grid; gap: 2px; justify-items: end; }
.brand__name {
  font-family: var(--font-display); font-size: 1.18rem; font-weight: 800;
  letter-spacing: -.022em; line-height: 1; color: var(--ink);
}
.brand__name span { color: var(--brand); }
.brand__tag {
  font-size: .56rem; font-weight: 700; letter-spacing: .32em;
  color: var(--muted); line-height: 1; margin-right: -.32em;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  padding: 9px 13px; border-radius: 999px; font-size: .94rem; font-weight: 500; color: var(--ink-soft);
  white-space: nowrap;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav a:not(.btn):hover { color: var(--ink); background: var(--sand); }
.nav a:not(.btn)[aria-current="page"] { color: var(--ink); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 14px; }
.theme-label { display: none; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 1.6px; background: var(--ink); position: relative; transition: .2s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.6px; background: var(--ink); transition: .2s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 72px 0 auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 26px;
    box-shadow: var(--shadow-m);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: .22s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 13px 4px; font-size: 1.05rem; border-radius: 0; border-bottom: 1px solid var(--line-soft); }
  .header-actions { margin: 16px 0 0; flex-direction: column; align-items: stretch; }
  .header-actions .btn { width: 100%; }
  .theme-label { display: inline; }
}

/* ---------- 6. Hero ---------- */
.hero { position: relative; padding-block: clamp(48px, 7vw, 92px) clamp(56px, 7vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -20% auto -25%; height: 820px; z-index: -1;
  background:
    radial-gradient(42% 52% at 18% 28%, color-mix(in srgb, var(--brand) 17%, transparent) 0%, transparent 70%),
    radial-gradient(38% 46% at 78% 14%, color-mix(in srgb, var(--teal) 15%, transparent) 0%, transparent 72%),
    radial-gradient(45% 50% at 52% 70%, color-mix(in srgb, var(--orange) 13%, transparent) 0%, transparent 72%);
  filter: blur(6px);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 980px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } }

.hero__title { margin-bottom: 20px; }
.hero__title em { font-style: normal; color: var(--brand); }
.hero__sub { font-size: clamp(1.08rem, 1.8vw, 1.3rem); color: var(--ink-soft); max-width: 36rem; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--sand); border: 1px solid var(--line);
  font-size: .83rem; font-weight: 500; color: var(--ink-soft);
}
.badge svg { color: var(--teal); flex: none; }

.hero__note { margin-top: 22px; font-size: .86rem; color: var(--muted); max-width: 34rem; }

/* ---------- 7. Calculadora ---------- */
.calc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  padding: clamp(22px, 3vw, 30px);
}
.calc__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.calc__head h3 { margin: 0; font-size: 1.22rem; }
.calc__tag { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.field { margin-bottom: 18px; }
.field > label:not(.consent), .field__label {
  display: block; font-size: .8rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.input, select.input, textarea.input {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--paper); color: var(--ink);
  font: inherit; font-size: .98rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); outline: none; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%237d7c75' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px; }
textarea.input { resize: vertical; min-height: 110px; }

.range-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.range-head output { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 10px 0 2px;
  border-radius: 999px; background: var(--sand-deep); cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand); border: 4px solid var(--paper); box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand); border: 4px solid var(--paper); box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.range-scale { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); }

.calc__result { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line); }
.calc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .95rem; color: var(--ink-soft); margin-bottom: 9px; }
.calc__row strong { color: var(--ink); }
.calc__row--save { color: var(--teal); font-weight: 600; }
.calc__total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
}
.calc__total span { font-size: .9rem; color: var(--muted); }
.calc__total strong { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 600; letter-spacing: -.03em; }
.calc__foot { margin-top: 16px; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.calc .btn { margin-top: 18px; }

/* ---------- 8. Tarjetas ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: clamp(22px, 2.6vw, 30px);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .97rem; }
.card__icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--brand-tint); color: var(--brand);
}
.card__icon--teal { background: var(--teal-tint); color: var(--teal); }
.card__num {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); margin-bottom: 18px;
}

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.feature-list li { display: flex; gap: 11px; align-items: flex-start; font-size: .97rem; color: var(--ink-soft); }
.feature-list svg { flex: none; margin-top: 4px; color: var(--teal); }

.card--dark { background: var(--surface-dark); border-color: transparent; }
.card--dark h3 { color: #fff; }
.card--dark p { color: rgba(255, 255, 255, .76); }

/* ---------- 9. Comparativa ---------- */
.compare { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare table { width: 100%; min-width: 620px; border-collapse: collapse; }
.compare th, .compare td { padding: 16px 18px; text-align: left; font-size: .95rem; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--line); }
.compare tbody th { font-weight: 500; color: var(--muted); font-size: .9rem; }
.compare td { color: var(--ink-soft); }
.compare .col-us { background: var(--brand-tint); color: var(--ink); }
.compare thead .col-us { border-radius: var(--radius-s) var(--radius-s) 0 0; color: var(--brand); }
.compare tbody tr:last-child td, .compare tbody tr:last-child th { border-bottom: none; }
.compare tbody tr:last-child .col-us { border-radius: 0 0 var(--radius-s) var(--radius-s); }

/* ---------- 10. Timeline ---------- */
.timeline { position: relative; display: grid; gap: 0; }
.timeline__item { position: relative; padding: 0 0 34px 40px; border-left: 2px solid var(--line); }
.timeline__item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -9px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--brand);
}
.timeline__item--soon::before { background: var(--brand); }
.timeline__year { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em; }
.timeline__title { font-weight: 600; color: var(--brand); font-size: .86rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.timeline__item p { color: var(--ink-soft); font-size: .97rem; max-width: 52ch; }

/* ---------- 11. Ciudades ---------- */
.city {
  position: relative; overflow: hidden;
  border-radius: var(--radius-m);
  min-height: 230px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px;
  color: #fff;
  border: 1px solid var(--line);
  isolation: isolate;
}
.city::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(150deg, #4a4740, #32312c);
}
.city::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10,12,14,.78) 0%, rgba(10,12,14,.12) 62%);
}
.city--bcn::before { background: linear-gradient(150deg, #ed4860, #e6193f 45%, #7a1026); }
.city--mad::before { background: linear-gradient(150deg, #2b9d95, #1f6f68 55%, #16302e); }
.city--lis::before { background: linear-gradient(150deg, #ec9938, #c2762a 55%, #3b2c14); }
.city--opo::before { background: linear-gradient(150deg, #e36d32, #b25124 55%, #371f11); }
.city--mar::before { background: linear-gradient(150deg, #61b34d, #418133 55%, #1c3018); }
.city__status {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255,255,255,.18); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.28);
  padding: 5px 11px; border-radius: 999px;
}
.city h3 { color: #fff; margin-bottom: 4px; }
.city p { color: rgba(255,255,255,.82); font-size: .9rem; margin: 0; }

/* ---------- 12. Franja CTA ---------- */
.cta-band {
  background: var(--surface-dark);
  color: #ece5db;
  border-radius: var(--radius-xl);
  padding: clamp(34px, 5vw, 64px);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; right: -8%; top: -60%; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(236,153,56,.40), transparent 62%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.76); max-width: 50ch; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.34); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- 13. Cifras ---------- */
.stat { text-align: left; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 600; letter-spacing: -.03em; color: var(--brand); line-height: 1; }
.stat__label { font-size: .93rem; color: var(--ink-soft); margin-top: 10px; }

/* ---------- 14. FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 44px 22px 0; color: var(--ink-soft); font-size: .98rem; max-width: 70ch; }

/* ---------- 15. Formulario ---------- */
.form-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: clamp(24px, 3.4vw, 40px);
  box-shadow: var(--shadow-m);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field--full { grid-column: 1 / -1; }

.choice-row { display: flex; flex-wrap: wrap; gap: 9px; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice span {
  display: inline-block; padding: 10px 17px; border-radius: 999px;
  border: 1px solid var(--line); font-size: .9rem; font-weight: 500; color: var(--ink-soft);
  cursor: pointer; transition: .18s var(--ease);
}
.choice span:hover { border-color: var(--ink); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.choice input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .85rem; color: var(--muted); line-height: 1.5; }
.consent input { margin-top: 3px; accent-color: var(--brand); width: 17px; height: 17px; flex: none; }
.consent a { text-decoration: underline; }

.form-status {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-s);
  font-size: .92rem; display: none;
}
.form-status.is-ok { display: block; background: var(--teal-tint); color: var(--teal-deep); border: 1px solid color-mix(in srgb, var(--teal) 30%, transparent); }
.form-status.is-err { display: block; background: var(--brand-tint); color: var(--brand-deep); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }

/* ---------- 16. Footer ---------- */
.site-footer { background: var(--sand); border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 76px) 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 34px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0,1fr); } }
.footer-grid h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-list a { font-size: .94rem; color: var(--ink-soft); }
.footer-list a:hover { color: var(--brand); }
.footer-tagline { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink-soft); margin: 14px 0 18px; max-width: 30ch; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .83rem; color: var(--muted);
}
.footer-legal { max-width: 70ch; font-size: .79rem; color: var(--muted); margin-top: 18px; line-height: 1.6; }

/* ---------- 17. Utilidades ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 50%; transform: translate(-50%, -140%);
  z-index: 100; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 10px;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }
.text-center { text-align: center; }
.mt-l { margin-top: clamp(28px, 4vw, 44px); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- 18. Reserva: calendario, resumen y pago ---------- */
.booking { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(18px, 2.5vw, 28px); align-items: start; }
@media (max-width: 860px) { .booking { grid-template-columns: minmax(0, 1fr); } }

.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cal__title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; }
.cal__nav {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font-size: 1.1rem; line-height: 1; cursor: pointer;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.cal__nav:hover:not(:disabled) { border-color: var(--ink); background: var(--sand); }
.cal__nav:disabled { opacity: .35; cursor: not-allowed; }

.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__dow { margin-bottom: 6px; }
.cal__dow span { text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }

.cal__day {
  position: relative; aspect-ratio: 1 / 1; min-height: 38px;
  display: grid; place-items: center;
  border: 0; border-radius: 10px; background: transparent; color: var(--ink);
  font: inherit; font-size: .92rem; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.cal__day:hover:not(:disabled) { background: var(--sand-deep); }
.cal__day:disabled { color: var(--muted); opacity: .4; cursor: not-allowed; }
.cal__day.is-empty { visibility: hidden; }
.cal__day.is-in-range { background: var(--brand-tint); border-radius: 0; }
.cal__day.is-edge, .cal__day.is-edge:hover:not(:disabled) { background: var(--brand); color: #fff; font-weight: 700; }
.cal__day.is-start { border-radius: 10px 0 0 10px; }
.cal__day.is-end { border-radius: 0 10px 10px 0; }
.cal__day.is-only { border-radius: 10px; }
.cal__day.is-today::after {
  content: ""; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--brand);
}
.cal__day.is-edge.is-today::after { background: #fff; }
.cal__hint { margin: 14px 0 0; font-size: .85rem; color: var(--muted); }

.sum { margin: 0 0 4px; padding: 0; }
.sum > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.sum dt { font-size: .9rem; color: var(--ink-soft); margin: 0; }
.sum dd { margin: 0; font-weight: 600; font-size: .95rem; text-align: right; }
.sum dd.is-save { color: var(--teal-deep); }

.sum__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; }
.sum__total span { font-size: .9rem; color: var(--muted); }
.sum__total strong { font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.6rem); font-weight: 800; letter-spacing: -.02em; color: var(--ink-soft); }
.sum__dep { margin: 6px 0 0; font-size: .88rem; color: var(--ink-soft); }

.booking__actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 18px; }
.booking__actions .btn { white-space: normal; text-align: center; padding-inline: 18px; }
.cal__note { margin: 6px 0 0; font-size: .78rem; color: var(--muted); }
.cal__hint.is-err { color: var(--brand-deep); font-weight: 600; }

.btn--wa { background: #25d366; color: #0b3d1f; }
.btn--wa:hover { background: #1fbb59; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; z-index: 70;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #0b3d1f;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); }
@media (max-width: 620px) { .wa-float { width: 48px; height: 48px; } }

/* ---------- 19. Prelanzamiento: estado, avisos y detalles ---------- */
.pill-status {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 12px; margin-bottom: 18px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: .8rem; font-weight: 600; color: var(--ink-soft);
}
.pill-status__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 22%, transparent);
}
.notice {
  margin: 4px 0 0; padding: 13px 15px; border-radius: var(--radius-s);
  background: var(--sand); border: 1px solid var(--line); border-left: 3px solid var(--orange);
  font-size: .86rem; line-height: 1.55; color: var(--ink-soft);
}
.notice strong { color: var(--ink); }
.optional { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.mt-m { margin-top: 22px; }
.footer-tagline + .footer-support { margin: -10px 0 18px; font-size: .86rem; color: var(--muted); }

.status-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.status-list__item {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--paper);
}
.status-list__item strong { display: block; font-size: .98rem; }
.status-list__item p { margin: 2px 0 0; font-size: .88rem; color: var(--ink-soft); }
.status-list__tag {
  text-align: center; margin-top: 1px;
  padding: 4px 6px; border-radius: 999px; font-size: .66rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.status-list__item--done .status-list__tag { background: var(--teal-tint); color: var(--teal-deep); }
.status-list__item--wip  .status-list__tag { background: color-mix(in srgb, var(--orange) 18%, var(--paper)); color: color-mix(in srgb, var(--orange) 55%, var(--ink)); }
.status-list__item--todo .status-list__tag { background: var(--sand-deep); color: var(--muted); }
