/* ============================================================================
   antesdelafirma · estilos compartidos /servicios/*
   Usa los design-tokens · este fichero solo añade layout específico de pago.
   ============================================================================ */

.page { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }

/* ─── TOPBAR ────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 0;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base);
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  text-decoration: none; color: var(--ink-0); letter-spacing: -0.015em;
}
.brand-sub { color: var(--ink-3); font-weight: 500; }

/* ─── BREADCRUMB ────────────────────────────────────── */
.breadcrumb { padding: 18px 0 0; font-size: 12.5px; color: var(--ink-3); }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink-0); text-decoration: underline; }
.breadcrumb .sep { margin: 0 8px; opacity: 0.4; }
.breadcrumb .curr { color: var(--ink-0); font-weight: 500; }

/* ─── HERO ──────────────────────────────────────────── */
.hero { padding: 36px 0 32px; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

.pill-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px;
  background: var(--green-50); color: var(--green-darker);
  border-radius: var(--r-full);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.pill-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 3px var(--green-glow);
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600; font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05; letter-spacing: -0.022em;
  margin: 0 0 18px; color: var(--ink-0);
  font-feature-settings: 'lnum', 'ss01';
}
.hero h1 em {
  font-style: italic; color: var(--green-dk);
  font-feature-settings: 'lnum', 'ss01';
}
.hero-lead {
  font-size: 17px; line-height: 1.6; letter-spacing: -0.005em;
  color: var(--ink-2); max-width: 540px;
}
.hero-meta {
  margin-top: 28px;
  display: flex; gap: 22px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3);
}
.hero-meta strong { color: var(--ink-1); font-weight: 600; }
.hero-meta-item { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta-item svg { color: var(--green-dk); }

/* ─── CARD DE PAGO (sticky en desktop) ──────────────── */
.pay-card {
  background: var(--surface);
  border: 1.5px solid var(--ink-0);
  border-radius: var(--r-xl);
  padding: 28px;
  position: sticky; top: 90px;
}
.pay-card-precio {
  display: flex; align-items: baseline; gap: 4px;
  margin-bottom: 4px;
}
.pay-card-precio .val {
  font-family: var(--font-display);
  font-size: 52px; font-weight: 800;
  letter-spacing: -0.035em; color: var(--ink-0); line-height: 1;
}
.pay-card-precio .cur {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 600; color: var(--ink-1);
  letter-spacing: -0.01em;
}
.pay-card-sub { font-size: 13px; color: var(--ink-3); margin-bottom: 22px; }
.pay-card .incluye {
  margin: 0 0 24px;
  padding: 16px;
  background: var(--paper-2);
  border-radius: var(--r-md);
  font-size: 13.5px; line-height: 1.6;
  color: var(--ink-2);
}
.pay-card .incluye strong {
  color: var(--ink-0); display: block;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.pay-card .incluye ul { list-style: none; padding: 0; margin: 0; }
.pay-card .incluye li {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 4px 0;
}
.pay-card .incluye li::before {
  content: '✓'; color: var(--green-dk); font-weight: 700;
  width: 14px; flex-shrink: 0;
}

/* ─── FORM DE PAGO ──────────────────────────────────── */
.pay-form .field { margin-bottom: 14px; }
.pay-form .field label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--ink-1); text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 5px;
}
.pay-form input[type="text"],
.pay-form input[type="email"],
.pay-form textarea {
  width: 100%; padding: 11px 13px;
  background: var(--paper-2);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-md);
  font-size: 14.5px; font-family: var(--font-sans);
  color: var(--ink-0);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.pay-form input:focus, .pay-form textarea:focus {
  outline: none; border-color: var(--ink-0); background: white;
}
.pay-form textarea { resize: vertical; min-height: 70px; }
.check-row {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 12.5px; line-height: 1.5; color: var(--ink-2);
  margin: 12px 0 18px;
}
.check-row input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--ink-0);
  width: 15px; height: 15px;
}
.check-row a { color: var(--ink-1); }
.btn-pagar {
  width: 100%; padding: 15px 24px;
  background: var(--ink-0); color: white;
  border: 0; border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 15.5px; font-weight: 600; letter-spacing: -0.005em;
  cursor: pointer;
  transition: background var(--t-base), transform var(--t-fast);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-pagar:hover { background: var(--ink-1); }
.btn-pagar:active { transform: translateY(1px); }
.btn-pagar:disabled { background: var(--ink-3); cursor: not-allowed; }
.seguridad-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: center; align-items: center;
  margin-top: 14px;
  font-size: 11px; color: var(--ink-4);
  letter-spacing: 0.02em;
}
.seguridad-row span { display: inline-flex; align-items: center; gap: 5px; }

/* ─── BANNER PRE-RESERVA ─────────────────────────── */
.banner-preserva {
  background: var(--amber-50);
  border: 1px solid var(--amber);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 12.5px; line-height: 1.5;
  color: #78350f;
}

/* ─── SECCIÓN CONTENIDO ─────────────────────────── */
.content-section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 800px) { .content-grid { grid-template-columns: 1fr; gap: 32px; } }
.content-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.content-card h3 {
  font-family: var(--font-serif);
  font-weight: 600; font-size: 22px;
  letter-spacing: -0.012em; line-height: 1.25;
  margin: 0 0 12px; color: var(--ink-0);
}
.content-card p {
  font-size: 14.5px; line-height: 1.65; color: var(--ink-2);
  margin: 0 0 10px;
}
.content-card p:last-child { margin-bottom: 0; }
.content-card .cita-legal {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--paper-2);
  border-left: 3px solid var(--green-dk);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 12.5px; line-height: 1.5; color: var(--ink-2);
  font-style: italic;
}
.content-card .cita-legal strong { font-style: normal; color: var(--ink-0); }

/* ─── SECCIÓN FAQ ────────────────────────────────── */
.faq-section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.section-title-eyebrow {
  font-size: 11.5px; font-weight: 600;
  color: var(--green-dk);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 600; font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.018em; line-height: 1.15;
  margin: 0 0 32px; color: var(--ink-0);
}
details.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
details.faq summary {
  cursor: pointer; padding: 4px 0;
  font-size: 16px; font-weight: 600; color: var(--ink-0);
  list-style: none; position: relative;
  padding-right: 32px; letter-spacing: -0.005em;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+'; position: absolute; right: 0; top: 0;
  font-size: 22px; font-weight: 400; color: var(--ink-3);
  transition: transform var(--t-base);
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .faq-body {
  padding: 12px 0 4px;
  font-size: 14.5px; line-height: 1.65; color: var(--ink-2);
}

/* ─── FOOTER ─────────────────────────────────────── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  font-size: 12.5px; color: var(--ink-3);
  text-align: center;
}
.footer a { color: var(--ink-2); text-decoration: none; margin: 0 12px; }
.footer a:hover { color: var(--ink-0); }

/* ─── TOAST ─────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  padding: 14px 18px;
  background: var(--ink-0); color: white;
  border-radius: var(--r-md);
  font-size: 13.5px; line-height: 1.45;
  box-shadow: var(--shadow-xl);
  max-width: 360px;
  transform: translateY(80px); opacity: 0;
  transition: all var(--t-base);
  z-index: 100;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--green-dk); }
.toast.warning { background: #78350f; }
.toast.error { background: var(--rose); }
