/* ============================================================
   Andrey · masaje terapéutico
   One page, no build, no dependencies.
   ============================================================ */

:root {
  --bg: #fbf7f1;
  --bg-soft: #f4ece1;
  --surface: #fffdfa;
  --ink: #221d18;
  --muted: #6e6358;
  --line: #e6dacb;
  --accent: #2f5d50;
  --accent-2: #24483e;
  --accent-soft: #dfeae3;
  --accent-ink: #ffffff;
  --gold: #8a5a33;
  --gold-soft: #efe0cf;
  --shadow: 0 24px 60px rgba(54, 38, 24, 0.1);
  --radius: 20px;
  --space: clamp(1rem, 2.2vw, 1.6rem);
  --font-display: Georgia, "Times New Roman", serif;
  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 90% -10%, #f7ead9 0%, transparent 60%),
    radial-gradient(700px 500px at -10% 30%, #eef3ee 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p,
dl,
dd,
blockquote {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.wrap {
  width: min(1120px, calc(100% - 2 * var(--space)));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

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

/*
 * Anti-flash guard.
 * The inline head script adds [data-i18n-pending] before first paint.
 * app.js removes it only after the visitor's language is applied.
 * Keep the layout stable: visibility, not display.
 */
html[data-i18n-pending] main,
html[data-i18n-pending] .nav,
html[data-i18n-pending] .lang,
html[data-i18n-pending] .site-footer,
html[data-i18n-pending] .header-actions > .btn {
  visibility: hidden;
}

/* ── Header ───────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 241, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.brand-logo {
  object-fit: cover;
  background: #0b0b0b;
  border: 1px solid rgba(34, 29, 24, 0.16);
}

.dot {
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.92rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--line);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--surface);
}

.lang button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-1px);
}

.btn-small {
  min-height: 40px;
  padding: 0.55rem 1rem;
  font-size: 0.86rem;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--gold);
  color: var(--ink);
}

.btn-block {
  width: 100%;
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(2.2rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  /* Top alignment keeps the hero logo fixed when copy length changes with language. */
  align-items: start;
  gap: clamp(1.5rem, 4vw, 4rem);
}

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

h1 {
  font-size: clamp(2.7rem, 6vw, 5.1rem);
  max-width: 12ch;
  text-wrap: balance;
}

.lede {
  margin-top: 1.4rem;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--muted);
  max-width: 48ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero-meta {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hero-art {
  display: grid;
  place-items: center;
  align-self: start;
  padding-top: clamp(0rem, 1.4vw, 0.9rem);
}

.scene {
  width: min(100%, 560px);
  height: auto;
}

.scene-sun {
  fill: var(--accent-soft);
}

.scene-floor {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
}

.scene-table-top {
  fill: var(--ink);
  opacity: 0.88;
}

.scene-leg {
  fill: var(--ink);
  opacity: 0.72;
}

.scene-towel {
  fill: var(--surface);
  stroke: var(--line);
}

.scene-towel-alt {
  fill: var(--gold-soft);
}

.scene-steam {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.32;
}

.scene-bottle {
  fill: var(--accent);
}

.scene-bottle-cap {
  fill: var(--accent-2);
}

.scene-plant {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  opacity: 0.45;
}

.scene-stem {
  stroke: var(--accent);
  stroke-width: 3;
  opacity: 0.35;
}

.scene-dot {
  fill: var(--gold);
  opacity: 0.65;
}

.logo-frame {
  margin: 0;
  width: min(100%, 460px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 32px;
  background: #0b0b0b;
  border: 1px solid var(--line);
  box-shadow: 0 28px 60px rgba(34, 24, 16, 0.22);
}

.logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-caption {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Trust ────────────────────────────────────────────────── */

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.trust div {
  display: grid;
  gap: 0.15rem;
}

.trust strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.trust span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Sections ─────────────────────────────────────────────── */

.section {
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

.section-soft {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.label span:first-child {
  color: var(--gold);
  font-weight: 600;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  max-width: 18ch;
  text-wrap: balance;
}

.section-lede {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 52ch;
}

.price-note {
  margin-top: 1.6rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: var(--surface);
  font-size: 0.92rem;
  font-weight: 600;
}

.method-note {
  margin-top: 1.6rem;
  max-width: 65ch;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ── Cards ────────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.card {
  position: relative;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(54, 38, 24, 0.08);
}

.card-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold);
}

.card h3 {
  margin-top: 0.7rem;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.card p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.card-meta {
  font-variant-numeric: tabular-nums;
  color: var(--ink) !important;
  font-weight: 600;
  font-size: 0.85rem !important;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

/* ── Steps ────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 0;
  list-style: none;
}

.steps li {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
}

.steps h3 {
  margin-top: 0.6rem;
  font-size: 1.35rem;
}

.steps p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ── About ────────────────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.about-copy p {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 50ch;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin: 0.3rem 0 0;
  font-size: 0.86rem;
  font-weight: 600;
}

.branch {
  width: min(100%, 360px);
  margin-inline: auto;
}

.branch-sun {
  fill: var(--accent-soft);
}

.branch-stem {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
}

.branch-leaf {
  fill: var(--accent-soft);
  stroke: var(--accent);
  stroke-width: 2;
}

.branch-leaf-alt {
  fill: var(--gold-soft);
  stroke: var(--gold);
  stroke-width: 2;
}

.branch-line {
  stroke: var(--line);
  stroke-width: 3;
  stroke-linecap: round;
}

.branch-dot {
  fill: var(--gold);
  opacity: 0.7;
}

/* ── Reviews ──────────────────────────────────────────────── */

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.reviews blockquote {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.reviews blockquote::before {
  content: "“";
  display: block;
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 0.7;
  color: var(--gold);
}

.reviews p {
  margin-top: 0.4rem;
  font-size: 0.96rem;
}

.reviews footer {
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── FAQ ──────────────────────────────────────────────────── */

.faq {
  display: grid;
  gap: 0.6rem;
  max-width: 760px;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.faq details {
  padding: 0 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq p {
  max-width: 65ch;
  padding-bottom: 1rem;
  color: var(--muted);
  font-size: 0.93rem;
}

/* ── Booking ──────────────────────────────────────────────── */

.booking-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.booking-points {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.booking-points li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.booking-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.booking-card {
  padding: clamp(1.2rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.booking-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.demo-badge {
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.day,
.time {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  border-radius: 10px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.day {
  min-height: 58px;
  padding: 0.3rem 0.2rem;
  display: grid;
  place-items: center;
  gap: 0.1rem;
  font-size: 0.72rem;
  line-height: 1.1;
}

.day strong {
  font-size: 1rem;
  font-weight: 600;
}

.day[aria-pressed="true"],
.time[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.day:disabled,
.time:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.booking-sub {
  margin-top: 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.times {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.time {
  min-height: 40px;
  padding: 0.25rem;
  font-size: 0.78rem;
}

.booking-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.booking-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.booking-form input,
.booking-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1px solid #a08568;
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.booking-form textarea {
  min-height: 84px;
  resize: vertical;
}

.booking-form input:focus,
.booking-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.booking-note {
  margin-top: 0.8rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.booking-result {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 0.88rem;
}

.booking-result p {
  margin: 0;
}

.booking-result .btn {
  margin-top: 0.7rem;
  min-height: 40px;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
}

/* ── Contact ──────────────────────────────────────────────── */

.channels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 2rem;
}

.channel {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.channel:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.channel-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.channel span span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ── Footer ───────────────────────────────────────────────── */

.site-footer {
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Toast ────────────────────────────────────────────────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  transform: translateX(-50%);
  max-width: calc(100% - 2rem);
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--accent-2);
  color: var(--accent-ink);
  font-size: 0.82rem;
  text-align: center;
  box-shadow: var(--shadow);
}

/* ── Reveal ───────────────────────────────────────────────── */

.reveal {
  opacity: 1;
  transform: none;
}

.reveal-ready .reveal:not(.in) {
  opacity: 0;
  transform: translateY(14px);
}

.reveal-ready .reveal {
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .hero-grid,
  .about-grid,
  .booking-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }

  .scene {
    width: min(100%, 460px);
  }

  .logo-frame {
    width: min(100%, 380px);
  }

  .cards,
  .steps,
  .reviews {
    grid-template-columns: 1fr;
  }

  .trust {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .trust div {
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
  }

  .trust div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 700px) {
  .header-inner {
    min-height: 68px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .header-actions .btn {
    display: none;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .logo-frame {
    width: min(100%, 260px);
  }

  .logo-caption {
    font-size: 0.64rem;
  }

  h1 {
    max-width: 14ch;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .days {
    grid-template-columns: repeat(4, 1fr);
  }

  .times {
    grid-template-columns: repeat(3, 1fr);
  }

  .channels {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    display: grid;
  }
}

@media (max-width: 380px) {
  .header-inner {
    gap: 0.5rem;
  }

  .lang {
    padding: 2px;
  }

  .lang button {
    padding: 0.2rem 0.38rem;
    font-size: 0.64rem;
  }

  .days {
    grid-template-columns: repeat(3, 1fr);
  }

  .times {
    grid-template-columns: repeat(2, 1fr);
  }

  .actions .btn {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal-ready .reveal:not(.in) {
    opacity: 1;
    transform: none;
  }
}
