/* Agenda Clínica — home (diseño 4a, estilo de la plantilla clara: blanco, gris frío, acento esmeralda,
   Manrope como en dropia.uy y en la app: títulos en bold con interletrado apretado). */
:root {
  --ac: #10b981; --ac-strong: #047857; --ac-hover: #065f46; --ac-ink: #047857; --ac-soft: #ecfdf5; --ac-line: #d1fae5;
  --ink: #0f172a; --soft: #475569; --muted: #64748b; --faint: #94a3b8;
  --line: #e5eae8; --line-2: #eef2f1; --chip: #f8fafc; --chip-line: #e2e8f0; --tint: #f6faf8;
  --serif: "Manrope", system-ui, -apple-system, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.h { margin: 0; font-family: var(--sans); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; line-height: 1.55; }
.h img { max-width: 100%; }
.h a { color: inherit; }
.h-wrap { width: 100%; max-width: 1280px; padding-left: 72px; padding-right: 72px; margin-left: auto; margin-right: auto; }
.h em { font-style: normal; color: #059669; }

/* Nav */
.h-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line-2); }
.h-nav-in { display: flex; align-items: center; gap: 32px; height: 84px; }
.h-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 700 20px/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.h-brand img { width: 40px; height: 40px; }
.h-brand-sm { font-size: 20px; gap: 10px; }
.h-brand-sm img { width: 32px; height: 32px; }
.h-nav-links { display: flex; gap: 32px; margin: 0 auto; font-size: 14px; }
.h-nav-links a, .h-link { text-decoration: none; color: var(--soft); }
.h-nav-links a:hover, .h-link:hover { color: var(--ac-ink); }
.h-nav-cta { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.h-link { padding: 11px 18px; color: var(--ink); }

/* Buttons */
.h-pill { display: inline-flex; align-items: center; justify-content: center; padding: 18px 32px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.h-pill:hover { transform: translateY(-1px); }
.h-pill-sm { padding: 11px 20px; font-size: 14px; font-weight: 500; }
.h-pill-dark { background: var(--ac-strong); color: #fff !important; }
.h-pill-dark:hover { background: var(--ac-hover); }
.h-pill-ac { background: var(--ac-strong); color: #fff !important; box-shadow: 0 8px 24px -8px var(--ac-strong); }
.h-pill-ac:hover { background: var(--ac-hover); }
.h-pill-ghost { padding: 18px 24px; background: #fff; border: 1px solid var(--chip-line); color: var(--ink) !important; font-weight: 500; }
.h-pill-ghost:hover { border-color: var(--ac); }

/* Type */
.h-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 32px; padding: 7px 14px; border-radius: 999px; background: var(--ac-soft); border: 1px solid var(--ac-line); color: var(--ac-ink); font-size: 13px; }
.h-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ac); display: inline-block; }
.h-display { margin: 0; font: 800 64px/1.02 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.h-lead { max-width: 480px; margin: 28px 0 0; font-size: 19px; line-height: 1.6; color: var(--soft); }
.h-eyebrow { margin: 0 0 16px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ac-ink); }
.h-h2 { margin: 0 0 56px; font: 700 42px/1.1 var(--serif); letter-spacing: -.03em; text-wrap: balance; }
.h-h2-tight { margin: 0; line-height: 1; }
.h-h2-xl { margin: 0; font-size: 48px; }

/* Hero */
.h-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); padding: 96px 0 100px; }
.h-glow { position: absolute; right: -120px; bottom: -260px; width: 720px; height: 520px; background: radial-gradient(ellipse at center, var(--ac), transparent 65%); opacity: .14; pointer-events: none; }
.h-hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.h-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.h-checks { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 36px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--soft); }
.h-checks li { display: inline-flex; align-items: center; gap: 8px; }
.h-check { color: var(--ac); flex-shrink: 0; }

/* Hero: WhatsApp demo card + agenda card */
.h-stage { position: relative; display: grid; gap: 16px; }
.h-chatcard { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 24px 60px -24px rgba(15,23,42,.18); overflow: hidden; }
.h-chat-top { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.h-chat-top strong { display: block; font-size: 15px; font-weight: 600; }
.h-chat-top small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ac); }
.h-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ac-soft); color: var(--ac-ink); font: 700 16px var(--serif); }
.h-chat { display: flex; flex-direction: column; gap: 10px; min-height: 330px; padding: 20px; background: var(--chip); font-size: 14px; line-height: 1.45; }
.h-msg { margin: 0; max-width: 80%; padding: 12px 14px; opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; display: none; }
.h-msg.is-on { display: block; opacity: 1; transform: none; }
.h-msg time { display: block; margin-top: 4px; font-size: 11px; }
.h-in { align-self: flex-end; background: var(--ink); color: #fff; border-radius: 16px 16px 4px 16px; }
.h-in time { opacity: .6; text-align: right; }
.h-out { align-self: flex-start; background: #fff; border: 1px solid var(--chip-line); border-radius: 16px 16px 16px 4px; }
.h-out time { color: var(--faint); margin-top: 6px; }
.h-btns { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.h-b { padding: 8px 12px; border: 1px solid var(--chip-line); border-radius: 10px; transition: background .2s, border-color .2s, transform .2s; }
.h-b-on { border-color: var(--ac-line); background: var(--ac-soft); color: var(--ac-ink); font-weight: 500; }
.h-b.is-tap { transform: scale(.97); background: var(--ac-strong); border-color: var(--ac-strong); color: #fff; }
.h-typing { display: none; align-self: flex-start; gap: 4px; margin: 0; padding: 12px 14px; background: #fff; border: 1px solid var(--chip-line); border-radius: 16px 16px 16px 4px; }
.h-typing.is-on { display: inline-flex; }
.h-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: h-bounce 1s infinite; }
.h-typing i:nth-child(2) { animation-delay: .15s; }
.h-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes h-bounce { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }

.h-agenda { width: 300px; margin: 0 32px 0 auto; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 32px -20px rgba(15,23,42,.2); font-size: 13px; opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
.h-agenda.is-on { opacity: 1; transform: none; }
.h-agenda-head { display: flex; justify-content: space-between; margin-bottom: 12px; }
.h-agenda-head strong { font-weight: 600; }
.h-agenda-head span { color: var(--muted); }
.h-agenda-rows { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; }
.h-agenda-rows time { color: var(--muted); }
.h-new { justify-self: start; padding: 2px 8px; border-radius: 6px; background: var(--ac-soft); color: var(--ac-ink); font-weight: 500; }
.h-agenda-foot { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 12px; color: var(--ac); }

/* Sections */
.h-sec { padding: 100px 0; }
.h-tint { background: var(--tint); }
.h-cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.h-card { padding: 32px; border: 1px solid var(--line); border-radius: 20px; }
.h-card-white { background: #fff; }
.h-cards3 .h-card { display: flex; flex-direction: column; }
.h-num { font: 800 34px/1 var(--serif); color: #059669; }
.h-cards3 strong { margin: 20px 0 8px; font-size: 20px; font-weight: 600; }
.h-cards3 span:last-child, .h-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--soft); }
.h-card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.h-split { display: grid; grid-template-columns: 400px 1fr; gap: 72px; align-items: start; }
.h-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.h-statement { padding: 120px 0; text-align: center; }
.h-statement .h-lead { max-width: 520px; margin: 24px auto 0; }

.h-ruled { border-top: 1px solid var(--line-2); }
.h-lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin: 0; padding: 0; list-style: none; }
.h-lines li { display: flex; flex-direction: column; padding-top: 24px; border-top: 2px solid var(--chip-line); }
.h-lines li:first-child { border-top-color: var(--ac); }
.h-lines-n { margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.h-lines strong { margin-bottom: 8px; font: 700 22px/1.2 var(--serif); letter-spacing: -.02em; }
.h-lines span:last-child { font-size: 15px; color: var(--soft); }
.h-checks-trust { margin-top: 56px; }

.h-faq { margin: 0; }
.h-faq > div { padding: 28px 0; border-bottom: 1px solid var(--chip-line); }
.h-faq > div:first-child { padding-top: 0; }
.h-faq > div:last-child { border-bottom: 0; }
.h-faq dt { margin-bottom: 8px; font-size: 19px; font-weight: 600; }
.h-faq dd { margin: 0; font-size: 15px; color: var(--soft); }

.h-final { position: relative; overflow: hidden; margin: 72px 0; padding: 88px 72px; border-radius: 28px; background: var(--ink); color: #fff; text-align: center; }
.h-glow-final { left: 0; right: 0; bottom: -240px; width: auto; height: 480px; opacity: .35; }
.h-final > :not(.h-glow) { position: relative; }
.h-final p { margin: 20px 0 40px; font-size: 18px; color: rgba(255,255,255,.7); }

/* Footer */
.h-foot { border-top: 1px solid var(--line-2); font-size: 14px; }
.h-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-top: 56px; padding-bottom: 40px; }
.h-foot-grid p { max-width: 280px; margin: 14px 0 0; color: var(--muted); line-height: 1.55; }
.h-foot nav { display: flex; flex-direction: column; gap: 10px; color: var(--soft); }
.h-foot nav strong { margin-bottom: 4px; font-weight: 600; color: var(--ink); }
.h-foot nav a { text-decoration: none; }
.h-foot nav a:hover { color: var(--ac-ink); }
.h-copy { margin: 0; padding-bottom: 32px; font-size: 12px; color: var(--faint); }
/* Maker credit: quiet, with dropia's own mark and lowercase name */
.h-maker { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 6px 12px 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 13px; }
.h-maker:hover { border-color: var(--line); }
.h-maker img { width: 20px; height: 20px; border-radius: 50%; }
.h-maker strong { font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.h-maker:hover strong { color: var(--ac-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Floating WhatsApp */
.h-wa { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px; background: var(--ac-strong); color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: 0 12px 28px -10px rgba(16,185,129,.7); }
.h-wa svg { width: 22px; height: 22px; }

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-on { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1100px) {
  .h-wrap { padding-left: 32px; padding-right: 32px; }
  .h-nav-links { display: none; }
  .h-nav-cta { margin-left: auto; }
  .h-hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .h-display { font-size: 54px; }
  .h-split { grid-template-columns: 1fr; gap: 40px; }
  .h-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .h-wrap { padding-left: 16px; padding-right: 16px; }
  .h-nav-in { height: 68px; gap: 12px; }
  .h-brand { font-size: 21px; gap: 10px; }
  .h-brand img { width: 34px; height: 34px; }
  .h-link { display: none; }
  .h-hero { padding: 56px 0 64px; }
  .h-chip { margin-bottom: 24px; }
  .h-display { font-size: 40px; }
  .h-lead { font-size: 17px; margin-top: 20px; }
  .h-actions { margin-top: 28px; }
  .h-actions .h-pill { flex: 1 1 auto; }
  .h-checks { flex-direction: column; gap: 10px; margin-top: 28px; }
  .h-chat { min-height: 0; }
  .h-msg { max-width: 88%; }
  .h-agenda { width: auto; margin: 0 0 0 40px; }
  .h-sec { padding: 64px 0; }
  .h-h2 { font-size: 30px; margin-bottom: 32px; }
  .h-h2-tight { margin-bottom: 0; }
  .h-h2-xl { font-size: 32px; }
  .h-cards3, .h-grid2, .h-lines { grid-template-columns: 1fr; }
  .h-lines { gap: 32px; }
  .h-card { padding: 24px; }
  .h-statement { padding: 80px 0; }
  .h-checks-trust { margin-top: 40px; }
  .h-final { margin: 40px 0; padding: 56px 24px; border-radius: 22px; }
  .h-foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .h-wa span { display: none; }
  .h-wa { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .h-msg, .h-agenda { transition: none; }
  .h-typing i { animation: none; }
  .h-pill:hover { transform: none; }
}

/* --- Motion: hero words, the highlighted words' stroke, floating notes --- */
.h-display-in .h-w { display: inline-block; opacity: 0; transform: translateY(.45em); animation: h-rise .75s cubic-bezier(.2, .75, .2, 1) forwards; animation-delay: calc(var(--w) * 90ms + 120ms); }
@keyframes h-rise { to { opacity: 1; transform: none; } }
.h-display-in em { background: linear-gradient(90deg, var(--ac), var(--ac-strong)) no-repeat 0 94% / 0% .12em; padding-bottom: .04em; animation: h-stroke .9s cubic-bezier(.6, 0, .2, 1) .85s forwards; }
@keyframes h-stroke { to { background-size: 100% .12em; } }

.h-float { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 14px 9px 9px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: 0 14px 34px -14px rgba(15, 23, 42, .28); font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; opacity: 0; transform: translateY(10px) scale(.94); transition: opacity .45s ease, transform .55s cubic-bezier(.2, .9, .3, 1.3); animation: h-bob 6s ease-in-out infinite; }
.h-float b { color: var(--ac-ink); }
.h-float-ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ac-soft); color: var(--ac-ink); }
.h-chatwrap { position: relative; }
.h-float.is-on { opacity: 1; transform: none; }
.h-float-1 { top: -18px; right: -14px; }
.h-float-2 { bottom: -18px; right: 28px; animation-delay: 1.5s; }
@keyframes h-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.h-glow { animation: h-drift 14s ease-in-out infinite alternate; }
@keyframes h-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, -30px) scale(1.12); } }

/* --- Motion: "Lo instalamos nosotros" — a green line runs through the three steps --- */
.h-lines li { position: relative; border-top: 0; padding-top: 28px; }
.h-lines li::before, .h-lines li::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px; }
.h-lines li::before { background: var(--chip-line); }
.h-lines li::after { background: linear-gradient(90deg, var(--ac), var(--ac-strong)); transform: scaleX(0); transform-origin: left; }
.h-lines-n { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border: 2px solid var(--chip-line); border-radius: 50%; background: #fff; font-weight: 700; font-size: 14px; color: var(--muted); }
.h-lines strong, .h-lines li > span:last-child { opacity: 0; transform: translateY(10px); }
.h-lines.is-on li::after { transform: scaleX(1); transition: transform .7s cubic-bezier(.6, 0, .3, 1) calc(var(--i) * .6s + .15s); }
.h-lines.is-on .h-lines-n { border-color: var(--ac); background: var(--ac-strong); color: #fff; box-shadow: 0 0 0 6px rgba(16, 185, 129, .15); transition: all .35s ease calc(var(--i) * .6s + .2s); }
.h-lines.is-on strong { opacity: 1; transform: none; transition: opacity .5s ease calc(var(--i) * .6s + .35s), transform .5s ease calc(var(--i) * .6s + .35s); }
.h-lines.is-on li > span:last-child { opacity: 1; transform: none; transition: opacity .5s ease calc(var(--i) * .6s + .5s), transform .5s ease calc(var(--i) * .6s + .5s); }

@media (max-width: 1024px) {
  .h-float-1 { right: 0; }
}
@media (max-width: 640px) {
  .h-float { font-size: 12px; padding: 7px 11px 7px 7px; }
  .h-float-1 { top: -14px; right: 6px; }
  .h-float-2 { display: none; } /* the chat fills up on phones; one note is enough */
}

@media (prefers-reduced-motion: reduce) {
  .h-display-in .h-w, .h-float { opacity: 1; transform: none; animation: none; transition: none; }
  .h-display-in em { animation: none; background-size: 100% .12em; }
  .h-glow { animation: none; }
  .h-lines li::after { transform: scaleX(1); }
  .h-lines strong, .h-lines li > span:last-child { opacity: 1; transform: none; }
  .h-lines .h-lines-n { border-color: var(--ac); background: var(--ac-strong); color: #fff; }
}

/* --- Clinics directory (/clinicas) --- */
.h-dir-head { padding-top: 72px; padding-bottom: 32px; }
.h-dir-head .h-lead { max-width: 620px; }
.h-dir { padding-bottom: 48px; }
.h-dir-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.h-dir-card { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.h-dir-card:hover { border-color: var(--ac-line); box-shadow: 0 18px 40px -24px rgba(15, 23, 42, .25); }
.h-dir-brand { display: grid; place-items: center; width: 120px; height: 72px; text-decoration: none; }
.h-dir-logo { max-width: 120px; max-height: 64px; object-fit: contain; }
.h-dir-mono { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--ac-strong); color: #fff; font: 800 24px var(--serif); }
.h-dir-name { margin: 0 0 4px; font: 700 21px/1.25 var(--serif); letter-spacing: -.02em; }
.h-dir-name a { color: var(--ink); text-decoration: none; }
.h-dir-meta { margin: 0 0 10px; font-size: 14px; color: var(--soft); }
.h-dir-team { display: flex; align-items: center; margin: 0 0 6px; }
.h-dir-team img, .h-dir-team span { width: 28px; height: 28px; margin-right: -6px; border: 2px solid #fff; border-radius: 50%; object-fit: cover; background: var(--ac-soft); color: var(--ac-ink); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.h-dir-team small { margin-left: 14px; font-size: 13px; color: var(--muted); }
.h-dir-services { margin: 0; font-size: 13px; color: var(--muted); }
.h-dir-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.h-dir-next { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 600; color: var(--ac-ink); }
.h-dir-empty { color: var(--soft); }
.h-dir-owner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 72px; padding: 24px 28px; border-radius: 20px; background: var(--tint); }
.h-dir-owner div { display: flex; flex-direction: column; gap: 4px; }
.h-dir-owner span { font-size: 14px; color: var(--soft); }
@media (max-width: 768px) {
  .h-dir-head { padding-top: 40px; }
  .h-dir-card { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .h-dir-brand { justify-content: start; width: auto; height: auto; }
  .h-dir-cta { align-items: stretch; }
  .h-dir-cta .h-pill { justify-content: center; }
}
.h-inner main .h-dir-card a { text-decoration: none; }
.h-inner main .h-dir-card a.h-pill { color: #fff; }
.h-inner main .h-dir-name a { color: var(--ink); }
.h-inner main .h-dir-name a:hover { color: var(--ac-ink); }
