:root {
  --cream: #FBF1E4;
  --ink: #301506;
  --ink-soft: #4A2A18;
  --ink-muted: #6B4A38;
  --line: #A33B14;
  --line-dark: #7A2A0C;
  --terracotta: #C8502A;
  --orange: #EDA077;
  --peach: #F8D9C0;
  --sand: #EBD3B8;
  --on-dark-soft: #FBE3D2;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --turn: clamp(28px, 5.5vw, 72px);
  --line-width: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, .fact-value, .preview-title {
  font-family: var(--serif);
  font-weight: 400;
}

h2 {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.02;
}

h3 {
  font-size: 27px;
  line-height: 1.15;
}

.accent { color: var(--line); }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  min-width: 48px;
  min-height: 44px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 600 15px var(--sans);
  cursor: pointer;
}

.lang-toggle:hover { background: var(--ink); color: var(--cream); }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--line);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.button:hover { background: var(--line-dark); transform: translateY(-2px); }

.button-small { min-height: 44px; padding: 0 20px; font-size: 15px; }

.button-light { background: var(--cream); color: var(--line-dark); }
.button-light:hover { background: #FFFFFF; }

.lang-toggle:focus-visible,
.button:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(12px, 4vw, 64px);
  align-items: end;
  padding-top: 24px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(12px, 2vw, 28px);
  /* Keeps the headline above the darker waves so it stays readable */
  padding-bottom: clamp(40px, 12vw, 180px);
}

.pill {
  padding: 0.55em 1.2em;
  border-radius: 999px;
  background: var(--line);
  color: var(--cream);
  font-weight: 600;
  font-size: clamp(12px, 1.3vw, 17px);
}

h1 {
  font-size: clamp(30px, 6.6vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.arch {
  overflow: hidden;
  padding-top: 10%;
  border-radius: 999px 999px 0 0;
  background: var(--sand);
}

.arch img { width: 100%; }

.waves {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(90px, 18vw, 260px);
}

.band { background: var(--terracotta); }

.band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding-top: clamp(20px, 3vw, 40px);
  padding-bottom: clamp(28px, 4vw, 56px);
}

.lead {
  flex: 1 1 320px;
  max-width: 640px;
  color: #FFFFFF;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.45;
}

/* The line: each row is one bend of it */

.snake {
  position: relative;
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(48px, 7vw, 96px);
}

.row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 48px);
  border: 0 solid var(--line);
  border-top-width: var(--line-width);
  border-bottom-width: var(--line-width);
  padding-top: clamp(40px, 5.5vw, 80px);
  padding-bottom: clamp(40px, 5.5vw, 80px);
}

.row + .row { margin-top: calc(var(--line-width) * -1); }

.row-right {
  margin-left: var(--turn);
  border-right-width: var(--line-width);
  border-radius: 0 var(--turn) var(--turn) 0;
  padding-right: clamp(24px, 5vw, 72px);
}

.row-left {
  margin-right: var(--turn);
  border-left-width: var(--line-width);
  border-radius: var(--turn) 0 0 var(--turn);
  padding-left: clamp(24px, 5vw, 72px);
}

/* When the script draws the line itself, the borders step aside */
.snake.line-drawn .row { border-color: transparent; }

.line-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.line-svg path {
  fill: none;
  stroke: var(--line);
  stroke-width: var(--line-width);
  stroke-linecap: round;
}

.line-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--line);
}

.line-dot-start { left: -12px; top: -15px; }
.line-dot-end { right: -12px; bottom: -15px; }

.columns {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
}

.column {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.column p:not(.eyebrow) { color: var(--ink-soft); }

.eyebrow {
  color: var(--line);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* Steps and chat */

.steps-row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 56px;
}

.steps-text {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
}

.steps-intro { max-width: 460px; color: var(--ink-soft); }

.steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 20px;
  font-weight: 500;
}

.step-number {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--line);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
}

.chat {
  flex: 1 1 300px;
  min-width: 0;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 22px;
  border-radius: 28px;
  background: #FFFFFF;
  font-size: 16px;
  line-height: 1.35;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--peach);
  font-weight: 600;
}

.chat-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--line);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}

.bubble {
  max-width: 82%;
  padding: 10px 14px;
}

.bubble-in {
  align-self: flex-start;
  border-radius: 18px 18px 18px 4px;
  background: #F4E6D4;
}

.bubble-out {
  align-self: flex-end;
  border-radius: 18px 18px 4px 18px;
  background: var(--line);
  color: #FFFFFF;
}

.bubble-preview {
  align-self: flex-end;
  width: 62%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
}

.preview-title { font-size: 17px; line-height: 1.1; }

.preview-line {
  height: 7px;
  border-radius: 4px;
  background: var(--sand);
}

.preview-line-short { width: 70%; }

.preview-button {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--line);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
}

/* Price */

#precio h2 { max-width: 760px; }

.facts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 56px;
}

.fact-value {
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.05;
}

/* About */

.about-row {
  flex-direction: row;
  flex-wrap: wrap;
  /* Centers the paragraph between the top of the heading and the bottom of the photo */
  align-items: center;
  gap: 24px 64px;
}

.about-head {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-body {
  flex: 2.2 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.about-text {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.6;
}

/* Same arch as the photo at the top of the page */
.about-photo {
  max-width: 300px;
  overflow: hidden;
  padding-top: 10%;
  border-radius: 999px 999px 0 0;
  background: var(--sand);
}

.about-photo img { width: 100%; }

.about-tags {
  color: var(--line);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Closing */

.closing {
  background: var(--line);
  color: var(--cream);
}

.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-top: clamp(72px, 9vw, 120px);
  padding-bottom: 28px;
}

.closing-small {
  color: var(--on-dark-soft);
  font-size: 19px;
  font-weight: 500;
}

.closing h2 {
  color: #FFFFFF;
  font-size: clamp(42px, 7.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 16px;
}

.closing-handle { color: var(--on-dark-soft); font-size: 16px; }

.copyright {
  margin-top: clamp(56px, 8vw, 96px);
  color: var(--on-dark-soft);
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover { transform: none; }
}
