/* ==========================================================================
   SMILE+ ORTODONCIA CLÍNICA - DESIGN SYSTEM & STYLES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  /* Color Palette */
  --primary: #1760ec;
  --primary-dark: #0f4bcc;
  --primary-light: #3d7eff;
  --primary-soft: #edf4ff;
  --primary-glow: rgba(23, 96, 236, 0.25);
  
  --secondary: #00d2b5;
  --accent: #38bdf8;
  
  --navy-950: #060d1d;
  --navy-900: #0b152d;
  --navy-850: #0f1d3c;
  --navy-800: #14244b;
  --navy-700: #1e3568;
  
  --dark: #0f172a;
  --slate-800: #1e293b;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  
  --white: #ffffff;
  --bg-light: #f5f8fc;
  --bg-card: #ffffff;
  
  /* Typography */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(23, 96, 236, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.1), 0 10px 15px -5px rgba(23, 96, 236, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  --shadow-glow: 0 12px 30px rgba(23, 96, 236, 0.28);
  
  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Container */
  --container-max: 1240px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--slate-600);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--slate-500);
  max-width: 580px;
  margin: 0 auto;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(23, 96, 236, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(23, 96, 236, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background-color: var(--primary-soft);
  border-color: rgba(23, 96, 236, 0.3);
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.btn-white:hover {
  background-color: #f8fafc;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.875rem;
}

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

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: rgba(23, 96, 236, 0.08);
  color: var(--primary);
  border: 1px solid rgba(23, 96, 236, 0.16);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
  padding: 1.1rem 0;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 0.75rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(23, 96, 236, 0.3);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-name span {
  color: var(--primary);
}

.brand-tagline {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--slate-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate-600);
  position: relative;
  padding: 0.3rem 0;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--slate-100);
  padding: 8px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-mobile-cta {
  display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  padding-top: 8.5rem;
  padding-bottom: 4.5rem;
  background: radial-gradient(circle at 80% 20%, rgba(23, 96, 236, 0.07) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(56, 189, 248, 0.06) 0%, transparent 50%),
              var(--bg-light);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 3.5rem;
  margin-bottom: 4.5rem;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--dark);
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--primary);
}

.hero-desc {
  font-size: 1.12rem;
  color: var(--slate-600);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 2.25rem;
}

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

.hero-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-socials-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--slate-400);
  text-transform: uppercase;
}

.social-icons-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  border: 1px solid var(--slate-200);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-600);
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Hero Visual Showcase */
.hero-visual-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-orbit-glow {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 96, 236, 0.16) 0%, rgba(56, 189, 248, 0.08) 45%, transparent 70%);
  filter: blur(25px);
  z-index: 1;
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

.hero-orbit-ring {
  position: absolute;
  border: 1.5px dashed rgba(23, 96, 236, 0.22);
  border-radius: 50%;
  z-index: 1;
}

.hero-orbit-ring-1 {
  width: 480px;
  height: 480px;
  animation: rotateRing 35s linear infinite;
}

.hero-orbit-ring-2 {
  width: 360px;
  height: 360px;
  border-style: dotted;
  border-color: rgba(56, 189, 248, 0.28);
  animation: rotateRingRev 25s linear infinite;
}

.hero-image-box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
}

.hero-image-box img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 35px rgba(23, 96, 236, 0.14));
  animation: floatTooth 5s ease-in-out infinite;
}

/* Floating Feature Badges */
.floating-badge {
  position: absolute;
  z-index: 4;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.09), 0 2px 6px rgba(23, 96, 236, 0.06);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform var(--transition-normal);
}

.floating-badge:hover {
  transform: translateY(-4px) scale(1.02);
}

.badge-icon-box {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-texts {
  display: flex;
  flex-direction: column;
}

.badge-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.badge-desc {
  font-size: 0.72rem;
  color: var(--slate-500);
}

.badge-top-left {
  top: 8%;
  left: 2%;
  animation: floatSlow 6s ease-in-out infinite 0.5s;
}

.badge-middle-right {
  top: 25%;
  right: -5%;
  animation: floatSlow 7s ease-in-out infinite 1.2s;
}

.badge-bottom-left {
  bottom: 8%;
  left: 6%;
  animation: floatSlow 6.5s ease-in-out infinite 2s;
}

/* Stats Counter Banner */
.stats-banner-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2.5rem;
  box-shadow: 0 12px 35px -5px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(23, 96, 236, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 3;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.stat-item:not(:last-child) {
  border-right: 1px solid var(--slate-200);
  padding-right: 1.5rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-number {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--slate-500);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* ==========================================================================
   SECTION: ¿QUÉ TE GUSTARÍA MEJORAR? (TREATMENT GOALS)
   ========================================================================== */

.goals-section {
  background: var(--white);
  padding: 5rem 0;
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.goal-card {
  background: var(--bg-light);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.goal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.goal-card:hover,
.goal-card.active {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 14px 30px rgba(23, 96, 236, 0.1);
  transform: translateY(-6px);
}

.goal-card:hover::before,
.goal-card.active::before {
  opacity: 1;
}

.goal-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-normal);
}

.goal-card:hover .goal-icon-box,
.goal-card.active .goal-icon-box {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(23, 96, 236, 0.3);
}

.goal-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.goal-desc {
  font-size: 0.84rem;
  color: var(--slate-500);
  line-height: 1.45;
}

/* ==========================================================================
   SECTION: TRATAMIENTOS (INTERACTIVE SHOWCASE)
   ========================================================================== */

.treatments-section {
  background: var(--bg-light);
  padding: 5.5rem 0;
}

.treatments-container {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2rem;
  align-items: stretch;
}

/* Left Sidebar Tab List */
.treatment-sidebar {
  background: linear-gradient(145deg, #1341c2 0%, #1754e0 100%);
  border-radius: var(--radius-xl);
  padding: 2.5rem 1.75rem;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 40px rgba(19, 65, 194, 0.25);
  position: relative;
  overflow: hidden;
}

.treatment-sidebar::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.sidebar-heading-wrap {
  margin-bottom: 2rem;
}

.sidebar-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.sidebar-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  margin-top: 0.35rem;
}

.treatment-tabs-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  transition: all var(--transition-normal);
  position: relative;
}

.tab-btn .tab-num {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.15);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  transform: translateX(4px);
}

.tab-btn.active {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: translateX(6px);
}

.tab-btn.active .tab-num {
  background: var(--primary-soft);
  color: var(--primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid var(--white);
}

/* Right Content Showcase Card */
.treatment-display-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 3rem;
  position: relative;
}

.tab-content-panel {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.tab-content-panel.active {
  display: contents;
}

.tab-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tab-badge-num {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.tab-heading {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.tab-desc {
  font-size: 0.98rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.tab-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.feature-check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
}

.feature-check-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.tab-visual-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tab-image-container {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(23, 96, 236, 0.12);
  background: radial-gradient(circle, rgba(23, 96, 236, 0.05) 0%, transparent 70%);
}

.tab-image-container img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.treatment-display-card:hover .tab-image-container img {
  transform: scale(1.04);
}

.tab-arrows-nav {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

.arrow-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.arrow-circle-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: scale(1.05);
}

/* ==========================================================================
   SECTION: ASÍ FUNCIONA TU TRATAMIENTO (STEP BY STEP)
   ========================================================================== */

.process-section {
  background: var(--white);
  padding: 5.5rem 0;
}

.process-steps-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process-steps-track::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: repeating-linear-gradient(to right, rgba(23, 96, 236, 0.25) 0, rgba(23, 96, 236, 0.25) 8px, transparent 8px, transparent 16px);
  z-index: 1;
}

.process-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-icon-outer {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--primary-soft);
  box-shadow: 0 8px 20px rgba(23, 96, 236, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.25rem;
  transition: all var(--transition-normal);
  position: relative;
}

.step-number-tag {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

.process-step-item:hover .step-icon-outer {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(23, 96, 236, 0.2);
  background: var(--primary-soft);
}

.step-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--slate-500);
  line-height: 1.5;
  padding: 0 0.5rem;
}

/* ==========================================================================
   SECTION: CASOS REALES, RESULTADOS REALES (BEFORE / AFTER COMPARISON)
   ========================================================================== */

.results-section {
  background: var(--bg-light);
  padding: 5.5rem 0;
}

.results-interactive-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.07);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

/* Comparison Image Split Slider */
.before-after-container {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  user-select: none;
  cursor: ew-resize;
  touch-action: pan-y;
  --ba-pos: 50%;
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.ba-image-before {
  z-index: 1;
}

.ba-image-after-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  clip-path: inset(0 calc(100% - var(--ba-pos, 50%)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--ba-pos, 50%)) 0 0);
}

.ba-image-after-wrap .ba-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos, 50%);
  width: 3px;
  background: var(--white);
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.ba-handle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  border: 2px solid var(--primary);
  pointer-events: auto;
  cursor: ew-resize;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.before-after-container:hover .ba-handle-btn,
.before-after-container:active .ba-handle-btn {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 150, 175, 0.35);
}

.ba-tag {
  position: absolute;
  bottom: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 4;
  pointer-events: none;
}

.ba-tag-before {
  left: 1rem;
}

.ba-tag-after {
  right: 1rem;
}

/* Case Details Info */
.case-details-wrap {
  display: flex;
  flex-direction: column;
}

.case-num-tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.case-heading {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.case-specs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.case-spec-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.95rem;
}

.case-spec-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.case-spec-label {
  font-weight: 700;
  color: var(--dark);
  min-width: 85px;
}

.case-spec-val {
  color: var(--slate-600);
}

.case-pagination-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.dot-btn {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--slate-200);
  transition: all var(--transition-fast);
  border: none;
  padding: 0;
}

.dot-btn.active {
  width: 24px;
  border-radius: var(--radius-full);
  background: var(--primary);
}

/* ==========================================================================
   SECTION: TECNOLOGÍA QUE MARCA LA DIFERENCIA (DARK TECH SECTION)
   ========================================================================== */

.tech-section {
  background: radial-gradient(circle at 90% 10%, #173b8a 0%, transparent 60%),
              radial-gradient(circle at 10% 90%, #0c2763 0%, transparent 50%),
              var(--navy-950);
  color: var(--white);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.tech-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  pointer-events: none;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.tech-intro-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tech-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.tech-desc {
  font-size: 1.05rem;
  color: var(--slate-400);
  line-height: 1.65;
  margin-bottom: 2.25rem;
}

.tech-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.tech-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tech-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(56, 189, 248, 0.15);
  transform: translateY(-5px);
}

.tech-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(23, 96, 236, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all var(--transition-normal);
}

.tech-card:hover .tech-icon-box {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 0 18px rgba(23, 96, 236, 0.6);
}

.tech-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.tech-card-desc {
  font-size: 0.85rem;
  color: var(--slate-400);
  line-height: 1.5;
}

/* ==========================================================================
   SECTION: CONOCE A TU ESPECIALISTA (DOCTOR & CLINIC GALLERY)
   ========================================================================== */

.specialist-section {
  background: var(--white);
  padding: 6rem 0;
}

.specialist-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.doctor-profile-card {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.doctor-photo-wrap {
  width: 210px;
  height: 290px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.doctor-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-info-wrap {
  display: flex;
  flex-direction: column;
}

.doctor-title-pill {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.doctor-name {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
  margin-bottom: 0.2rem;
}

.doctor-role {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate-500);
  margin-bottom: 1rem;
}

.doctor-bio {
  font-size: 0.92rem;
  color: var(--slate-600);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.doctor-credentials-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
}

.credential-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Clinic Photos Grid */
.clinic-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.gallery-photo-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  height: 160px;
  position: relative;
}

.gallery-photo-box.large {
  grid-column: span 2;
  height: 190px;
}

.gallery-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-photo-box:hover img {
  transform: scale(1.06);
}

/* ==========================================================================
   SECTION: PLANES QUE SE ADAPTAN A TI (PRICING & SIMULATOR)
   ========================================================================== */

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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  transition: all var(--transition-normal);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(23, 96, 236, 0.1);
  border-color: rgba(23, 96, 236, 0.3);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 20px 45px rgba(23, 96, 236, 0.14);
}

.pricing-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(23, 96, 236, 0.3);
}

.plan-header {
  margin-bottom: 1.5rem;
}

.plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.plan-subtitle {
  font-size: 0.85rem;
  color: var(--slate-500);
}

.plan-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate-600);
}

.plan-feature-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.plan-price-wrap {
  border-top: 1px solid var(--slate-100);
  padding-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.price-prefix {
  font-size: 0.75rem;
  color: var(--slate-400);
  text-transform: uppercase;
  font-weight: 600;
}

.price-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
}

.price-period {
  font-size: 0.85rem;
  color: var(--slate-500);
  font-weight: 500;
}

/* Simulator Card in Pricing */
.simulator-card {
  background: linear-gradient(160deg, #f0f7ff 0%, #e6f0fa 100%);
  border: 1.5px dashed rgba(23, 96, 236, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.simulator-card:hover {
  border-color: var(--primary);
  box-shadow: 0 16px 36px rgba(23, 96, 236, 0.12);
  transform: translateY(-8px);
}

.simulator-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.35rem;
}

.simulator-desc {
  font-size: 0.85rem;
  color: var(--slate-600);
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.simulator-img-box {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
}

.simulator-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(23, 96, 236, 0.15));
}

/* ==========================================================================
   SECTION: LO QUE DICEN NUESTROS PACIENTES (TESTIMONIALS)
   ========================================================================== */

.testimonials-section {
  background: var(--navy-950);
  color: var(--white);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.testimonials-title-wrap .section-title {
  color: var(--white);
}

.testimonials-title-wrap .section-subtitle {
  color: var(--slate-400);
}

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

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-6px);
}

.stars-row {
  display: flex;
  gap: 3px;
  color: #fbbf24;
  margin-bottom: 1.25rem;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1.75rem;
}

.testimonial-author-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
}

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

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
}

.author-treatment {
  font-size: 0.75rem;
  color: var(--slate-400);
}

.author-mini-ba {
  width: 60px;
  height: 34px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.author-mini-ba img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonials-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ==========================================================================
   SECTION: PREGUNTAS FRECUENTES (FAQ & 3D TOOTH)
   ========================================================================== */

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

.faq-layout-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.faq-accordion-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.faq-card-item {
  background: var(--bg-light);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-card-item.active {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 6px 18px rgba(23, 96, 236, 0.08);
}

.faq-question-btn {
  width: 100%;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
}

.faq-icon-toggle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-card-item.active .faq-icon-toggle {
  transform: rotate(45deg);
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.faq-answer-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 1.25rem;
}

.faq-card-item.active .faq-answer-wrap {
  max-height: 300px;
  padding: 0 1.25rem 1.25rem 1.25rem;
}

.faq-answer-text {
  font-size: 0.88rem;
  color: var(--slate-600);
  line-height: 1.55;
  border-top: 1px solid var(--slate-100);
  padding-top: 0.75rem;
}

.faq-visual-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-visual-wrap img {
  width: 100%;
  max-width: 320px;
  animation: floatTooth 6s ease-in-out infinite;
}

/* ==========================================================================
   CALL TO ACTION BANNER
   ========================================================================== */

.cta-banner-section {
  padding: 2rem 0 5rem;
  background: var(--white);
}

.cta-banner-card {
  background: linear-gradient(135deg, #1346d8 0%, #1a56f0 50%, #206aff 100%);
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  color: var(--white);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2.5rem;
  align-items: center;
  box-shadow: 0 25px 60px -15px rgba(23, 96, 236, 0.4);
  position: relative;
  overflow: hidden;
}

.cta-banner-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.cta-tooth-graphic {
  width: 110px;
  flex-shrink: 0;
}

.cta-tooth-graphic img {
  width: 100%;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.cta-text-content {
  display: flex;
  flex-direction: column;
}

.cta-heading {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.cta-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 500px;
}

.cta-action-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta-channels-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.cta-channel-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-fast);
}

.cta-channel-link:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--navy-950);
  color: var(--slate-400);
  padding: 5rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.35fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand-wrap {
  display: flex;
  flex-direction: column;
}

.footer-brand-wrap .brand-name {
  color: var(--white);
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 1.25rem 0 1.5rem;
  color: var(--slate-400);
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--slate-500);
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link-item a {
  font-size: 0.88rem;
  color: var(--slate-400);
  transition: all var(--transition-fast);
}

.footer-link-item a:hover {
  color: var(--white);
  transform: translateX(3px);
  display: inline-block;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--slate-400);
}

.contact-info-row svg {
  color: var(--primary-light);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ==========================================================================
   MODALS (APPOINTMENT BOOKING & TREATMENT SIMULATOR)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 13, 29, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.92) translateY(20px);
  transition: all var(--transition-normal);
}

.modal-backdrop.open .modal-box {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--slate-100);
  color: var(--slate-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--slate-200);
  color: var(--dark);
}

.modal-header {
  margin-bottom: 2rem;
  text-align: center;
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.modal-subtitle {
  font-size: 0.92rem;
  color: var(--slate-500);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--slate-200);
  background: var(--bg-light);
  color: var(--dark);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Simulator Quiz UI */
.quiz-step {
  display: none;
}

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

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.quiz-opt-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--slate-200);
  background: var(--bg-light);
  color: var(--dark);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  transition: all var(--transition-fast);
}

.quiz-opt-btn:hover,
.quiz-opt-btn.selected {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateX(4px);
}

.quiz-result-box {
  background: var(--primary-soft);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.quiz-result-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.quiz-result-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.metric-box {
  background: var(--white);
  padding: 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
}

.metric-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
}

.metric-name {
  font-size: 0.75rem;
  color: var(--slate-500);
  text-transform: uppercase;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

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

@keyframes floatTooth {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.08); opacity: 1; }
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateRingRev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1080px) {
  .hero-grid,
  .tech-grid,
  .specialist-grid,
  .faq-layout-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .treatments-container {
    grid-template-columns: 1fr;
  }

  .treatment-display-card {
    grid-template-columns: 1fr;
  }

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

  .goals-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .cta-banner-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-tooth-graphic {
    margin: 0 auto;
  }

  .cta-action-wrap {
    margin-top: 1.5rem;
  }

  .cta-channels-list {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 820px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right var(--transition-normal);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-menu.open {
    right: 0;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-mobile-cta {
    display: inline-flex;
    width: 100%;
    margin-top: 1.5rem;
  }

  .nav-actions {
    gap: 0.6rem;
  }

  .stats-banner-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .stat-item:nth-child(2) {
    border-right: none;
    padding-right: 0;
  }

  .process-steps-track {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .process-steps-track::before {
    display: none;
  }

  .results-interactive-card {
    grid-template-columns: 1fr;
    padding: 1.75rem;
    gap: 2rem;
  }

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

  .faq-accordion-wrap {
    grid-template-columns: 1fr;
  }

  .doctor-profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .doctor-credentials-list {
    align-items: center;
  }

  .treatment-display-card {
    padding: 2rem;
  }

  .cta-banner-card {
    padding: 2.5rem 1.75rem;
  }
}

@media (max-width: 600px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .section-title-wrap {
    margin-bottom: 2.5rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  /* Reduce vertical rhythm across sections on small screens */
  .goals-section,
  .treatments-section,
  .process-section,
  .results-section,
  .tech-section,
  .specialist-section,
  .pricing-section,
  .testimonials-section,
  .faq-section {
    padding: 3.5rem 0;
  }

  .cta-banner-section {
    padding: 1.5rem 0 3.5rem;
  }

  .site-footer {
    padding: 3.5rem 0 2rem;
  }

  /* Hero */
  .hero-section {
    padding-top: 7rem;
    padding-bottom: 3rem;
  }

  .hero-title {
    font-size: 2.35rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-grid {
    margin-bottom: 3rem;
    gap: 2.5rem;
  }

  .hero-visual-wrap {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-orbit-glow,
  .hero-orbit-ring {
    display: none;
  }

  .hero-image-box {
    order: -1;
    max-width: 240px;
  }

  .floating-badge {
    position: static;
    animation: none !important;
    width: 100%;
    max-width: 320px;
  }

  .stats-banner-card {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .stat-item {
    border-right: none !important;
    padding-right: 0 !important;
  }

  /* Goals */
  .goals-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Treatments */
  .treatment-sidebar {
    padding: 2rem 1.5rem;
  }

  .treatment-display-card {
    padding: 1.5rem;
    gap: 2rem;
  }

  .tab-heading {
    font-size: 1.6rem;
  }

  .tab-image-container img {
    height: 220px;
  }

  /* Process */
  .step-desc {
    padding: 0;
  }

  /* Results / Casos */
  .results-interactive-card {
    padding: 1.25rem;
  }

  .before-after-container {
    height: 260px;
  }

  .case-heading {
    font-size: 1.5rem;
  }

  /* Tech */
  .tech-title {
    font-size: 2rem;
  }

  .tech-cards-grid {
    grid-template-columns: 1fr;
  }

  /* Specialist */
  .doctor-photo-wrap {
    width: 180px;
    height: 240px;
  }

  .clinic-gallery-grid {
    gap: 1rem;
  }

  .gallery-photo-box {
    height: 130px;
  }

  .gallery-photo-box.large {
    height: 150px;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 1.5rem;
  }

  /* FAQ */
  .faq-visual-wrap img {
    max-width: 220px;
  }

  /* CTA banner */
  .cta-heading {
    font-size: 1.75rem;
  }

  .cta-channels-list {
    gap: 1rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Forms & Modals */
  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-box {
    padding: 1.75rem 1.5rem;
  }

  .modal-title {
    font-size: 1.4rem;
  }

  .quiz-result-metrics {
    gap: 0.75rem;
  }
}

@media (max-width: 420px) {
  .brand-tagline {
    display: none;
  }

  .nav-actions > .btn-primary {
    display: none;
  }

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

  .hero-title {
    font-size: 2rem;
  }

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

  .quiz-opt-btn {
    padding: 0.9rem 1rem;
    font-size: 0.88rem;
  }

  .cta-tooth-graphic {
    width: 80px;
  }
}
