@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Poppins:wght@600;700;800&display=swap');

/* ==========================================================================
   1. CSS Custom Properties
   ========================================================================== */
:root {
  /* Brand Colors */
  --primary: #0072BB;
  --primary-dark: #005A94;
  --primary-light: #E8F4FD;
  --accent-gradient: linear-gradient(135deg, #0072BB, #00A3E0);
  
  /* Neutral Colors */
  --gray-dark: #2D3436;
  --gray-medium: #636E72;
  --gray-light: #F8F9FA;
  --white: #FFFFFF;
  --footer-bg: #1a1a2e;
  
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 50px;
  
  /* Layout */
  --container-width: 1200px;
  --nav-height: 80px;
}

/* ==========================================================================
   2. CSS Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: var(--primary);
  color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--gray-dark);
}

/* ==========================================================================
   3. Scrollbar Styling
   ========================================================================== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--gray-light);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ==========================================================================
   4. Utility Classes
   ========================================================================== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-white { color: var(--white); }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-alt {
  background-color: var(--gray-light);
}

.section-blue {
  background-color: var(--primary);
  color: var(--white);
}
.section-blue h2, 
.section-blue h3, 
.section-blue p {
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--gray-medium);
  font-size: 1.1rem;
}

/* Buttons */
.cta-button {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent-gradient);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: pulse 2s infinite ease-in-out;
  border: none;
  cursor: pointer;
  text-align: center;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 114, 187, 0.3);
  animation: none;
  color: var(--white);
}

.cta-button-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
  text-align: center;
}

.cta-button-secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   5. Keyframe Animations
   ========================================================================== */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes blob {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
  67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
  100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

/* ==========================================================================
   6. Scroll Reveal Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   7. Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--gray-dark);
  position: relative;
}

.navbar.scrolled .nav-links a {
  color: var(--gray-dark);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary);
  margin: 5px 0;
  transition: 0.3s ease;
  border-radius: 2px;
}

/* ==========================================================================
   8. Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), 
              url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="%230072BB" fill-opacity="0.1"/></svg>');
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 600px;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 114, 187, 0.2);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
  line-height: 1.1;
  background: var(--accent-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 5s ease infinite;
}

.hero .subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--gray-medium);
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image-container {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  animation: float 6s infinite ease-in-out;
  box-shadow: 0 20px 50px rgba(0, 114, 187, 0.2);
  border: 8px solid white;
  position: relative;
  z-index: 2;
}

.hero-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--primary-light);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
  z-index: 1;
  animation: blob 15s infinite alternate;
}

/* ==========================================================================
   9. About Section & Mission/Vision
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  z-index: 1;
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  z-index: -1;
  transition: all 0.3s ease;
}

.about-image-wrapper:hover::before {
  top: 10px;
  left: -10px;
}

.about-image-wrapper img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
}

.about-text p {
  margin-bottom: 24px;
  font-size: 1.05rem;
  color: var(--gray-medium);
}

.credentials-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--gray-light);
  padding: 16px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

.credential-item i {
  font-size: 1.5rem;
  color: var(--primary);
}

.credential-info {
  display: flex;
  flex-direction: column;
}

.credential-label {
  font-size: 0.85rem;
  color: var(--gray-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.credential-value {
  font-weight: 700;
  color: var(--gray-dark);
}

.mv-cards {
  display: flex;
  gap: 30px;
  margin-top: 60px;
}

.mv-card {
  flex: 1;
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.mv-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.mv-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--primary);
}

.mv-card h3 i {
  font-size: 1.8rem;
}

.mv-card p {
  color: var(--gray-medium);
}

/* ==========================================================================
   10. Pain Section (¿Dolor?)
   ========================================================================== */
.pain-section {
  background: var(--gray-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.pain-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 90, 148, 0.9), rgba(45, 52, 54, 0.9));
  z-index: 1;
}

.pain-section .container {
  position: relative;
  z-index: 2;
}

.pain-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.pain-text h2 {
  color: var(--white);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 24px;
}

.pain-text p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

.pain-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.pain-stat {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.pain-stat .number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-light);
  margin-bottom: 8px;
  display: block;
}

.pain-stat .label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ==========================================================================
   11. Services Section
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--primary-dark);
}

.service-card .icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.service-card:hover .icon {
  background: var(--primary);
  color: var(--white);
}

.service-card h3 {
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--gray-medium);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
}

/* ==========================================================================
   12. Technology Section (Aparatología)
   ========================================================================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tech-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.tech-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.tech-icon {
  width: 70px;
  height: 70px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  font-size: 28px;
  box-shadow: 0 10px 20px rgba(0, 114, 187, 0.2);
}

.tech-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.tech-card p {
  font-size: 0.9rem;
  color: var(--gray-medium);
}

/* ==========================================================================
   13. Stats Section (Datos Duros)
   ========================================================================== */
.stats-section {
  background: var(--accent-gradient);
  color: var(--white);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-card {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
  display: block;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.stat-source {
  font-size: 0.75rem;
  opacity: 0.7;
  font-style: italic;
}

/* ==========================================================================
   14. Gallery Section
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.gallery-item.span-2 {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 90, 148, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-overlay i {
  color: var(--white);
  font-size: 2rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
  transform: translateY(0);
}

/* ==========================================================================
   15. Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 40px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: var(--primary);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 30px;
  cursor: pointer;
  padding: 20px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.lightbox-nav:hover {
  background: var(--primary);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ==========================================================================
   16. When to Visit Section
   ========================================================================== */
.when-section .container {
  max-width: 800px;
}

.when-list {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.when-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--gray-light);
  transition: all 0.3s ease;
}

.when-item:last-child {
  border-bottom: none;
}

.when-item i {
  color: var(--primary);
  font-size: 1.5rem;
  background: var(--primary-light);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.when-item p {
  font-weight: 500;
  font-size: 1.1rem;
  margin: 0;
}

.when-item:hover {
  background: var(--primary-light);
  transform: translateX(10px);
}

.when-item:hover i {
  background: var(--primary);
  color: var(--white);
}

/* ==========================================================================
   17. Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.contact-info {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h3 {
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item i {
  width: 45px;
  height: 45px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-content h4 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.contact-item-content p,
.contact-item-content a {
  color: var(--gray-medium);
  font-size: 0.95rem;
}

.contact-item-content a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ==========================================================================
   18. WhatsApp Floating Button
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  align-items: center;
}

.whatsapp-float a {
  width: 65px;
  height: 65px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  position: relative;
  transition: all 0.3s ease;
  z-index: 2;
}

.whatsapp-float a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25D366;
  top: -2px;
  left: -2px;
  animation: ripple 2s infinite ease-out;
  z-index: -1;
}

.whatsapp-float a:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-tooltip {
  position: absolute;
  right: 80px;
  background: var(--white);
  color: var(--gray-dark);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* ==========================================================================
   19. Footer
   ========================================================================== */
.footer {
  background: var(--footer-bg);
  color: var(--white);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand h2 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 400px;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer-links h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* ==========================================================================
   20. Responsive Design (Media Queries)
   ========================================================================== */

/* Tablet (< 1024px) */
@media screen and (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-item.span-2 {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .hero-content {
    max-width: 50%;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile (< 768px) */
@media screen and (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  /* Navbar Mobile */
  .nav-toggle {
    display: block;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    z-index: 1000;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    font-size: 1.5rem;
    font-weight: 600;
  }
  
  /* Hero Mobile */
  .hero .container {
    flex-direction: column;
    text-align: center;
    padding-top: 40px;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image-container {
    margin-top: 40px;
  }
  
  /* Grids Mobile */
  .about-grid,
  .pain-content,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .mv-cards {
    flex-direction: column;
  }
  
  .services-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .pain-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .map-container {
    min-height: 300px;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
}

/* Small Mobile (< 480px) */
@media screen and (max-width: 480px) {
  .tech-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
}

/* ==========================================================================
   21. Additional Component Styles (HTML-specific classes)
   ========================================================================== */

/* Hero Image Wrapper */
.hero-image {
  position: relative;
  flex-shrink: 0;
}

.hero-image img {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  object-fit: cover;
  animation: float 6s infinite ease-in-out;
  box-shadow: 0 20px 60px rgba(0, 114, 187, 0.25);
  border: 6px solid var(--white);
  position: relative;
  z-index: 2;
}

.hero-image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(0, 114, 187, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  animation: pulse 4s infinite ease-in-out;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--gray-medium);
  margin-bottom: 36px;
  font-weight: 400;
  line-height: 1.7;
}

.hero-trust {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--gray-medium);
  font-weight: 500;
}

.trust-item i {
  color: var(--primary);
  font-size: 1.1rem;
}

/* Hero Background Shapes */
.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: var(--primary);
}

.shape-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  animation: blob 20s infinite alternate;
}

.shape-2 {
  width: 300px;
  height: 300px;
  bottom: -50px;
  left: -80px;
  animation: blob 15s infinite alternate-reverse;
}

.shape-3 {
  width: 200px;
  height: 200px;
  top: 40%;
  left: 60%;
  animation: blob 18s infinite alternate;
}

/* Text Accent */
.text-accent {
  color: #00A3E0;
}

.text-white-soft {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* When Grid */
.when-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.when-item {
  display: flex;
  gap: 20px;
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.when-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.when-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.when-item:hover .when-icon {
  background: var(--primary);
  color: var(--white);
}

.when-text h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--gray-dark);
}

.when-text p {
  font-size: 0.92rem;
  color: var(--gray-medium);
  margin: 0;
  line-height: 1.6;
}

/* Pain Stat Cards */
.pain-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.pain-stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  transition: all 0.3s ease;
}

.pain-stat-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.pain-stat-card .stat-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #00A3E0;
}

.pain-stat-card .stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.pain-stat-card .stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 8px;
}

.pain-stat-card .stat-source {
  font-size: 0.75rem;
  opacity: 0.6;
  font-style: italic;
}

/* About section credentials */
.about-text h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-intro {
  font-size: 1.1rem !important;
  color: var(--gray-dark) !important;
}

.credentials {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.credential-item div {
  display: flex;
  flex-direction: column;
}

.credential-item div strong {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-dark);
}

.credential-item div span,
.credential-item div a {
  font-size: 0.95rem;
  color: var(--gray-medium);
}

.credential-item div a:hover {
  color: var(--primary);
}

/* Mission/Vision Icon */
.mv-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 20px;
}

/* Service Icon & Highlight */
.service-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: var(--white);
}

.service-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  margin-top: auto;
}

.service-highlight i {
  color: var(--primary);
  flex-shrink: 0;
}

.service-highlight span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-dark);
}

/* Tech Icon Wrapper */
.tech-icon-wrapper {
  width: 70px;
  height: 70px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  font-size: 1.6rem;
  box-shadow: 0 10px 20px rgba(0, 114, 187, 0.2);
  transition: all 0.3s ease;
}

.tech-card:hover .tech-icon-wrapper {
  transform: scale(1.1);
  box-shadow: 0 14px 28px rgba(0, 114, 187, 0.3);
}

.tech-card h4 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--gray-dark);
}

/* Stats Section Icons */
.stat-icon-lg {
  font-size: 2.5rem;
  margin-bottom: 16px;
  opacity: 0.9;
}

.stats-references {
  margin-top: 60px;
  background: rgba(255, 255, 255, 0.08);
  padding: 30px 36px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-references h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--white);
}

.stats-references ol {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stats-references li {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.stats-references a {
  color: #00A3E0;
  text-decoration: underline;
}

/* Gallery Wide */
.gallery-wide {
  grid-column: span 2;
}

.gallery-overlay span {
  display: block;
  color: var(--white);
  font-size: 0.85rem;
  margin-top: 8px;
  font-weight: 500;
}

.gallery-overlay {
  flex-direction: column;
}

/* Contact Items */
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 30px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item div strong {
  display: block;
  font-size: 0.95rem;
  color: var(--gray-dark);
  margin-bottom: 4px;
}

.contact-item div p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--gray-medium);
  line-height: 1.5;
}

.contact-item div p a {
  color: var(--primary);
  font-weight: 500;
}

.contact-item div p a:hover {
  text-decoration: underline;
}

.contact-info h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-cta {
  width: 100%;
  text-align: center;
  display: block;
}

/* Navbar CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--accent-gradient);
  color: var(--white) !important;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 114, 187, 0.3);
}

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

.cta-button-small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent-gradient);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
}

.cta-button-lg {
  padding: 18px 42px;
  font-size: 1.1rem;
}

/* Final CTA Section */
.final-cta {
  background: linear-gradient(135deg, #0072BB 0%, #005A94 50%, #003d66 100%);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 50%);
  animation: gradientShift 10s ease infinite;
}

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

.final-cta h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 36px;
}

.final-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.final-cta .cta-button {
  background: var(--white);
  color: var(--primary) !important;
  -webkit-text-fill-color: var(--primary);
}

.final-cta .cta-button:hover {
  background: var(--primary-light);
}

.final-cta .cta-button-secondary {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.final-cta .cta-button-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 998;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

/* Footer Brand */
.footer-brand h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.footer-brand h3 span {
  color: #00A3E0;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer-links-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-links-col h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-links-col .footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col .footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  transition: all 0.3s ease;
}

.footer-links-col .footer-links a:hover {
  color: var(--white);
  transform: translateX(4px);
}

/* Nav logo span */
.nav-logo span {
  color: #00A3E0;
}

/* WhatsApp Pulse */
.whatsapp-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: ripple 2s infinite ease-out;
  pointer-events: none;
}

/* Lightbox nav buttons */
.lightbox-prev,
.lightbox-next,
.lightbox-close {
  background: rgba(0,0,0,0.5);
  border: none;
  cursor: pointer;
}

.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-sm);
}

/* Pain section padding */
.pain-section {
  padding: 100px 0;
}

/* Responsive additions */
@media screen and (max-width: 1024px) {
  .hero-image img {
    width: 340px;
    height: 340px;
  }
  .hero-image-glow {
    width: 380px;
    height: 380px;
  }
  .gallery-wide {
    grid-column: span 1;
  }
}

@media screen and (max-width: 768px) {
  .hero-image img {
    width: 280px;
    height: 280px;
  }
  .hero-image-glow {
    width: 320px;
    height: 320px;
  }
  .hero-trust {
    justify-content: center;
  }
  .hero-content {
    text-align: center;
  }
  .when-grid {
    grid-template-columns: 1fr;
  }
  .nav-cta {
    display: none;
  }
  .nav-cta-mobile {
    display: block;
  }
  .pain-content {
    grid-template-columns: 1fr;
  }
  .about-image-wrapper::before {
    display: none;
  }
  .stats-references {
    padding: 20px;
  }
  .stats-references ol {
    padding-left: 16px;
  }
  .final-cta {
    padding: 70px 0;
  }
}

/* Logo image in navbar & footer */
.nav-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 114, 187, 0.2);
  transition: transform 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
  transform: rotate(5deg) scale(1.05);
}

.footer-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Video Showcase Styles */
.video-showcase {
  max-width: 900px;
  margin: 60px auto 0;
}

.video-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 114, 187, 0.1);
  transition: all 0.3s ease;
}

.video-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.video-header {
  padding: 24px 30px 16px;
  background: linear-gradient(to right, var(--white), var(--primary-light));
}

.video-header h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.video-header h3 i {
  color: var(--primary);
  font-size: 1.4rem;
}

.video-header p {
  color: var(--gray-medium);
  font-size: 0.95rem;
  margin: 0;
}

.video-wrapper {
  position: relative;
  background: #000;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media screen and (max-width: 768px) {
  .nav-logo-img {
    width: 40px;
    height: 40px;
  }
  .video-header {
    padding: 16px 20px;
  }
  .video-header h3 {
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   22. Enhanced Technology Cards (Images + Clinical Benefits)
   ========================================================================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 32px !important;
}

.tech-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 114, 187, 0.1);
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-align: left !important;
  padding: 0 !important;
}

.tech-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 36px rgba(0, 114, 187, 0.16) !important;
  border-color: rgba(0, 114, 187, 0.3);
}

.tech-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f0f4f8;
}

.tech-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tech-card:hover .tech-img-wrapper img {
  transform: scale(1.08);
}

.tech-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 114, 187, 0.92);
  color: var(--white);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tech-content {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tech-content h4 {
  font-size: 1.35rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.tech-desc {
  font-size: 0.94rem;
  color: var(--gray-medium);
  line-height: 1.6;
  margin-bottom: 18px;
}

.tech-info-block {
  background: #f8fbfe;
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.tech-info-block.tech-recommend {
  background: #fbfbfd;
  border-left-color: #00A3E0;
  margin-bottom: 0;
}

.tech-info-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.tech-info-label i {
  color: var(--primary);
  font-size: 0.95rem;
}

.tech-info-block.tech-recommend .tech-info-label i {
  color: #00A3E0;
}

.tech-info-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tech-info-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--gray-dark);
  line-height: 1.45;
}

.tech-info-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
}

.tech-recommend p {
  font-size: 0.9rem;
  color: var(--gray-medium);
  line-height: 1.5;
  margin: 0;
}

@media screen and (max-width: 900px) {
  .tech-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  
  .tech-img-wrapper {
    height: 200px;
  }
  
  .tech-content {
    padding: 20px 22px;
  }
}

/* ==========================================================================
   23. Enhanced Services Cards (Images + Clinical Badges)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 32px !important;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 114, 187, 0.1);
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 0 !important;
  border-left: none !important;
}

.service-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 16px 36px rgba(0, 114, 187, 0.18) !important;
  border-color: rgba(0, 114, 187, 0.35);
}

.service-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f0f4f8;
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-img-wrapper img {
  transform: scale(1.08);
}

.service-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 114, 187, 0.92);
  color: var(--white);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-body {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-body h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.service-body p {
  color: var(--gray-medium);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

@media screen and (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media screen and (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  
  .service-img-wrapper {
    height: 190px;
  }
}

/* Map Actions & Direct Button */
.map-container {
  display: flex;
  flex-direction: column;
  position: relative;
}

.map-actions {
  background: var(--white);
  padding: 14px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid rgba(0, 114, 187, 0.12);
}

.map-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-gradient);
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(0, 114, 187, 0.25);
  transition: all 0.3s ease;
}

.map-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 114, 187, 0.35);
  color: var(--white);
}

.map-link-btn i {
  font-size: 1.1rem;
}

/* ==========================================================================
   24. Logo Sizing Upgrade & Refined Aesthetics
   ========================================================================== */
.nav-logo-img {
  width: 62px !important;
  height: 62px !important;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 114, 187, 0.25) !important;
  border: 2px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-logo {
  font-size: 1.65rem !important;
  gap: 14px !important;
  font-weight: 800;
}

.nav-logo span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.footer-logo-img {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   25. Interactive 3D Anatomical Explorer Styles
   ========================================================================== */
.section-interactive {
  background: linear-gradient(180deg, #f4f8fb 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.zone-selector-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 35px;
}

.zone-pill {
  background: var(--white);
  border: 2px solid rgba(0, 114, 187, 0.15);
  color: var(--gray-dark);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.zone-pill i {
  color: var(--primary);
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.zone-pill:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 114, 187, 0.15);
}

.zone-pill.active {
  background: var(--accent-gradient);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(0, 114, 187, 0.3);
}

.zone-pill.active i {
  color: var(--white);
  transform: scale(1.15);
}

.explorer-visualizer {
  width: 100%;
  margin-top: 10px;
}

.viewer-canvas-card {
  background: #091322;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(11, 25, 44, 0.25);
  border: 1px solid rgba(0, 163, 224, 0.25);
  position: relative;
  display: flex;
  flex-direction: column;
}

.visualizer-header {
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.fullscreen-toggle-btn {
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.45);
  color: #00e5ff;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.fullscreen-toggle-btn:hover {
  background: #00e5ff;
  color: #0b192c;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
  transform: scale(1.05);
}

.visualizer-controls-hint {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Loading Overlay for 3D Assets */
.model-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 17, 30, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 30;
  color: #00e5ff;
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  pointer-events: none;
}

.model-loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.model-loading-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(0, 229, 255, 0.2);
  border-top-color: #00e5ff;
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.viewer-graphic-box {
  position: relative;
  width: 100%;
  height: 560px;
  min-height: 520px;
  background: radial-gradient(circle at 50% 40%, #152b47 0%, #08111e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

#bodyCanvas3d {
  width: 100% !important;
  height: 100% !important;
  display: block;
  outline: none;
  cursor: grab;
}

#bodyCanvas3d:active {
  cursor: grabbing;
}

/* Única Etiqueta Flotante de Articulación Activa (3D Tracked Badge) */
.active-joint-badge {
  position: absolute;
  transform: translate(-50%, -100%);
  pointer-events: none;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: -12px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.joint-badge-pulse {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00e5ff;
  border: 2px solid #ffffff;
  box-shadow: 0 0 12px #00e5ff;
  flex-shrink: 0;
}

.joint-badge-pulse::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #00e5ff;
  animation: pulse-ring 1.8s infinite;
}

.joint-badge-text {
  background: rgba(11, 25, 44, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 229, 255, 0.5);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.80rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  letter-spacing: 0.3px;
}

/* Selector Maestro de Capas Anatómicas (Esqueleto / Rayos X / Músculo) */
.layer-mode-selector {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 25;
  background: rgba(8, 17, 30, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 229, 255, 0.40);
  padding: 5px 8px;
  border-radius: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.layer-selector-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #80deea;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.layer-pill-group {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.45);
  padding: 3px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.layer-pill {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.layer-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
}

.layer-pill.active {
  background: linear-gradient(135deg, rgba(0, 163, 224, 0.92), rgba(0, 114, 187, 0.95));
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 163, 224, 0.45);
  border: 1px solid rgba(0, 229, 255, 0.6);
}

/* 3D Viewport Controls Overlay (posicionado a la izquierda para no tapar el drawer) */
.viewport-controls {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
  z-index: 15;
}

.vp-btn {
  background: rgba(11, 25, 44, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: #ffffff;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.vp-btn:hover {
  background: var(--primary);
  border-color: #00e5ff;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 114, 187, 0.45);
}

.vp-btn.active {
  background: rgba(0, 163, 224, 0.35);
  border-color: #00e5ff;
  color: #00e5ff;
}

@keyframes pulse-ring {
  0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.95; }
  100% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
}

.viewer-footer {
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.25);
  color: #94a3b8;
  font-size: 0.84rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Panel Clínico Lateral Desplegable (Slide-over Drawer / Bottom Sheet en móvil) */
.clinical-details-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 440px;
  max-width: 92%;
  height: 100%;
  background: rgba(11, 25, 44, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(0, 229, 255, 0.25);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  z-index: 35;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  color: #f1f5f9;
}

.clinical-details-drawer.active {
  transform: translateX(0);
}

.drawer-drag-handle {
  display: none;
}

.drawer-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  background: rgba(11, 25, 44, 0.7);
  flex-shrink: 0;
}

.drawer-header-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-zone-tag {
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: #00e5ff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: inline-block;
  width: fit-content;
}

.drawer-title {
  font-size: 1.35rem;
  color: #ffffff;
  font-weight: 700;
  margin: 3px 0 4px 0;
  line-height: 1.25;
}

.drawer-lesion-banner {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 77, 79, 0.12);
  border: 1px solid rgba(255, 77, 79, 0.35);
  color: #ff7875;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
}

.drawer-lesion-banner i {
  color: #ff4d4f;
}

.drawer-locate-btn {
  margin-top: 8px;
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.20), rgba(255, 87, 34, 0.30));
  border: 1px solid #ff5722;
  color: #ffffff;
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 0 14px rgba(255, 87, 34, 0.22);
  width: 100%;
  justify-content: center;
}

.drawer-locate-btn:hover {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.38), rgba(255, 87, 34, 0.55));
  box-shadow: 0 0 20px rgba(255, 87, 34, 0.50);
  transform: translateY(-1px);
}

.drawer-locate-btn i {
  color: #ffcc80;
  font-size: 0.90rem;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.drawer-close-btn:hover {
  background: rgba(255, 77, 79, 0.3);
  color: #ffffff;
  border-color: #ff4d4f;
}

.drawer-body {
  padding: 18px 22px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-section {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3.5px solid #00e5ff;
  border-radius: 10px;
  padding: 13px 15px;
}

.drawer-section h4 {
  font-size: 0.88rem;
  color: #00e5ff;
  font-weight: 700;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.drawer-section p {
  font-size: 0.84rem;
  color: #e2e8f0;
  line-height: 1.5;
  margin: 0;
}

.drawer-symptoms-list,
.drawer-causes-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 8px 0 0 0 !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-symptoms-list li,
.drawer-causes-list li {
  position: relative;
  padding-left: 14px;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.drawer-symptoms-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #ff4d4f;
  font-weight: 900;
}

.drawer-causes-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #00e5ff;
  font-weight: 900;
  font-size: 1rem;
}

.drawer-methods-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.drawer-method-tag {
  background: rgba(0, 229, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.drawer-method-tag:hover {
  background: #00e5ff;
  color: #0b192c;
  border-color: #00e5ff;
}

.drawer-method-tag i {
  color: #00e5ff;
  font-size: 0.72rem;
}

.drawer-method-tag:hover i {
  color: #0b192c;
}

.drawer-footer {
  padding: 14px 22px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 25, 44, 0.8);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.drawer-wa-btn {
  width: 100%;
  justify-content: center;
  padding: 12px 16px;
  font-size: 0.88rem;
  background: linear-gradient(135deg, #25D366, #128C7E) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35) !important;
  text-decoration: none;
}

.drawer-wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5) !important;
}

.drawer-reset-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.drawer-reset-btn:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: #00e5ff;
  color: #ffffff;
}

/* Fullscreen & Clinical Theater Mode (100vw x 100vh real sin distorsión) */
body.theater-mode-open {
  overflow: hidden !important;
}

.viewer-canvas-card.clinical-theater-mode,
.viewer-canvas-card.is-fullscreen,
.viewer-canvas-card:fullscreen,
.viewer-canvas-card:-webkit-full-screen,
:fullscreen .viewer-canvas-card,
:-webkit-full-screen .viewer-canvas-card {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  z-index: 100000 !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #0b1320 !important;
  box-shadow: none !important;
}

.viewer-canvas-card.clinical-theater-mode .viewer-graphic-box,
.viewer-canvas-card.is-fullscreen .viewer-graphic-box,
.viewer-canvas-card:fullscreen .viewer-graphic-box,
.viewer-canvas-card:-webkit-full-screen .viewer-graphic-box,
:fullscreen .viewer-graphic-box,
:-webkit-full-screen .viewer-graphic-box {
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-width: 100vw !important;
  position: absolute !important;
  inset: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.viewer-canvas-card.clinical-theater-mode #bodyCanvas3d,
.viewer-canvas-card.is-fullscreen #bodyCanvas3d,
.viewer-canvas-card:fullscreen #bodyCanvas3d,
.viewer-canvas-card:-webkit-full-screen #bodyCanvas3d,
:fullscreen #bodyCanvas3d,
:-webkit-full-screen #bodyCanvas3d {
  width: 100vw !important;
  height: 100vh !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
}

.vp-btn-back {
  background: rgba(0, 229, 255, 0.22) !important;
  border-color: #00e5ff !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  gap: 8px !important;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.35) !important;
  transition: all 0.25s ease !important;
}

.vp-btn-back:hover {
  background: rgba(0, 229, 255, 0.40) !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.6) !important;
}

.viewer-canvas-card.clinical-theater-mode .visualizer-header,
.viewer-canvas-card.is-fullscreen .visualizer-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(8, 17, 30, 0.90) 0%, rgba(8, 17, 30, 0) 100%);
  border-bottom: none;
}

.viewer-canvas-card.is-fullscreen .viewer-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: linear-gradient(0deg, rgba(8, 17, 30, 0.90) 0%, rgba(8, 17, 30, 0) 100%);
  border-top: none;
  pointer-events: none;
}

/* ==========================================================================
   CALL-OUT 3D DE FOCO DE LESIÓN (BADGE FLOTANTE ANCLADO A TISULAR)
   ========================================================================== */
.lesion-callout {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.lesion-callout .callout-card {
  pointer-events: auto;
  position: relative;
  background: rgba(10, 21, 37, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 87, 34, 0.55);
  border-radius: 14px;
  padding: 12px 14px;
  max-width: 250px;
  min-width: 190px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.70), 0 0 18px rgba(255, 87, 34, 0.25);
  animation: calloutPopIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes calloutPopIn {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.callout-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.callout-close-btn:hover {
  background: rgba(255, 87, 34, 0.30);
  color: #ffffff;
}

.callout-badge-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.callout-pill-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ff7043;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.callout-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5722;
  box-shadow: 0 0 8px #ff5722;
  animation: calloutPulse 1.4s infinite ease-in-out;
}

@keyframes calloutPulse {
  0%, 100% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.35); opacity: 1; }
}

.callout-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
  line-height: 1.25;
  padding-right: 14px;
}

.callout-desc {
  font-size: 0.74rem;
  color: #cbd5e1;
  line-height: 1.35;
  margin: 0 0 8px 0;
}

.callout-action-btn {
  width: 100%;
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.90), rgba(229, 57, 53, 0.92));
  border: 1px solid rgba(255, 138, 101, 0.6);
  color: #ffffff;
  font-size: 0.70rem;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.callout-action-btn:hover {
  filter: brightness(1.15);
  box-shadow: 0 3px 12px rgba(255, 87, 34, 0.45);
}

.callout-pointer {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.callout-pointer .pointer-line {
  width: 2px;
  height: 16px;
  background: linear-gradient(to bottom, rgba(255, 87, 34, 0.8), rgba(255, 87, 34, 0.3));
}

.callout-pointer .pointer-anchor {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5722;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px #ff5722;
}

/* Animación de Resaltado para Ficha Clínica al pulsar 'Ver Ficha Clínica' */
@keyframes drawerFocusPulse {
  0% {
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    border-left-color: rgba(0, 229, 255, 0.25);
  }
  30% {
    box-shadow: -10px 0 60px rgba(0, 229, 255, 0.55), inset 0 0 30px rgba(0, 229, 255, 0.25);
    border-left-color: #00e5ff;
  }
  60% {
    box-shadow: -10px 0 45px rgba(0, 229, 255, 0.35), inset 0 0 15px rgba(0, 229, 255, 0.15);
    border-left-color: #00e5ff;
  }
  100% {
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    border-left-color: rgba(0, 229, 255, 0.25);
  }
}

.clinical-details-drawer.drawer-highlight {
  animation: drawerFocusPulse 1.8s ease-in-out;
}

@keyframes sectionGlow {
  0% {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
  }
  30% {
    background: rgba(0, 229, 255, 0.14);
    border-color: rgba(0, 229, 255, 0.6);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.3);
  }
  100% {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
  }
}

.drawer-section.section-focus-glow {
  animation: sectionGlow 1.8s ease-in-out;
}

/* Mobile Bottom Sheet & Responsive Adjustments */
@media screen and (max-width: 768px) {
  .viewer-graphic-box {
    height: 480px;
    min-height: 440px;
  }
  .clinical-details-drawer {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: 60vh !important;
    max-height: 75vh !important;
    border-radius: 20px 20px 0 0 !important;
    border-left: none !important;
    border-top: 1px solid rgba(0, 229, 255, 0.3) !important;
    transform: translateY(105%) !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6) !important;
  }
  .clinical-details-drawer.active {
    transform: translateY(0) !important;
  }
  .clinical-details-drawer.active.collapsed {
    transform: translateY(calc(100% - 74px)) !important;
  }
  .drawer-drag-handle {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0 6px 0;
    cursor: pointer;
    touch-action: manipulation;
  }
  .drawer-drag-handle span {
    width: 44px;
    height: 5px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 3px;
  }
  .viewport-controls {
    bottom: 12px;
    left: 12px;
    gap: 6px;
  }
  .vp-btn {
    padding: 6px 10px;
    font-size: 0.74rem;
  }
  .layer-mode-selector {
    top: 10px;
    left: 10px;
    padding: 3px 6px;
    gap: 4px;
  }
  .layer-selector-label {
    display: none;
  }
  .layer-pill {
    padding: 5px 8px;
    font-size: 0.68rem;
  }
  .drawer-title {
    font-size: 1.15rem;
  }
  .lesion-callout .callout-card {
    max-width: 210px;
    min-width: 170px;
    padding: 10px 12px;
  }
  .callout-title {
    font-size: 0.80rem;
  }
  .callout-desc {
    font-size: 0.68rem;
  }
}
