/**
 * Aura Estética Médica — Estilos Globales & Sistema de Diseño
 * centroestetica.vx1.cl
 */

:root {
  /* Paleta de Colores Primaria (Gold & Champagne Glow) */
  --primary-gold: #c59b6d;
  --primary-gold-hover: #b08556;
  --gold-light: #f4ede4;
  --gold-gradient: linear-gradient(135deg, #c59b6d 0%, #e8c39e 50%, #9e7247 100%);
  --gold-gradient-soft: linear-gradient(135deg, rgba(197, 155, 109, 0.15) 0%, rgba(232, 195, 158, 0.05) 100%);
  --rose-gold: #b76e79;

  /* Fondos y Superficies */
  --bg-body: #faf8f5;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f6f2ec;
  --bg-dark: #161514;
  --bg-dark-card: #201e1c;
  --bg-glass: rgba(255, 255, 255, 0.85);

  /* Textos & Bordes */
  --text-dark: #1a1816;
  --text-body: #4a4540;
  --text-muted: #7d756d;
  --text-light: #f5f2ed;
  --border-light: #ede6dc;
  --border-focus: #c59b6d;

  /* Colores de Estado */
  --color-success: #15803d;
  --bg-success: #dcfce7;
  --color-wa: #25d366;
  --color-wa-hover: #1ebd5a;

  /* Tipografías */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Sombras y Radios */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(30, 25, 20, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(197, 155, 109, 0.12), 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 16px 36px -6px rgba(197, 155, 109, 0.2), 0 8px 20px rgba(0, 0, 0, 0.06);

  /* Transiciones */
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* Utilidades de Layout */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.text-center { text-align: center; }
.w-100 { width: 100%; }
.mt-3 { margin-top: 1rem; }
.hide-sm { display: inline-block; }
.hide-mobile { display: inline-flex; }

/* Tipografía de Sección */
.section-header {
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-gold);
  background: var(--gold-light);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* Botones y CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  text-align: center;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(197, 155, 109, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 155, 109, 0.45);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-dark);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--gold-light);
  border-color: var(--primary-gold);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-gold);
  border-color: var(--primary-gold);
}

.btn-outline:hover {
  background: var(--primary-gold);
  color: #ffffff;
}

.btn-whatsapp {
  background-color: var(--color-wa);
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: var(--color-wa-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}

.link-as-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font-size: inherit;
  padding: 0;
  transition: var(--transition);
}

.link-as-btn:hover {
  color: var(--primary-gold);
}

/* ========================================================================== */
/* 1. Promo Banner & Topbar                                                   */
/* ========================================================================== */
.promo-banner {
  background: var(--bg-dark);
  color: var(--text-light);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(197, 155, 109, 0.3);
}

.promo-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: center;
}

.promo-pill {
  background: var(--gold-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.promo-btn {
  background: transparent;
  color: var(--primary-gold);
  border: 1px solid var(--primary-gold);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.promo-btn:hover {
  background: var(--primary-gold);
  color: #ffffff;
}

.topbar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
  padding: 0.45rem 0;
  color: var(--text-muted);
}

.topbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-item, .topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar-link:hover {
  color: var(--primary-gold);
}

.topbar-wa {
  color: #128c7e;
  font-weight: 600;
}

.topbar-icon {
  width: 15px;
  height: 15px;
  color: var(--primary-gold);
}

/* ========================================================================== */
/* 2. Main Header & Navigation                                                */
/* ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(237, 230, 220, 0.8);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-symbol {
  width: 42px;
  height: 42px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.logo-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.4rem 0.2rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

.btn-portal {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.btn-portal:hover {
  background: var(--gold-light);
  border-color: var(--primary-gold);
}

.portal-badge {
  background: var(--rose-gold);
  color: #ffffff;
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.action-icon {
  width: 18px;
  height: 18px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-bar {
  width: 100%;
  height: 2.5px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========================================================================== */
/* 3. Hero Section                                                            */
/* ========================================================================== */
.hero-section {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(232, 195, 158, 0.25) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(197, 155, 109, 0.12) 0%, transparent 50%);
}

.hero-backdrop-glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(197, 155, 109, 0.2) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(50px);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}

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

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.highlight-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 2.2rem;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
}

.trust-icon {
  width: 18px;
  height: 18px;
  color: var(--primary-gold);
  flex-shrink: 0;
}

/* Card Glassmorphic Hero Showcase */
.hero-card-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(237, 230, 220, 0.9);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.card-glass-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.glass-tag {
  background: var(--gold-light);
  color: var(--primary-gold);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.glass-rating {
  font-size: 0.8rem;
  font-weight: 600;
  color: #eab308;
}

.glass-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.glass-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.glass-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.glass-stat {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.glass-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.glass-price-wrap {
  display: flex;
  flex-direction: column;
}

.price-old {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-current {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-gold);
}

/* ========================================================================== */
/* 4. Stats Ribbon                                                            */
/* ========================================================================== */
.stats-ribbon {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 3rem 0;
  border-top: 1px solid rgba(197, 155, 109, 0.2);
  border-bottom: 1px solid rgba(197, 155, 109, 0.2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-title {
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.stat-sub {
  font-size: 0.82rem;
  color: #a8a29e;
}

/* ========================================================================== */
/* 5. Test de Diagnóstico Estético Online (Wizard)                            */
/* ========================================================================== */
.quiz-section {
  padding: 6rem 0;
  background: var(--bg-surface-alt);
}

.quiz-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  max-width: 900px;
  margin: 0 auto;
}

.quiz-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.quiz-step-dot {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-alt);
  color: var(--text-muted);
  transition: var(--transition);
}

.quiz-step-dot.active {
  background: var(--gold-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(197, 155, 109, 0.3);
}

.quiz-step-line {
  flex-grow: 1;
  height: 2px;
  background: var(--border-light);
  margin: 0 0.75rem;
}

.quiz-question {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.75rem;
  text-align: center;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.quiz-option-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.quiz-option-btn:hover {
  border-color: var(--primary-gold);
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.option-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.option-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.option-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.quiz-step-content {
  display: none;
}

.quiz-step-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-result-view {
  text-align: center;
  padding: 1rem 0;
  animation: fadeIn 0.5s ease;
}

.result-badge-pill {
  display: inline-block;
  background: var(--gold-light);
  color: var(--primary-gold);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.result-plan-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.result-plan-desc {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 650px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.result-details-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.result-detail-item {
  display: flex;
  flex-direction: column;
}

.item-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.item-value {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.item-value.highlight {
  color: var(--primary-gold);
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.result-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========================================================================== */
/* 6. Catálogo de Tratamientos                                                */
/* ========================================================================== */
.treatments-section {
  padding: 6rem 0;
  background: var(--bg-body);
}

.catalog-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.catalog-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--primary-gold);
  color: var(--primary-gold);
}

.filter-btn.active {
  background: var(--gold-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(197, 155, 109, 0.3);
}

.catalog-search {
  max-width: 550px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.catalog-search input {
  width: 100%;
  padding: 0.85rem 1.25rem 0.85rem 3rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.catalog-search input:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(197, 155, 109, 0.15);
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 1.2rem;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.treatments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.treatment-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.treatment-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-gold);
}

.card-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--gold-light);
  color: var(--primary-gold);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.card-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card-excerpt {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-features {
  list-style: none;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
}

.card-features li {
  color: var(--text-dark);
}

.card-features li span {
  color: var(--text-muted);
}

.card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.price-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.price-val {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary-gold);
}

.price-val small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

.btn-card-detail {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.btn-card-detail:hover {
  background: var(--bg-surface-alt);
  border-color: var(--primary-gold);
}

/* ========================================================================== */
/* 7. Cotizador Inteligente                                                   */
/* ========================================================================== */
.calculator-section {
  padding: 6rem 0;
  background: radial-gradient(circle at 10% 50%, rgba(197, 155, 109, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 90% 80%, rgba(232, 195, 158, 0.1) 0%, transparent 60%);
}

.calculator-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  max-width: 1100px;
  margin: 0 auto;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
}

.calc-group {
  margin-bottom: 2rem;
}

.calc-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 0.85rem;
}

.calc-step-num {
  width: 26px;
  height: 26px;
  background: var(--primary-gold);
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.calc-select {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt);
  font-size: 0.95rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.calc-select:focus {
  border-color: var(--primary-gold);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(197, 155, 109, 0.15);
}

.calc-pill-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.calc-pill-label {
  cursor: pointer;
}

.calc-pill-label input {
  display: none;
}

.calc-pill-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.85rem 0.5rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt);
  transition: var(--transition);
}

.calc-pill-content strong {
  font-size: 0.85rem;
  color: var(--text-dark);
}

.calc-pill-content small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.calc-pill-label input:checked + .calc-pill-content {
  border-color: var(--primary-gold);
  background: var(--gold-light);
  box-shadow: var(--shadow-sm);
}

.calc-summary-panel {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.calc-summary-header {
  margin-bottom: 1.5rem;
}

.summary-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-gold);
  background: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.summary-treatment-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
}

.summary-treatment-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.calc-financial-breakdown {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  border: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-body);
  margin-bottom: 0.5rem;
}

.breakdown-row.discount {
  color: var(--color-success);
  font-weight: 600;
}

.breakdown-row.total-row {
  border-top: 1px solid var(--border-light);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.total-amount {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-gold);
}

.installments-highlight {
  background: var(--gold-light);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.inst-tag {
  font-weight: 700;
  color: var(--primary-gold-hover);
}

.inst-val {
  color: var(--text-dark);
}

.calc-perks-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-body);
  margin-bottom: 1.5rem;
}

.calc-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

/* ========================================================================== */
/* 8. Comparador Antes y Después                                              */
/* ========================================================================== */
.transformation-section {
  padding: 6rem 0;
  background: var(--bg-surface-alt);
}

.case-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.case-tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.case-tab-btn.active {
  background: var(--text-dark);
  color: #ffffff;
  border-color: var(--text-dark);
}

.transformation-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.split-image-container {
  position: relative;
  min-height: 420px;
  background: #1c1917;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
}

.split-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.layer-after {
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.case-visual-badge {
  position: absolute;
  top: 1.25rem;
  z-index: 10;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.before-badge {
  left: 1.25rem;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
}

.after-badge {
  right: 1.25rem;
  background: var(--primary-gold);
  color: #ffffff;
}

.case-canvas {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.canvas-before {
  background: linear-gradient(135deg, #2b2523 0%, #171514 100%);
}

.canvas-after {
  background: linear-gradient(135deg, #3d3129 0%, #1f1b19 100%);
}

.case-illustration {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-sketch {
  border: 1.5px dashed rgba(197, 155, 109, 0.4);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem;
  text-align: center;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.03);
}

.sketch-tag {
  color: #e7e5e4;
  font-size: 0.95rem;
  line-height: 1.5;
}

.split-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 40px;
  margin-left: -20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.handle-line {
  width: 2px;
  height: 100%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.handle-circle {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.case-dossier {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dossier-header {
  margin-bottom: 1.25rem;
}

.dossier-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
}

.dossier-doctor {
  font-size: 0.82rem;
  color: var(--primary-gold);
  font-weight: 600;
}

.dossier-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.dossier-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.meta-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* ========================================================================== */
/* 9. Equipo Médico & Tecnología                                              */
/* ========================================================================== */
.team-section {
  padding: 6rem 0;
  background: var(--bg-body);
}

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

.team-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-gold);
}

.doctor-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  border: 2px solid rgba(197, 155, 109, 0.3);
}

.doctor-badge-sis {
  background: var(--bg-dark);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.doctor-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
}

.doctor-spec {
  display: block;
  font-size: 0.85rem;
  color: var(--primary-gold);
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
}

.doctor-bio {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.doctor-creds {
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  margin-top: auto;
}

.tech-section {
  padding: 5rem 0;
  background: var(--bg-dark);
  color: var(--text-light);
}

.tech-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.tech-badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tech-item {
  background: var(--bg-dark-card);
  border: 1px solid rgba(197, 155, 109, 0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.tech-item strong {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.tech-item span {
  font-size: 0.75rem;
  color: #a8a29e;
}

/* ========================================================================== */
/* 10. Testimonios & FAQ                                                      */
/* ========================================================================== */
.testimonials-section {
  padding: 6rem 0;
  background: var(--bg-surface-alt);
}

.rating-badge-center {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 0.4rem 1.25rem;
  border-radius: var(--radius-full);
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.rating-badge-center .stars {
  color: #eab308;
  letter-spacing: 0.1em;
}

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

.review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.review-stars {
  color: #eab308;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.review-text {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.author-name {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.author-treatment {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.faq-section {
  padding: 6rem 0;
  background: var(--bg-body);
}

.faq-accordion-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.faq-item[open] {
  border-color: var(--primary-gold);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  cursor: pointer;
  list-style: none;
}

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

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--primary-gold);
  transition: var(--transition);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.75rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* ========================================================================== */
/* 11. Sedes & Contacto                                                       */
/* ========================================================================== */
.locations-section {
  padding: 6rem 0;
  background: var(--bg-surface-alt);
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.location-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}

.loc-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--gold-light);
  color: var(--primary-gold);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.loc-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.loc-address {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 1.25rem;
}

.loc-icon {
  width: 20px;
  height: 20px;
  color: var(--primary-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.loc-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-dark);
  margin-bottom: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.loc-details li span {
  color: var(--text-muted);
}

.loc-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

/* ========================================================================== */
/* 12. Footer                                                                 */
/* ========================================================================== */
.main-footer {
  background: var(--bg-dark);
  color: #a8a29e;
  padding: 5rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.brand-col .footer-about {
  font-size: 0.88rem;
  line-height: 1.65;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-dark-card);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--primary-gold);
  transform: translateY(-2px);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-links, .footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--primary-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  font-size: 0.82rem;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.vx1-platform-badge a {
  color: var(--primary-gold);
  font-weight: 600;
}

/* ========================================================================== */
/* 13. Modales (<dialog>)                                                     */
/* ========================================================================== */
.modal-dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  background: transparent;
  max-width: 680px;
  width: 90%;
  margin: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.modal-dialog::backdrop {
  background: rgba(15, 14, 13, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-surface-alt);
}

.modal-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-gold);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--text-dark);
  color: #ffffff;
}

.modal-body {
  padding: 2rem;
  max-height: 75vh;
  overflow-y: auto;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.field-input, .field-select, .field-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.field-input:focus, .field-select:focus, .field-textarea:focus {
  border-color: var(--primary-gold);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(197, 155, 109, 0.15);
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.slot-btn {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.slot-btn:hover {
  border-color: var(--primary-gold);
}

.slot-btn.active {
  background: var(--gold-gradient);
  color: #ffffff;
  border-color: transparent;
}

.modal-footer {
  margin-top: 1.5rem;
}

.form-feedback {
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.form-feedback.success {
  background: var(--bg-success);
  color: var(--color-success);
  border: 1px solid rgba(21, 128, 61, 0.2);
}

/* Portal Tabs */
.portal-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.portal-tab-btn {
  background: none;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.portal-tab-btn.active {
  color: var(--primary-gold);
  border-bottom-color: var(--primary-gold);
}

.portal-panel {
  display: none;
}

.portal-panel.active {
  display: block;
}

.appointment-item-card {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.app-code {
  font-family: monospace;
  font-weight: 700;
  color: var(--primary-gold);
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
}

.care-guide-box {
  background: var(--bg-surface-alt);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.care-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.care-list {
  list-style-position: inside;
  font-size: 0.88rem;
  color: var(--text-body);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Floating Widgets */
.floating-wa-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-wa);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: var(--transition);
}

.floating-wa-btn:hover {
  transform: scale(1.08);
}

.wa-tooltip {
  position: absolute;
  right: 70px;
  background: var(--bg-dark);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.floating-wa-btn:hover .wa-tooltip {
  opacity: 1;
}

.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: 0.75rem 1rem;
  z-index: 95;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

/* ========================================================================== */
/* 14. Responsive Queries                                                     */
/* ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .transformation-card {
    grid-template-columns: 1fr;
  }
  .split-image-container {
    min-height: 350px;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .tech-inner {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hide-mobile { display: none; }
  .hide-sm { display: none; }

  .topbar-content {
    justify-content: center;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem;
    display: none;
    box-shadow: var(--shadow-md);
  }

  .nav-menu.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .quiz-options-grid {
    grid-template-columns: 1fr;
  }

  .quiz-card {
    padding: 1.5rem;
  }

  .result-details-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .calc-pill-options {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .locations-grid {
    grid-template-columns: 1fr;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

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

  .floating-wa-btn {
    bottom: 5rem;
    right: 1.25rem;
  }

  .mobile-bottom-bar {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 0.75rem;
  }
}
