@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,400..800&family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&display=swap');

:root {
  --ink: #1F2A44;
  --paper: #F6F7F4;
  --white: #FFFFFF;
  --signal: #B08D4F;
  --steel: #5B6B7F;
  --line: #D9DEE4;
  --bubble-in: #E6E9EE;
  --bubble-out: #1F2A44;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

/* Language switching */
html[lang="en"] [data-l="es"] { display: none !important; }
html[lang="es"] [data-l="en"] { display: none !important; }

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 58px; width: auto; display: block; }
.site-head .wrap { height: 84px; }
.foot-logo { height: 52px; width: auto; display: block; margin-bottom: 12px; }
.lang-toggle {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  color: var(--ink);
}

/* Hero */
.hero {
  padding: 72px 0 64px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(36px, 5.4vw, 58px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
.hero p.lead {
  font-size: 19px;
  max-width: 34em;
  color: #2E3A4B;
  margin: 0 0 30px;
}
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 8px;
  border-bottom: 4px solid var(--signal);
}
.btn:hover { background: #2B3A5C; }

/* Phone mock — the memorable element */
.phone {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px 18px 26px;
  max-width: 360px;
  width: 100%;
  justify-self: center;
  box-shadow: 0 30px 60px -30px rgba(22, 32, 46, 0.35);
}
.phone-top {
  text-align: center;
  font-size: 13px;
  color: var(--steel);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.phone-top strong { display: block; color: var(--ink); font-size: 15px; }
.missed {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #B42318;
  font-weight: 600;
  margin: 0 0 16px;
}
.bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 10px;
  opacity: 0;
  transform: translateY(6px);
  animation: pop 0.4s ease forwards;
}
.bubble.in { background: var(--bubble-in); border-bottom-left-radius: 6px; }
.bubble.out { background: var(--bubble-out); color: var(--white); margin-left: auto; border-bottom-right-radius: 6px; }
.bubble:nth-of-type(1) { animation-delay: 0.4s; }
.bubble:nth-of-type(2) { animation-delay: 1.4s; }
.bubble:nth-of-type(3) { animation-delay: 2.4s; }
.bubble:nth-of-type(4) { animation-delay: 3.4s; }
.booked {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  background: #F5EFE3;
  border: 1px solid var(--signal);
  border-radius: 10px;
  padding: 8px;
  opacity: 0;
  animation: pop 0.4s ease 4.3s forwards;
}
@keyframes pop { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .bubble, .booked { animation: none; opacity: 1; transform: none; }
}

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  border-top: 4px solid var(--ink);
  padding-top: 16px;
}
.steps li::before {
  content: counter(step);
  font-weight: 800;
  font-stretch: 75%;
  font-size: 44px;
  line-height: 1;
  display: block;
  margin-bottom: 10px;
  color: var(--signal);
}
.steps h3 { margin: 0 0 6px; font-size: 20px; }
.steps p { margin: 0; color: #2E3A4B; }

.who {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.who li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
}
.note { color: var(--steel); max-width: 40em; margin-top: 24px; }

.contact p { max-width: 36em; }

/* Legal pages */
.legal { padding: 56px 0 72px; }
.legal .wrap { max-width: 760px; }
.legal h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 8px;
}
.legal .updated { color: var(--steel); margin: 0 0 36px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { max-width: 68ch; }
.legal .key {
  background: #F5EFE3;
  border-left: 4px solid var(--signal);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
}

/* Footer */
.site-foot {
  background: var(--ink);
  color: #C9D1DC;
  padding: 36px 0;
  font-size: 15px;
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}
.site-foot strong { color: var(--white); }
.site-foot nav a { margin-right: 18px; }

@media (max-width: 820px) {
  .hero { padding: 44px 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
}
