/* 21st.dev inspired UI UX Pro Max Design System */

img {
  max-width: 100%;
  height: auto;
}

:root {
  /* Dynamic OKLCH Premium Colors */
  --brand-primary: oklch(25% 0.085 245);       /* Deep Elite Navy */
  --brand-primary-light: oklch(35% 0.1 245);
  --brand-accent: oklch(65% 0.155 165);        /* Neon Teal / Mint Glow */
  --brand-accent-glow: oklch(65% 0.155 165 / 30%);
  
  --bg-base: oklch(98% 0.005 240);             /* Frosted Off-White */
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-muted: oklch(96% 0.008 240);
  --border-light: rgba(15, 23, 42, 0.08);
  
  --text-primary: oklch(15% 0.02 245);
  --text-muted: oklch(45% 0.015 245);
  --text-on-brand: oklch(98% 0.005 245);
  
  --border-glass: rgba(255, 255, 255, 0.5);
  
  --shadow-glow: 0 0 20px var(--brand-accent-glow);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  --shadow-card-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
  
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-full: 9999px;
  --radius-lg: 32px;
  --radius-pill: 100px;
  
  --transition-bouncy: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  --font-headers: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}
body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(at 0% 0%, oklch(95% 0.02 240) 0px, transparent 50%),
    radial-gradient(at 100% 0%, oklch(95% 0.05 165) 0px, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-headers); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
a { text-decoration: none; color: inherit; }

/* Utilities */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Header Glassmorphism */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 92px; }

/* Brand Logo Styling */
.brand-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition-smooth);
}
.brand-logo-link:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 16px rgba(43, 76, 126, 0.25));
}
.brand-logo-img {
  height: 72px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  display: block;
}
.logo-text { font-family: var(--font-headers); font-weight: 800; font-size: 1.5rem; color: var(--brand-primary); letter-spacing: -0.03em; display: inline-flex; align-items: center; }
.logo-text span { color: var(--brand-accent); }
.logo-text img { height: 72px; width: auto; max-width: 320px; object-fit: contain; display: block; }

.footer-logo-link {
  display: inline-block;
  margin-bottom: 20px;
  text-decoration: none;
  transition: var(--transition-smooth);
}
.footer-logo-link:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 16px rgba(56, 189, 248, 0.3));
}
.footer-logo-img {
  height: 76px;
  width: auto;
  max-width: 340px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.4));
}
.nav-menu { display: flex; gap: 32px; list-style: none; }
.nav-link { font-weight: 600; font-size: 0.95rem; color: var(--text-muted); position: relative; padding: 8px 0; transition: var(--transition-smooth); }
.nav-link:hover, .nav-link.active { color: var(--brand-primary); }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 3px; background-color: var(--brand-accent); border-radius: 3px; transition: var(--transition-smooth); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px; font-family: var(--font-headers); font-weight: 700;
  border-radius: var(--radius-pill); transition: var(--transition-bouncy); cursor: pointer; border: none; font-size: 1rem;
}
.btn-primary { background-color: var(--brand-primary); color: var(--text-on-brand); box-shadow: 0 8px 20px -6px var(--brand-primary); }
.btn-primary:hover { transform: translateY(-4px); box-shadow: 0 12px 24px -8px var(--brand-primary); background-color: var(--brand-primary-light); }
.btn-accent { background: linear-gradient(135deg, var(--brand-accent), oklch(75% 0.155 145)); color: var(--brand-primary); box-shadow: var(--shadow-glow); }
.btn-accent:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 0 30px var(--brand-accent-glow); }
.btn-outline { background: rgba(255, 255, 255, 0.2); color: var(--text-on-brand); border: 1px solid rgba(255, 255, 255, 0.3); padding: 14px 30px; backdrop-filter: blur(5px); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.3); transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.5); }

/* Hero Section with tsParticles */
.hero {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
  background: var(--brand-primary); /* Dark background for particles */
  color: white;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.hero-content { animation: fadeUp 1s ease-out; }
.hero-subtitle { display: inline-block; padding: 8px 16px; background: rgba(56, 189, 248, 0.1); color: #38bdf8; font-weight: 700; border-radius: var(--radius-pill); font-size: 0.9rem; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 1.5px; border: 1px solid rgba(56, 189, 248, 0.3); }
.hero-title { font-size: 4rem; margin-bottom: 24px; background: linear-gradient(135deg, #fff, #a5f3fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.1; }
.hero-description { font-size: 1.25rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 40px; max-width: 500px; font-weight: 400; line-height: 1.7; }
.hero-actions { display: flex; gap: 20px; }

/* Interactive Callout in Hero */
.hero-interactive-callout {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}
.glow-box {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
}
.glow-box h3 { color: #fff; font-size: 1.5rem; margin-bottom: 12px; }
.glow-box p { color: rgba(255,255,255,0.6); font-size: 1rem; margin-bottom: 24px; }
.mouse-icon {
  font-size: 3rem;
  animation: sway 3s ease-in-out infinite alternate;
}

/* Certifications Bar */
.cert-bar { padding: 40px 0; background: var(--bg-glass); backdrop-filter: blur(10px); border-top: 1px solid var(--border-glass); border-bottom: 1px solid var(--border-glass); overflow: hidden; }
.cert-grid { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.cert-item { display: flex; align-items: center; gap: 12px; font-family: var(--font-headers); font-weight: 700; color: var(--text-muted); font-size: 1.1rem; }
.cert-icon { color: var(--brand-accent); font-size: 1.5rem; }

/* Shared Sections */
.section { padding: 120px 0; position: relative; }
.section-dark { background: url('../img/bg.jpg') center/cover no-repeat; color: white; position: relative; }
.section-dark::before { content: ''; position: absolute; inset: 0; background: rgba(10, 15, 36, 0.85); backdrop-filter: blur(5px); }
.section-dark .container { position: relative; z-index: 2; }
.section-dark .section-title { color: white; -webkit-text-fill-color: white; }
.section-dark .section-desc { color: oklch(80% 0.02 245); }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 80px; }
.section-tag { display: inline-block; padding: 8px 16px; background: var(--brand-accent-glow); color: var(--brand-primary); font-weight: 700; border-radius: var(--radius-pill); font-size: 0.85rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.section-dark .section-tag { background: rgba(255,255,255,0.1); color: var(--brand-accent); }
.section-title { font-size: 3rem; margin-bottom: 24px; }
.section-desc { color: var(--text-muted); font-size: 1.15rem; line-height: 1.7; }

/* Categorized Procedures Grid */
.proc-category { margin-bottom: 60px; }
.proc-category-title { font-size: 2rem; margin-bottom: 30px; border-bottom: 2px solid var(--brand-accent); padding-bottom: 10px; display: inline-block; }
.section-dark .proc-category-title { color: white; border-color: var(--brand-accent); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px; }

/* 21st.dev Style Spotlight Cards */
.spotlight-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.spotlight-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(
    800px circle at var(--mouse-x) var(--mouse-y),
    rgba(56, 189, 248, 0.06), /* Glow color */
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 0;
  pointer-events: none;
}
.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0px;
  border-radius: inherit;
  padding: 2px;
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y),
    rgba(56, 189, 248, 0.4), /* Border glow color */
    transparent 40%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 1;
}

.spotlight-card:hover {
  transform: translateY(-5px);
}
.spotlight-card:hover::before, .spotlight-card:hover::after {
  opacity: 1;
}

/* Base card content needs higher z-index than pseudo-elements */
.spotlight-card > * { position: relative; z-index: 2; }

.section-dark .spotlight-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); color: white; }
.section-dark .card-desc { color: rgba(255,255,255,0.7); }
.section-dark .card-title { color: white; }
.section-dark .card-icon { background: rgba(255,255,255,0.05); color: var(--brand-accent); }

/* SVG Icons */
.card-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--brand-accent-glow); display: flex; align-items: center; justify-content: center; color: var(--brand-primary); margin-bottom: 24px; transition: var(--transition-bouncy); }
.spotlight-card:hover .card-icon { transform: scale(1.1); color: #38bdf8; }
.card-title { font-size: 1.5rem; margin-bottom: 16px; font-weight: 800; }
.card-desc { color: var(--text-muted); font-size: 1.05rem; flex-grow: 1; margin-bottom: 30px; }
.card-link { font-family: var(--font-headers); font-weight: 700; color: var(--brand-primary); display: inline-flex; align-items: center; gap: 8px; font-size: 1rem; }
.card-link i { transition: transform 0.3s; }
.card-link:hover i { transform: translateX(5px); }
.section-dark .card-link { color: var(--brand-accent); }

/* Modern Procedure Cards with HD Clinical Imagery */
.proc-card-modern {
  padding: 0 !important;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.proc-card-modern:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.2);
}
.card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #020617;
}
.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.proc-card-modern:hover .card-thumb-img {
  transform: scale(1.05);
}
.card-thumb-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  z-index: 2;
}
.card-body-content {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
  z-index: 2;
}
.card-body-content .card-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 800;
  line-height: 1.25;
}
.card-body-content .card-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Dedicated Blog Preview Cards on Homepage with High Contrast */
.blog-home-card {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35) !important;
}
.blog-home-card .card-title {
  color: #ffffff !important;
}
.blog-home-card .card-desc {
  color: #cbd5e1 !important;
}
.card-body-content .card-link {
  color: #38bdf8;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.card-body-content .card-link:hover {
  color: #7dd3fc;
  gap: 10px;
}

/* Blog Section */
.blog-tag { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; padding: 4px 12px; border-radius: var(--radius-pill); margin-bottom: 16px; display: inline-block; }
.blog-tag.pacientes { background: oklch(65% 0.155 155); color: white; }
.blog-tag.estudiantes { background: oklch(45% 0.1 200); color: white; }
.blog-tag.residentes { background: oklch(35% 0.085 245); color: white; }

/* Footer */
.site-footer { background-color: var(--brand-primary); color: var(--text-on-brand); padding: 100px 0 40px; position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; top: -50%; left: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%); border-radius: 50%; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 80px; position: relative; z-index: 2; }
.footer-brand h3 { font-size: 2rem; margin-bottom: 20px; color: white; }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 350px; }
.footer-links h4 { font-size: 1.25rem; margin-bottom: 24px; color: white; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.footer-links a { color: rgba(255,255,255,0.7); font-weight: 500; transition: var(--transition-smooth); }
.footer-links a:hover { color: var(--brand-accent); padding-left: 5px; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes float { 0% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(-15px) rotate(2deg); } 100% { transform: translateY(0px) rotate(0deg); } }
@keyframes sway { 0% { transform: translateX(-10px); } 100% { transform: translateX(10px); } }

/* Responsive */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-title { font-size: 3.2rem; }
  .hero-actions { justify-content: center; flex-wrap: wrap; }
  .hero-interactive-callout { margin-top: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
}

/* Mobile Navigation Toggle Button */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--brand-primary);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  z-index: 102;
  transition: background-color 0.2s ease;
}
.mobile-nav-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}
.mobile-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-container {
    height: 72px;
    padding: 0 16px;
    position: relative;
  }
  .brand-logo-img, .logo-text img {
    height: 44px;
    max-width: 170px;
  }
  .footer-logo-img {
    height: 52px;
    max-width: 220px;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 24px 20px 32px;
    gap: 12px;
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    z-index: 99;
  }
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link {
    font-size: 1.1rem;
    padding: 12px 16px;
    border-radius: 10px;
    display: block;
    width: 100%;
  }
  .nav-link:hover, .nav-link.active {
    background: rgba(56, 189, 248, 0.08);
  }
  .site-header .btn-primary {
    padding: 8px 14px;
    font-size: 0.82rem;
    white-space: nowrap;
  }
  .hero {
    padding: 110px 0 50px;
  }
  .hero-subtitle {
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    white-space: normal;
    text-align: center;
    max-width: 100%;
    line-height: 1.4;
    display: inline-block;
  }
  .hero-title {
    font-size: clamp(1.85rem, 6.2vw, 2.5rem);
    line-height: 1.15;
    word-break: break-word;
    overflow-wrap: break-word;
    margin-bottom: 18px;
  }
  .hero-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 28px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 55px 0;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .info-section {
    grid-template-columns: 1fr !important;
  }
}

/* Location Cards & Contact Section */
.info-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 32px;
}
.location-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}
.location-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.location-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.location-title {
  font-size: 1.35rem;
  color: var(--brand-primary);
  line-height: 1.2;
}
.location-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.98rem;
  flex-grow: 1;
}
.location-info strong {
  color: var(--text-primary);
}

/* Floating WhatsApp Quick Action */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: white;
  padding: 12px 20px 12px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.3);
  text-decoration: none;
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition-bouncy);
}
.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 32px -6px rgba(37, 211, 102, 0.65);
  color: white;
}
.floating-whatsapp svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .floating-whatsapp span { display: none; }
  .floating-whatsapp { padding: 14px; border-radius: 50%; bottom: 18px; right: 18px; }
}

/* --- High-End Surgical Laparoscopy Console & Simulator (21st.dev / Impeccable) --- */
.surgical-console-wrapper {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 40px rgba(56, 189, 248, 0.25);
  transition: var(--transition-smooth);
}
.surgical-console-wrapper:hover {
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7), 0 0 50px rgba(56, 189, 248, 0.4);
  border-color: rgba(56, 189, 248, 0.6);
}
.surgical-console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(10, 15, 30, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #94a3b8;
}
.surgical-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #38bdf8;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.surgical-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}
.surgical-media-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  overflow: hidden;
  cursor: crosshair;
}
.surgical-media-screen canvas,
.surgical-media-screen video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.surgical-console-toolbar {
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.surgical-mode-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.surgical-mode-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.surgical-mode-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #fff;
}
.surgical-mode-btn.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #fff;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}
.surgical-toggle-view {
  background: transparent;
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.surgical-toggle-view:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #fff;
}
.surgical-hint-text {
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
  padding: 8px 16px 12px;
  background: rgba(10, 15, 30, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Metric Stats Counter Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding: 40px 0;
  margin-top: -30px;
  position: relative;
  z-index: 10;
}
.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-headers);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Hero Media Display Content */
.hero-media-content {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease;
}

/* Surgeon Profile Section */
.surgeon-highlight-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.surgeon-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(10, 25, 45, 0.25);
  border: 1px solid var(--border-glass);
}
.surgeon-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.surgeon-floating-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  color: white;
  text-align: left;
}
.credential-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.credential-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-muted);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-primary);
}

/* Clinical Infographic Box */
.clinical-infographic-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 32px 0;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.clinical-infographic-box img {
  width: 100%;
  max-width: 650px;
  border-radius: var(--radius-md);
  margin: 0 auto 16px;
  display: block;
}
.clinical-infographic-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 900px) {
  .surgeon-highlight-grid {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
  .surgeon-floating-badge {
    position: relative;
    bottom: auto; left: auto; right: auto;
    margin-top: 16px;
  }
  .credential-pills {
    justify-content: center;
  }
}

/* --- $10,000 USD Elite Surgical Portal Components --- */

/* 1. Symptom Navigator */
.symptom-nav-wrapper {
  margin-top: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.symptom-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}
.symptom-tab-btn {
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.85);
  font-family: var(--font-headers);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.symptom-tab-btn:hover {
  background: oklch(94% 0.02 245);
  transform: translateY(-2px);
}
.symptom-tab-btn.active {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
  box-shadow: 0 4px 16px rgba(10, 25, 47, 0.25);
}
.symptom-panel {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}
.symptom-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
@media (max-width: 850px) {
  .symptom-panel.active {
    grid-template-columns: 1fr;
  }
}
.symptom-panel-img-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.symptom-panel-img-wrap img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.symptom-panel-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(8px);
  color: #38bdf8;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.symptom-panel-info h3 {
  font-size: 1.6rem;
  color: var(--brand-primary);
  margin-bottom: 12px;
}
.symptom-panel-info p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 20px;
}
.symptom-specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.symptom-specs-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}
.symptom-specs-list li svg {
  color: #059669;
  flex-shrink: 0;
}

/* 2. Patient Journey (4 Steps) */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 950px) {
  .journey-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .journey-grid {
    grid-template-columns: 1fr;
  }
}
.journey-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: var(--transition-smooth);
}
.journey-step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--brand-accent);
}
.journey-step-num {
  font-family: var(--font-headers);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(43, 76, 126, 0.18);
  line-height: 1;
  margin-bottom: 16px;
}
.journey-step-card:hover .journey-step-num {
  color: var(--brand-accent);
}
.journey-step-title {
  font-size: 1.25rem;
  color: var(--brand-primary);
  margin-bottom: 12px;
  font-weight: 700;
}
.journey-step-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 3. Ethical Philosophy & Insurance Banner */
.ethical-box {
  background: linear-gradient(135deg, oklch(22% 0.08 245) 0%, oklch(18% 0.07 245) 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: #fff;
  margin-top: 60px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 850px) {
  .ethical-box {
    grid-template-columns: 1fr;
    padding: 32px;
  }
}
.insurers-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.insurer-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* 4. FAQ Accordion (Universal Native HTML5 Details + Smooth Styling) */
.faq-accordion {
  max-width: 840px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item[open],
.faq-item.active {
  border-color: var(--brand-accent);
  box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.15);
}
.faq-header {
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brand-primary);
  font-family: var(--font-headers);
  list-style: none; /* Hide default native details arrow */
}
.faq-header::-webkit-details-marker,
.faq-header::marker {
  display: none;
}
.faq-header:hover {
  color: var(--brand-accent);
}
.faq-header > * {
  pointer-events: none;
}
.faq-chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item[open] .faq-chevron,
.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}
.faq-body {
  padding: 0 28px 24px;
  animation: fadeInFaq 0.25s ease;
}
.faq-body p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.98rem;
  margin: 0;
}

@keyframes fadeInFaq {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* 5. Luxury Clinical Case Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 40px;
}
@media (max-width: 850px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}
.testimonial-card-pro {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}
.testimonial-card-pro:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--brand-accent);
}
.testi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.testi-tag {
  background: oklch(93% 0.04 245);
  color: var(--brand-primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.testi-stars {
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 2px;
}
.testi-quote {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testi-author-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.testi-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-primary);
}
.testi-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Testimonials Category Filter */
.testi-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 24px;
}
.testi-filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.testi-filter-btn:hover {
  border-color: var(--brand-accent);
  color: #fff;
  transform: translateY(-1px);
}
.testi-filter-btn.active {
  background: var(--brand-accent);
  color: #041226;
  border-color: var(--brand-accent);
  font-weight: 700;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

/* --- Floating Dual Actions (WhatsApp & Chatbot) --- */
.floating-actions-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
}

.floating-chat-btn {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(56, 189, 248, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}
.floating-chat-btn:hover {
  transform: translateY(-3px);
  border-color: #38bdf8;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.4);
}
.floating-chat-btn svg {
  width: 22px;
  height: 22px;
  stroke: #38bdf8;
}

/* Redefine floating-whatsapp to sit inside or beside the bar smoothly */
.floating-actions-bar .floating-whatsapp {
  position: static;
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.5);
}

@media (max-width: 600px) {
  .floating-actions-bar {
    bottom: 16px;
    right: 16px;
    gap: 8px;
  }
  .floating-chat-btn span {
    display: none;
  }
  .floating-chat-btn {
    padding: 14px;
    border-radius: 50%;
  }
}

/* --- Intelligent Medical Chatbot Modal --- */
.dr-chat-modal {
  position: fixed;
  bottom: 86px;
  right: 24px;
  width: 390px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 120px);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.7), 0 0 35px rgba(56, 189, 248, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.dr-chat-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.chat-header {
  padding: 14px 18px;
  background: rgba(30, 41, 59, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-doctor-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-doctor-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #38bdf8;
  object-fit: cover;
}
.chat-doctor-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.chat-doctor-status {
  font-size: 0.74rem;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 5px;
}
.chat-doctor-status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}
.chat-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 1.4rem;
  line-height: 1;
  transition: color 0.2s;
}
.chat-close-btn:hover {
  color: #fff;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 88%;
}
.bot-msg {
  align-self: flex-start;
}
.user-msg {
  align-self: flex-end;
}
.bot-msg .msg-bubble {
  background: rgba(30, 41, 59, 0.9);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px 14px 14px 2px;
  padding: 12px 14px;
  font-size: 0.88rem;
  line-height: 1.55;
}
.user-msg .msg-bubble {
  background: #0284c7;
  color: #fff;
  border-radius: 14px 14px 2px 14px;
  padding: 10px 14px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.chat-cta-btn {
  display: block;
  margin-top: 10px;
  padding: 9px 12px;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
.chat-cta-btn:hover {
  background: #20ba5a;
  transform: translateY(-1px);
}
.chat-chips-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 23, 42, 0.7);
}
.chat-chip {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.chat-chip:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #fff;
  transform: translateY(-1px);
}
.chat-input-bar {
  padding: 10px 14px;
  background: rgba(30, 41, 59, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-input-field {
  flex: 1;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 0.86rem;
  color: #fff;
  outline: none;
}
.chat-input-field:focus {
  border-color: #38bdf8;
}
.chat-send-btn {
  background: #38bdf8;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #041226;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.chat-send-btn:hover {
  transform: scale(1.08);
}
/* Typing dots */
.typing .msg-bubble {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 10px 14px;
}
.typing-dot {
  width: 6px;
  height: 6px;
  background: #94a3b8;
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

/* ==========================================================================
   Interactive Maps & GPS Navigation System
   ========================================================================== */
.map-tabs-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.map-tab-btn {
  background: rgba(30, 41, 59, 0.88);
  border: 1px solid var(--border-glass);
  color: #e2e8f0;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}
.map-tab-btn:hover {
  color: #fff;
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(30, 41, 59, 1);
}
.map-tab-btn.active {
  background: var(--brand-accent);
  color: #0b1329;
  border-color: var(--brand-accent);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}
.map-panel {
  display: none;
  animation: fadeInMap 0.3s ease-in-out;
}
.map-panel.active {
  display: block;
}
@keyframes fadeInMap {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.interactive-map-wrap {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  background: #0f172a;
}
.interactive-map-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* GPS Navigation Action Buttons */
.gps-buttons-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.btn-nav-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.btn-waze {
  background: #33ccff;
  color: #03254c;
}
.btn-waze:hover {
  background: #5cd6ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(51, 204, 255, 0.4);
}
.btn-gmaps {
  background: #34a853;
  color: #ffffff;
}
.btn-gmaps:hover {
  background: #2ea04b;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(52, 168, 83, 0.4);
}
.btn-apple {
  background: #1e293b;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-apple:hover {
  background: #334155;
  transform: translateY(-2px);
}

/* Traffic Guidance Card */
.traffic-guide-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 16px;
}
.traffic-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  animation: pulseTraffic 1.8s infinite;
}
@keyframes pulseTraffic {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.route-steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 14px;
}
@media (max-width: 768px) {
  .route-steps-grid {
    grid-template-columns: 1fr;
  }
}
.route-step-item {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: 10px;
}
.route-step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-accent);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.route-step-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
}

/* --- Medical Societies & Authority Trust Showcase --- */
.medical-societies-section {
  padding: 50px 0 60px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.societies-title-wrap {
  text-align: center;
  margin-bottom: 32px;
}
.societies-title-wrap h3 {
  font-size: 1.5rem;
  color: var(--brand-primary);
  margin-bottom: 6px;
  font-weight: 800;
}
.societies-title-wrap p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}
.societies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  align-items: stretch;
}
.society-card {
  background: var(--bg-base);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.society-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-accent);
  box-shadow: 0 10px 24px -6px rgba(2, 132, 199, 0.15);
}
.society-logo-box {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.society-logo-box.dark-bg-logo {
  background: #081225;
}
.society-logo-img {
  max-width: 100%;
  max-height: 50px;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.society-card:hover .society-logo-img {
  transform: scale(1.05);
}
.society-abbr {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--brand-primary);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.society-role {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.society-name {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Official Credentials & Cédulas Banner */
.official-cedula-box {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.05), rgba(5, 150, 105, 0.05));
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: 16px;
  padding: 22px 28px;
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}
.cedula-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cedula-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.cedula-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--brand-primary);
  margin-bottom: 3px;
}
.cedula-text span {
  font-size: 0.84rem;
  color: var(--text-muted);
}
.cedula-text .cedula-tag,
.cedula-tag {
  display: inline-block;
  background: #0369a1;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: 700;
  font-family: monospace;
  font-size: 0.84rem;
  letter-spacing: 0.5px;
  margin-left: 4px;
}



/* Accessibility: visible keyboard focus and reduced motion */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[data-action]:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Keep the first section clear of the fixed header on phones */
@media (max-width: 768px) {
  body > section.section:first-of-type {
    padding-top: 100px;
  }
}

/* --- Call actions (floating button, hero line, practical info block) --- */
.floating-call {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0f172a;
  color: #fff;
  padding: 12px 20px 12px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.45);
  text-decoration: none;
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition-bouncy);
}
.floating-call:hover { transform: translateY(-4px); color: #fff; border-color: #38bdf8; }
.floating-call svg { width: 24px; height: 24px; fill: #38bdf8; flex-shrink: 0; }
@media (max-width: 600px) {
  .floating-call span { display: none; }
  .floating-call { padding: 14px; border-radius: 50%; left: 16px; bottom: 16px; }
}

.hero-call-line { margin-top: 16px; font-size: 0.95rem; color: #cbd5e1; }
.hero-call-line a { color: #fff; font-weight: 700; text-decoration: underline; }

.quick-info { padding: 36px 0 8px; background: var(--bg-base); }
.quick-info-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 20px; }
.quick-info-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}
.quick-info-item h3 { font-size: 1.1rem; color: var(--brand-primary); margin-bottom: 8px; }
.quick-info-item p { font-size: 0.93rem; color: var(--text-muted); line-height: 1.55; margin: 0; }
.quick-info-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.quick-info-actions .btn { padding: 10px 18px; font-size: 0.92rem; }
.btn-call { background: var(--brand-primary); color: #fff; border: 1px solid var(--brand-primary); }
.btn-call:hover { color: #fff; transform: translateY(-2px); }
.quick-info-link { display: inline-block; margin-top: 10px; font-size: 0.9rem; font-weight: 700; color: #0369a1; text-decoration: underline; }
@media (max-width: 900px) {
  .quick-info-grid { grid-template-columns: 1fr; gap: 12px; }
  .quick-info-item { padding: 18px 20px; }
}

/* --- Testimonials: first cards visible, the rest on demand (CSS only) --- */
.testi-more-toggle { position: absolute; opacity: 0; pointer-events: none; }
.testi-more-toggle:not(:checked) ~ .testi-filter-tabs { display: none; }
.testi-more-toggle:not(:checked) ~ .testimonials-grid .testimonial-card-pro:nth-child(n+5) { display: none !important; }
.testi-more-wrap { display: flex; justify-content: center; margin-top: 28px; }
.testi-more-label { cursor: pointer; background: transparent; color: var(--brand-primary); border: 1px solid rgba(15, 23, 42, 0.25); }
.testi-more-toggle:focus-visible ~ .testi-more-wrap .testi-more-label { outline: 2px solid #0284c7; outline-offset: 3px; }
.testi-more-close { display: none; }
.testi-more-toggle:checked ~ .testi-more-wrap .testi-more-open { display: none; }
.testi-more-toggle:checked ~ .testi-more-wrap .testi-more-close { display: inline; }

/* --- Compact home page on phones --- */
@media (max-width: 768px) {
  .testi-more-toggle:not(:checked) ~ .testimonials-grid .testimonial-card-pro:nth-child(n+3) { display: none !important; }
  .testimonials-grid { gap: 16px; margin-top: 24px; }
  .testimonial-card-pro { padding: 22px; }

  /* Procedure and blog cards become compact rows */
  #procedimientos .proc-category { margin-bottom: 28px; }
  #procedimientos .proc-category-title { font-size: 1.25rem; margin-bottom: 14px; }
  #procedimientos .grid-3,
  .grid-3:has(> .blog-home-card) { gap: 10px; }
  #procedimientos .proc-card-modern,
  .blog-home-card { flex-direction: row; align-items: stretch; position: relative; border-radius: var(--radius-md); }
  #procedimientos .card-thumb-wrap,
  .blog-home-card .card-thumb-wrap { flex: 0 0 96px; width: 96px; aspect-ratio: auto; min-height: 84px; }
  #procedimientos .card-thumb-tag,
  .blog-home-card .card-thumb-tag,
  #procedimientos .card-desc,
  .blog-home-card .card-desc { display: none; }
  #procedimientos .card-body-content,
  .blog-home-card .card-body-content { position: static; padding: 12px 14px; justify-content: center; }
  #procedimientos .card-body-content .card-title,
  .blog-home-card .card-body-content .card-title { font-size: 1.02rem !important; margin-bottom: 4px; }
  #procedimientos .card-body-content .card-link,
  .blog-home-card .card-body-content .card-link { font-size: 0.85rem; }
  #procedimientos .card-link::after,
  .blog-home-card .card-link::after { content: ""; position: absolute; inset: 0; }

  /* Patient journey steps */
  .journey-grid { gap: 12px; margin-top: 28px; }
  .journey-step-card { padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; }
  .journey-step-num { font-size: 1.4rem; margin-bottom: 0; }
  .journey-step-title { font-size: 1.05rem; margin-bottom: 6px; }
  .journey-step-desc { grid-column: 1 / -1; font-size: 0.88rem; line-height: 1.5; }
  .ethical-box { margin-top: 32px; padding: 26px 22px; }
  .ethical-box > div:last-child { display: none; } /* insurers already listed in the practical info block */

  /* Medical societies as a logo grid */
  .societies-title-wrap p { display: none; }
  .societies-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .society-card { padding: 12px 8px; }
  .society-logo-box { height: 44px; margin-bottom: 8px; padding: 4px 6px; }
  .society-role, .society-name { display: none; }

  /* The surgeon photo already appears in the hero */
  .surgeon-photo-frame { display: none; }
  .surgical-console-toolbar, .surgical-hint-text { display: none; }
}


/* Calendario de citas insertado */
.agenda-frame-wrap { border-radius: 16px; overflow: hidden; background: #060608; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15); }
.agenda-frame { display: block; width: 100%; height: 1150px; border: 0; }
.agenda-frame-help { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-top: 10px; }
.agenda-frame-help a { color: var(--brand-primary); text-decoration: underline; }
@media (max-width: 640px) { .agenda-frame { height: 1500px; } .agenda-frame-wrap { border-radius: 10px; margin: 0 -8px; } }
