/* Tu Agenda — estilos compartidos (landing + reservas) */
:root {
  --ink: #14211f;
  --ink-soft: #4a5a57;
  --muted: #7b8a87;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --line: #e7e4dc;
  --brand: #0f766e;
  --brand-dark: #0b5a54;
  --brand-tint: #e3f3f1;
  --accent: #f59e0b;
  --accent-tint: #fef3dc;
  --danger: #b42318;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 33, 31, .05), 0 8px 24px rgba(20, 33, 31, .06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 20px; }
.section { padding-block: clamp(56px, 9vw, 104px); }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 40em; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 250, 247, .88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--brand);
  display: grid; place-items: center; color: #fff;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
.nav .btn { padding: 10px 18px; font-size: .95rem; color: #fff; }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-note { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span::before { content: "✓ "; color: var(--brand); font-weight: 800; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Mock de teléfono en hero */
.phone {
  width: min(330px, 100%); margin-inline: auto;
  background: var(--ink); border-radius: 38px; padding: 12px;
  box-shadow: 0 30px 60px rgba(20, 33, 31, .18);
}
.phone-screen { background: var(--surface); border-radius: 28px; padding: 22px 18px; }
.phone-biz { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.phone-biz .avatar { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-tint); display: grid; place-items: center; font-size: 1.3rem; }
.phone-biz strong { display: block; font-size: 1rem; }
.phone-biz small { color: var(--muted); }
.phone-label { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 8px; }
.phone-service { border: 1.5px solid var(--brand); background: var(--brand-tint); border-radius: 12px; padding: 10px 12px; display: flex; justify-content: space-between; font-size: .9rem; }
.phone-service b { font-weight: 700; }
.phone-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.phone-days div { border: 1px solid var(--line); border-radius: 10px; text-align: center; padding: 6px 0; font-size: .75rem; color: var(--ink-soft); }
.phone-days div b { display: block; font-size: 1rem; color: var(--ink); }
.phone-days .on { background: var(--ink); border-color: var(--ink); color: #cfd8d6; }
.phone-days .on b { color: #fff; }
.phone-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.phone-times div { border: 1px solid var(--line); border-radius: 9px; text-align: center; padding: 7px 0; font-size: .85rem; font-weight: 600; }
.phone-times .on { background: var(--brand); border-color: var(--brand); color: #fff; }
.phone-cta { margin-top: 16px; background: var(--brand); color: #fff; text-align: center; border-radius: 12px; padding: 11px; font-weight: 700; font-size: .95rem; }
.phone-toast {
  margin: -6px auto 0; width: min(300px, 92%); position: relative; top: -26px;
  background: var(--surface); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow);
  display: flex; gap: 10px; align-items: center; font-size: .85rem; border: 1px solid var(--line);
}
.phone-toast .wa { width: 34px; height: 34px; border-radius: 50%; background: #25d366; display: grid; place-items: center; color: #fff; flex-shrink: 0; }

/* Franja de rubros */
.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding-block: 22px; color: var(--ink-soft); font-weight: 600; }

/* Tarjetas */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card p { color: var(--ink-soft); margin: 0; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 16px;
}
.icon svg { width: 22px; height: 22px; }

/* Comparación */
.compare { margin-top: 44px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.compare thead th.us { color: var(--brand); }
.compare td:first-child { font-weight: 700; width: 24%; }
.compare td.us { background: var(--brand-tint); font-weight: 600; }
.compare td.them { color: var(--ink-soft); }

/* Pasos */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 6px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 14px;
}

/* Precios */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); position: relative; }
.plan .badge {
  position: absolute; top: -13px; left: 26px; background: var(--brand); color: #fff;
  font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}
.plan .price { font-size: 1.6rem; font-weight: 800; margin: 6px 0 2px; }
.plan .price-note { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 7px 0 7px 26px; position: relative; color: var(--ink-soft); border-top: 1px dashed var(--line); }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--brand); font-weight: 800; }

/* Lista de espera */
.waitlist {
  background: var(--ink); color: #e9efed; border-radius: 24px;
  padding: clamp(32px, 6vw, 64px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
}
.waitlist h2 { color: #fff; }
.waitlist p { color: #b9c7c4; }
@media (max-width: 820px) { .waitlist { grid-template-columns: 1fr; } }
.form-row { display: grid; gap: 12px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  font: inherit; font-size: 1rem; background: var(--surface); color: var(--ink);
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15, 118, 110, .14); }
.waitlist .input { border-color: transparent; }
.form-msg { font-size: .95rem; margin-top: 10px; min-height: 1.4em; }
.waitlist .form-msg { color: #8be0d5; }

/* FAQ */
.faq { max-width: 760px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); margin: 12px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.site-footer a { color: var(--ink-soft); text-decoration: none; margin-left: 18px; }

/* Vista previa de un mensaje de WhatsApp */
.wa-preview { background: #efeae2; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); text-align: left; }
.wa-preview .wa-head { background: #075e54; color: #fff; padding: 10px 14px; font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.wa-preview .wa-head small { font-weight: 500; opacity: .8; }
.wa-preview .bubble {
  margin: 12px; background: #fff; border-radius: 0 10px 10px 10px; padding: 9px 11px 6px; font-size: .88rem; line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08); white-space: pre-line; max-width: 92%; color: #111b21;
}
.wa-preview .bubble time { display: block; text-align: right; font-size: .7rem; color: #667781; margin-top: 2px; }

/* Botón flotante WhatsApp soporte */
.support-fab {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  display: flex; align-items: center; gap: 8px; background: #25d366; color: #fff; text-decoration: none;
  padding: 12px 16px; border-radius: 999px; font-weight: 700; box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.support-fab svg { width: 20px; height: 20px; }
@media (max-width: 520px) { .support-fab span { display: none; } }
