/* ============================================================
   SanaMi — sitio público
   Tokens del libro de marca. No agregar colores fuera de aquí.
   ============================================================ */

:root {
  /* Marca */
  --navy: #1A3D49;
  --slate: #587180;
  --teal: #0D8D9C;
  --green: #DAEBAA;
  --cream: #FAFFE9;
  --sun: #FFD980;
  --red: #C8442B;
  --red-bg: #FBE4DF;
  --sun-bg: #FFF6DC;
  --sun-text: #5A3B00;
  --bg: #FFFFFF;
  --soft: #F4F8EC;
  --line: rgba(26, 61, 73, .14);

  /* Derivado: variante de teal con contraste AA para texto pequeño
     sobre blanco (5.5:1). El --teal original mide 3.96:1 y solo se usa
     en bordes, foco, íconos y texto grande. */
  --teal-ink: #0A7480;

  /* Tipografía */
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Radios */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;

  /* Objetivo de clic */
  --tap: 40px;

  /* Sombras: una sola dirección, tinte navy */
  --sh-soft: 0 1px 2px rgba(26, 61, 73, .05), 0 8px 24px rgba(26, 61, 73, .06);
  --sh-medium: 0 2px 4px rgba(26, 61, 73, .06), 0 16px 40px rgba(26, 61, 73, .12);
  --sh-strong: 0 4px 8px rgba(26, 61, 73, .08), 0 24px 64px rgba(26, 61, 73, .18);

  /* Layout */
  --wrap: 1160px;
  --gutter: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { color: var(--navy); font-weight: 700; line-height: 1.2; margin: 0 0 16px; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 5.2vw, 54px); line-height: 1.08; letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.015em; }
h3 { font-size: 19px; }
p  { margin: 0 0 16px; max-width: 68ch; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--teal-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 20px;
  border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
  transition: top .18s ease;
}
.skip:focus { top: 16px; color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal-ink); margin: 0 0 16px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--teal); border-radius: 2px; }

.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; max-width: 60ch; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  font: inherit; font-size: 15px; font-weight: 600;
  border-radius: var(--r-md); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .08s ease, box-shadow .15s ease;
}
.btn svg { flex: none; }

.btn-primary { background: var(--navy); color: var(--green); }
.btn-primary:hover { background: #14313b; color: var(--green); box-shadow: var(--sh-soft); }
.btn-primary:active { transform: translateY(1px); }

.btn-secondary { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-secondary:hover { background: var(--soft); border-color: var(--navy); color: var(--navy); }
.btn-secondary:active { transform: translateY(1px); }

.btn-light { background: var(--green); color: var(--navy); }
.btn-light:hover { background: #e6f2c2; color: var(--navy); box-shadow: var(--sh-soft); }

.btn-ghost-light { background: transparent; color: var(--cream); border-color: rgba(250, 255, 233, .35); }
.btn-ghost-light:hover { background: rgba(250, 255, 233, .1); color: var(--cream); border-color: var(--cream); }

.btn[disabled], .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }

.btn-sm { min-height: var(--tap); padding: 0 16px; font-size: 14px; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 2px rgba(26, 61, 73, .04); }

.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }

.logo-link { display: inline-flex; align-items: center; height: var(--tap); flex: none; }
@media (max-width: 940px) { .logo-link { height: 44px; } }
.logo-link img { height: 38px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; height: var(--tap); padding: 0 14px;
  font-size: 15px; font-weight: 500; color: var(--navy); text-decoration: none;
  border-radius: var(--r-sm);
}
.nav a:hover { background: var(--soft); color: var(--navy); }
/* Dónde estoy parado: se distingue del hover por el color, no solo por el fondo. */
.nav a[aria-current="page"] { background: var(--soft); color: var(--teal-ink); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-left: auto;
  background: transparent; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  color: var(--navy); cursor: pointer;
}
.nav-toggle:hover { background: var(--soft); }
.nav-toggle .ico-close { display: none; }
.site-header.is-open .nav-toggle .ico-menu { display: none; }
.site-header.is-open .nav-toggle .ico-close { display: block; }

/* El encabezado (logo + 4 destinos + dos botones) necesita unos 890px.
   Por debajo de 1000 se pasa al menú de botón, con margen de sobra. */
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav, .header-actions {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter); flex-direction: column; align-items: stretch; gap: 4px;
  }
  .site-header.is-open .nav { display: flex; border-bottom: 0; padding-bottom: 0; }
  .site-header.is-open .header-actions { display: flex; top: auto; position: static; padding: 12px var(--gutter) 20px; box-shadow: var(--sh-soft); }
  .nav a { height: 48px; padding: 0 12px; }
  .header-actions .btn { width: 100%; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head p { color: var(--slate); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
  padding: clamp(48px, 6vw, 88px) 0 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-copy { max-width: 720px; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 32px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: 14px; color: var(--slate); margin: 16px 0 0; max-width: 58ch; display: flex; align-items: flex-start; gap: 8px; }
.hero-note svg { margin-top: 3px; }
.hero-note svg { color: var(--teal); flex: none; }

.hero-shot {
  margin-top: clamp(40px, 5vw, 64px);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  border: 1px solid var(--line); border-bottom: 0;
  box-shadow: var(--sh-strong);
  overflow: hidden; background: var(--bg);
}
.hero-shot-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; background: var(--soft); border-bottom: 1px solid var(--line);
}
.hero-shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.hero-shot-bar span { margin-left: 12px; font-size: 12px; color: var(--slate); }
.hero-shot img { width: 100%; }

/* ---------- Cintillo de valor ---------- */
.strip { border-bottom: 1px solid var(--line); background: var(--bg); }
.strip ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.strip li {
  padding: 28px 24px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.strip li:last-child { border-right: 0; }
.strip b { font-size: 15px; color: var(--navy); font-weight: 600; }
.strip span { font-size: 14px; }
@media (max-width: 860px) {
  .strip ul { grid-template-columns: repeat(2, 1fr); }
  .strip li:nth-child(2n) { border-right: 0; }
  .strip li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .strip ul { grid-template-columns: 1fr; }
  .strip li { border-right: 0; border-bottom: 1px solid var(--line); }
  .strip li:last-child { border-bottom: 0; }
}

/* ---------- Rejilla de tarjetas ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.section-soft .card { background: var(--bg); }
.card:hover { border-color: rgba(13, 141, 156, .45); box-shadow: var(--sh-soft); transform: translateY(-2px); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15px; margin: 0; }

.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: var(--r-md); background: var(--soft); color: var(--teal);
}
.section-soft .card-icon { background: var(--cream); }

/* ---------- Roles ---------- */
.role { border-radius: var(--r-lg); padding: 28px; background: var(--bg); border: 1px solid var(--line); }
.role .card-icon { background: var(--soft); }
.role h3 { margin-bottom: 6px; }
.role .role-tag { font-size: 13px; font-weight: 600; color: var(--teal-ink); display: block; margin-bottom: 10px; }
.role p { font-size: 15px; margin: 0; }

/* ---------- Bloque en dos columnas ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: 0; }
.checklist .tick {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; margin-top: 2px;
  border-radius: 50%; background: var(--green); color: var(--navy);
}
.checklist b { display: block; color: var(--navy); font-size: 15px; font-weight: 600; }
.checklist span { font-size: 15px; }

/* ---------- Pasos ---------- */
.steps { counter-reset: step; display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 15px; margin: 0; }

/* ---------- Precios ---------- */
.pricing {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg);
  padding: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 56px); align-items: center;
  box-shadow: var(--sh-soft);
}
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }
.pricing h2 { font-size: clamp(24px, 3vw, 32px); }
.pricing-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Preguntas ---------- */
.faq { max-width: 880px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--bg); margin-bottom: 12px;
  transition: border-color .18s ease;
}
.faq details[open] { border-color: rgba(13, 141, 156, .45); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; min-height: var(--tap);
  font-size: 16px; font-weight: 600; color: var(--navy);
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--soft); border-radius: var(--r-md); }
.faq summary .chev { flex: none; color: var(--teal); transition: transform .18s ease; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .answer { padding: 0 20px 20px; }
.faq .answer p { font-size: 15px; margin: 0; }

/* ---------- Cierre + formulario ---------- */
.closing {
  position: relative; overflow: hidden;
  background: var(--navy); color: rgba(250, 255, 233, .82);
}
.closing .wrap { position: relative; z-index: 1; }
.closing .split { align-items: start; }
.closing-copy h2 { color: var(--cream); }
.closing-copy .eyebrow { color: var(--green); }
.closing-copy .eyebrow::before { background: var(--green); }
.closing-copy p { color: rgba(250, 255, 233, .82); }
.closing-copy .checklist li { border-bottom-color: rgba(250, 255, 233, .16); }
.closing-copy .checklist b { color: var(--cream); }
.closing-copy .checklist li > span:not(.tick) { color: rgba(250, 255, 233, .82); }

/* Formulario */
.form-card {
  background: var(--bg); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--sh-medium);
}
.form-card { color: var(--slate); }
.form-card h3 { margin-bottom: 4px; font-size: 21px; color: var(--navy); }
.form-card .form-intro { font-size: 14px; margin-bottom: 24px; color: var(--slate); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 8px;
}
.field label .opt { font-weight: 500; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 15px; color: var(--navy);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-md);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23587180' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 42px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(26, 61, 73, .3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13, 141, 156, .18);
}
.field ::placeholder { color: #8fa3ad; }

.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field-error {
  display: none; align-items: center; gap: 6px;
  margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--red);
}
.field.has-error .field-error { display: flex; }
.field-error svg { flex: none; }

.form-card .btn { width: 100%; margin-top: 8px; }
.form-card .form-legal { font-size: 12.5px; margin: 16px 0 0; color: var(--slate); }

.form-ok {
  display: none; gap: 12px; align-items: flex-start;
  padding: 16px; border-radius: var(--r-md);
  background: var(--soft); border: 1px solid rgba(13, 141, 156, .35);
  margin-bottom: 20px;
}
.form-ok.is-on { display: flex; }
.form-ok .k { flex: none; color: var(--teal-ink); margin-top: 2px; }
.form-ok b { display: block; color: var(--navy); font-size: 15px; }
.form-ok span { font-size: 14px; color: var(--slate); }

/* ---------- Pie ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.footer-top img { height: 36px; width: auto; margin-bottom: 16px; }
.footer-top p { font-size: 14px; max-width: 34ch; }
.footer-top h3 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; }
.footer-top li { margin-bottom: 0; }
.footer-top li a {
  display: inline-flex; align-items: center; min-height: var(--tap);
  font-size: 14px; color: var(--slate); text-decoration: none;
}
@media (max-width: 940px) { .footer-top li a { min-height: 44px; } }
.footer-top li a:hover { color: var(--teal-ink); text-decoration: underline; }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.footer-bottom .seal { display: flex; align-items: center; gap: 10px; }
.footer-bottom .seal img { height: 28px; width: auto; }

/* ============================================================
   Página de precios (precios.html)
   Todo va prefijado con .pr- para no chocar con el resto del sitio.
   ============================================================ */

/* ---------- Portada de la página ---------- */
.pr-head { background: linear-gradient(180deg, var(--cream) 0%, #fff 100%); padding: clamp(40px, 5vw, 64px) 0 0; }
.pr-head .lead { margin-bottom: 0; }
.pr-head-inner { max-width: 720px; }

/* Pastilla de encabezado: prueba gratis en precios, precio del módulo en las
   páginas de módulo. Una sola clase para las dos. */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg); color: var(--navy);
  border: 1.5px solid var(--teal); border-radius: 999px;
  padding: 8px 18px 8px 14px; font-size: 14px; font-weight: 600;
  margin: 0 0 20px;
}
.pill svg { color: var(--teal); flex: none; }

/* ---------- Tarjetas de plan ---------- */
.pr-plans {
  display: grid; gap: 20px; align-items: stretch;
  grid-template-columns: repeat(4, 1fr);
  padding-top: clamp(40px, 5vw, 56px);
}
@media (max-width: 1080px) { .pr-plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .pr-plans { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; } }

.pr-plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 20px 22px;
}
.pr-plan--featured { border-color: var(--teal); border-width: 1.5px; box-shadow: var(--sh-medium); }

.pr-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--teal-ink); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}

.pr-plan h3 { font-size: 19px; margin-bottom: 4px; }
.pr-plan-tag { font-size: 13.5px; font-weight: 500; color: var(--slate); margin: 0 0 20px; }

/* 57px = alto real del precio con la unidad en dos líneas ("USD + IVA / mes").
   Fijarlo hace que las cuatro tarjetas arranquen la lista a la misma altura,
   incluida la de "Precio a la medida", que no lleva unidad. */
.pr-price { display: flex; align-items: baseline; gap: 7px; margin: 0 0 4px; min-height: 57px; }
.pr-price--quote { align-items: center; }
.pr-price-amount {
  font-size: 41px; font-weight: 700; line-height: 1; letter-spacing: -.03em;
  color: var(--navy); font-variant-numeric: tabular-nums;
}
.pr-price-quote {
  /* 20/1.25 x 2 líneas = 50px, el mismo alto que el bloque de precio,
     para que las cuatro tarjetas alineen la nota y la lista. */
  font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; color: var(--navy);
}
.pr-price-unit { font-size: 12.5px; font-weight: 500; line-height: 1.35; color: var(--slate); }
.pr-price-note { font-size: 12.5px; color: var(--slate); margin: 0 0 20px; min-height: 19px; }

.pr-feats { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.pr-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.pr-feats svg { flex: none; margin-top: 3px; color: var(--teal); }
.pr-feats b { color: var(--navy); font-weight: 600; }
.pr-feats .pr-muted { color: var(--slate); }

.pr-plan-cta { margin-top: auto; }
.pr-plan-cta .btn { width: 100%; }
.pr-fine {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; font-weight: 500; color: var(--slate); margin: 10px 0 0;
}
.pr-fine svg { flex: none; color: var(--teal); }

/* ---------- Banda de usuarios sin costo ---------- */
.pr-band {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--navy); color: var(--cream);
  border-radius: var(--r-lg); padding: 20px 24px; margin-top: 20px;
}
.pr-band-icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: rgba(218, 235, 170, .16); color: var(--green);
}
.pr-band-text { flex: 1 1 320px; min-width: 0; }
.pr-band-text b { display: block; color: var(--cream); font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.pr-band-text span { font-size: 13.5px; color: #BCD3D6; }
.pr-band-text .pr-band-note {
  display: block; font-size: 12.5px; line-height: 1.45; color: #A7C1C6;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(188, 211, 214, .22);
  max-width: 56ch;
}
.pr-band-pill {
  flex: none; background: var(--green); color: var(--navy);
  font-size: 13px; font-weight: 700; padding: 7px 16px; border-radius: 999px; white-space: nowrap;
}

/* ---------- Módulos adicionales (filas, no tarjetas) ---------- */
.pr-addons { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .pr-addons { grid-template-columns: 1fr; } }
.pr-addon {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg); border-left: 3px solid var(--teal);
  border-radius: var(--r-md); padding: 18px 20px;
}
.section-soft .pr-addon { background: var(--bg); }
.pr-addon--soft { border-left-color: var(--line); }
.pr-addon-body { flex: 1 1 auto; min-width: 0; }
.pr-addon-body b { display: block; color: var(--navy); font-size: 15.5px; font-weight: 600; margin-bottom: 3px; }
.pr-addon-body span { font-size: 13.5px; }
.pr-addon-price {
  flex: none; text-align: right; white-space: nowrap;
  font-size: 17px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums;
}
.pr-addon-price small { display: block; font-size: 12px; font-weight: 500; color: var(--slate); }
.pr-addon-price .pr-q { font-size: 13.5px; font-weight: 600; color: var(--slate); }

/* ---------- Tabla comparativa ---------- */
.pr-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); }
.pr-table { border-collapse: collapse; width: 100%; min-width: 900px; }
.pr-table th, .pr-table td { padding: 13px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
.pr-table thead th {
  background: var(--soft); color: var(--navy);
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.pr-table thead th:not(:first-child), .pr-table tbody td { text-align: center; width: 15%; }
.pr-table tbody th { font-weight: 500; color: var(--slate); }
.pr-table tbody tr:last-child th, .pr-table tbody tr:last-child td { border-bottom: 0; }
.pr-table .pr-grp th {
  background: var(--cream); color: var(--navy);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.pr-yes { color: var(--teal-ink); font-weight: 500; }
.pr-no  { color: var(--slate); }
.pr-chip {
  display: inline-block; background: var(--sun-bg); color: var(--sun-text);
  font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.pr-chip--soft { background: var(--soft); color: var(--slate); border: 1px solid var(--line); }

.pr-foot { font-size: 13px; color: var(--slate); margin: 28px 0 0; max-width: 62ch; }

@media (prefers-reduced-motion: reduce) { .pr-plan, .btn { transition: none; } }


/* ============================================================
   Tarjetas que llevan a otra página y páginas de módulo
   ============================================================ */

/* La tarjeta entera es clicable: el enlace del título se estira sobre ella.
   Así el destino sigue siendo un enlace real para el teclado y el lector de
   pantalla, y el clic funciona en cualquier punto de la tarjeta. */
.card-link { position: relative; }
.card-link h3 { margin-bottom: 8px; }
.card-link h3 a { color: var(--navy); text-decoration: none; }
.card-link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.card-link:hover h3 a { color: var(--teal-ink); }
.card-link h3 a:focus-visible::after { outline: 2px solid var(--teal); outline-offset: 3px; }

/* Señal de que se puede entrar: sin esto la tarjeta no se ve clicable. */
.card-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto; padding-top: 16px;
  font-size: 13.5px; font-weight: 600; color: var(--teal-ink);
}
.card-more svg { transition: transform .15s ease; }
.card-link:hover .card-more svg { transform: translateX(3px); }

/* ---------- Encabezado de página de módulo ---------- */
.mod-head { background: linear-gradient(180deg, var(--cream) 0%, #fff 100%); padding: clamp(28px, 4vw, 44px) 0 clamp(48px, 6vw, 72px); }
.mod-head-inner { max-width: 720px; }
.mod-head .lead { margin-bottom: 28px; }

.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--slate); margin: 0 0 20px; }
.crumbs a { color: var(--teal-ink); text-decoration: none; border-radius: var(--r-sm); }
.crumbs a:hover { text-decoration: underline; }
.crumbs svg { color: #9DB0B8; flex: none; }
.crumbs span[aria-current] { color: var(--navy); font-weight: 600; }

/* Nota al pie de una lista: lo que cuesta aparte, dicho sin esconderlo. */
.aside-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--sun-bg); color: var(--sun-text);
  border-radius: var(--r-md); padding: 14px 16px; margin: 24px 0 0;
  font-size: 13.5px;
}
.aside-note svg { flex: none; margin-top: 2px; }
.aside-note b { font-weight: 600; }

/* Captura dentro de una página de módulo: como la de la portada, pero cerrada
   por los cuatro lados porque aquí no sangra contra la sección siguiente. */
.mod-shot {
  margin: clamp(32px, 4vw, 48px) 0 0;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-medium); overflow: hidden; background: var(--bg);
}
.mod-shot img { width: 100%; display: block; }
.mod-shot figcaption {
  padding: 12px 16px; border-top: 1px solid var(--line);
  background: var(--soft); color: var(--slate); font-size: 13px; max-width: 62ch;
}

/* Aclaración de impuestos bajo un bloque de precios fuera de la página de precios. */
.nota-precio { font-size: 13px; color: var(--slate); margin: 20px 0 0; }

/* Enlace dentro del nombre de un módulo adicional en la página de precios. */
.pr-addon-body b a { color: var(--navy); text-decoration: none; border-bottom: 1.5px solid var(--teal); }
.pr-addon-body b a:hover { color: var(--teal-ink); }

/* ============================================================
   Directorio médico (directorio-medico.html)
   ============================================================ */

/* hidden manda sobre cualquier display de estas reglas */
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Portada + búsqueda ---------- */
.dm-head {
  background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
  padding: clamp(40px, 5vw, 72px) 0 32px;
}
.dm-head h1 { max-width: 16ch; }
.dm-head .lead { margin-bottom: 20px; }

.dm-demo-note {
  display: flex; align-items: flex-start; gap: 10px;
  max-width: 64ch; margin: 0 0 24px;
  background: var(--sun-bg); color: var(--sun-text);
  border-radius: var(--r-md); padding: 12px 16px; font-size: 13.5px; line-height: 1.5;
}
.dm-demo-note svg { flex: none; margin-top: 1px; }

.dm-search { max-width: 720px; margin: 0; }
.dm-search-label {
  display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 8px;
}
.dm-search-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 0 12px 0 16px; min-height: 56px; box-shadow: var(--sh-soft);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.dm-search-box:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13, 141, 156, .18); }
.dm-search-ico { flex: none; color: var(--teal); }
.dm-search-box input {
  flex: 1 1 auto; min-width: 0; border: 0; background: transparent;
  font: inherit; font-size: 15px; color: var(--navy); padding: 12px 0;
}
.dm-search-box input::placeholder { color: var(--slate); opacity: 1; }
.dm-search-box input:focus { outline: none; }
.dm-search-box input::-webkit-search-cancel-button { display: none; }

.dm-search-clear {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap); border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--slate); cursor: pointer;
}
.dm-search-clear:hover { background: var(--soft); color: var(--navy); }

.dm-kbd {
  flex: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--slate);
  border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; background: var(--soft);
}
@media (max-width: 560px) { .dm-kbd { display: none; } }

.dm-search-hint { font-size: 13px; color: var(--slate); margin: 8px 0 0; }

/* ---------- Estructura ---------- */
.dm-body { padding: 32px 0 clamp(56px, 7vw, 88px); }
.dm-layout { display: grid; grid-template-columns: 284px minmax(0, 1fr); gap: 32px; align-items: start; }

/* ---------- Panel de filtros ---------- */
.dm-filters {
  position: sticky; top: 96px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; box-shadow: var(--sh-soft);
}
.dm-filters-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dm-filters-head h2 { font-size: 17px; margin: 0; }

.dm-link-btn {
  border: 0; background: transparent; padding: 4px; margin: -4px;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--teal-ink);
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.dm-link-btn:hover { color: var(--navy); }

.dm-field { margin-bottom: 20px; }
.dm-field > label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.dm-opt { font-weight: 500; color: var(--slate); }
.dm-hint { font-size: 12.5px; color: var(--slate); margin: 8px 0 0; line-height: 1.45; }

.dm-select { position: relative; }
.dm-select select {
  width: 100%; min-height: var(--tap); padding: 0 40px 0 12px;
  font: inherit; font-size: 14px; color: var(--navy);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-md);
  appearance: none; cursor: pointer;
}
.dm-select select:hover { border-color: var(--navy); }
.dm-select select:disabled { background: var(--soft); color: var(--slate); cursor: not-allowed; }
.dm-select svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--slate); pointer-events: none; }

.dm-group { border: 0; border-top: 1px solid var(--line); margin: 0 0 20px; padding: 16px 0 0; }
.dm-group--last { margin-bottom: 0; }
.dm-group legend { font-size: 13.5px; font-weight: 600; color: var(--navy); padding: 0; margin-bottom: 8px; }

.dm-radio, .dm-check {
  display: flex; align-items: center; gap: 10px;
  min-height: var(--tap); padding: 0 8px; margin: 0 -8px;
  font-size: 14px; color: var(--navy); border-radius: var(--r-sm); cursor: pointer;
}
.dm-radio:hover, .dm-check:hover { background: var(--soft); }
.dm-radio input, .dm-check input { flex: none; width: 18px; height: 18px; accent-color: var(--teal); cursor: pointer; }
.dm-check span i, .dm-radio span i { display: block; font-style: normal; font-size: 12px; color: var(--slate); }

/* ---------- Barra de resultados ---------- */
.dm-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.dm-count { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--navy); }
.dm-sort { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.dm-sort label { font-size: 13.5px; color: var(--slate); white-space: nowrap; }
.dm-select--sm select { min-height: var(--tap); font-size: 13.5px; padding-right: 36px; }
.dm-filters-toggle { display: none; }

.dm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; }
.dm-chips:empty { margin: 0; }
.dm-chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: var(--tap); padding: 0 12px 0 14px;
  background: var(--soft); border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-size: 13px; font-weight: 500; color: var(--navy); cursor: pointer;
}
.dm-chip:hover { background: var(--bg); border-color: var(--navy); }
.dm-chip svg { color: var(--slate); }
.dm-chip:hover svg { color: var(--navy); }

/* ---------- Tarjetas ---------- */
.dm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 20px; }

.dm-card {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; box-shadow: var(--sh-soft);
  transition: box-shadow .15s ease, border-color .15s ease, transform .12s ease;
}
.dm-card:hover { box-shadow: var(--sh-medium); border-color: rgba(26, 61, 73, .22); transform: translateY(-2px); }

.dm-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }

.dm-avatar {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(180deg, #E9F1F3 0%, var(--soft) 100%);
  border: 1px solid var(--line);
  color: var(--navy); font-size: 20px; font-weight: 700; letter-spacing: .02em;
}

.dm-next {
  display: inline-flex; align-items: flex-start; gap: 6px;
  background: var(--soft); border-radius: var(--r-sm); padding: 6px 10px;
  font-size: 13px; font-weight: 600; color: var(--navy); text-align: right;
}
.dm-next svg { flex: none; color: var(--teal); margin-top: 2px; }
.dm-next i { display: block; font-style: normal; font-size: 12px; font-weight: 500; color: #3F5966; text-transform: uppercase; letter-spacing: .06em; }
.dm-next.is-soon { background: var(--green); }
.dm-next.is-soon svg { color: var(--navy); }
.dm-next.is-soon i { color: #41552a; }

.dm-name { font-size: 17px; margin: 0 0 2px; }
.dm-esp { font-size: 13.5px; font-weight: 600; color: var(--teal-ink); margin: 0 0 12px; }
.dm-esp span { font-weight: 500; color: var(--slate); }

.dm-meta { display: grid; gap: 8px; margin: 0 0 14px; font-size: 13px; line-height: 1.45; }
.dm-meta li { display: flex; align-items: flex-start; gap: 8px; color: var(--slate); }
.dm-meta svg { flex: none; margin-top: 1px; color: var(--teal); }
.dm-meta b { color: var(--navy); }

.dm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.dm-tags li {
  font-size: 12px; font-weight: 600; color: var(--slate);
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
}
.dm-tags .is-ok { background: var(--soft); color: var(--navy); border-color: rgba(26, 61, 73, .2); }

.dm-card-cta { margin-top: auto; }
.dm-card-cta .btn { width: 100%; }

/* ---------- Sin resultados ---------- */
.dm-empty {
  text-align: center; max-width: 460px; margin: 24px auto 0;
  background: var(--bg); border: 1px dashed var(--line); border-radius: var(--r-lg); padding: 40px 24px;
}
.dm-empty-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--soft); color: var(--teal); margin-bottom: 16px;
}
.dm-empty h3 { font-size: 19px; margin: 0 0 8px; }
.dm-empty p { font-size: 14px; margin: 0 auto 24px; max-width: 46ch; }

/* ---------- Cierre para médicos ---------- */
.dm-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.dm-cta > div:first-child { flex: 1 1 460px; }
.dm-cta h2 { margin-bottom: 8px; }
.dm-cta p { margin: 0; }
.dm-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Reserva de demostración ---------- */
.dm-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.dm-modal[hidden] { display: none; }
.dm-modal-backdrop { position: absolute; inset: 0; background: rgba(26, 61, 73, .45); }
.dm-modal-card {
  position: relative; width: 100%; max-width: 440px;
  background: var(--bg); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh-strong);
  max-height: calc(100vh - 48px); overflow: auto;
}
.dm-modal-x {
  position: absolute; top: 14px; right: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap); border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--slate); cursor: pointer;
}
.dm-modal-x:hover { background: var(--soft); color: var(--navy); }
.dm-modal-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); margin: 0 0 6px; }
.dm-modal-card h2 { font-size: 21px; margin: 0 0 4px; }
.dm-modal-sub { font-size: 13.5px; margin: 0 0 20px; }
.dm-modal-lead { font-size: 14px; font-weight: 600; color: var(--navy); margin: 0 0 12px; }

.dm-modal-fine { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 12.5px; color: var(--slate); line-height: 1.45; }
.dm-modal-fine svg { flex: none; margin-top: 2px; }

/* ---------- Adaptaciones ---------- */
@media (max-width: 900px) {
  .dm-layout { grid-template-columns: 1fr; gap: 16px; }
  .dm-filters { position: static; display: none; order: -1; }
  .dm-filters.is-open { display: block; }
  .dm-filters-toggle { display: inline-flex; }
  .dm-sort { margin-left: 0; width: 100%; }
  .dm-sort .dm-select { flex: 1 1 auto; }
}
@media (max-width: 520px) {
  .dm-grid { grid-template-columns: 1fr; }
  .dm-radio, .dm-check { min-height: 44px; }
  .dm-search-box { min-height: 52px; }
}

/* ---------- Especialidad: campo con búsqueda (combobox) ---------- */
.dm-combo { position: relative; }
.dm-combo input {
  width: 100%; min-height: var(--tap); padding: 0 56px 0 36px;
  font: inherit; font-size: 14px; color: var(--navy);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-md);
}
.dm-combo input::placeholder { color: var(--slate); }
.dm-combo input:hover { border-color: var(--navy); }
.dm-combo input:disabled { background: var(--soft); color: var(--slate); cursor: not-allowed; }
.dm-combo input:disabled::placeholder { color: var(--slate); }
.dm-combo:has(input:disabled) .dm-combo-ico,
.dm-combo:has(input:disabled) .dm-combo-chev { color: var(--slate); opacity: .6; }
.dm-combo input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13, 141, 156, .18); }
.dm-combo input:focus-visible { outline: none; }

.dm-combo-ico { position: absolute; left: 11px; top: 11px; color: var(--teal); pointer-events: none; }
.dm-combo-chev { position: absolute; right: 11px; top: 11px; color: var(--slate); pointer-events: none; }
.dm-combo-x {
  position: absolute; right: 30px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--slate); cursor: pointer;
}
.dm-combo-x:hover { background: var(--soft); color: var(--navy); }

.dm-combo-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px);
  max-height: 264px; overflow-y: auto; padding: 6px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-strong);
}
.dm-combo-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: var(--tap); padding: 6px 10px; border-radius: var(--r-sm);
  font-size: 14px; color: var(--navy); cursor: pointer; line-height: 1.35;
}
.dm-combo-list li:hover, .dm-combo-list li.is-active { background: var(--soft); }
.dm-combo-list li[aria-selected="true"] { font-weight: 600; box-shadow: inset 2px 0 0 var(--teal); }
.dm-combo-list li i { font-style: normal; font-size: 12.5px; color: var(--slate); flex: none; }
.dm-combo-vacio {
  display: block; padding: 12px 10px; font-size: 13px; color: var(--slate); cursor: default;
}
.dm-combo-vacio:hover { background: transparent; }


/* ---------- Reserva por pasos ---------- */
.dm-modal-card.is-ancho { max-width: 760px; }

.dm-modal-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.dm-pasos {
  margin: 0 auto 0 0; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal-ink);
}
.dm-modal-top .dm-modal-x { position: static; flex: none; }

.dm-volver {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: var(--tap); padding: 0 14px;
  background: transparent; border: 1.5px solid var(--line); border-radius: 999px;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--navy); cursor: pointer;
}
.dm-volver:hover { background: var(--soft); border-color: var(--navy); }

.dm-modal-card h2 { font-size: 21px; margin: 0 0 4px; outline: none; }
.dm-modal-sub { font-size: 13.5px; margin: 0 0 20px; }
.dm-modal-sub:empty { margin: 0; }
.dm-paso { margin-bottom: 20px; }

/* Paso 1: servicios */
.dm-servicios { display: grid; gap: 10px; }
.dm-servicio {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; text-align: left;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-md);
  font: inherit; color: var(--navy); cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.dm-servicio:hover { border-color: var(--navy); background: var(--soft); box-shadow: var(--sh-soft); }
.dm-servicio-txt b { display: block; font-size: 15px; font-weight: 600; }
.dm-servicio-txt i { display: block; font-style: normal; font-size: 13px; color: var(--slate); margin-top: 2px; }
.dm-servicio-meta { flex: none; font-size: 13.5px; font-weight: 600; color: var(--teal-ink); text-align: right; }

/* Paso 2: calendario */
.dm-cal-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.dm-cal-mes { flex: 1 1 auto; margin: 0; text-align: center; font-size: 15px; font-weight: 700; color: var(--navy); }
.dm-cal-nav, .dm-hoy {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: var(--tap); height: var(--tap); padding: 0 14px;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-md);
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--navy); cursor: pointer;
}
.dm-cal-nav { padding: 0; }
.dm-cal-nav:hover, .dm-hoy:hover { background: var(--soft); border-color: var(--navy); }
.dm-cal-nav:disabled { opacity: .4; cursor: not-allowed; background: var(--soft); }

.dm-cal-cols { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; align-items: start; }

.dm-cal-encabezado, .dm-cal-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dm-cal-encabezado span { text-align: center; font-size: 12px; font-weight: 600; color: var(--slate); padding-bottom: 6px; }

.dm-dia {
  position: relative; aspect-ratio: 1; min-height: var(--tap);
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid transparent; border-radius: 50%;
  font: inherit; font-size: 14px; color: var(--slate); cursor: default;
}
.dm-dia[aria-disabled="true"] { color: #8C9FA8; }
.dm-dia.is-libre { color: var(--navy); font-weight: 600; border-color: var(--teal); cursor: pointer; }
.dm-dia.is-libre:hover { background: var(--soft); }
.dm-dia.is-sel { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.dm-punto { position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--teal); }
.dm-dia.is-sel .dm-punto { background: var(--green); }
.dm-dia-hueco { aspect-ratio: 1; }

.dm-cal-leyenda { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 12.5px; color: var(--slate); }
.dm-cal-leyenda .dm-punto { position: static; flex: none; }

.dm-horas { border-left: 1px solid var(--line); padding-left: 24px; min-height: 180px; }
.dm-horas-vacio { font-size: 13.5px; color: var(--slate); margin: 0; }
.dm-horas-titulo { font-size: 15px; font-weight: 700; color: var(--navy); margin: 0 0 2px; }
.dm-horas-sub { font-size: 12.5px; color: var(--slate); margin: 0 0 12px; }
.dm-horas-grid { display: grid; gap: 8px; max-height: 260px; overflow-y: auto; }
.dm-hora {
  min-height: 44px; padding: 0 12px;
  background: var(--bg); border: 1.5px solid var(--teal); border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--teal-ink); cursor: pointer;
}
.dm-hora:hover { background: var(--navy); border-color: var(--navy); color: var(--cream); }

/* Pasos 3 y 4: resumen y formulario */
.dm-resumen { background: var(--soft); border-radius: var(--r-md); padding: 16px; margin-bottom: 20px; }
.dm-resumen p { margin: 0; }
.dm-resumen-fecha { font-size: 14px; color: var(--slate); }
.dm-resumen-hora { font-size: 19px; color: var(--navy); margin-top: 2px !important; }
.dm-resumen-hora b { font-weight: 700; }
.dm-resumen-sv { font-size: 14px; font-weight: 600; color: var(--navy); margin-top: 6px !important; }
.dm-resumen-med { font-size: 13px; color: var(--slate); margin-top: 2px !important; }

#dm-form .field:last-of-type { margin-bottom: 20px; }
.dm-confirmar { width: 100%; }
.dm-legal { font-size: 12.5px; color: var(--slate); margin: 12px 0 0; text-align: center; }

.dm-listo { text-align: center; }
.dm-listo-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green); color: var(--navy); margin-bottom: 16px;
}
.dm-listo .dm-resumen { text-align: left; }
.dm-listo-texto { font-size: 13.5px; margin: 0 auto 20px; max-width: 46ch; }

@media (max-width: 720px) {
  .dm-cal-cols { grid-template-columns: 1fr; gap: 20px; }
  .dm-horas { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; min-height: 0; }
  .dm-horas-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .dm-servicio { flex-direction: column; align-items: flex-start; gap: 6px; }
  .dm-servicio-meta { text-align: left; }
  .dm-modal { padding: 12px; }
  .dm-modal-card { padding: 20px; max-height: calc(100vh - 24px); }
}

/* ---------- Página que no existe (404) ---------- */
.e404 { padding: clamp(56px, 8vw, 112px) 0 clamp(64px, 9vw, 120px); }
.e404 .wrap { max-width: 720px; }
.e404-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.e404-links a { display: inline-flex; align-items: center; min-height: var(--tap); font-size: 14.5px; font-weight: 500; }

/* Objetivos de 44 px en móvil y botones que pueden partir en dos líneas.
   Va al final: estas reglas tienen que ganarle por orden a las de arriba. */
@media (max-width: 520px) {
  /* un botón con texto largo y white-space:nowrap empujaba la página 3 px
     hacia los lados en el inicio; en pantalla angosta se deja partir */
  .btn { white-space: normal; text-align: center; padding: 10px 20px; line-height: 1.35; }
  .btn-sm { min-height: 44px; }
  /* la ventana de reserva: cada control llega a 44 px en pantalla de teléfono */
  .dm-modal-card { padding: 16px; }
  .dm-volver, .dm-modal-x, .dm-cal-nav, .dm-hoy { min-height: 44px; min-width: 44px; }
  .dm-cal-dias, .dm-cal-encabezado { gap: 2px; }
  .dm-dia { min-height: 44px; }
  .dm-select select, .dm-combo input, .dm-combo-list li { min-height: 44px; }
  .dm-combo-ico, .dm-combo-chev { top: 13px; }
}
