:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-alt: #e3f4f8;
  --text: #13252b;
  --muted: #55666c;
  --border: #dde8eb;
  /* #019ab9 es el turquesa del logo: solo para fondos y decoración (3.3:1 con blanco).
     Para texto y enlaces se usa --brand, más oscuro, que cumple WCAG AA (5.4:1 sobre --bg). */
  --brand-logo: #019ab9;
  --brand: #00708a;
  --brand-dark: #005a6e;
  --brand-ink: #ffffff;
  --accent: #f2a516;
  --radius: 14px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: var(--brand); }
img, svg { max-width: 100%; }
code { background: var(--surface-alt); padding: 1px 6px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

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

/* ---------- Encabezado ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; line-height: 1.1; }
.logo img { width: 44px; height: 44px; flex: none; border-radius: 10px; }
.logo small { display: block; font-weight: 600; font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.site-nav { display: flex; gap: 20px; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { color: var(--brand); }
@media (max-width: 680px) { .site-nav { display: none; } }

/* ---------- Hero ---------- */
/* Extremo claro #00809a: el texto blanco mantiene 4.6:1 en todo el degradado */
.hero { background: linear-gradient(135deg, var(--brand-dark) 0%, #00809a 100%); color: var(--brand-ink); }
.hero .wrap { padding-top: 64px; padding-bottom: 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-logo { display: none; }
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .hero-logo { display: block; width: 320px; height: 320px; border-radius: 28px; box-shadow: 0 18px 40px rgb(0 0 0 / .25); }
}
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgb(255 255 255 / .14); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
@media (max-width: 480px) { .eyebrow { font-size: .68rem; letter-spacing: .03em; } }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.12; margin: 0 0 16px; max-width: 20ch; }
.hero p { font-size: 1.12rem; max-width: 58ch; opacity: .92; margin: 0 0 8px; }
.hero .fine { font-size: .9rem; opacity: .9; margin-top: 16px; }
.hero .hero-link { color: #fff; font-weight: 700; white-space: nowrap; }

/* ---------- Secciones ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 8px; }
.section .lead { color: var(--muted); max-width: 62ch; margin: 0 0 28px; font-size: 1.05rem; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.section-alt .card { background: var(--bg); }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-logo); color: #fff; margin-bottom: 14px; }
.card-icon svg { width: 24px; height: 24px; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--text); font-weight: 800; margin-bottom: 12px; }

.about { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.about p { margin: 0 0 12px; max-width: 70ch; }
.about .contact-line { margin-top: 12px; }
@media (min-width: 860px) { .about { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } }

.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Botones de WhatsApp y Messenger ----------
   Íconos oficiales de Simple Icons (CC0) dentro de una insignia circular concéntrica con la píldora. */
.cta-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px; max-width: 520px; margin-top: 28px;
}
.btn-brand {
  --h: 56px; --inset: 6px;
  display: flex; align-items: center; gap: 12px;
  height: var(--h); padding: var(--inset) 24px var(--inset) var(--inset);
  border-radius: calc(var(--h) / 2);
  color: #fff; text-decoration: none;
  box-shadow: 0 2px 6px rgb(0 0 0 / .18);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-brand:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgb(0 0 0 / .25); filter: brightness(1.05); }
.btn-brand:active { transform: translateY(0); }
.btn-brand:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-badge {
  --size: calc(var(--h) - 2 * var(--inset));
  width: var(--size); height: var(--size); flex: none;
  display: grid; place-items: center;
  border-radius: 50%; background: #fff;
}
.btn-icon { display: block; width: 26px; height: 26px; }
.btn-label { display: flex; flex-direction: column; justify-content: center; line-height: 1.15; font-weight: 700; font-size: 1rem; }
.btn-label small { margin-top: 2px; font-weight: 500; font-size: .78rem; opacity: .92; letter-spacing: .01em; }
.btn-whatsapp { background: #25D366; text-shadow: 0 1px 1px rgb(0 0 0 / .2); }
.btn-whatsapp .btn-badge { color: #25D366; }
.btn-whatsapp .btn-icon { width: 27px; height: 27px; }
.btn-messenger { background: linear-gradient(45deg, #0099FF 0%, #A033FF 60%, #FF5280 90%, #FF7061 100%); }
.btn-messenger .btn-badge { color: #0A7CFF; }
.btn-messenger .btn-icon { width: 25px; height: 25px; }
@media (max-width: 560px) { .cta-row { grid-template-columns: minmax(0, 1fr); max-width: none; } }

/* ---------- Pie ---------- */
.site-footer { color: var(--muted); font-size: .9rem; padding: 32px 0 40px; }
.site-footer nav { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-bottom: 12px; }
.site-footer nav a { font-weight: 600; }
.site-footer p { margin: 6px 0; }

/* ---------- Páginas legales ---------- */
.legal main { max-width: 800px; margin: 0 auto; padding: 32px 16px 64px; background: var(--surface); }
.legal h1 { margin-top: 0; line-height: 1.2; }
.legal h2 { margin-top: 2em; font-size: 1.2rem; }
.legal .back { display: inline-block; margin-bottom: 20px; font-weight: 600; text-decoration: none; }
.legal .table-scroll { overflow-x: auto; }
.legal table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.legal th, .legal td { border: 1px solid var(--border); padding: 8px; text-align: left; vertical-align: top; }
.placeholder { background: #fff3cd; padding: 0 4px; border-radius: 3px; }
