/* ============================================================
   SmartFisio — Portal Público
   Fisioterapia premium + reserva inteligente
   ============================================================ */

.public-body {
  background: var(--bg);
  overflow-x: hidden;
}

/* ---------- Tipografía y Headers ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

/* ---------- Animaciones de Entrada (Reveal) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggers */
.stagger-1 { transition-delay: 60ms; }
.stagger-2 { transition-delay: 120ms; }
.stagger-3 { transition-delay: 180ms; }
.stagger-4 { transition-delay: 240ms; }

/* ---------- Header & Navegación ---------- */
.pub-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--t-base) var(--ease);
}
.pub-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--sp-6);
}
.pub-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: var(--fs-md);
  letter-spacing: -0.03em;
  color: var(--text);
  font-family: var(--font-title);
}
.pub-logo:hover {
  text-decoration: none;
}
.pub-logo .brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast) var(--ease-spring);
}
.pub-logo:hover .brand-icon {
  transform: scale(1.08) rotate(3deg);
}
.pub-logo .brand-icon svg {
  width: 22px;
  height: 22px;
}
.pub-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.pub-nav a.nav-link {
  color: var(--text-2);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  transition: all var(--t-fast) var(--ease);
}
.pub-nav a.nav-link:hover {
  color: var(--text);
  background: var(--surface-hover);
  text-decoration: none;
}
@media (max-width: 768px) {
  .pub-nav a.nav-link {
    display: none;
  }
}

/* ---------- Envoltorios ---------- */
.pub-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 96px 0 72px;
  text-align: center;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary-soft-text);
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: var(--sp-6);
  border: 1px solid var(--brand-100);
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, var(--fs-3xl));
  line-height: 1.15;
  max-width: 800px;
  margin: 0 auto var(--sp-5);
}
.hero h1 .accent {
  color: var(--primary);
  background: linear-gradient(120deg, var(--brand-500), #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  color: var(--text-2);
  font-size: var(--fs-md);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto var(--sp-8);
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* ---------- Secciones ---------- */
.pub-section {
  padding: 72px 0;
}
.pub-section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto var(--sp-10);
}
.pub-section-head h2 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-3);
  position: relative;
  display: inline-block;
}
.pub-section-head h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3.5px;
  background: var(--accent);
  border-radius: 4px;
}
.pub-section-head p {
  color: var(--text-2);
  font-size: var(--fs-sm);
}

/* Bento Grid de Servicios */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: var(--sp-6);
}
.svc-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--sp-6);
  text-align: left;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-base) var(--ease);
}
.svc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--svc-color, var(--primary));
  transition: height 0.2s var(--ease);
}
.svc-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-lg);
  border-color: var(--svc-color, var(--primary));
}
.svc-card:hover::before {
  height: 8px;
}
.svc-card h3 {
  font-size: var(--fs-md);
  font-family: var(--font-title);
  margin-top: var(--sp-2);
}
.svc-card p {
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.5;
  flex: 1;
}
.svc-card .svc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--bg-sunken);
}
.svc-card .svc-meta .price {
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--text);
}

/* Slider de Especialistas */
.spec-slider-container {
  position: relative;
  margin: var(--sp-4) 0;
}
.spec-slider {
  display: flex;
  gap: var(--sp-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px var(--sp-2) 28px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.spec-slider::-webkit-scrollbar {
  display: none;
}
.spec-card {
  flex: 0 0 290px;
  scroll-snap-align: start;
  border-radius: var(--radius-xl);
  padding: var(--sp-6) var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-base) var(--ease);
}
.spec-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.spec-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
  font-weight: 800;
  color: #fff;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--bg);
}
.spec-card h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: 2px;
}
.spec-card .spec-title {
  font-size: var(--fs-xs);
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-3);
}
.spec-card .spec-specialties {
  font-size: var(--fs-xs);
  color: var(--text-2);
  line-height: 1.4;
}

/* Slider Controls */
.slider-control-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 10;
  transition: all var(--t-fast) var(--ease);
}
.slider-control-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
}
.slider-control-btn.prev { left: -24px; }
.slider-control-btn.next { right: -24px; }
@media (max-width: 640px) {
  .slider-control-btn { display: none; }
}

/* Cómo funciona */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-6);
}
.step-card {
  text-align: center;
  padding: var(--sp-8) var(--sp-5);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--t-base) var(--ease);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.step-card .step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-soft-text);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: var(--fs-md);
  box-shadow: var(--shadow-sm);
}
.step-card h3 {
  font-size: var(--fs-base);
  margin-bottom: var(--sp-2);
}
.step-card p {
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.5;
}

/* ---------- Booking Wizard Layout ---------- */
.wizard-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: start;
}
@media (min-width: 900px) {
  .wizard-layout {
    grid-template-columns: 1.6fr 1fr;
  }
}
.wizard-carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
}
.wizard-carousel-track {
  display: flex;
  transition: transform var(--t-slow) var(--ease);
  width: 100%;
}
.wizard-carousel-step {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Sticky Summary Card */
.summary-sticky {
  position: sticky;
  top: calc(var(--topbar-h) + var(--sp-6));
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--sp-6);
  box-shadow: var(--shadow-md);
  transition: all var(--t-base) var(--ease);
}
.summary-sticky:hover {
  box-shadow: var(--shadow-lg);
}
.summary-title {
  font-size: var(--fs-md);
  font-family: var(--font-title);
  font-weight: 800;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--bg-sunken);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
}
.summary-row:last-child {
  border-bottom: none;
}
.summary-row strong {
  color: var(--text-2);
  font-weight: 600;
}
.summary-row span {
  color: var(--text);
  font-weight: 700;
}
.summary-total {
  margin-top: var(--sp-5);
  background: var(--primary-soft);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  color: var(--primary-soft-text);
  font-size: var(--fs-md);
}
.summary-accent-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--accent);
}

/* Opciones en el Wizard (Paso 1 y 2) */
.opt-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.opt-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: left;
  width: 100%;
  transition: all var(--t-fast) var(--ease);
  cursor: pointer;
}
.opt-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px) scale(1.005);
  box-shadow: var(--shadow-md);
}
.opt-card.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 1px var(--primary);
}
.opt-card .avatar {
  border: 2px solid var(--border);
}
.opt-card.selected .avatar {
  border-color: var(--primary);
}

/* Calendario de mes (elegir fecha en el wizard de reserva / reprogramación) */
.wizard-cal {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: var(--sp-4);
}
.wizard-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
}
.wizard-cal-title {
  font-weight: 700;
  font-size: var(--fs-sm);
  text-transform: capitalize;
}
.wizard-cal-nav:disabled {
  opacity: 0.3;
  pointer-events: none;
}
.wizard-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.wizard-cal-dow {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  padding-bottom: 4px;
}
.wizard-cal-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  transition: all var(--t-fast) var(--ease);
}
.wizard-cal-cell.is-empty {
  pointer-events: none;
}
.wizard-cal-cell .num {
  font-size: var(--fs-sm);
  font-weight: 600;
}
.wizard-cal-cell:not(:disabled):not(.is-empty):hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.wizard-cal-cell:disabled {
  color: var(--text-3);
  opacity: 0.35;
  cursor: not-allowed;
}
.wizard-cal-cell .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
}
.wizard-cal-cell.is-today .num {
  background: var(--primary-soft);
  color: var(--primary);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wizard-cal-cell.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.wizard-cal-cell.active .num {
  background: transparent;
  color: #fff;
  width: auto;
  height: auto;
}
.wizard-cal-cell.active .dot {
  background: #fff;
}

/* Time Grid */
.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
.time-chip {
  padding: 12px 6px;
  text-align: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--fs-sm);
  font-family: var(--font-mono);
  transition: all var(--t-fast) var(--ease);
  cursor: pointer;
}
.time-chip:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.time-chip.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* Success Screen */
.success-screen {
  text-align: center;
  padding: var(--sp-12) 0;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.success-check {
  width: 90px;
  height: 90px;
  margin: 0 auto var(--sp-6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--success-soft);
  color: var(--success);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
  animation: checkPop 0.6s var(--ease-spring) both;
}
.success-check svg {
  width: 44px;
  height: 44px;
}
.success-code {
  display: inline-block;
  margin: var(--sp-5) 0;
  padding: 14px 28px;
  background: var(--bg-sunken);
  border: 2px dashed var(--accent);
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-soft-text);
  box-shadow: var(--shadow-sm);
}

/* ---------- Patient Portal Dashboard ---------- */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
}
@media (min-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1.3fr 1fr;
  }
}
.dashboard-card {
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base) var(--ease);
}
.dashboard-card:hover {
  box-shadow: var(--shadow-md);
}

/* Countdown Widget */
.countdown-widget {
  background: linear-gradient(135deg, var(--gray-900), #1e293b);
  color: #fff;
  border: none;
  position: relative;
  overflow: hidden;
}
.countdown-widget::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.countdown-widget h3 {
  color: #fff;
  margin-bottom: var(--sp-2);
}
.countdown-time {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  padding: var(--sp-3) var(--sp-2);
  border-radius: var(--radius-md);
  min-width: 68px;
  border-bottom: 3px solid var(--accent);
}
.countdown-num {
  font-size: var(--fs-lg);
  font-weight: 800;
  font-family: var(--font-mono);
  color: #fff;
}
.countdown-label {
  font-size: 10px;
  color: var(--gray-400);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

/* Gamified Progress Bar */
.progress-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.progress-header {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: var(--fs-base);
  font-family: var(--font-title);
}
.progress-bar-container {
  height: 18px;
  background: var(--bg-sunken);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #06b6d4);
  border-radius: var(--radius-full);
  width: 0%; /* Animado en JS */
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.progress-bar-glow {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2s linear infinite;
  background-size: 200% 100%;
}

/* Checklist de Ejercicios en Casa */
.checklist-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-sunken);
  margin-bottom: var(--sp-3);
  transition: all var(--t-fast) var(--ease);
}
.checklist-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
  background: var(--surface);
}
.checklist-item.checked {
  background: var(--primary-soft);
  border-color: var(--primary);
}
.checklist-item.checked .checklist-title {
  text-decoration: line-through;
  color: var(--text-3);
}
.checkbox-custom {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--surface);
  transition: all var(--t-fast) var(--ease);
  color: transparent;
  flex-shrink: 0;
}
.checkbox-custom:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}
.checklist-item.checked .checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.checkbox-custom svg {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}
.checklist-body {
  flex: 1;
  min-width: 0;
}
.checklist-title {
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--text);
}
.checklist-desc {
  font-size: var(--fs-xs);
  color: var(--text-2);
  margin-top: 1px;
}
.play-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-soft-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast) var(--ease);
  cursor: pointer;
}
.play-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
}
.play-btn svg {
  width: 16px;
  height: 16px;
  margin-left: 2px;
}

/* Modal de Video */
.video-modal-body {
  text-align: center;
}
.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  background: var(--gray-900);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  gap: var(--sp-3);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
}
.video-placeholder svg {
  width: 56px;
  height: 56px;
  color: var(--accent);
  z-index: 2;
}
.video-placeholder-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  filter: blur(2px);
}

/* ---------- Footer ---------- */
/* Hero Media & Video Showcase */
.hero-media-box {
  max-width: 980px;
  margin: 40px auto 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}

.hero-video-preview {
  height: 380px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 24px;
  text-align: center;
  transition: transform var(--t-base) var(--ease);
}
.hero-video-preview:hover {
  transform: scale(1.008);
}

.play-pulse-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 10px rgba(255, 107, 74, 0.25);
  animation: pulseBtn 2s infinite;
  margin-bottom: 20px;
  transition: transform var(--t-fast) var(--ease-spring);
}
.hero-video-preview:hover .play-pulse-btn {
  transform: scale(1.15);
}
.play-pulse-btn svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}

@keyframes pulseBtn {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 74, 0.5); }
  70% { box-shadow: 0 0 0 22px rgba(255, 107, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 74, 0); }
}

.hero-video-text {
  color: #fff;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero-video-text strong {
  font-size: var(--fs-lg);
  font-family: var(--font-title);
  display: block;
}
.hero-video-text p {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.85);
  margin-top: 4px;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px;
  gap: 16px;
}
.hero-stat-item {
  text-align: center;
}
.hero-stat-item strong {
  font-size: var(--fs-xl);
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--primary);
  display: block;
}
.hero-stat-item span {
  font-size: var(--fs-xs);
  color: var(--text-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.svc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.pub-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0;
  margin-top: 80px;
  background: var(--surface);
}
.pub-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.pub-footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-width: 320px;
}
.pub-footer-brand strong {
  font-size: var(--fs-md);
  font-family: var(--font-title);
  color: var(--text);
  font-weight: 800;
}
.pub-footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.pub-footer-powered {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 12.5px;
  color: var(--text-3);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.pub-footer-powered a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none !important;
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}

.pub-footer-powered a:hover,
.pub-footer-powered a:focus,
.pub-footer-powered a:active {
  text-decoration: none !important;
  opacity: 0.8;
  color: var(--primary-soft-text, var(--primary));
}

/* Card de Consulta de Reservas / Login */
.bookings-login-card {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: var(--sp-8);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transition: all var(--t-base) var(--ease);
}
.bookings-login-card:hover {
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  border-color: var(--primary-soft-text);
}

/* ---------- Responsiveness ---------- */
@media (max-width: 640px) {
  .hero { padding: 60px 0 40px; }
  .hero-video-preview { height: 260px; }
  .hero-stats-row { grid-template-columns: 1fr; gap: 16px; }
  .bookings-login-card { padding: var(--sp-5); }
  .opt-card { padding: var(--sp-4); }
  .booking-item { flex-direction: column; align-items: stretch; gap: var(--sp-3); }
  .booking-item .actions { width: 100%; justify-content: flex-end; }
  .success-screen { padding: var(--sp-8) var(--sp-4); }
}

/* ============================================================
   SmartFisio — Rediseño premium del portal publico
   Movimiento guiado, recuperacion medible
   ============================================================ */

.public-body {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary-soft) 42%, transparent), transparent 440px),
    var(--bg);
}

.pub-header {
  background: color-mix(in srgb, var(--bg) 70%, transparent);
}

.pub-header.is-scrolled {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .pub-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
}

.pub-header.is-scrolled .pub-header-inner {
  padding-top: 10px;
  padding-bottom: 10px;
}

.pub-logo .brand-icon {
  border-radius: 10px;
}

.pub-nav .btn-primary {
  background: var(--accent);
}

.pub-nav .btn-primary:hover {
  background: var(--accent-hover);
}

.pub-wrap {
  max-width: 1180px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--sp-3);
  color: var(--primary-soft-text);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--accent);
}

.pub-section {
  padding: 86px 0;
}

.pub-section-head {
  margin-bottom: var(--sp-10);
}

.pub-section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: 0;
}

.pub-section-head h2::after {
  display: none;
}

.pub-section-head p {
  font-size: var(--fs-base);
  line-height: 1.65;
}

.section-head-left {
  text-align: left;
  max-width: 720px;
  margin-left: 0;
}

/* ---------- Hero inmersivo ---------- */
.hero-immersive {
  min-height: min(760px, calc(100svh - 56px));
  padding: 0;
  display: flex;
  align-items: center;
  text-align: left;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-visual,
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  transform: scale(1.02);
  animation: heroImageIn 1.2s var(--ease) both;
}

.hero-scrim {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(248, 250, 252, 0.98) 0%, rgba(248, 250, 252, 0.86) 38%, rgba(248, 250, 252, 0.30) 68%, rgba(248, 250, 252, 0.08) 100%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.2), rgba(248, 250, 252, 0.78));
}

[data-theme="dark"] .hero-scrim {
  background:
    linear-gradient(90deg, rgba(9, 13, 22, 0.96) 0%, rgba(9, 13, 22, 0.82) 42%, rgba(9, 13, 22, 0.38) 72%, rgba(9, 13, 22, 0.12) 100%),
    linear-gradient(180deg, rgba(9, 13, 22, 0.12), rgba(9, 13, 22, 0.78));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.46fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
  width: 100%;
  padding-top: clamp(72px, 10vw, 132px);
  padding-bottom: clamp(42px, 7vw, 74px);
}

.hero-copy {
  max-width: 660px;
}

.hero-badge {
  margin-bottom: var(--sp-5);
  padding: 8px 14px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--primary-soft-text);
  border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--border));
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--success) 14%, transparent);
}

.hero-immersive h1 {
  max-width: 680px;
  margin: 0 0 var(--sp-5);
  color: var(--ink-950);
  font-size: clamp(2.65rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

[data-theme="dark"] .hero-immersive h1 {
  color: var(--text);
}

.hero-immersive p {
  max-width: 560px;
  margin: 0 0 var(--sp-8);
  color: var(--text-2);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.72;
}

.hero-immersive .hero-actions {
  justify-content: flex-start;
}

.hero-primary {
  background: var(--accent);
  box-shadow: 0 14px 28px color-mix(in srgb, var(--accent) 24%, transparent);
}

.hero-primary:hover {
  background: var(--accent-hover);
}

.hero-secondary {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: var(--sp-6);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-proof svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.hero-care-card {
  align-self: end;
  padding: var(--sp-5);
  border: 1px solid color-mix(in srgb, var(--surface) 70%, var(--border));
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow-float);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.care-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.care-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: var(--primary);
  background: var(--primary-soft);
}

.care-icon svg {
  width: 18px;
  height: 18px;
}

.care-slot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: var(--sp-5) 0;
}

.care-slot strong {
  font-family: var(--font-title);
  font-size: var(--fs-xl);
  line-height: 1.1;
}

.care-slot span {
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.care-meter {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: var(--sp-5);
}

.care-meter span {
  height: 34px;
  border-radius: 9px;
  background: var(--primary-soft);
  transform-origin: bottom;
  animation: meterRise 900ms var(--ease) both;
}

.care-meter span:nth-child(2) { height: 44px; animation-delay: 80ms; }
.care-meter span:nth-child(3) { height: 28px; animation-delay: 140ms; background: var(--blue-soft); }
.care-meter span:nth-child(4) { height: 54px; animation-delay: 200ms; background: var(--accent-soft); }
.care-meter span:nth-child(5) { height: 38px; animation-delay: 260ms; }

.care-note {
  margin-top: var(--sp-3);
  color: var(--text-2);
  font-size: var(--fs-xs);
  line-height: 1.45;
}

/* ---------- Confianza ---------- */
.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: -22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--border);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 3;
}

.trust-item {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-5);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}

.trust-item > span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--primary);
  background: var(--mint-soft);
  flex: 0 0 auto;
}

.trust-item svg {
  width: 18px;
  height: 18px;
}

.trust-item strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-title);
  font-size: var(--fs-base);
}

.trust-item p {
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.45;
}

/* ---------- Tratamientos ---------- */
.svc-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--sp-8);
}

.svc-filter-bar .chip {
  border: 1px solid var(--border);
  background: var(--surface);
}

.svc-filter-bar .chip.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.premium-svc-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-4);
}

.premium-svc-card {
  min-height: 252px;
  padding: var(--sp-5);
  border-radius: 12px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--svc-color, var(--primary)) 7%, transparent), transparent 68%),
    var(--surface);
  box-shadow: none;
}

.premium-svc-card::before {
  width: 4px;
  height: auto;
  right: auto;
  bottom: 0;
}

.premium-svc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--svc-color, var(--primary)) 58%, var(--border));
}

.premium-svc-card.is-hidden {
  display: none;
}

.svc-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--svc-color, var(--primary));
  background: color-mix(in srgb, var(--svc-color, var(--primary)) 12%, transparent);
}

.svc-icon svg {
  width: 20px;
  height: 20px;
}

.svc-need {
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.svc-info-btn {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-3);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.svc-info-btn:hover,
.svc-info-btn:focus-visible {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.svc-info-btn svg {
  width: 16px;
  height: 16px;
}

.premium-svc-card h3 {
  margin-top: var(--sp-4);
  letter-spacing: 0;
}

.premium-svc-card p {
  min-height: 58px;
}

.premium-svc-card .svc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: flex-start;
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.premium-svc-card .svc-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.premium-svc-card .svc-meta svg {
  width: 14px;
  height: 14px;
}

.svc-book-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.svc-book-row strong {
  font-size: var(--fs-lg);
  font-family: var(--font-title);
}

.svc-book-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.svc-book-row svg {
  width: 15px;
  height: 15px;
}

/* ---------- Metodo ---------- */
.method-section {
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--blue-soft) 48%, transparent) 50%, transparent),
    var(--bg-sunken);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
}

.method-copy h2,
.patient-copy h2,
.final-cta h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.method-copy p,
.patient-copy p,
.final-cta p {
  margin: var(--sp-4) 0 var(--sp-6);
  color: var(--text-2);
  font-size: var(--fs-md);
  line-height: 1.7;
}

.method-timeline {
  position: relative;
  display: grid;
  gap: var(--sp-4);
}

.method-timeline::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 31px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0.35;
}

.method-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--sp-4);
  align-items: flex-start;
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  position: relative;
}

.method-num {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #fff;
  background: var(--primary);
  font-family: var(--font-mono);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.method-step h3 {
  margin-bottom: 4px;
  font-size: var(--fs-md);
  letter-spacing: 0;
}

.method-step p {
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

/* ---------- Equipo ---------- */
.premium-spec-slider {
  padding-top: 4px;
}

.spec-card-premium {
  flex-basis: 268px;
  align-items: flex-start;
  text-align: left;
  border-radius: 14px;
  box-shadow: none;
}

.spec-card-premium:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.spec-avatar-premium {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  margin-bottom: var(--sp-4);
  border: 1px solid color-mix(in srgb, var(--therapist-color, var(--primary)) 40%, var(--border));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--therapist-color, var(--primary)) 84%, #fff), var(--gray-900));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.spec-avatar-premium::after {
  content: "";
  position: absolute;
  inset: auto -16px -24px 18px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.spec-avatar-premium span {
  position: relative;
  z-index: 1;
}

.spec-card-premium .badge {
  margin-bottom: var(--sp-3);
}

.spec-card-premium .btn {
  margin-top: var(--sp-4);
}

/* ---------- Area paciente showcase ---------- */
.patient-experience {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.patient-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}

.patient-mockup {
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(135deg, var(--gray-900), #193236 52%, #0f172a);
  box-shadow: var(--shadow-float);
  color: #fff;
}

.mockup-top {
  display: flex;
  gap: 7px;
  margin-bottom: var(--sp-5);
}

.mockup-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
}

.mockup-card,
.mockup-progress,
.mockup-list {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.mockup-card {
  padding: var(--sp-5);
}

.mockup-card span,
.mockup-progress span {
  color: var(--brand-300);
  font-size: var(--fs-xs);
  font-weight: 800;
  text-transform: uppercase;
}

.mockup-card strong {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-lg);
  font-family: var(--font-title);
}

.mockup-card p {
  margin-top: 4px;
  color: var(--gray-300);
  font-size: var(--fs-sm);
}

.mockup-progress {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  align-items: center;
  margin-top: var(--sp-4);
  padding: var(--sp-4);
}

.mockup-progress strong {
  display: block;
  font-family: var(--font-title);
  font-size: var(--fs-xl);
}

.mockup-bar {
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.mockup-bar span {
  display: block;
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: inherit;
}

.mockup-list {
  display: grid;
  gap: 10px;
  margin-top: var(--sp-4);
  padding: var(--sp-4);
}

.mockup-list span,
.patient-points span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}

.mockup-list svg {
  width: 16px;
  height: 16px;
  color: var(--brand-300);
}

.patient-points {
  display: grid;
  gap: 12px;
  margin-bottom: var(--sp-6);
  color: var(--text-2);
}

.patient-points svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

/* ---------- FAQ y cierre ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}

.faq-item + .faq-item {
  border-top: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5);
  text-align: left;
  font-family: var(--font-title);
  font-weight: 800;
}

.faq-question svg {
  width: 18px;
  height: 18px;
  color: var(--text-3);
  transition: transform var(--t-base) var(--ease);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-base) var(--ease);
}

.faq-answer p {
  min-height: 0;
  overflow: hidden;
  color: var(--text-2);
  line-height: 1.65;
  padding: 0 var(--sp-5);
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.open .faq-answer p {
  padding-bottom: var(--sp-5);
}

/* ---------- Testimonios ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-5);
}

.testimonial-card {
  margin: 0;
  padding: var(--sp-6);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.testimonial-card blockquote {
  margin: 0 0 var(--sp-5);
  color: var(--text-2);
  line-height: 1.65;
  font-size: var(--fs-md);
}

.testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-card figcaption strong {
  display: block;
  font-family: var(--font-title);
}

.testimonial-card figcaption .muted {
  display: block;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-12);
  padding: clamp(28px, 5vw, 54px);
  border-radius: 20px;
  background:
    linear-gradient(135deg, var(--primary), var(--blue-500) 58%, var(--gray-900));
  color: #fff;
  box-shadow: var(--shadow-float);
}

.final-cta .section-kicker,
.final-cta h2,
.final-cta p {
  color: #fff;
}

.final-cta .section-kicker::before {
  background: var(--accent);
}

.final-cta p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.final-cta .btn {
  background: #fff;
  color: var(--primary-soft-text);
}

/* ---------- Wizard premium polish ---------- */
.wizard-top {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.wizard-shell {
  padding: 48px 0 80px;
}

.wizard-main-section {
  min-width: 0;
}

.wizard-top .section-kicker {
  margin-bottom: 4px;
}

.wizard-top h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  letter-spacing: 0;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: var(--sp-5);
}

.wizard-progress span {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--bg-sunken);
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-weight: 800;
}

.wizard-progress span::before {
  content: attr(data-label);
}

.wizard-progress span.done {
  background: var(--primary);
  color: #fff;
}

.wizard-progress span.current {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
}

.wizard-step {
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.wizard-step h3 {
  font-size: var(--fs-xl);
  letter-spacing: 0;
}

.wizard-step .lead {
  color: var(--text-2);
  line-height: 1.6;
}

.opt-card {
  border-radius: 12px;
}

.opt-card .opt-body {
  min-width: 0;
  flex: 1;
}

.opt-card .opt-body p {
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.opt-card.selected {
  box-shadow: inset 0 0 0 1px var(--primary), var(--shadow-sm);
}

.wizard-cal-cell {
  border-radius: 12px;
}

.time-chip {
  border-radius: 10px;
}

.time-chip.selected {
  animation: selectedPulse 420ms var(--ease-spring) both;
}

.summary-sticky {
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.summary-total {
  border-radius: 12px;
}

/* ---------- Area de pacientes polish ---------- */
.bookings-wrap {
  margin: 0 auto;
}

.bookings-login-shell {
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.bookings-login-card {
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}

.bookings-login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--blue-500), var(--accent));
}

.bookings-login-head {
  text-align: center;
  margin-bottom: var(--sp-6);
}

.bookings-login-head .section-kicker {
  justify-content: center;
  margin-bottom: var(--sp-2);
}

.bookings-login-head .section-kicker::before {
  display: none;
}

.bookings-login-head h2 {
  margin-bottom: var(--sp-2);
  font-size: var(--fs-xl);
  letter-spacing: 0;
}

.bookings-login-head p {
  max-width: 380px;
  margin: 0 auto;
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.patient-login-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--blue-500));
  box-shadow: var(--shadow-md);
}

.patient-login-icon svg {
  width: 24px;
  height: 24px;
}

.input-comfy {
  padding: 12px 16px;
}

.booking-code-input {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.dashboard-card {
  border-radius: 16px;
}

.booking-item {
  border-radius: 12px;
}

/* ---------- Motion ---------- */
@keyframes heroImageIn {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: scale(1.02); }
}

@keyframes meterRise {
  from { opacity: 0; transform: scaleY(0.45); }
  to { opacity: 1; transform: scaleY(1); }
}

@keyframes selectedPulse {
  0% { transform: scale(0.96); }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid,
  .method-grid,
  .patient-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    align-items: start;
  }

  .hero-care-card {
    max-width: 420px;
  }

  .trust-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .final-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .pub-header-inner {
    padding: 10px var(--sp-4);
  }

  .pub-nav {
    gap: 6px;
  }

  .pub-nav .btn-outline {
    display: none;
  }

  .pub-nav .btn-primary {
    padding: 8px 10px;
    font-size: var(--fs-sm);
  }

  .hero-immersive {
    min-height: auto;
  }

  .hero-grid {
    padding-top: 62px;
    padding-bottom: 34px;
  }

  .hero-visual img {
    object-position: 62% center;
  }

  .hero-scrim,
  [data-theme="dark"] .hero-scrim {
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--bg) 95%, transparent) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 46%, color-mix(in srgb, var(--bg) 68%, transparent) 100%),
      linear-gradient(90deg, color-mix(in srgb, var(--bg) 92%, transparent), color-mix(in srgb, var(--bg) 58%, transparent));
  }

  .hero-immersive h1 {
    font-size: clamp(2.25rem, 12vw, 3.4rem);
  }

  .hero-immersive .hero-actions,
  .hero-proof {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-immersive .hero-actions .btn {
    width: 100%;
  }

  .trust-band {
    grid-template-columns: 1fr;
    margin-top: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding-left: 0;
    padding-right: 0;
  }

  .pub-section {
    padding: 62px 0;
  }

  .section-head-left {
    text-align: left;
  }

  .premium-svc-card {
    min-height: auto;
  }

  .method-step {
    grid-template-columns: 52px 1fr;
    padding: var(--sp-4);
  }

  .method-timeline::before {
    left: 25px;
  }

  .patient-mockup {
    padding: var(--sp-4);
  }

  .wizard-progress {
    grid-template-columns: repeat(2, 1fr);
  }

  .countdown-time {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .pub-logo #pub-brand-name {
    display: none;
  }

  .hero-badge {
    align-items: flex-start;
  }

  .hero-care-card {
    width: 100%;
  }

  .trust-item {
    padding: var(--sp-4);
  }

  .svc-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .svc-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .svc-filter-bar .chip {
    flex: 0 0 auto;
  }

  .summary-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual img,
  .care-meter span,
  .time-chip.selected {
    animation: none !important;
  }
}

/* ============================================================
   Comprobante de reserva imprimible
   #print-area vive fuera de #pub-main; se revela solo al imprimir
   y oculta el resto de la interfaz (ver printReceipt() en public.js).
   Mismo patrón que #print-area en admin.css.
   ============================================================ */
#print-area { display: none; }

@media print {
  body.printing > *:not(#print-area) { display: none !important; }
  body.printing #print-area { display: block !important; }

  .print-doc { max-width: 720px; margin: 0 auto; color: #000; font-family: var(--font); }
  .print-doc-head { border-bottom: 2px solid #000; padding-bottom: 12px; margin-bottom: 20px; }
  .print-doc-head h1 { font-size: 20px; }
  .print-doc-head p { font-size: 12px; color: #444; }

  .print-receipt-body { display: flex; align-items: center; gap: 28px; margin: 20px 0; }
  .print-receipt-body canvas { flex: none; width: 140px; height: 140px; }
  .print-receipt-info { flex: 1; }
  .print-receipt-code {
    font-family: var(--font-mono, monospace); font-size: 18px; font-weight: 800;
    letter-spacing: 0.08em; margin: 0 0 10px;
  }
  .print-receipt-info dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; }
  .print-receipt-info dt { font-weight: 700; color: #444; }
  .print-receipt-info dd { margin: 0; }
  .print-receipt-note { font-size: 11px; color: #444; border-top: 1px dashed #ccc; padding-top: 10px; }
}
