/* =========================================================
   Arnold Agendamientos — Sistema de diseño
   Paleta esmeralda + dorado cálido. Tipografía editorial.
   ========================================================= */
:root {
  --ink: #14211c;
  --ink-soft: #3a4a43;
  --muted: #647a70;
  --line: #e6e1d6;
  --bg: #f7f4ed;
  --bg-2: #efeadf;
  --surface: #ffffff;

  --brand: #14624a;
  --brand-2: #0d4434;
  --brand-3: #1c8266;
  --brand-soft: #e7f1ec;

  --accent: #d8a441;
  --accent-2: #c88f2c;
  --accent-soft: #fbf1da;

  --wa: #25d366;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(20,33,28,.06), 0 4px 14px rgba(20,33,28,.05);
  --shadow: 0 10px 30px rgba(13,68,52,.10), 0 2px 8px rgba(13,68,52,.06);
  --shadow-lg: 0 30px 70px rgba(13,68,52,.18);
  --container: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-soft); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; letter-spacing: -.01em; }
p { color: var(--ink-soft); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-3);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.1rem; margin-top: 16px; }
.lead { font-size: 1.18rem; color: var(--ink-soft); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 700; font-size: .98rem;
  padding: 15px 26px; border-radius: 100px; border: 0; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(20,98,74,.28); }
.btn-primary:hover { background: var(--brand-2); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(20,98,74,.34); }
.btn-wa { background: var(--wa); color: #06351a; }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(37,211,102,.4); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(247,244,237,.82); backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand-3), var(--brand-2)); color: #fff;
  font-family: var(--font-display); font-size: 1.2rem; box-shadow: var(--shadow-sm);
}
.brand small { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a.link { font-weight: 600; font-size: .96rem; color: var(--ink-soft); position: relative; }
.nav-links a.link::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--accent); transition: width .3s var(--ease); border-radius: 2px; }
.nav-links a.link:hover { color: var(--ink); }
.nav-links a.link:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 9px; background: var(--surface);
  border: 1px solid var(--line); padding: 8px 16px; border-radius: 100px; font-size: .85rem;
  font-weight: 600; color: var(--ink-soft); box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
.hero .badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(37,211,102,.18); }
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--brand); position: relative; font-style: italic; }
.hero p.lead { max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero-trust .t-item { }
.hero-trust .t-num { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--brand); }
.hero-trust .t-lbl { font-size: .85rem; color: var(--muted); font-weight: 600; }

.hero-visual { position: relative; }
.hero-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4/5;
  background:
    linear-gradient(180deg, rgba(13,68,52,0) 40%, rgba(13,68,52,.55) 100%),
    radial-gradient(120% 90% at 70% 10%, #2c9c7c 0%, #14624a 45%, #0d4434 100%);
}
.hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: .55; }
.hero-float {
  position: absolute; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: .92rem;
}
.hero-float .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.hero-float.f1 { top: 24px; left: -26px; }
.hero-float.f2 { bottom: 30px; right: -22px; }
.hero-float small { display: block; font-weight: 600; color: var(--muted); font-size: .76rem; }

.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: -1; }
.blob.b1 { width: 460px; height: 460px; background: radial-gradient(circle, #bfe3d3, transparent 70%); top: -120px; right: -80px; }
.blob.b2 { width: 400px; height: 400px; background: radial-gradient(circle, var(--accent-soft), transparent 70%); bottom: -120px; left: -120px; }

/* ---------- Strip ciudades ---------- */
.strip { background: var(--brand-2); color: #dceee6; padding: 20px 0; }
.strip .row { display: flex; align-items: center; justify-content: center; gap: 14px 40px; flex-wrap: wrap; font-weight: 600; }
.strip .row span { display: inline-flex; align-items: center; gap: 10px; opacity: .92; }
.strip .row .sep { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .8; }

/* ---------- Cards / beneficios ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d8d0bf; }
.card .ic {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--brand-soft); color: var(--brand);
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: .98rem; }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; counter-reset: s; }
.step { position: relative; padding-top: 18px; }
.step .n {
  font-family: var(--font-display); font-size: 3rem; color: var(--accent); font-weight: 600; line-height: 1;
  -webkit-text-stroke: 0; opacity: .9;
}
.step h3 { margin: 12px 0 8px; }
.step p { font-size: .98rem; }

/* ---------- Precios / ciudades ---------- */
.prices { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.price {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.price:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.price.feat { background: linear-gradient(170deg, var(--brand), var(--brand-2)); color: #eafaf3; border-color: transparent; box-shadow: var(--shadow-lg); }
.price.feat .city, .price.feat .amt, .price.feat .per { color: #fff; }
.price.feat .tag { background: var(--accent); color: #3a2a05; }
.tag { position: absolute; top: 16px; right: 16px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent-2); padding: 5px 11px; border-radius: 100px; }
.price .city { font-weight: 700; font-size: 1.15rem; margin-bottom: 6px; }
.price .pin { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.price.feat .pin { color: #bfe3d3; }
.price .amt { font-family: var(--font-display); font-size: 2.7rem; font-weight: 600; color: var(--brand); }
.price .per { font-size: .9rem; color: var(--muted); margin-bottom: 22px; }

/* ---------- Sobre el doctor ---------- */
.about { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.about-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5/6; position: relative; background: radial-gradient(120% 90% at 30% 10%, #2c9c7c, #0d4434); }
.about-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.about ul { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.about ul li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink-soft); }
.about ul li .chk { flex: none; width: 24px; height: 24px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-top: 1px; }

/* ---------- Masspen ---------- */
.masspen { background: linear-gradient(150deg, #102a22, #0b3a2c 60%, #0d4434); color: #e7f3ee; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 72px); position: relative; overflow: hidden; }
.masspen::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(216,164,65,.35), transparent 70%); top: -120px; right: -80px; filter: blur(20px); }
.masspen .inner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: center; }
.masspen h2 { color: #fff; }
.masspen p { color: #c4ddd2; }
.masspen .pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.masspen .pill { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 8px 15px; border-radius: 100px; font-size: .86rem; font-weight: 600; }
.masspen .pill b { color: var(--accent); }

/* ---------- CTA final ---------- */
.cta-final { text-align: center; }
.cta-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(40px, 7vw, 80px); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.cta-box .blob { opacity: .45; }
.cta-box h2 { margin-bottom: 14px; }
.cta-box p { max-width: 520px; margin: 0 auto 30px; font-size: 1.12rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c3d0ca; padding: 70px 0 34px; }
.footer a { color: #c3d0ca; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand { color: #fff; }
.footer .brand small { color: #8aa399; }
.footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: #8aa399; margin-bottom: 16px; font-weight: 700; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer .muted { color: #8aa399; font-size: .94rem; max-width: 320px; margin-top: 14px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 26px; font-size: .88rem; color: #8aa399; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 11px; background: var(--wa); color: #06351a;
  padding: 14px 20px 14px 16px; border-radius: 100px; font-weight: 800; box-shadow: 0 14px 34px rgba(37,211,102,.45);
  transition: transform .25s var(--ease); transform: translateY(120px);
}
.wa-float.show { transform: translateY(0); }
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

/* ---------- Legal ---------- */
.legal-hero { padding: 130px 0 30px; }
.legal-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal-hero p { margin-top: 14px; color: var(--muted); }
.legal { padding: 30px 0 90px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 1.02rem; }
.prose ul, .prose ol { margin: 12px 0 12px 22px; display: grid; gap: 8px; }
.prose a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose .updated { display: inline-block; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .85rem; padding: 6px 14px; border-radius: 100px; margin-bottom: 8px; }
.prose .box { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 18px 22px; margin: 22px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 420px; margin: 0 auto; width: 100%; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .about-media { max-width: 420px; }
  .masspen .inner { grid-template-columns: 1fr; gap: 28px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; inset: 76px 0 auto 0; flex-direction: column; background: rgba(247,244,237,.98); backdrop-filter: blur(12px); padding: 24px; gap: 18px; border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .35s var(--ease); align-items: flex-start; }
  .nav-links.open { transform: translateY(0); }
  .nav-links .nav-cta { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-links .nav-cta .btn { width: 100%; }
  .menu-btn { display: block; }
  .grid-3, .grid-4, .steps, .prices { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .hero-float.f1 { left: 6px; } .hero-float.f2 { right: 6px; }
}
