/* HolaResidency — landing estática. Paleta cálida: terracota + crema + verde oliva. */
:root {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --surface-2: #f4ece1;
  --line: #e7dccd;
  --fg: #2a211b;
  --muted: #6e6156;
  --accent: #c4542e;
  --accent-hover: #a8431f;
  --accent-soft: #f7e2d8;
  --olive: #5d6b3a;
  --olive-soft: #e8ecdc;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(42, 33, 27, 0.06), 0 8px 24px rgba(42, 33, 27, 0.06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171310;
    --surface: #211b17;
    --surface-2: #2a231d;
    --line: #3a3029;
    --fg: #f3ece4;
    --muted: #b3a597;
    --accent: #e0714a;
    --accent-hover: #ec8862;
    --accent-soft: #3b231a;
    --olive: #a9b77f;
    --olive-soft: #2a2e1f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.serif { font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -0.01em; }

/* Cabecera */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-family: "Fraunces", Georgia, serif; font-size: 20px;
}
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--fg); }
.lang { display: flex; gap: 4px; font-size: 13px; font-weight: 600; }
.lang a { text-decoration: none; padding: 4px 8px; border-radius: 8px; color: var(--muted); }
.lang a[aria-current="true"] { background: var(--surface-2); color: var(--fg); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--olive);
  background: var(--olive-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.05; margin: 0 0 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--muted); }
.trust span::before { content: "✓"; color: var(--olive); font-weight: 700; margin-right: 6px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-card { padding: 24px; }
.hero-card h3 { margin: 0 0 4px; font-size: 15px; }
.hero-card .sub { margin: 0 0 18px; font-size: 13px; color: var(--muted); }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.step:first-of-type { border-top: 0; }
.dot { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.dot.done { background: var(--olive-soft); color: var(--olive); }
.dot.now { background: var(--accent-soft); color: var(--accent); }
.dot.next { background: var(--surface-2); color: var(--muted); }
.step b { display: block; font-size: 14px; }
.step small { color: var(--muted); font-size: 13px; }

/* Secciones */
section { padding: 72px 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }
.alt { background: var(--surface-2); }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.who { padding: 22px; }
.who .icon { font-size: 26px; margin-bottom: 10px; }
.who h3 { margin: 0 0 6px; font-size: 17px; }
.who p { margin: 0; color: var(--muted); font-size: 15px; }

.service { padding: 24px; display: flex; flex-direction: column; }
.service .tag { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.service h3 { margin: 8px 0 8px; font-size: 19px; }
.service p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.service ul { margin: auto 0 0; padding: 0; list-style: none; font-size: 14px; }
.service li { padding: 4px 0 4px 20px; position: relative; }
.service li::before { content: "→"; position: absolute; left: 0; color: var(--olive); }

.how { counter-reset: how; }
.how .item { padding: 24px; position: relative; }
.how .item::before {
  counter-increment: how; content: counter(how);
  font-family: "Fraunces", Georgia, serif; font-size: 34px; color: var(--accent); display: block; margin-bottom: 6px;
}
.how h3 { margin: 0 0 6px; font-size: 17px; }
.how p { margin: 0; color: var(--muted); font-size: 15px; }

.lawyer { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 32px; align-items: center; }
.avatar {
  width: 200px; height: 200px; border-radius: 20px; background: var(--surface-2);
  display: grid; place-items: center; font-size: 64px; color: var(--muted);
}
.lawyer h3 { margin: 0 0 10px; font-size: 26px; }
.lawyer p { margin: 0 0 12px; color: var(--muted); }
.lawyer .name { color: var(--fg); font-weight: 600; }

.honest { border-left: 4px solid var(--olive); padding: 20px 24px; background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.honest h3 { margin: 0 0 6px; }
.honest p { margin: 0; color: var(--muted); }

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); }

.contact { padding: 40px; text-align: center; }
.contact h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 12px; }
.contact p { color: var(--muted); max-width: 560px; margin: 0 auto 24px; }
.contact .small { font-size: 13px; margin-top: 16px; }

footer { padding: 40px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer a { color: var(--muted); }

@media (max-width: 920px) {
  .hero-grid, .lawyer { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .nav .links { display: none; }
  .avatar { width: 140px; height: 140px; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 32px; }
  section { padding: 56px 0; }
  .lawyer, .contact { padding: 24px; }
}
