/* ==========================================================================
   LABORATORIO CLÍNICO LOS ÁNGELES - ESTILOS PRINCIPALES
   Diseño de Vanguardia: Glassmorphism, Micro-animaciones, Paleta Clínica Premium
   ========================================================================== */

:root {
  /* Paleta de Colores Primarios y Neutros */
  --color-primary: #0077b6;
  --color-primary-dark: #03045e;
  --color-primary-light: #00b4d8;
  --color-accent: #00e5ff;
  --color-emerald: #10b981;
  --color-emerald-light: #34d399;
  
  --color-dark-bg: #0b132b;
  --color-dark-surface: #1c2541;
  --color-dark-card: rgba(28, 37, 65, 0.7);
  
  --color-light-bg: #f8fafc;
  --color-light-surface: #ffffff;
  --color-border: rgba(226, 232, 240, 0.8);
  --color-border-glow: rgba(0, 229, 255, 0.3);
  
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --color-text-inverse: #f8fafc;
  
  /* Gradientes */
  --grad-hero: linear-gradient(135deg, #0b132b 0%, #1c2541 50%, #0077b6 100%);
  --grad-accent: linear-gradient(135deg, #00b4d8 0%, #00e5ff 100%);
  --grad-emerald: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --grad-card: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.95) 100%);
  --grad-glow: radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.15), transparent 70%);

  /* Sombras y Efectos */
  --shadow-sm: 0 2px 4px rgba(11, 19, 43, 0.04);
  --shadow-md: 0 4px 12px rgba(11, 19, 43, 0.08);
  --shadow-lg: 0 12px 32px rgba(11, 19, 43, 0.12);
  --shadow-glow: 0 0 24px rgba(0, 229, 255, 0.25);
  --shadow-card: 0 10px 30px -5px rgba(0, 119, 182, 0.08);

  /* Tipografía */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Transiciones */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-light-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   TOP ANNOUNCEMENT BAR
   ========================================================================== */
.top-bar {
  background: var(--color-dark-bg);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.825rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.top-bar-item svg {
  width: 14px;
  height: 14px;
  fill: var(--color-accent);
}

.top-bar-branches {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-branch {
  background: rgba(0, 229, 255, 0.12);
  color: var(--color-accent);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(0, 229, 255, 0.25);
  text-decoration: none;
}

.top-bar-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #ffffff;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.top-bar-instagram:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(220, 39, 67, 0.4);
  color: #ffffff;
}

.top-bar-instagram svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.footer-instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #ffffff;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: 0.75rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  width: fit-content;
}

.footer-instagram-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.4);
  color: #ffffff;
}

.footer-instagram-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ==========================================================================
   HEADER & NAVBAR (GLASSMORPHISM)
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  transition: var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.95);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand-logo:hover img {
  transform: scale(1.04);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.725rem;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-main);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-accent);
  transition: width var(--transition-normal);
  border-radius: var(--radius-full);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* ==========================================================================
   BOTONES DE ACCIÓN RÁPIDA (REDES Y CONTACTO EN NAVBAR)
   ========================================================================== */
.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  padding: 0;
  flex-shrink: 0;
}

.nav-icon-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.nav-icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.nav-icon-btn:hover svg {
  transform: scale(1.1);
}

/* Instagram */
.nav-icon-instagram {
  color: #ffffff;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border: none;
}
.nav-icon-instagram:hover {
  box-shadow: 0 6px 18px rgba(220, 39, 67, 0.45);
}

/* Email */
.nav-icon-email {
  color: #0284c7;
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.25);
}
.nav-icon-email:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}

/* Teléfono */
.nav-icon-phone {
  color: #03045e;
  background: rgba(3, 4, 94, 0.08);
  border-color: rgba(3, 4, 94, 0.2);
}
.nav-icon-phone:hover,
.nav-dropdown-wrapper.active .nav-icon-phone {
  background: #03045e;
  color: #ffffff;
  border-color: #03045e;
  box-shadow: 0 6px 18px rgba(3, 4, 94, 0.35);
}

/* WhatsApp */
.nav-icon-whatsapp {
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
}
.nav-icon-whatsapp:hover,
.nav-dropdown-wrapper.active .nav-icon-whatsapp {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

/* Dropdowns de Sucursales */
.nav-dropdown-wrapper {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 275px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.95);
  padding: 0.65rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.96);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.nav-dropdown-wrapper.active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-dropdown-header {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  padding: 0.4rem 0.6rem 0.5rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-dropdown-header.wa-header {
  color: #059669;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  text-decoration: none;
  color: #1e293b;
  transition: all 0.18s ease;
  margin-bottom: 0.25rem;
  border: 1px solid transparent;
}

.nav-dropdown-item:last-child {
  margin-bottom: 0;
}

.nav-dropdown-item:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
  transform: translateX(3px);
}

.nav-dropdown-badge {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-dropdown-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.nav-dropdown-title {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.nav-dropdown-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #03045e;
}

.nav-dropdown-item.wa-item:hover {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.nav-dropdown-item.wa-item .nav-dropdown-badge.wa-badge {
  background: #d1fae5;
  color: #065f46;
}

.nav-dropdown-item.wa-item .nav-dropdown-val {
  color: #059669;
}

/* Botones Premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--grad-accent);
  color: var(--color-primary-dark);
  box-shadow: 0 4px 14px rgba(0, 180, 216, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.45);
}

.btn-system {
  background: linear-gradient(135deg, #03045e 0%, #0077b6 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(3, 4, 94, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-system:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 119, 182, 0.35);
  color: #ffffff;
}

.btn-system .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  animation: pulse-animation 1.8s infinite;
}

@keyframes pulse-animation {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(0, 229, 255, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--grad-emerald);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 24px;
  justify-content: center;
}

.menu-toggle span {
  width: 100%;
  height: 2.5px;
  background-color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  background: var(--grad-hero);
  color: #ffffff;
  padding: 5rem 0 6rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.18), transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.15), transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1150px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-text-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--color-accent);
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.75rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  text-align: center;
  max-width: 1050px;
  width: 100%;
}

.text-gradient {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 880px;
  line-height: 1.7;
  text-align: center;
  width: 100%;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  width: 100%;
  max-width: 850px;
}

.stat-item h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Card Mockup en Hero */
.hero-card-preview {
  background: rgba(28, 37, 65, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), var(--shadow-glow);
  position: relative;
  transition: transform var(--transition-smooth);
}

.hero-card-preview:hover {
  transform: translateY(-6px);
}

.card-top-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.mock-report-header {
  margin-bottom: 1.5rem;
}

.mock-report-header h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.mock-report-header p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.mock-tests-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.mock-test-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  border-left: 3px solid var(--color-accent);
}

.mock-test-name {
  font-weight: 600;
  color: #ffffff;
}

.mock-test-val {
  font-weight: 700;
  color: var(--color-emerald-light);
}

.mock-qr-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.qr-box {
  width: 50px;
  height: 50px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qr-box svg {
  width: 40px;
  height: 40px;
  fill: var(--color-primary-dark);
}

.qr-desc h5 {
  font-size: 0.85rem;
  color: #ffffff;
}

.qr-desc p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   CALLOUT BANNER: ACCESO DIRECTO AL SISTEMA (SUBDOMINIO)
   ========================================================================== */
.system-callout {
  background: transparent;
  position: relative;
  z-index: 10;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.system-callout-card {
  background: linear-gradient(135deg, #03045e 0%, #0077b6 100%);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.75rem;
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(3, 4, 94, 0.15), 0 4px 12px rgba(0, 119, 182, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
}

.system-callout-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.system-callout-content {
  max-width: 650px;
}

.system-callout-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 229, 255, 0.2);
  color: var(--color-accent);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.system-callout-content h3 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.system-callout-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.5;
}

.system-callout-action .btn-primary {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

/* ==========================================================================
   SECCIÓN DE ÁREAS Y ESPECIALIDADES
   ========================================================================== */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  background: rgba(0, 119, 182, 0.1);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.area-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.area-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-accent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.area-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 180, 216, 0.4);
}

.area-card:hover::before {
  opacity: 1;
}

.area-icon-wrap {
  width: 56px;
  height: 56px;
  background: rgba(0, 180, 216, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-primary);
  transition: transform var(--transition-fast);
}

.area-card:hover .area-icon-wrap {
  transform: scale(1.1);
  background: var(--grad-accent);
  color: var(--color-primary-dark);
}

.area-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.area-card h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}

.area-card p {
  color: var(--color-text-muted);
  font-size: 0.925rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.area-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-main);
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

.area-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.area-features li svg {
  width: 14px;
  height: 14px;
  fill: var(--color-emerald);
  flex-shrink: 0;
}

/* ==========================================================================
   CATÁLOGO INTERACTIVO DE EXÁMENES Y PAQUETES
   ========================================================================== */
.catalog-section {
  background: #f1f5f9;
  position: relative;
}

.catalog-search-container {
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.search-input-wrapper svg {
  position: absolute;
  left: 1.25rem;
  width: 20px;
  height: 20px;
  fill: var(--color-text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 1.1rem 1.25rem 1.1rem 3.25rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text-main);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.15);
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.catalog-status-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.catalog-count-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  background: rgba(0, 119, 182, 0.08);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(0, 119, 182, 0.15);
}

.catalog-count-badge::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 6px var(--color-emerald);
}

.filter-btn {
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  background: #ffffff;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.filter-btn:hover {
  background: #e2e8f0;
  color: var(--color-text-main);
}

.filter-btn.active {
  background: var(--color-primary-dark);
  color: #ffffff;
  border-color: var(--color-primary-dark);
}

.filter-btn .filter-count {
  font-size: 0.725rem;
  opacity: 0.85;
  margin-left: 0.4rem;
  padding: 0.1rem 0.45rem;
  background: rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-full);
}

.filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Grid de Exámenes */
.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.test-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.test-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 180, 216, 0.4);
}

.test-card-top {
  margin-bottom: 1rem;
}

.test-category-tag {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(0, 119, 182, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.65rem;
}

.test-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.test-prep {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.test-prep svg {
  width: 14px;
  height: 14px;
  fill: #f59e0b;
}

.test-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  border-top: 1px solid var(--color-border);
  margin-top: 0.9rem;
  gap: 0.5rem;
}

.test-availability {
  font-size: 0.775rem;
  font-weight: 600;
  color: #059669;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.test-availability .badge-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

.btn-sm-quote {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-emerald);
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm-quote svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.btn-sm-quote:hover {
  background: var(--color-emerald);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ==========================================================================
   HUB DE ÁREAS CLÍNICAS (ESTADO INICIAL DEL CATÁLOGO)
   ========================================================================== */
.category-hub-container {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.category-hub-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 0.5rem 0 1rem;
}

.category-hub-intro h4 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}

.category-hub-intro p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.category-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  width: 100%;
}

.category-hub-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.category-hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary-light);
  box-shadow: 0 12px 28px rgba(0, 180, 216, 0.15);
}

.category-hub-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 180, 216, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.category-hub-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.35rem;
}

.category-hub-count {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.category-hub-btn {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-light);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.category-hub-btn svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.category-hub-card:hover .category-hub-btn svg {
  transform: translateX(4px);
}

.btn-view-all-tests {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 1rem;
}

.btn-reset-catalog-view {
  background: rgba(0, 180, 216, 0.1);
  color: var(--color-primary-light);
  border: 1px solid rgba(0, 180, 216, 0.25);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.btn-reset-catalog-view:hover {
  background: var(--color-primary-light);
  color: #ffffff;
}

/* Paquetes Destacados */
.packages-featured-banner {
  margin-top: 4rem;
  background: linear-gradient(135deg, #0b132b 0%, #1c2541 100%);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  color: #ffffff;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.25rem;
  margin-top: 2.5rem;
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
}

.package-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  backdrop-filter: blur(10px);
}

.package-card.highlight {
  border-color: var(--color-accent);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--grad-accent);
  color: var(--color-primary-dark);
  font-size: 0.725rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.package-card h4 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.package-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  width: fit-content;
}

.package-status-badge .badge-dot {
  width: 7px;
  height: 7px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--color-accent);
}

.package-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.package-items li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.package-items li svg {
  width: 16px;
  height: 16px;
  fill: var(--color-accent);
  flex-shrink: 0;
}

/* ==========================================================================
   TECNOLOGÍA Y EQUIPAMIENTO LIS
   ========================================================================== */
.tech-section {
  background: #ffffff;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.tech-content h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.tech-content p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.tech-features-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tech-feature-item {
  display: flex;
  gap: 1rem;
}

.tech-feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 119, 182, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.tech-feature-icon svg {
  width: 22px;
  height: 22px;
}

.tech-feature-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.25rem;
}

.tech-feature-text p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.tech-visual-card {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.device-badge-box {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.device-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-primary);
}

.device-item h5 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.device-tag {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0, 229, 255, 0.15);
  color: var(--color-primary);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.device-item p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* ==========================================================================
   SUCURSALES Y HORARIOS
   ========================================================================== */
.branches-section {
  background: #f8fafc;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.branch-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.branch-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.branch-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.branch-icon {
  width: 48px;
  height: 48px;
  background: var(--grad-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
}

.branch-icon svg {
  width: 24px;
  height: 24px;
}

.branch-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.branch-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--color-text-main);
  margin-bottom: 2rem;
}

.branch-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.branch-info-list svg {
  width: 20px;
  height: 20px;
  fill: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   PREGUNTAS FRECUENTES (FAQ ACCORDION)
   ========================================================================== */
.faq-section {
  background: #ffffff;
}

.faq-container {
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  background: #ffffff;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  text-align: left;
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f5f9;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--color-primary);
  color: #ffffff;
}

.faq-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-answer p {
  margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.35rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--color-dark-bg);
  color: #ffffff;
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.925rem;
  margin: 1.25rem 0 1.5rem;
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-accent);
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   WIDGETS FLOTANTES DE CONTACTO Y REDES (WHATSAPP + INSTAGRAM)
   ========================================================================== */
.floating-contact-buttons {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.floating-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.floating-btn:hover {
  transform: scale(1.12);
}

.floating-btn svg {
  width: 30px;
  height: 30px;
  fill: #ffffff;
}

/* Botón Flotante de WhatsApp */
.floating-whatsapp {
  background: #25d366;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.floating-whatsapp:hover {
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.65);
}

/* Botón Flotante de Instagram */
.floating-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.38);
}

.floating-instagram:hover {
  box-shadow: 0 8px 25px rgba(220, 39, 67, 0.65);
}

/* ==========================================================================
   RESPONSIVE DESIGN (OPTIMIZADO PARA CELULARES Y TABLETS)
   ========================================================================== */
@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 76px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 76px);
    background: #ffffff;
    flex-direction: column;
    padding: 2.5rem 2rem;
    gap: 1.25rem;
    transition: left var(--transition-normal);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    z-index: 1000;
  }

  .nav-menu.active {
    left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .tech-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .nav-actions {
    gap: 0.45rem;
  }

  .nav-icon-btn {
    width: 38px;
    height: 38px;
  }

  .nav-icon-btn svg {
    width: 18px;
    height: 18px;
  }

  .nav-dropdown-menu {
    right: -40px;
    width: 260px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero {
    padding: 3.5rem 0 4rem;
  }

  .hero-title {
    font-size: 2.35rem;
  }

  .hero-description {
    font-size: 1.05rem;
  }

  .areas-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
  }

  .branches-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .packages-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .category-hub-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1.15rem;
  }

  .top-bar {
    display: none;
  }

  .nav-container {
    padding: 0.75rem 1rem;
  }

  .brand-logo .logo-img {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .brand-subtitle {
    display: none;
  }

  .nav-actions {
    gap: 0.35rem;
  }

  .nav-icon-btn {
    width: 36px;
    height: 36px;
  }

  .nav-dropdown-menu {
    right: -40px;
    width: 250px;
  }

  .hero {
    padding: 3rem 0 3.25rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
    max-width: 100%;
    text-align: center;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.18;
  }

  .hero-description {
    font-size: 0.925rem;
    line-height: 1.55;
    margin-bottom: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
    margin-bottom: 2.25rem;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-top: 1.5rem;
  }

  .stat-item h3 {
    font-size: 1.85rem;
  }

  .stat-item p {
    font-size: 0.8rem;
  }

  .system-callout {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
  }

  .system-callout-card {
    padding: 1.75rem 1.35rem;
    gap: 1.25rem;
    text-align: center;
    flex-direction: column;
  }

  .system-callout-content h3 {
    font-size: 1.35rem;
    line-height: 1.25;
  }

  .system-callout-content p {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .system-callout-action {
    width: 100%;
  }

  .system-callout-action .btn-whatsapp {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
  }

  .areas-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .area-card {
    padding: 1.5rem 1.25rem;
  }

  .category-hub-intro h4 {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .category-hub-intro p {
    font-size: 0.88rem;
  }

  .category-hub-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .category-hub-card {
    padding: 1.25rem 1.15rem;
    border-radius: 14px;
  }

  .category-active-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
  }

  .btn-back-hub {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  .active-category-text {
    align-items: center;
    text-align: center;
  }

  .active-category-text h3 {
    font-size: 1.15rem;
  }

  .search-input {
    padding: 0.85rem 1rem 0.85rem 2.85rem;
    font-size: 0.9rem;
  }

  .tests-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .test-card {
    padding: 1.25rem 1.15rem;
  }

  .test-card-bottom {
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .btn-sm-quote {
    width: 100%;
    justify-content: center;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .packages-featured-banner {
    margin-top: 2.5rem;
    padding: 2.25rem 1.15rem;
    border-radius: var(--radius-md);
  }

  .packages-featured-banner h3 {
    font-size: 1.6rem !important;
    line-height: 1.2;
  }

  .packages-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.75rem;
  }

  .package-card {
    padding: 1.6rem 1.25rem;
  }

  .package-card h4 {
    font-size: 1.25rem;
  }

  .tech-content h2 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .tech-visual-card {
    padding: 1.5rem 1.15rem;
  }

  .device-item {
    padding: 1.25rem 1rem;
  }

  .branches-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .branch-card {
    padding: 1.6rem 1.25rem;
  }

  .branch-title {
    font-size: 1.25rem;
  }

  .branch-card .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .floating-contact-buttons {
    bottom: 20px;
    right: 18px;
    gap: 10px;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
  }

  .floating-btn svg {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 480px) {
  .nav-icon-instagram,
  .nav-icon-email {
    display: none;
  }

  .nav-actions {
    gap: 0.35rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .section-title {
    font-size: 1.65rem;
  }
}

@media (max-width: 360px) {
  .brand-name {
    font-size: 1.05rem;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .btn {
    padding: 0.8rem 1rem;
    font-size: 0.88rem;
  }
}

/* ==========================================================================
   PRELOADER / SPLASH SCREEN DE VANGUARDIA
   ========================================================================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #ffffff 0%, #f0fdfa 55%, #e0f2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, visibility;
}

.preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  max-width: 750px;
  width: 92%;
  animation: preloaderContentPop 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.preloader-logo-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.preloader-pulse-ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 3px solid rgba(0, 180, 216, 0.32);
  animation: preloaderPulse 2.2s infinite ease-out;
}

.preloader-pulse-ring::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 119, 182, 0.25);
  animation: preloaderSpin 14s linear infinite;
}

.preloader-logo {
  width: 175px;
  height: auto;
  max-height: 175px;
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(0, 119, 182, 0.28));
  animation: preloaderFloat 3s ease-in-out infinite;
}

.preloader-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.2rem;
}

.preloader-subtitle {
  display: block;
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 6px;
  opacity: 1;
}

.preloader-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 4.4rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: #03045e;
  line-height: 1.05;
  margin: 0;
  text-shadow: 0 4px 18px rgba(3, 4, 94, 0.12);
  opacity: 1;
}

.preloader-progress-bar {
  width: 260px;
  height: 6px;
  background: rgba(0, 119, 182, 0.12);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.preloader-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0077b6, #00b4d8, #00e5ff);
  border-radius: var(--radius-full);
  animation: preloaderProgress 1.7s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes preloaderContentPop {
  0% { transform: scale(0.90); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes preloaderPulse {
  0% { transform: scale(0.92); opacity: 0.9; }
  50% { transform: scale(1.10); opacity: 0.15; }
  100% { transform: scale(0.92); opacity: 0.9; }
}

@keyframes preloaderSpin {
  100% { transform: rotate(360deg); }
}

@keyframes preloaderFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes preloaderProgress {
  0% { width: 0%; }
  35% { width: 55%; }
  75% { width: 85%; }
  100% { width: 100%; }
}

/* Adaptación para tablets */
@media (max-width: 768px) {
  .preloader-logo-wrapper {
    width: 180px;
    height: 180px;
    margin-bottom: 1.8rem;
  }
  .preloader-logo {
    width: 140px;
    max-height: 140px;
  }
  .preloader-subtitle {
    font-size: 1.2rem;
    letter-spacing: 4px;
  }
  .preloader-title {
    font-size: 3.2rem;
    letter-spacing: 2.5px;
  }
  .preloader-progress-bar {
    width: 220px;
  }
}

/* Adaptación para celulares */
@media (max-width: 480px) {
  .preloader-content {
    padding: 1.5rem 1rem;
  }
  .preloader-logo-wrapper {
    width: 150px;
    height: 150px;
    margin-bottom: 1.4rem;
  }
  .preloader-logo {
    width: 115px;
    max-height: 115px;
  }
  .preloader-subtitle {
    font-size: 1.0rem;
    letter-spacing: 3px;
  }
  .preloader-title {
    font-size: 2.5rem;
    letter-spacing: 1.5px;
  }
  .preloader-progress-bar {
    width: 180px;
    height: 5px;
  }
}

/* Pantallas muy compactas */
@media (max-width: 360px) {
  .preloader-logo-wrapper {
    width: 130px;
    height: 130px;
    margin-bottom: 1.1rem;
  }
  .preloader-logo {
    width: 100px;
    max-height: 100px;
  }
  .preloader-subtitle {
    font-size: 0.85rem;
    letter-spacing: 2px;
  }
  .preloader-title {
    font-size: 2.1rem;
    letter-spacing: 1px;
  }
  .preloader-progress-bar {
    width: 150px;
  }
}


/* Encabezado activo cuando se selecciona un área o se busca */
.category-active-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: #ffffff;
  padding: 1.15rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  margin-bottom: 0.5rem;
}

.btn-back-hub {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  background: var(--color-primary-dark);
  color: #ffffff;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(3, 4, 94, 0.2);
}

.btn-back-hub:hover {
  background: var(--color-primary);
  transform: translateX(-3px);
  box-shadow: 0 4px 12px rgba(3, 4, 94, 0.3);
}

.btn-back-hub svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.active-category-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.active-category-text h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: 0;
}

.active-category-text span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

@media (max-width: 600px) {
  .category-active-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .active-category-text {
    align-items: flex-start;
    text-align: left;
  }
}

/* ==========================================================================
   PORTAL DE CONSULTA DE RESULTADOS EN LÍNEA (PÁGINA DEDICADA & TOP BAR)
   ========================================================================== */

/* Píldora de acceso rápido en Top Announcement Bar */
.top-bar-consulta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
  color: #ffffff;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(0, 229, 255, 0.4);
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.top-bar-consulta-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(0, 180, 216, 0.5);
  color: #ffffff;
}

.top-bar-consulta-pill svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* Sección y contenedor principal del portal de consulta */
.portal-page {
  background: #f8fafc;
  min-height: 85vh;
  padding: 3rem 1rem 5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.portal-container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.portal-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.95);
  overflow: hidden;
  position: relative;
}

.portal-card-header {
  background: linear-gradient(135deg, #03045e 0%, #0077b6 70%, #0096c7 100%);
  color: #ffffff;
  padding: 2.75rem 2rem 2.25rem 2rem;
  text-align: center;
  position: relative;
}

.portal-card-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00e5ff, #00b4d8, #0077b6);
}

.portal-icon-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #00e5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.portal-icon-badge svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.portal-card-header h1 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.portal-card-header p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}

.portal-card-body {
  padding: 2.5rem 2.5rem 2rem 2.5rem;
}

.portal-form-group {
  margin-bottom: 1.25rem;
}

.portal-form-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.6rem;
}

.portal-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.portal-input-wrapper .input-icon {
  position: absolute;
  left: 1.15rem;
  color: #0077b6;
  pointer-events: none;
  width: 22px;
  height: 22px;
}

.portal-input-wrapper input {
  width: 100%;
  padding: 1.1rem 1rem 1.1rem 3.1rem;
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #0f172a;
  background: #f8fafc;
  transition: all 0.2s ease;
  outline: none;
}

.portal-input-wrapper input:focus {
  border-color: #0077b6;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.15);
}

.portal-feedback {
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  line-height: 1.45;
  display: none;
}

.portal-feedback.error {
  display: block;
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.portal-feedback.warning {
  display: block;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.portal-feedback.success {
  display: block;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.btn-portal-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.05rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 14px;
  background: linear-gradient(135deg, #0077b6 0%, #03045e 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(3, 4, 94, 0.25);
  transition: all 0.22s ease;
}

.btn-portal-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 119, 182, 0.4);
  background: linear-gradient(135deg, #0096c7 0%, #0077b6 100%);
}

.btn-portal-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Guía explicativa: Dónde está mi código */
.portal-guide {
  background: #f1f5f9;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  border: 1px solid #e2e8f0;
}

.portal-guide-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.portal-guide-title svg {
  width: 16px;
  height: 16px;
  fill: #0077b6;
}

.portal-guide-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.portal-guide-item {
  background: #ffffff;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.4;
}

.portal-guide-item strong {
  display: block;
  color: #03045e;
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
}

/* Tarjetas informativas de Seguridad y Soporte */
.portal-security-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.825rem;
  color: #166534;
  line-height: 1.45;
}

.portal-security-notice svg {
  width: 20px;
  height: 20px;
  fill: #16a34a;
  flex-shrink: 0;
  margin-top: 2px;
}

.portal-support-footer {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
}

.portal-support-footer a {
  color: #0077b6;
  font-weight: 700;
  text-decoration: none;
}

.portal-support-footer a:hover {
  text-decoration: underline;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .portal-card-body {
    padding: 1.75rem 1.25rem;
  }
  .portal-card-header {
    padding: 2rem 1.25rem 1.75rem 1.25rem;
  }
  .portal-card-header h1 {
    font-size: 1.4rem;
  }
  .portal-guide-items {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}
