/* =============================================================
   El Galpon Rent a Car — landing page
   Palette comes straight from the logo: night wine, raspberry sky,
   sunset glow, blush and the cream of the badge outline.
   One typeface (Archivo) used across its width axis:
   expanded for headlines, condensed for the arrivals board.
   ============================================================= */

:root {
  --night: #230912;        /* page background */
  --night-2: #2d0c17;      /* raised panels */
  --night-3: #3b1120;      /* dialog, hover */
  --ink: #160509;          /* deepest: board housing, avatars */
  --raspberry: #b2334e;    /* logo sky */
  --sunset: #f06688;       /* glow, highlights, focus */
  --blush: #f5c4ce;
  --cream: #fdf6ee;        /* text, badge outline */
  --cream-2: rgba(253, 246, 238, 0.76);
  --cream-3: rgba(253, 246, 238, 0.6);
  --line: rgba(253, 246, 238, 0.12);
  --line-strong: rgba(253, 246, 238, 0.22);
  --wa-green: #1fa855;

  --header-h: 76px;
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1200px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
  scroll-padding-top: calc(var(--header-h) + 16px);
  interpolate-size: allow-keywords;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--cream);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.5rem, 1.15rem + 5.3vw, 5.5rem);
  font-stretch: 118%;
  font-weight: 850;
  line-height: 0.96;
  letter-spacing: -0.03em;
}
h2 {
  max-width: 16em;
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem);
  font-stretch: 116%;
}
h3 {
  font-size: 1.3125rem;
  font-stretch: 108%;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 36em;
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  line-height: 1.5;
  color: var(--cream-2);
  text-wrap: pretty;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { flex: none; width: 1.25em; height: 1.25em; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--night);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Hide the page for a moment while Spanish text is swapped in (failsafe reveal after 1.5s). */
.i18n-pending body { visibility: hidden; animation: i18n-reveal 0s 1.5s forwards; }
@keyframes i18n-reveal { to { visibility: visible; } }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.8em 1.4em;
  border: 0;
  border-radius: 999px;
  color: var(--cream);
  font-size: 1rem;
  font-weight: 700;
  font-stretch: 106%;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.15s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn .icon { width: 1.3em; height: 1.3em; }

.btn--primary {
  background: linear-gradient(180deg, #c23b59, #a92d48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 32px -12px rgba(240, 102, 136, 0.7);
}
.btn--primary:hover { background: linear-gradient(180deg, #cf4665, #b4334f); }

.btn--large { min-height: 58px; padding: 1em 1.75em; font-size: 1.125rem; }
.btn--small { min-height: 42px; padding: 0.6em 1.1em; font-size: 0.9375rem; }
.btn--block { width: 100%; }

.phone-link {
  font-weight: 600;
  font-stretch: 104%;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(253, 246, 238, 0.35);
  text-underline-offset: 0.28em;
  transition: text-decoration-color 0.2s;
}
.phone-link:hover { text-decoration-color: var(--sunset); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(35, 9, 18, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.site-header.is-scrolled::before { opacity: 1; }

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}

/* The badge hangs below the bar at the top of the page, then tucks in on scroll. */
.brand {
  flex: none;
  align-self: flex-start;
  margin-top: 12px;
  border-radius: 12px;
}
.brand img {
  width: auto;
  height: 92px;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
  transition: height 0.35s var(--ease);
}
.is-scrolled .brand img { height: 52px; }

.nav { display: none; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

@media (min-width: 920px) {
  .nav {
    display: flex;
    gap: clamp(20px, 2.6vw, 36px);
    margin-left: auto;
  }
  .nav a {
    position: relative;
    padding: 8px 2px;
    color: var(--cream-2);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
  }
  .nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--sunset);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
  }
  .nav a:hover { color: var(--cream); }
  .nav a:hover::after { transform: scaleX(1); }
  .site-header__actions { margin-left: 16px; }
}

@media (max-width: 480px) {
  :root { --header-h: 68px; }
  .brand { margin-top: 10px; }
  .brand img { height: 70px; }
  .is-scrolled .brand img { height: 46px; }
  .site-header__actions { gap: 8px; }
}

/* ---------- Language slider ---------- */
.lang-switch {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 999px;
  background: rgba(253, 246, 238, 0.07);
  box-shadow: inset 0 0 0 1px var(--line);
}
.lang-switch button {
  position: relative;
  z-index: 1;
  min-width: 46px;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--cream-2);
  font-size: 0.8125rem;
  font-weight: 750;
  font-stretch: 112%;
  letter-spacing: 0.06em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.25s;
}
.lang-switch button:hover { color: var(--cream); }
.lang-switch button[aria-checked="true"] { color: var(--night); }
.lang-switch__thumb {
  position: absolute;
  z-index: 0;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--cream);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.5, 1);
}
.lang-switch[data-lang="es"] .lang-switch__thumb { transform: translateX(100%); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  padding: calc(var(--header-h) + clamp(64px, 9vw, 120px)) 0 clamp(88px, 11vw, 150px);
}
/* The sun sinking behind the horizon line at the bottom of the hero */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 0;
  width: max(1100px, 125vw);
  aspect-ratio: 2.2;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240, 102, 136, 0.55), rgba(178, 51, 78, 0.3) 45%, rgba(178, 51, 78, 0) 100%);
  transform: translate(-50%, 58%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 196, 206, 0.5) 30%, rgba(245, 196, 206, 0.5) 70%, transparent);
}

.hero__grid {
  display: grid;
  grid-template-areas: "title" "copy" "board";
  gap: 28px;
}
.hero__title { grid-area: title; max-width: 13em; }
.hero__copy { grid-area: copy; }
.hero .board { grid-area: board; margin-top: clamp(20px, 5vw, 40px); }
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    grid-template-areas: "title title" "copy board";
    column-gap: clamp(48px, 5vw, 80px);
    row-gap: 44px;
    align-items: start;
  }
  .hero .board { margin-top: 0; }
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}
.hero__note {
  margin-top: 20px;
  color: var(--cream-3);
  font-size: 0.9375rem;
}

/* ---------- Arrivals board (the one loud thing on the page) ---------- */
.board {
  position: relative;
  container-type: inline-size;
  margin: 0;
  padding: clamp(14px, 2vw, 22px);
  border-radius: 22px;
  background: linear-gradient(180deg, #1c070d, #120409);
  box-shadow:
    0 0 0 1px rgba(253, 246, 238, 0.07),
    inset 0 1px 0 rgba(253, 246, 238, 0.08),
    0 50px 90px -40px rgba(0, 0, 0, 0.85),
    0 0 120px -30px rgba(240, 102, 136, 0.35);
}
.board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 14px;
  border-bottom: 1px solid rgba(253, 246, 238, 0.08);
}
.board__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.125rem, 0.95rem + 0.7vw, 1.5rem);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.01em;
}
.board__plane {
  width: 1.05em;
  height: 1.05em;
  color: var(--sunset);
  transform: rotate(135deg);
}
.board__clock {
  color: var(--blush);
  font-size: 0.9375rem;
  font-weight: 600;
  font-stretch: 90%;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.board__clock time { margin-left: 0.3em; color: var(--cream); font-weight: 700; }

.board__cols,
.board__row {
  display: grid;
  grid-template-columns: 12fr 8fr 5fr;
  column-gap: clamp(8px, 2.4cqi, 16px);
}
.board__cols {
  padding: 14px 2px 8px;
  color: var(--cream-3);
  font-size: 0.8125rem;
  font-weight: 600;
  font-stretch: 90%;
}
.board__rows { display: grid; gap: 6px; }
.board__cell {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 2px;
}
.tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  border-radius: 3px;
  background: linear-gradient(180deg, #2c0d17 0 50%, #250a13 50% 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 1px rgba(0, 0, 0, 0.5);
  color: var(--cream);
  font-size: 3.1cqi;
  font-weight: 700;
  font-stretch: 72%;
  line-height: 1;
}
.tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.6);
}
.board__cell--car .tile {
  color: var(--sunset);
  text-shadow: 0 0 12px rgba(240, 102, 136, 0.65);
}
.board__caption {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(253, 246, 238, 0.08);
  color: var(--cream-2);
  font-size: 0.9375rem;
}

.board__fallback {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
  font-stretch: 75%;
  letter-spacing: 0.08em;
}
.board__fallback li { display: grid; grid-template-columns: 12fr 8fr 5fr; }
.board__fallback li span:last-child { color: var(--sunset); }
.js .board__fallback { display: none; }
.no-js .board__rows { display: none; }

@media (max-width: 639px) {
  .board__cols,
  .board__row,
  .board__fallback li { grid-template-columns: 12fr 5fr; }
  .board__col-status,
  .board__cell--status,
  .board__fallback li span:nth-child(2) { display: none; }
  .tile { font-size: 4.2cqi; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 11vw, 150px); }

/* The sunset's reflection right under the horizon */
.compare { background: linear-gradient(180deg, rgba(240, 102, 136, 0.1), rgba(240, 102, 136, 0) 340px); }

/* Comparison ledger */
.ledger {
  width: 100%;
  margin-top: clamp(40px, 6vw, 64px);
  border-collapse: collapse;
}
.ledger th {
  padding: 0 0 18px;
  color: var(--cream-3);
  font-size: 1rem;
  font-weight: 700;
  font-stretch: 108%;
  text-align: left;
}
.ledger th + th { padding-left: 32px; color: var(--sunset); }
.ledger td {
  width: 50%;
  padding: 24px 32px 24px 0;
  border-top: 1px solid var(--line);
  vertical-align: top;
  font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.3125rem);
  line-height: 1.35;
}
.ledger td + td { padding: 24px 0 24px 32px; }
.ledger__old { color: var(--cream-3); }
.ledger__new { color: var(--cream); font-weight: 650; }
.ledger__label { display: none; }
.ledger td > span:not(.ledger__label) { display: flex; gap: 0.75em; }
.ledger td > span:not(.ledger__label)::before {
  content: "";
  flex: none;
  width: 0.85em;
  height: 0.85em;
  margin-top: 0.24em;
  background: currentColor;
  -webkit-mask: var(--mark) center / contain no-repeat;
  mask: var(--mark) center / contain no-repeat;
}
.ledger__old {
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}
.ledger__new {
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
}
.ledger__new > span:not(.ledger__label)::before { background: var(--sunset); }

@media (max-width: 719px) {
  .ledger thead { display: none; }
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; width: auto; }
  .ledger tr { padding: 22px 0; border-top: 1px solid var(--line); }
  .ledger td, .ledger td + td { padding: 0; border: 0; }
  .ledger td + td { margin-top: 14px; }
  .ledger__label {
    display: block;
    margin-bottom: 4px;
    color: var(--cream-3);
    font-size: 0.8125rem;
    font-weight: 600;
  }
  .ledger__new .ledger__label { color: var(--sunset); }
}

/* Steps — a real sequence, so it gets numbers (as board tiles) */
.steps__list {
  --steps-gap: clamp(28px, 4vw, 56px);
  display: grid;
  gap: 44px;
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding: 0;
  list-style: none;
}
.step { position: relative; display: grid; align-content: start; gap: 10px; }
.step__tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 84px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, #33101b 0 50%, #2a0c16 50% 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px -10px rgba(0, 0, 0, 0.7);
  color: var(--sunset);
  font-size: 2.75rem;
  font-weight: 750;
  font-stretch: 72%;
  line-height: 1;
  text-shadow: 0 0 16px rgba(240, 102, 136, 0.6);
}
.step__tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.6);
}
.step p { max-width: 30em; color: var(--cream-2); }

@media (min-width: 900px) {
  .steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--steps-gap); }
  /* dashed runway between the tiles */
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 42px;
    left: 80px;
    right: calc(var(--steps-gap) * -1 + 16px);
    border-top: 2px dashed rgba(245, 196, 206, 0.3);
  }
}
@media (max-width: 899px) {
  .step { grid-template-columns: 64px minmax(0, 1fr); column-gap: 20px; }
  .step__tile { grid-row: span 2; margin-bottom: 0; }
  .step h3 { padding-top: 8px; }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 31px;
    top: 96px;
    bottom: -32px;
    border-left: 2px dashed rgba(245, 196, 206, 0.3);
  }
}

/* ---------- Booking form + WhatsApp preview ---------- */
.book__grid { display: grid; gap: 48px; }
@media (min-width: 1000px) {
  .book__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: clamp(40px, 5vw, 72px);
    align-items: start;
  }
}
.book .lead { margin-top: 20px; }

.book-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
  margin-top: 36px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 24px;
  background: var(--night-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.field { display: grid; align-content: start; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.9375rem; font-weight: 600; }
.field__optional { color: var(--cream-3); font-weight: 400; }
.field__optional::before { content: "("; }
.field__optional::after { content: ")"; }

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid rgba(253, 246, 238, 0.16);
  border-radius: 12px;
  background-color: var(--night);
  color: var(--cream);
  font: inherit;
  font-size: 1rem;
  line-height: 1.3;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fdf6ee' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(253, 246, 238, 0.4); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(253, 246, 238, 0.3); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sunset);
  box-shadow: 0 0 0 4px rgba(240, 102, 136, 0.22);
}
.field input::-webkit-date-and-time-value { text-align: left; }
.field input::-webkit-calendar-picker-indicator { opacity: 0.75; cursor: pointer; }
.field.is-invalid input { border-color: #ff8fa8; box-shadow: 0 0 0 4px rgba(255, 143, 168, 0.18); }

.form-error {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 143, 168, 0.12);
  color: #ffc2cf;
  font-size: 0.9375rem;
  font-weight: 600;
}
.form-error[hidden] { display: none; }

.book-form__submit { display: grid; gap: 12px; margin-top: 4px; }
.book-form__fine { color: var(--cream-3); font-size: 0.875rem; text-align: center; }

@media (max-width: 559px) {
  .book-form { grid-template-columns: 1fr; }
}

/* WhatsApp preview */
.chat__label {
  margin-bottom: 12px;
  color: var(--cream-3);
  font-size: 0.9375rem;
  font-weight: 600;
}
.chat__window {
  overflow: hidden;
  border-radius: 24px;
  background: #1a060c;
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--night-2);
}
.chat__avatar {
  width: 44px;
  height: 44px;
  padding: 4px;
  border-radius: 50%;
  background: var(--ink);
  object-fit: contain;
}
.chat__name { font-size: 0.9375rem; font-weight: 700; line-height: 1.25; }
.chat__number { color: var(--cream-3); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.chat__wa { width: 22px; height: 22px; margin-left: auto; color: var(--cream-3); }
.chat__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 28px 16px 20px;
  background-image: radial-gradient(rgba(253, 246, 238, 0.06) 1px, transparent 1px);
  background-size: 18px 18px;
}
.chat__bubble {
  align-self: flex-end;
  max-width: 94%;
  padding: 10px 12px 6px 14px;
  border-radius: 16px 16px 4px 16px;
  background: #f7e7e1;
  color: #2a0b14;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}
.chat__text {
  font-size: 0.9375rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat__text strong { font-weight: 700; }
.chat__meta {
  display: block;
  margin-top: 2px;
  color: rgba(42, 11, 20, 0.55);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.chat__ticks { color: var(--raspberry); letter-spacing: -0.3em; margin-left: 2px; }

@media (min-width: 1000px) {
  .chat { position: sticky; top: calc(var(--header-h) + 24px); margin-top: 8px; }
}
/* On phones and tablets the preview would sit below the send button, and WhatsApp
   shows the message before it's sent anyway, so it's left out there. */
@media (max-width: 999px) {
  .chat { display: none; }
}

/* ---------- FAQ ---------- */
.faq__grid { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .faq__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 64px;
    align-items: start;
  }
  .faq h2 { position: sticky; top: calc(var(--header-h) + 32px); }
}
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  font-weight: 700;
  font-stretch: 106%;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--blush); }
.faq__icon {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 0.25s, box-shadow 0.25s;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--raspberry); box-shadow: none; }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__answer { max-width: 40em; padding: 0 58px 26px 0; color: var(--cream-2); }

/* Smooth open/close where the browser supports it; elsewhere it simply snaps open. */
.faq__item::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete;
}
.faq__item[open]::details-content { block-size: auto; }

/* ---------- Social ---------- */
.social .lead { margin-top: 16px; }
.social__list {
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.social__list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: clamp(16px, 2.5vw, 32px);
  padding: clamp(20px, 2.6vw, 30px) 12px;
  border-bottom: 1px solid var(--line);
  color: var(--cream);
  text-decoration: none;
  transition: background-color 0.3s var(--ease), padding 0.3s var(--ease);
}
.social__icon {
  align-self: center;
  width: clamp(26px, 2.6vw, 34px);
  height: clamp(26px, 2.6vw, 34px);
  color: var(--cream-2);
  transition: color 0.3s, transform 0.3s var(--ease);
}
.social__list a:hover .social__icon,
.social__list a:focus-visible .social__icon { color: var(--cream); transform: scale(1.08); }
.social__name {
  font-size: clamp(1.75rem, 1rem + 3.3vw, 3.5rem);
  font-weight: 800;
  font-stretch: 120%;
  letter-spacing: -0.03em;
  line-height: 1;
}
.social__handle {
  color: var(--cream-2);
  font-size: clamp(0.9375rem, 0.85rem + 0.3vw, 1.125rem);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.social__list a:hover,
.social__list a:focus-visible {
  padding-inline: clamp(20px, 3vw, 36px);
  background: var(--raspberry);
}
.social__list a:hover .social__handle,
.social__list a:focus-visible .social__handle { color: var(--cream); }
.social__list a:focus-visible { outline-offset: -3px; }

@media (max-width: 599px) {
  .social__list a {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name icon" "handle icon";
    row-gap: 8px;
  }
  .social__icon { grid-area: icon; }
  .social__name { grid-area: name; }
  .social__handle { grid-area: handle; }
}

/* ---------- Closing ---------- */
.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  padding: clamp(96px, 12vw, 160px) 0 clamp(96px, 12vw, 150px);
  text-align: center;
}
.closing::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: clamp(40px, 6vw, 90px);
  left: 50%;
  width: min(920px, 150vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240, 102, 136, 0.45), rgba(178, 51, 78, 0.22) 50%, rgba(178, 51, 78, 0) 72%);
  transform: translateX(-50%);
}
.closing__inner { display: grid; justify-items: center; }
.closing__logo {
  width: clamp(220px, 28vw, 330px);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}
.closing h2 { margin-top: 44px; }
.closing .lead { margin: 16px auto 0; }
.closing__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  margin-top: 36px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 0 calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #1d070f;
}
.site-footer__inner { display: grid; gap: 32px; }
@media (min-width: 800px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .site-footer__bottom { grid-column: 1 / -1; }
}
.site-footer__brand { display: flex; align-items: center; gap: 16px; }
.site-footer__brand img { width: 64px; }
.site-footer__brand p { max-width: 26em; color: var(--cream-2); }
.site-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.site-footer__wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer__wa:hover { color: var(--blush); }
.site-footer__social { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer__social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--cream-2);
  transition: background-color 0.2s, color 0.2s;
}
.site-footer__social a:hover { background: var(--cream); color: var(--night); }
.site-footer__social .icon { width: 18px; height: 18px; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--cream-3);
  font-size: 0.875rem;
}

/* ---------- Floating WhatsApp button ---------- */
.wa-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px) scale(0.85);
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
}
.wa-fab .icon { width: 30px; height: 30px; }
.wa-fab.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.wa-fab.is-visible:hover { transform: scale(1.06); }

/* ---------- Language chooser ---------- */
.lang-dialog {
  width: min(100% - 32px, 520px);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
  color: var(--cream);
}
.lang-dialog::backdrop {
  background: rgba(18, 4, 9, 0.74);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.lang-dialog[open] { animation: dialog-in 0.45s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
.lang-dialog__panel {
  padding: clamp(24px, 5vw, 40px);
  border-radius: 28px;
  background: linear-gradient(180deg, var(--night-3), var(--night-2));
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 40px 100px -30px rgba(0, 0, 0, 0.8);
  text-align: center;
}
.lang-dialog__logo { width: 96px; margin: 0 auto 20px; }
.lang-dialog__title {
  display: grid;
  gap: 2px;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  font-stretch: 112%;
}
.lang-dialog__title span + span { color: var(--blush); }
.lang-dialog__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.lang-option {
  display: grid;
  gap: 4px;
  padding: 20px 16px;
  border: 0;
  border-radius: 18px;
  background: rgba(253, 246, 238, 0.06);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--cream);
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.15s var(--ease);
}
.lang-option:hover { background: var(--raspberry); box-shadow: none; }
.lang-option:active { transform: scale(0.98); }
.lang-option.is-suggested { box-shadow: inset 0 0 0 2px var(--sunset); }
.lang-option__name { font-size: 1.375rem; font-weight: 800; font-stretch: 112%; }
.lang-option__sub { color: var(--cream-2); font-size: 0.875rem; }
.lang-dialog__hint {
  display: grid;
  gap: 4px;
  margin-top: 20px;
  color: var(--cream-3);
  font-size: 0.875rem;
  text-wrap: balance;
}
@media (max-width: 420px) {
  .lang-dialog__options { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
