:root {
  --bg: #fbf3ea;
  --bg-alt: #f4e4d3;
  --ink: #2b1d1a;
  --muted: #5a433e;
  --accent: #b5482b;
  --accent-2: #6d4c8c;
  --card: #ffffff;
  --line: #ead6c3;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.125rem;
}
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
a { color: var(--accent); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(251,243,234,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-family: "Fraunces", serif; font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; }
.inf { color: var(--accent-2); }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 1rem; }
.nav nav a:hover { color: var(--ink); }
.nav nav a.btn { color: #fff; }

/* Buttons */
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; border: 2px solid var(--accent);
  cursor: pointer; font: inherit; font-weight: 600; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); background: #963a22; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 1rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 40px 0 110px; background: radial-gradient(ellipse at 80% 20%, #eadff3 0%, transparent 55%), radial-gradient(ellipse at 10% 90%, #f8d9c4 0%, transparent 50%), var(--bg); }
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin-left: max(16px, calc((100% - 1080px) / 2 + 16px)); }
.hero h1 { font-size: clamp(2.8rem, 8vw, 5.2rem); font-weight: 700; }
.hero h1 em { color: var(--accent); font-style: italic; }
.epigrafe { margin: 0 0 24px; padding-left: 20px; border-left: 3px solid var(--accent-2); max-width: 620px; }
.epigrafe p { font-family: "Fraunces", serif; font-style: italic; font-size: clamp(.75rem, 4.1vw, 1.25rem); line-height: 1.35; margin: 0 0 4px; white-space: nowrap; }
.epigrafe cite { color: var(--muted); font-style: normal; }
.tagline { font-size: 1.35rem; font-weight: 600; margin: 0 0 16px; max-width: 640px; }
.bio { font-size: 1.2rem; }
.autor { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; max-width: 960px; }
.autor-foto { margin: 0; }
.autor-foto img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 12px 30px rgba(43,29,26,.18); }
.lead { font-size: 1.3rem; color: var(--muted); max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.author { color: var(--muted); }
.author strong { color: var(--ink); font-weight: 700; }
.author-name { font-weight: 400; opacity: .85; }
.hero-symbol { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); font-family: "Fraunces", serif; font-size: 34rem; line-height: 1; color: var(--accent); opacity: .07; pointer-events: none; }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; font-weight: 600; color: var(--accent-2); margin: 0 0 12px; }
.sub { color: var(--muted); max-width: 680px; }
.note { color: var(--muted); font-size: 1rem; margin-top: 24px; }
.small { font-size: .95rem; margin-top: 4px; }

/* Sections */
.section { padding: 88px 0; }
.alt { background: var(--bg-alt); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 28px 0; }
.card, .step, .plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p, .step p { color: var(--muted); margin: 0; }

.quote { font-family: "Fraunces", serif; font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-style: italic; border-left: 4px solid var(--accent-2); margin: 48px 0; padding: 4px 0 4px 24px; max-width: 820px; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facts div { text-align: center; padding: 20px 8px; border-top: 2px solid var(--accent); }
.facts strong { display: block; font-family: "Fraunces", serif; font-size: 1.7rem; }
.facts span { color: var(--muted); font-size: 1rem; }

.chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 500; }
.chips li:nth-child(3n+1) { border-color: #c9b5dc; }
.chips li:nth-child(3n+2) { border-color: #eab49c; }

.areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.area { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.area h3 { margin: 0 0 6px; font-size: 1.2rem; color: var(--accent); }
.area p { margin: 0; color: var(--muted); }

.num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 14px; }

.plan { display: flex; flex-direction: column; }
.plan ul { padding-left: 20px; color: var(--muted); flex: 1; }
.price { font-family: "Fraunces", serif; font-size: 2.2rem; font-weight: 700; margin: 0 0 8px; }
.price small { font-family: "Inter", sans-serif; font-size: .95rem; font-weight: 400; color: var(--muted); }
.plan .btn { align-self: flex-start; }
.featured { border: 2px solid var(--accent); box-shadow: 0 12px 30px rgba(181,72,43,.14); }

/* Form */
.form { display: grid; gap: 16px; margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 1rem; }
.opt { color: var(--muted); font-weight: 400; }
.form input, .form textarea, .form select { font: inherit; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.seg { display: inline-flex; background: var(--bg-alt); border-radius: 999px; padding: 4px; justify-self: start; }
.seg label { display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg label { padding: 8px 20px; border-radius: 999px; }
.seg label:has(input:checked) { background: var(--accent); color: #fff; }
.total { background: #f8e6dc; border-radius: 10px; padding: 14px 16px; font-weight: 500; }
.total strong { font-family: "Fraunces", serif; font-size: 1.4rem; color: var(--accent); }
.pago-tel { margin-top: 28px; background: var(--card); border: 2px solid var(--accent); border-radius: var(--radius); padding: 24px 28px; }
.pago-tel h3 { margin: 0 0 8px; }
.pago-tel p { margin: 0 0 8px; color: var(--muted); }
.pago-tel p:last-child { margin: 0; }
.pago-tel a.tel { font-weight: 700; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.copiar { display: grid; gap: 10px; background: var(--bg-alt); border-radius: 10px; padding: 16px; }
.copiar p { margin: 0; }
.copiar .btn { justify-self: start; }
.error { color: #a32d2d; margin: 0; font-weight: 500; }
.error:empty { display: none; }

details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-top: 12px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

.footer { background: var(--ink); color: #ecd9cc; padding: 32px 0; font-size: 1rem; }
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer p { margin: 0; }
.footer a { color: #eab49c; }

@media (max-width: 860px) {
  .nav nav a:not(.btn) { display: none; }
  .grid-2, .grid-3, .row { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .areas { grid-template-columns: 1fr; }
  .hero { padding: 28px 0 80px; }
  .hero-symbol { font-size: 20rem; right: -60px; }
}


@media (max-width: 520px) {
  .grid-4, .areas { grid-template-columns: 1fr; }
  .autor { grid-template-columns: 1fr; gap: 24px; }
  .autor-foto { max-width: 240px; }
}
