
/* ==========================================================================
   LUMINOUS ODONTOLOGÍA - ULTRA 3D MODERN MASTER STYLESHEET (PERFECT ALIGNMENT)
   ========================================================================== */

:root {
  --primary-cyan: #0EA5E9;
  --primary-cyan-deep: #0284C7;
  --primary-teal: #06B6D4;
  --accent-mint: #10B981;
  --accent-gold: #F59E0B;
  --accent-gold-glow: #FBBF24;
  --medical-dark: #070D1E;
  --medical-navy: #0F172A;
  --medical-surface: #1E293B;
  
  --bg-gradient-mesh: radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.12) 0px, transparent 50%),
                      radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.15) 0px, transparent 50%),
                      radial-gradient(at 50% 50%, rgba(248, 250, 252, 1) 0px, rgba(241, 245, 249, 1) 100%);
  
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 20px 50px -10px rgba(14, 165, 233, 0.12), 0 10px 20px -5px rgba(0, 0, 0, 0.04);
  --glass-dark-bg: rgba(15, 23, 42, 0.9);
  --glass-dark-border: rgba(255, 255, 255, 0.15);
  
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: #F8FAFC;
  background-image: var(--bg-gradient-mesh);
  background-attachment: fixed;
  color: #0F172A;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   1. 3D DENTAL PRELOADER
   ========================================================================== */
#dental-loader {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: radial-gradient(circle at center, #0F172A 0%, #070D1E 100%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}
#dental-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-tooth-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.loader-tooth-icon {
  font-size: 48px;
  background: linear-gradient(135deg, #38BDF8, #0EA5E9, #FBBF24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulseTooth 2s infinite ease-in-out;
  filter: drop-shadow(0 0 20px rgba(14, 165, 233, 0.8));
}
.loader-ring {
  position: absolute;
  top: -6px; left: -6px; right: -6px; bottom: -6px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--primary-cyan);
  border-right-color: var(--primary-teal);
  animation: spinRing 1.5s linear infinite;
}
.loader-ring-outer {
  position: absolute;
  top: -16px; left: -16px; right: -16px; bottom: -16px;
  border-radius: 50%;
  border: 2px dashed rgba(245, 158, 11, 0.4);
  animation: spinRingReverse 6s linear infinite;
}
.loader-brand-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.loader-brand-text span { color: var(--primary-cyan); }
.loader-subtext {
  font-size: 13px;
  color: #94A3B8;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.loader-progress-bar {
  width: 220px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.loader-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-cyan), var(--primary-teal), var(--accent-gold));
  border-radius: 10px;
  animation: fillProgress 1.2s forwards ease-in-out;
}

@keyframes pulseTooth {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(14, 165, 233, 0.6)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 30px rgba(14, 165, 233, 1)); }
}
@keyframes spinRing { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes spinRingReverse { 0% { transform: rotate(360deg); } 100% { transform: rotate(0deg); } }
@keyframes fillProgress { 0% { width: 0%; } 100% { width: 100%; } }

/* ==========================================================================
   2. GLASSMORPHISM & TEXTURED BACKGROUNDS
   ========================================================================== */
.textured-pattern-bg {
  background-image: radial-gradient(rgba(14, 165, 233, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
}
.glass-panel-dark {
  background: var(--glass-dark-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-dark-border);
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   3. HEADER & GLOW TOPBAR
   ========================================================================== */
.top-clinic-bar {
  background: linear-gradient(90deg, #070D1E, #0F172A, #070D1E);
  color: #E2E8F0;
  font-size: 13px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(14, 165, 233, 0.2);
}
.top-bar-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.top-bar-item i { color: var(--primary-cyan); font-size: 14px; }
.top-bar-item a { color: #FFFFFF; text-decoration: none; font-weight: 700; transition: color 0.2s; }
.top-bar-item a:hover { color: var(--primary-cyan); }
.top-badge-live {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--accent-mint);
  color: #34D399;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  background: #34D399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34D399;
  animation: pulseDot 1.5s infinite;
}
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* NAVBAR */
.site-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}
.header-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-logo:hover { transform: scale(1.03); }
.brand-logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.nav-menu a {
  color: var(--medical-navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  position: relative;
  transition: color 0.2s;
  padding: 6px 0;
}
.nav-menu a:hover { color: var(--primary-cyan); }

.btn-3d-glow {
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-teal) 100%);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-3d-glow:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 35px rgba(14, 165, 233, 0.5);
}
.btn-3d-wa {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-3d-wa:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 35px rgba(37, 211, 102, 0.5);
}

/* ==========================================================================
   4. HERO 3D DENTAL & PROPORTIONAL TITLE STYLING
   ========================================================================== */
.hero-3d-section {
  position: relative;
  padding: 80px 20px 90px;
  overflow: hidden;
}
.hero-bg-shapes {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}
.floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  animation: floatOrb 10s infinite alternate ease-in-out;
}
.orb-1 { width: 450px; height: 450px; background: rgba(14, 165, 233, 0.25); top: -80px; right: 5%; }
.orb-2 { width: 350px; height: 350px; background: rgba(6, 182, 212, 0.2); bottom: -50px; left: 5%; }
.orb-3 { width: 250px; height: 250px; background: rgba(245, 158, 11, 0.15); top: 30%; right: 40%; }

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -40px) scale(1.15); }
}

.hero-3d-container {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-pill-3d {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: var(--primary-cyan-deep);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.12);
  margin-bottom: 18px;
}
.hero-title-3d {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--medical-dark);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  word-break: normal;
  overflow-wrap: break-word;
}
.hero-title-3d span.gradient-text {
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-teal) 60%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}
.hero-desc-3d {
  font-size: 17px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* SECTION MASTER HEADINGS */
.section {
  padding: 70px 20px;
}
.container {
  max-width: 1320px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 44px;
}
.section-pill {
  display: inline-block;
  background: #E0F2FE;
  color: var(--primary-cyan-deep);
  padding: 5px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 900;
  color: var(--medical-dark);
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  word-break: normal;
  overflow-wrap: break-word;
}
.section-desc {
  font-size: 16px;
  color: #64748B;
  line-height: 1.6;
}

/* HERO 3D CARD */
.hero-card-viewport {
  perspective: 1200px;
  position: relative;
}
.hero-3d-card {
  background: #FFFFFF;
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 30px 80px -15px rgba(14, 165, 233, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hero-3d-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 90px -10px rgba(14, 165, 233, 0.3);
}
.hero-card-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 22px;
}
.hero-3d-badge-floating {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 12px 18px;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-3d-badge-floating i {
  font-size: 26px;
  color: var(--accent-mint);
}

/* BEFORE & AFTER SLIDER */
.ba-interactive-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 420px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.9);
  user-select: none;
  cursor: ew-resize;
}
.ba-img-layer {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
}
.ba-layer-after {
  background-image: url('/img/vlcsnap-2026-08-06-18h28m41s950.png');
}
.ba-layer-before {
  background-image: url('/img/vlcsnap-2026-08-06-18h29m19s704.png');
  width: 50%;
  border-right: 3px solid #FFFFFF;
  box-shadow: 5px 0 25px rgba(0,0,0,0.3);
}
.ba-slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cyan);
  font-size: 16px;
  pointer-events: none;
  z-index: 10;
}
.ba-tag {
  position: absolute;
  top: 18px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.ba-tag-before { left: 18px; }
.ba-tag-after { right: 18px; background: rgba(14, 165, 233, 0.9); }

/* 3D SERVICE CARDS */
.services-grid-3d {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card-3d {
  background: #FFFFFF;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.service-card-3d:hover {
  transform: translateY(-8px);
  border-color: var(--primary-cyan);
  box-shadow: 0 20px 45px rgba(14, 165, 233, 0.18);
}
.service-card-3d-img {
  height: 210px;
  position: relative;
  overflow: hidden;
}
.service-card-3d-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card-3d:hover .service-card-3d-img img {
  transform: scale(1.06);
}
.service-card-3d-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}
.service-icon-3d {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #E0F2FE, #BAE6FD);
  color: var(--primary-cyan-deep);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.service-card-3d h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--medical-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}
.service-card-3d p {
  font-size: 14px;
  color: #64748B;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* TIMELINE DE FASES CLÍNICAS */
.phases-timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.phase-card-3d {
  background: #FFFFFF;
  border-radius: 22px;
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.05);
  position: relative;
  transition: all 0.3s ease;
}
.phase-card-3d:hover {
  transform: translateY(-5px);
  border-color: var(--primary-cyan);
  box-shadow: 0 15px 35px rgba(14, 165, 233, 0.15);
}
.phase-step-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-teal));
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* ACORDEÓN DE PREGUNTAS FRECUENTES (FAQ) */
.faq-accordion-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.faq-item-3d {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}
.faq-item-3d:hover {
  border-color: var(--primary-cyan);
}
.faq-question-btn {
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--medical-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-answer-content {
  padding: 0 24px 20px;
  font-size: 15px;
  color: #64748B;
  line-height: 1.7;
}

/* QUIZ / SIMULATOR */
.quiz-container-3d {
  background: linear-gradient(135deg, #070D1E 0%, #0F172A 100%);
  color: #FFFFFF;
  border-radius: 28px;
  padding: 44px;
  box-shadow: 0 30px 80px rgba(7, 13, 30, 0.35);
  border: 1px solid rgba(14, 165, 233, 0.3);
  position: relative;
  overflow: hidden;
}
.quiz-glow {
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.35), transparent 70%);
  pointer-events: none;
}
.quiz-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-3d-container { grid-template-columns: 1fr; }
  .services-grid-3d { grid-template-columns: repeat(2, 1fr); }
  .phases-timeline-grid { grid-template-columns: repeat(2, 1fr); }
  .quiz-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .services-grid-3d { grid-template-columns: 1fr; }
  .phases-timeline-grid { grid-template-columns: 1fr; }
  .ba-interactive-container { height: 280px; }
  .quiz-container-3d { padding: 26px 18px; }
}
