/* Conecta Legal ? site10 � precios por especialidad + nuevo hero */
:root {
  --ink: #1c2433;
  --muted: #5a6578;
  --line: #d8dee8;
  --surface: #ffffff;
  --bg: #f3f5f8;
  --bg-deep: #0b1f3a;
  --navy: #0b1f3a;
  --navy-mid: #16345a;
  --navy-deep: #081528;
  --navy-soft: #e8eef6;
  --ember: #e86a17;
  --ember-deep: #c4550f;
  --ember-soft: #fff1e6;
  --sand: #f7f8fb;
  --focus: rgba(14, 52, 96, 0.18);
  --shadow: 0 12px 32px rgba(11, 31, 58, 0.1);
  --shadow-sm: 0 4px 14px rgba(11, 31, 58, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1140px;
  --header-h: 64px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

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

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* ?? App header ?? */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  white-space: nowrap;
}

.brand span {
  font-style: normal;
  font-weight: 500;
  color: var(--ember);
}

.header-tag {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.7rem 0.28rem 0.55rem;
  border-radius: 8px;
  background: var(--navy-soft);
  color: var(--navy-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.header-tag .live-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
}

@media (min-width: 860px) {
  .header-tag { display: inline-flex; }
}

.nav-desktop {
  display: none;
  gap: 1.35rem;
  align-items: center;
}

.nav-desktop a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  width: 16px;
  height: 2px;
  background: var(--ink);
  display: block;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.nav-mobile {
  display: none;
  position: absolute;
  inset: var(--header-h) 0 auto;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 1.25rem 1.15rem;
  flex-direction: column;
}

.nav-mobile.is-open { display: flex; }

.nav-mobile a {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .nav-toggle,
  .nav-mobile { display: none !important; }
}

/* M�vil: hamburguesa + barra app; ocultar CTA naranja del header */
@media (max-width: 959px) {
  .header-actions .btn-primary {
    display: none;
  }

  body {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }

  .site-footer {
    padding-bottom: 1.25rem;
  }
}

/* Buttons ? sharper, app-like */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.9rem;
  transition: 0.2s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn__icon {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  background: var(--ember);
  color: #fff;
}

.btn-primary:hover { background: var(--ember-deep); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy-deep);
}

.btn-soft {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-soft:hover { background: rgba(255, 255, 255, 0.2); }

.btn-outline {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn-outline:hover { border-color: var(--navy); }

.btn-block { width: 100%; }

/* ?? Hero app stage ?? */
.hero {
  background: var(--bg-deep);
  color: #fff;
  overflow: hidden;
}

.hero-stage {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
  padding: 1.75rem 0 2rem;
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 960px) {
  .hero-stage {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 1.75rem;
    padding: 2rem 0 2.25rem;
    min-height: 520px;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: rise 0.7s var(--ease) both;
}

.hero-mobile-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  padding: 0.3rem 0.7rem 0.3rem 0.55rem;
  border-radius: 8px;
  background: rgba(228, 243, 238, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #d7e4f5;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-mobile-tag .live-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
}

@media (min-width: 860px) {
  .hero-mobile-tag { display: none; }
}

.hero-brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.hero-brand span {
  font-style: normal;
  color: #ffb089;
  font-weight: 500;
}

.hero-lead {
  margin: 0 0 1.35rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 28rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.signal {
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.74rem;
  font-weight: 650;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

/* Image panel with app chrome */
.hero-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f1a2e;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  animation: rise 0.85s var(--ease) 0.08s both;
  min-height: 280px;
}

@media (min-width: 960px) {
  .hero-visual { min-height: 100%; }
}

.hero-visual .chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  background: linear-gradient(to bottom, rgba(11, 31, 58, 0.78), transparent);
}

.hero-visual .dots {
  display: flex;
  gap: 0.3rem;
}

.hero-visual .dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  display: block;
}

.hero-visual .dots i:nth-child(1) { background: #ff5f57; }
.hero-visual .dots i:nth-child(2) { background: #febc2e; }
.hero-visual .dots i:nth-child(3) { background: #28c840; }

.hero-visual .chrome span {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
  transform: scale(1.02);
  transition: transform 8s var(--ease);
}

.hero-visual:hover img {
  transform: scale(1.06);
}

@media (min-width: 960px) {
  .hero-visual img { min-height: 480px; }
}

.hero-visual .caption {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(11, 31, 58, 0.86);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-visual .caption strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-visual .caption small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  color: #86efac;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Sections */
.section { padding: 3.5rem 0; }

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember);
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* =========================================================
   HOME PROCESS - cards + círculos (guía: 02.conectalegal-MEJORA)
   Línea SOLO entre cards (nunca atraviesa números)
   ========================================================= */
.home-process {
  --home-process-line: #d5dbe6;
  --home-process-gap: 1.15rem;
}

.home-process__head {
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 1.75rem;
  text-align: center;
}

.home-process__steps {
  position: relative;
  display: grid;
  gap: var(--home-process-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 860px) {
  .home-process__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

.home-process__step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.35rem;
  margin: 0;
  padding: 1.2rem 1.2rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.home-process__step:hover {
  border-color: rgba(11, 31, 58, 0.2);
  box-shadow: var(--shadow);
}

.home-process__step:focus-visible {
  box-shadow: 0 0 0 3px var(--focus);
}

.home-process__step.is-active {
  border-color: rgba(232, 106, 23, 0.35);
}

/* Conector ENTRE cards */
.home-process__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.85rem;
  top: 100%;
  width: 2px;
  height: var(--home-process-gap);
  background: var(--home-process-line);
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 860px) {
  .home-process__step:not(:last-child)::after {
    left: 100%;
    top: 2.55rem;
    width: var(--home-process-gap);
    height: 2px;
  }
}

/* Círculos — sans-serif */
.home-process__num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  margin: 0 0 0.55rem;
  border-radius: 50%;
  background: var(--navy);
  border: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1;
  color: #fff;
  font-weight: 700;
  font-style: normal;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.home-process__step.is-active .home-process__num {
  background: var(--ember);
  transform: scale(1.04);
}

.home-process__step-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--navy);
  font-weight: 700;
}

.home-process__step-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .home-process__num {
    transition: none;
    transform: none;
  }

  .home-process__step.is-active .home-process__num {
    transform: none;
  }
}

/* Trust bar (iconos actuales) */
#como-funciona .process-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

#como-funciona .process-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

#como-funciona .process-trust__item svg {
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  flex: 0 0 20px;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

/* Steps legacy (otras páginas) */
.steps {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }
}

.step {
  padding: 1.15rem 1.15rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.section-alt .step {
  background: var(--bg);
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--navy);
  margin-bottom: 0.65rem;
  font-weight: 600;
  font-style: normal;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Specialties ? minimal rows/tiles */
.spec-grid {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 720px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .spec-grid { grid-template-columns: repeat(3, 1fr); }
}

.spec {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: 0.2s var(--ease);
}

.section-alt .spec {
  background: var(--surface);
}

.spec:hover,
.spec:focus-visible {
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  outline: none;
}

.spec h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.spec p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

.spec span {
  margin-top: 0.45rem;
  font-weight: 700;
  color: var(--ember);
  font-size: 0.86rem;
}

.spec__cta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.spec-price {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--ember-soft, rgba(180, 83, 9, 0.12));
  color: var(--ember-deep, var(--ember));
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* Trust */
.trust {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 900px) {
  .trust {
    grid-template-columns: 1fr 1.05fr;
    align-items: stretch;
  }
}

.trust-panel {
  padding: 1.6rem;
  border-radius: var(--radius);
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(228, 87, 46, 0.25), transparent 55%),
    linear-gradient(155deg, #0b1f3a, #16345a 70%, #1a2438);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.trust-panel h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.trust-panel p {
  margin: 0 0 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 0;
}

.trust-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.trust-list li:first-child { border-top: 0; }

.trust-list strong {
  display: block;
  margin-bottom: 0.1rem;
  font-size: 0.95rem;
}

.trust-list span {
  color: var(--muted);
  font-size: 0.88rem;
}

.quotes {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.35rem;
}

@media (min-width: 800px) {
  .quotes {
    grid-template-columns: 1fr 1fr;
  }
}

.quote {
  margin: 0;
  padding: 1.15rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 3px solid var(--ember);
}

.quote p {
  margin: 0 0 0.85rem;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.55;
}

.quote footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
}

.quote footer strong {
  color: var(--navy);
  font-size: 0.88rem;
}

.quote footer span {
  color: var(--muted);
  font-size: 0.82rem;
}

.quotes-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.4;
}

.mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--navy-soft);
  color: var(--navy-deep);
  font-weight: 800;
  font-size: 0.75rem;
}

/* CTA */
.cta {
  padding: 2.5rem 0;
  background: var(--navy);
  color: #fff;
}

.cta-inner {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .cta-inner {
    grid-template-columns: 1.4fr auto;
    align-items: center;
  }
}

.cta h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-weight: 600;
}

.cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  max-width: 34rem;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  padding: 2rem 0 1.6rem;
  background: #081528;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 1.35rem;
}

@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.site-footer .brand { color: #fff; margin-bottom: 0.35rem; }
.site-footer .brand span { color: var(--ember); }

.site-footer h3 {
  margin: 0 0 0.55rem;
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.site-footer a:hover { color: #ffb089; }

.footer-bottom {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: space-between;
  font-size: 0.8rem;
}

/* Booking */
.page-hero {
  padding: 1.75rem 0 1.35rem;
  background: var(--bg-deep);
  color: #fff;
}

.page-hero h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  max-width: 36rem;
  font-size: 0.98rem;
}

.booking {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 920px) {
  .booking {
    grid-template-columns: 1.35fr 0.85fr;
    align-items: start;
  }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.progress {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}

.progress span {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: var(--line);
}

.progress span.is-on,
.progress span.is-done {
  background: var(--ember);
}

.step-panel[hidden] { display: none; }

.panel h2 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.hint {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.chip {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font-weight: 700;
  font-size: 0.86rem;
}

.chip.is-selected,
.chip:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.field {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
}

.field label {
  font-size: 0.84rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--focus);
  background: #fff;
}

/* Abrir calendario al tocar todo el campo (Chrome/Edge/Safari modernos) */
input[type="date"] {
  cursor: pointer;
  color-scheme: light;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  opacity: 0;
  cursor: pointer;
}

/* Oculta el "dd/mm/aaaa" nativo (Chrome/Edge/Safari) mientras no haya valor,
   para que no se sobreponga con nuestro placeholder personalizado. */
input[type="date"]:not(.has-value)::-webkit-datetime-edit-fields-wrapper {
  opacity: 0;
}

.field:has(input[type="date"]) {
  position: relative;
}

.date-placeholder {
  position: absolute;
  left: 0.85rem;
  bottom: 0;
  height: 46px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
  pointer-events: none;
}

/* El atributo `hidden` no alcanza a pisar el `display: flex` de arriba
   (misma especificidad, el estilo de autor gana siempre a la hoja del user
   agent). Lo forzamos explícitamente aquí para que sí se oculte. */
.date-placeholder[hidden] {
  display: none;
}

@media (max-width: 720px) {
  .step-panel[data-step="1"] {
    font-size: 0.92rem;
  }

  .step-panel[data-step="1"] h2 {
    font-size: 1.12rem;
  }

  .step-panel[data-step="1"] .hint {
    font-size: 0.84rem;
  }

  .step-panel[data-step="1"] .field input,
  .step-panel[data-step="1"] .field select,
  .step-panel[data-step="1"] .field textarea {
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
  }

  .step-panel[data-step="1"] .field textarea {
    min-height: 92px;
  }

  .step-panel[data-step="1"] .btn {
    font-size: 0.84rem;
    min-height: 42px;
  }
}

.field-row {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.field-row .field {
  margin-bottom: 0;
}

.field-row--doc {
  grid-template-columns: 7.2rem 1fr;
}

.field-row--phone {
  grid-template-columns: 5.2rem 1fr;
}

.field--code input {
  text-align: center;
  font-weight: 700;
  padding-inline: 0.4rem;
}

.slots-block {
  margin: 0.25rem 0 0.5rem;
}

.slots-label {
  margin: 0 0 0.55rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
}

.slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

@media (min-width: 520px) {
  .slots {
    grid-template-columns: repeat(4, 1fr);
  }
}

.slot-btn {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: 0.2s var(--ease);
}

.slot-btn:hover,
.slot-btn:focus-visible {
  border-color: var(--navy);
  background: var(--navy-soft);
  outline: none;
}

.slot-btn.is-selected {
  border-color: var(--ember);
  background: var(--ember-soft);
  color: var(--ember-deep);
}

.slots-empty {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.slots-loading {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.slots-block[hidden],
.slots-empty[hidden] {
  display: none !important;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.summary dt {
  margin-top: 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.summary dd {
  margin: 0.15rem 0 0;
  font-weight: 700;
}

.note {
  margin: 0.9rem 0 0;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--ember-soft);
  color: var(--ember-deep);
  font-size: 0.86rem;
}

.success {
  text-align: center;
  padding: 1.2rem 0.3rem;
}

.success .ok {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.85rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  width: 100%;
  margin-top: 0.9rem;
}

.btn-whatsapp:hover { background: #1ebe57; }

.hint--sm {
  font-size: 0.78rem;
  margin-top: 0.35rem;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ?? Buscador + p�ginas SEO de especialidad ?? */
.search-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.35rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.search-panel h1 {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.65rem);
  font-weight: 600;
  color: var(--navy);
}

.search-bar {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 720px) {
  .search-bar {
    grid-template-columns: 1fr auto;
    align-items: stretch;
  }
}

.search-field {
  position: relative;
}

.search-field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.95rem;
}

.search-field input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--focus);
}

.search-field::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 50%;
  width: 0.72rem;
  height: 0.72rem;
  border: 2px solid var(--muted);
  border-radius: 50%;
  transform: translateY(-55%);
  pointer-events: none;
}

.search-field::after {
  content: "";
  position: absolute;
  left: 1.7rem;
  top: 58%;
  width: 0.45rem;
  height: 2px;
  background: var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}

.spec-card[hidden] { display: none !important; }

.spec-empty {
  display: none;
  margin: 1rem 0 0;
  padding: 1.25rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-align: center;
}

.spec-empty.is-visible { display: block; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.breadcrumb a:hover { color: var(--navy); }
.breadcrumb [aria-current="page"] {
  color: var(--navy);
  font-weight: 700;
}

.specialty-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .specialty-layout {
    grid-template-columns: 1.4fr 0.85fr;
    align-items: start;
  }
}

.specialty-content h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.specialty-content .lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40rem;
}

.topic-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  margin-bottom: 1.15rem;
}

.topic-box h2 {
  margin: 0 0 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.topic-list li {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.65rem;
  align-items: start;
}

.topic-list .check {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 6px;
  background: var(--navy-soft);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  margin-top: 0.1rem;
}

.topic-list strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}

.topic-list span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.seo-text {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.seo-text p { margin: 0 0 0.85rem; }
.seo-text p:last-child { margin-bottom: 0; }

.book-card {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.book-card__head {
  padding: 1.1rem 1.2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.book-card__title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.book-card__title-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  fill: none;
  stroke: var(--navy);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.book-card__head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.book-card__head h2.book-card__title {
  margin: 0 0 0.25rem;
}

.book-card__head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.book-card__body {
  padding: 1.15rem 1.2rem 1.25rem;
}

.book-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding: 0.85rem 0.95rem;
  background: var(--ember-soft);
  border-radius: 10px;
}

.book-price span {
  color: var(--muted);
  font-size: 0.86rem;
}

.book-price strong {
  color: var(--navy);
  font-size: 1.35rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.book-includes {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.book-includes li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.book-includes li::before {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.12rem;
  flex-shrink: 0;
  background: var(--navy);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.book-card .btn {
  width: 100%;
}

.book-card__note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.4;
}

.price-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--ember-soft);
  color: var(--ember-deep);
  font-size: 0.72rem;
  font-weight: 800;
}

.booking-specialty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: var(--navy-soft);
  border-radius: 10px;
}

.booking-specialty strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
}

.booking-specialty span {
  color: var(--muted);
  font-size: 0.8rem;
}

.booking-specialty .specialty-pick-btn {
  width: 100%;
  min-height: 42px;
  background: var(--surface);
  border-color: var(--navy);
  color: var(--navy);
}

.booking-specialty .specialty-pick-btn:hover {
  background: var(--navy);
  color: #fff;
}

.booking-specialty [hidden],
.booking-specialty .specialty-pick-btn[hidden],
.booking-specialty .btn[hidden] {
  display: none !important;
}

.booking-specialty.has-specialty .specialty-pick-btn {
  display: none !important;
}

.specialty-change {
  border: 0;
  background: transparent;
  color: var(--ember);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  padding: 0.25rem 0;
  cursor: pointer;
}

.specialty-change:hover {
  text-decoration: underline;
}

/* Modal especialidades (reserva directa) */
.spec-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 21, 40, 0.55);
  backdrop-filter: blur(5px);
}

.spec-modal.is-open {
  display: flex;
}

.spec-modal[hidden] {
  display: none !important;
}

.spec-modal__dialog {
  width: min(100%, 540px);
  max-height: min(86vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(11, 31, 58, 0.28);
  animation: spec-modal-in 0.28s var(--ease);
}

@keyframes spec-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.spec-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  background: var(--sand);
}

.spec-modal__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
}

.spec-modal__close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
}

.spec-modal__close:hover { color: var(--navy); }

.spec-modal__body {
  padding: 1rem 1.15rem 1.2rem;
  overflow-y: auto;
}

.spec-modal__intro {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.spec-modal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.spec-modal .spec-row {
  width: 100%;
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.65rem;
  align-items: start;
  text-align: left;
  border: 0;
  border-left: 3px solid transparent;
  background: var(--bg);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  transition: 0.2s var(--ease);
}

.spec-modal .spec-row:hover,
.spec-modal .spec-row:focus-visible {
  border-left-color: var(--ember);
  background: var(--ember-soft);
  outline: none;
}

.spec-row__name {
  font-weight: 800;
  font-size: 0.84rem;
  color: var(--navy);
}

.spec-row__desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.spec-modal__note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

body.modal-open {
  overflow: hidden;
}


/* ?? Navegaci�n flotante m�vil (app bar) ?? */
.app-nav {
  display: none;
}

@media (max-width: 959px) {
  .app-nav {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.15rem;
    padding: 0.45rem 0.35rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(11, 31, 58, 0.14);
  }
}

.app-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 3.15rem;
  padding: 0.35rem 0.2rem;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: 0.2s var(--ease);
  text-align: center;
}

.app-nav__item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-nav__item:hover,
.app-nav__item:focus-visible {
  color: var(--navy);
  background: var(--navy-soft);
  outline: none;
}

.app-nav__item.is-active {
  color: var(--navy);
  background: var(--navy-soft);
}

.app-nav__item--primary {
  color: var(--ember);
}

.app-nav__item--primary.is-active,
.app-nav__item--primary:hover,
.app-nav__item--primary:focus-visible {
  color: #fff;
  background: var(--ember);
}

.app-nav__item--primary.is-active svg,
.app-nav__item--primary:hover svg,
.app-nav__item--primary:focus-visible svg {
  stroke: #fff;
}

@media (min-width: 960px) {
  .app-nav { display: none !important; }
}

/* ?? Sticky CTA m�vil en p�ginas de especialidad ?? */
.spec-sticky-cta {
  display: none;
}

@media (max-width: 959px) {
  .spec-sticky-cta {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(4.55rem + env(safe-area-inset-bottom, 0px));
    z-index: 59;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.7rem 0.6rem 0.95rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(11, 31, 58, 0.14);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }

  .spec-sticky-cta.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.6rem);
  }

  .spec-sticky-cta__price {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
  }

  .spec-sticky-cta__price span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
  }

  .spec-sticky-cta__price strong {
    color: var(--navy);
    font-size: 1.05rem;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
  }

  .spec-sticky-cta .btn {
    flex-shrink: 0;
    min-height: 42px;
    padding: 0.55rem 0.95rem;
    font-size: 0.86rem;
  }

  body.has-spec-sticky {
    padding-bottom: calc(8.75rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 960px) {
  .spec-sticky-cta { display: none !important; }
}

/* ?? Pasarela de pagos ?? */
.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 21, 40, 0.58);
  backdrop-filter: blur(5px);
}

.pay-modal.is-open {
  display: flex;
}

.pay-modal[hidden] {
  display: none !important;
}

.pay-modal__dialog {
  width: min(100%, 440px);
  max-height: min(88vh, 680px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(11, 31, 58, 0.3);
  animation: spec-modal-in 0.28s var(--ease);
}

.pay-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: var(--navy);
  color: #fff;
}

.pay-modal__head h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.pay-modal__head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.86rem;
}

.pay-modal__head strong {
  color: #ffb089;
}

.pay-modal__close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  padding: 0.1rem 0.3rem;
}

.pay-modal__close:hover { opacity: 1; }

.pay-modal__body {
  padding: 1.15rem 1.2rem 1.25rem;
  overflow-y: auto;
}

.pay-modal__intro {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.pay-methods {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pay-method {
  display: block;
  cursor: pointer;
}

.pay-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pay-method__card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  transition: 0.2s var(--ease);
}

.pay-method:hover .pay-method__card,
.pay-method input:focus-visible + .pay-method__card {
  border-color: var(--navy);
}

.pay-method input:checked + .pay-method__card {
  border-color: var(--ember);
  background: var(--ember-soft);
  box-shadow: 0 0 0 1px var(--ember);
}

.pay-method__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--navy-soft);
  color: var(--navy);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.78rem;
}

.pay-method__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pay-method__icon--yape {
  background: #6b21a8;
  color: #fff;
}

.pay-method__icon--plin {
  background: #0369a1;
  color: #fff;
}

.pay-method__icon--mp {
  background: #1d4ed8;
  color: #fff;
  font-size: 0.68rem;
}

.pay-method__text strong {
  display: block;
  color: var(--navy);
  font-size: 0.92rem;
  margin-bottom: 0.1rem;
}

.pay-method__text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.pay-modal__confirm {
  width: 100%;
}

.pay-modal__note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.4;
}

/* Pestañas de pago embebido (sin redirección) */
.pay-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.pay-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s var(--ease);
}

.pay-tab:hover {
  border-color: var(--navy);
}

.pay-tab.is-active {
  border-color: var(--ember);
  background: var(--ember-soft);
  box-shadow: 0 0 0 1px var(--ember);
}

.pay-tab__icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--navy-soft);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.72rem;
  overflow: hidden;
}

.pay-tab__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pay-tab__icon--yape,
.pay-tab__icon--cip {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 3px;
}

.pay-tab__icon--yape img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.pay-tab__icon--cip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pay-panel {
  margin-bottom: 0.75rem;
}

.pay-panel__hint {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.pay-panel__submit {
  width: 100%;
}

.pay-panel__result {
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 0.85rem;
}

.pay-panel__result a {
  color: var(--ember);
  font-weight: 600;
}

.cip-voucher {
  text-align: center;
}

.cip-voucher__label {
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cip-voucher__code {
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy);
}

.cip-voucher__copy {
  border: 1px solid var(--ember);
  background: #fff;
  color: var(--ember);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  margin-bottom: 0.85rem;
}

.cip-voucher__meta {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  text-align: left;
}

.cip-voucher__meta div {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.cip-voucher__meta dt {
  color: var(--muted);
}

.cip-voucher__meta dd {
  margin: 0;
  font-weight: 600;
  color: var(--navy);
}

.cip-voucher__hint {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
  text-align: left;
}

.cip-voucher__link {
  display: inline-block;
  font-size: 0.8rem;
}

.pay-modal__status {
  margin: 0 0 0.85rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  font-size: 0.85rem;
  text-align: center;
}

.pay-modal__status.is-info {
  background: var(--navy-soft);
  color: var(--navy);
}

.pay-modal__status.is-error {
  background: #fde2e1;
  color: #b3261e;
}

/* ?? FAQ page (from site11_8) ?? */
.faq-page {
  max-width: 720px;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.35;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
  margin-top: -0.2rem;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 0.25rem;
}

.faq-item__body {
  padding: 0 1.1rem 1.05rem;
}

.faq-item__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.faq-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-cta h2 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.faq-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ——— Afiliados (página privada, noindex) ——— */
.afil-page {
  min-height: 100vh;
  background: var(--bg);
}
.afil-header {
  background: var(--navy);
  color: #fff;
  padding: 1rem 1.25rem;
}
.afil-header .brand { color: #fff; }
.afil-header .brand span { color: var(--ember); }
.afil-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}
.afil-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}
.afil-card h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--navy);
}
.afil-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--navy);
}
.afil-lead {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 1.1rem;
}
.afil-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0.85rem 0 0.3rem;
}
.afil-form input[type="text"],
.afil-form input[type="email"],
.afil-form input[type="tel"],
.afil-form input[type="file"],
.afil-form select,
.afil-form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.afil-form .hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.afil-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 0.8rem;
}
@media (min-width: 640px) {
  .afil-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.afil-checks {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.35rem;
}
.afil-checks label:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
}
.afil-alert {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.afil-alert--error { background: #fde8e8; color: #9b1c1c; }
.afil-alert--ok { background: #e7f6ee; color: #146c43; }
.afil-contrato {
  font-size: 0.88rem;
  line-height: 1.55;
  max-height: 52vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: #fafbfc;
}
.afil-contrato h3 { margin: 1rem 0 0.35rem; font-size: 0.95rem; color: var(--navy); }
.afil-contrato p { margin: 0 0 0.65rem; }
.afil-cam {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}
.afil-cam video,
.afil-cam canvas,
.afil-cam img.afil-preview {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius-sm);
  background: #111;
}
.afil-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.afil-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.75rem;
}
.afil-page .btn:not(.btn-primary) {
  background: #fff;
  border-color: var(--line);
  color: var(--navy);
}
