/* ==========================================================================
   StarMedical SST - Design System & Stylesheet
   Paleta Celeste / Cyan Eléctrico Luminoso (de la palabra 'Medical' y gema central)
   ========================================================================== */

:root {
  /* Brand Palette: Tono Celeste / Sky Blue Luminoso */
  --color-cyan-600: #0284c7;
  --color-cyan-500: #00a8e8; /* Tono de 'Medical' */
  --color-cyan-400: #00c2ff;
  --color-cyan-300: #38bdf8;
  --color-cyan-200: #7dd3fc;
  --color-cyan-100: #e0f2fe;
  --color-cyan-50:  #f0f9ff;

  /* Deep Contrast Neutrals */
  --color-navy-950: #060e24;
  --color-navy-900: #0a184a;
  --color-navy-800: #0e2468;
  --color-navy-700: #14358a;

  /* Functional Accents */
  --color-amber-500: #f59e0b; /* Minería y Seguridad */
  --color-emerald-500: #10b981; /* Apto médico */
  --color-rose-500: #ef4444; /* Observado / Alerta */

  /* Neutrals */
  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-400: #94a3b8;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;
  --color-slate-50:  #f8fafc;
  --color-white:     #ffffff;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Elevations */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 168, 232, 0.12), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 20px 25px -5px rgba(2, 132, 199, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 30px rgba(0, 194, 255, 0.35);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overflow-y: auto;
  touch-action: pan-y;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-slate-700);
  background-color: #060e24; /* Fondo azul noche sin bordes blancos accidentales */
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  position: relative;
  touch-action: pan-y;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

/* ==================== TOP BAR ==================== */
.topbar {
  background: var(--color-navy-950);
  color: #cbd5e1;
  font-size: 0.825rem;
  border-bottom: 1px solid rgba(0, 168, 232, 0.2);
  position: relative;
  z-index: 50;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 24px;
}

.info-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.info-item i {
  color: var(--color-cyan-400);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-btn {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.775rem;
  transition: all var(--transition-fast);
}

.topbar-btn:hover {
  transform: translateY(-1px);
}

.whatsapp-badge {
  background: #16a34a;
  color: #fff;
}

.whatsapp-badge:hover {
  background: #15803d;
}

.aula-badge {
  background: rgba(0, 194, 255, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(0, 194, 255, 0.35);
}
.aula-badge:hover {
  background: #0284c7;
  color: #fff;
}

.seguimiento-badge {
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-weight: 700;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.775rem;
  transition: all var(--transition-fast);
}
.seguimiento-badge:hover {
  background: linear-gradient(135deg, #0284c7, #00c2ff);
  color: #040e29;
  font-weight: 800;
}
.seguimiento-badge i {
  color: #00c2ff;
}
.seguimiento-badge:hover i {
  color: #040e29;
}

.topbar-admin-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.775rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}
.topbar-admin-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ==================== MAIN HEADER: IMAGINETEAM SLEEK DARK AESTHETIC ==================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 14, 36, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 194, 255, 0.2);
  box-shadow: 0 10px 35px rgba(2, 6, 23, 0.55);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-header.is-scrolled {
  background: rgba(4, 11, 28, 0.97);
  border-bottom-color: rgba(0, 194, 255, 0.35);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
}

.header-container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 48px;
  box-sizing: border-box;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  min-height: 84px;
  gap: 24px;
}

/* Brand Lockup: Crisp White & Luminous Cyan on Dark */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-badge-glow {
  position: relative;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: radial-gradient(circle at 40% 40%, rgba(0, 194, 255, 0.25) 0%, rgba(2, 132, 199, 0.08) 70%, transparent 100%);
  border: 1px solid rgba(0, 194, 255, 0.35);
  box-shadow: 0 0 20px rgba(0, 194, 255, 0.22);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover .brand-badge-glow {
  transform: scale(1.06) translateY(-2px);
  border-color: rgba(0, 194, 255, 0.65);
  box-shadow: 0 0 28px rgba(0, 194, 255, 0.45);
}

.brand-img-large {
  height: 44px;
  width: auto;
  max-width: 50px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 194, 255, 0.5));
  transition: transform 0.3s ease;
}

.brand-logo:hover .brand-img-large {
  transform: rotate(4deg) scale(1.05);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.brand-name-star,
.brand-star {
  color: #ffffff !important;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.brand-name-medical,
.brand-medical {
  color: #00c2ff !important;
  font-weight: 800;
  margin-left: 3px;
  text-shadow: 0 0 12px rgba(0, 194, 255, 0.4);
}

.brand-tagline {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-top: 4px;
  line-height: 1;
  white-space: nowrap;
}

/* ==================== DESKTOP NAVIGATION: IMAGINETEAM TYPOGRAPHY & MENUS ==================== */
.main-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.main-nav .nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #e2e8f0;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap !important;
  transition: all 0.2s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  background: transparent;
}

.nav-link .nav-caret {
  font-size: 0.65rem;
  transition: transform 0.25s ease;
  color: #94a3b8;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link:hover .nav-caret {
  color: #00c2ff;
}

.nav-item.has-dropdown:hover .nav-link .nav-caret {
  transform: rotate(180deg);
  color: #00c2ff;
}

.nav-link.active {
  color: #00c2ff;
  background: rgba(0, 194, 255, 0.12);
  border: 1px solid rgba(0, 194, 255, 0.25);
}

/* ==================== RICH DROPDOWN MENUS (IMAGINE STYLE) ==================== */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 330px;
  background: rgba(5, 14, 36, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 194, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(0, 194, 255, 0.15);
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1010;
}

/* Invisible bridge so the hover doesn't break when moving cursor down */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-item.has-dropdown:hover .nav-dropdown-menu,
.nav-item.has-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-header-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #38bdf8;
  padding: 4px 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}

.dropdown-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #e2e8f0;
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid transparent;
}

.dropdown-link-item .drop-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 194, 255, 0.12);
  color: #38bdf8;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 194, 255, 0.2);
}

.dropdown-link-item .drop-info {
  display: flex;
  flex-direction: column;
}

.dropdown-link-item .drop-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.dropdown-link-item .drop-desc {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 2px;
  line-height: 1.25;
}

.dropdown-link-item:hover {
  background: rgba(0, 194, 255, 0.14);
  border-color: rgba(0, 194, 255, 0.35);
  transform: translateX(4px);
}

.dropdown-link-item:hover .drop-icon {
  background: #00c2ff;
  color: #040e29;
  transform: scale(1.08);
  box-shadow: 0 0 14px rgba(0, 194, 255, 0.6);
}

.dropdown-link-item:hover .drop-title {
  color: #38bdf8;
}

.dropdown-link-item.highlight-item {
  background: rgba(2, 132, 199, 0.18);
  border-color: rgba(0, 194, 255, 0.3);
}

/* ==================== HEADER RIGHT ACTIONS: CTA BUTTON + SEARCH ==================== */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ImagineTeam Style CTA Button: Sleek, luminous, uppercase */
.btn-imagine-cta {
  font-family: var(--font-heading);
  background: linear-gradient(135deg, #0284c7 0%, #00b4d8 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap !important;
  box-shadow: 0 4px 18px rgba(0, 180, 216, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  text-decoration: none;
}

.btn-imagine-cta:hover {
  background: linear-gradient(135deg, #0369a1 0%, #00c2ff 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 194, 255, 0.55);
  color: #ffffff !important;
}

.btn-imagine-cta i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.btn-imagine-cta:hover i {
  transform: translateX(3px);
}

/* Header Search Button */
.header-search-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.header-search-btn:hover {
  background: rgba(0, 194, 255, 0.2);
  border-color: rgba(0, 194, 255, 0.45);
  color: #00c2ff;
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(0, 194, 255, 0.35);
}

/* Search Dropdown / Overlay */
.header-search-overlay {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(4, 11, 28, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid #00c2ff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  padding: 20px 32px;
  display: none;
  animation: searchDrop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 1020;
}

.header-search-overlay.active {
  display: block;
}

.search-input-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper i.search-icon {
  position: absolute;
  left: 18px;
  color: #00c2ff;
  font-size: 1.15rem;
}

.header-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(0, 194, 255, 0.35);
  border-radius: var(--radius-full);
  padding: 14px 50px 14px 48px;
  color: #ffffff;
  font-size: 1rem;
  outline: none;
  transition: all 0.25s ease;
}

.header-search-input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #00c2ff;
  box-shadow: 0 0 20px rgba(0, 194, 255, 0.35);
}

.header-search-close {
  position: absolute;
  right: 18px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.25rem;
  cursor: pointer;
}
.header-search-close:hover {
  color: #fff;
}

.search-quick-tags {
  max-width: 900px;
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: #94a3b8;
}

.search-quick-tag {
  background: rgba(255, 255, 255, 0.08);
  color: #38bdf8;
  padding: 4px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 194, 255, 0.2);
}
.search-quick-tag:hover {
  background: #0284c7;
  color: #fff;
  border-color: #00c2ff;
  transform: translateY(-1px);
}

/* Dynamic Live Results Container */
.search-results-box {
  max-width: 900px;
  margin: 12px auto 0;
  background: rgba(10, 22, 54, 0.95);
  border: 1px solid rgba(0, 194, 255, 0.35);
  border-radius: 14px;
  max-height: 280px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.search-results-box.active {
  display: flex;
}

.search-result-item {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.search-result-item:hover,
.search-result-item.selected {
  background: rgba(0, 194, 255, 0.16);
  color: #ffffff;
}

.search-result-main {
  display: flex;
  flex-direction: column;
}

.search-result-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
}

.search-result-desc {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 2px;
}

.search-result-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 194, 255, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(0, 194, 255, 0.3);
  white-space: nowrap;
}

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

/* Mobile Toggle: White Bars */
.mobile-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-toggle:hover {
  background: rgba(0, 194, 255, 0.2);
  color: #00c2ff;
  border-color: #00c2ff;
}

/* ==================== BUTTON SYSTEM ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.925rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.825rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #00c2ff 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 194, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  box-shadow: 0 8px 24px rgba(0, 194, 255, 0.5);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline-cyan {
  background: rgba(0, 168, 232, 0.08);
  color: var(--color-cyan-400);
  border: 1.5px solid var(--color-cyan-400);
}

.btn-outline-cyan:hover {
  background: var(--color-cyan-500);
  color: #fff;
  border-color: var(--color-cyan-500);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 168, 232, 0.35);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  transform: translateY(-2px);
}

.btn-success {
  background: #16a34a;
  color: #fff;
}

.btn-success:hover {
  background: #15803d;
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-slate-700);
  border: 1px solid var(--color-slate-300);
}

.btn-outline-dark:hover {
  background: var(--color-slate-100);
}

/* ==================== HERO SECTION (Lighter Cyan Tone) ==================== */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, #0284c7 0%, #0a184a 45%, var(--color-navy-950) 85%);
  color: #fff;
  padding: 75px 0 35px;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(rgba(0, 194, 255, 0.15) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  opacity: 0.7;
  pointer-events: none;
}

.hero-container,
.hero-container-full {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-header-center {
  text-align: center;
  max-width: 980px;
  margin: 0 auto 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-header-center .hero-brand-lockup {
  margin-left: auto;
  margin-right: auto;
}

.hero-header-center .hero-title {
  text-align: center;
  font-size: 3.1rem;
}

.hero-header-center .hero-subtitle {
  text-align: center;
  margin: 0 auto;
  max-width: 840px;
  font-size: 1.1rem;
}

/* ==================== LOGO CORPORATIVO EN INICIO (HERO) ==================== */
.hero-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding: 10px 26px 10px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: heroBrandIn 0.9s cubic-bezier(.2,.8,.2,1) both;
}

.hero-brand-emblem {
  position: relative;
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #eaf6ff 55%, #cfe9fb 100%);
  box-shadow: 0 0 0 4px rgba(0, 194, 255, 0.25), 0 10px 28px rgba(0, 168, 232, 0.45);
}

.hero-brand-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #00c2ff;
  border-right-color: rgba(0, 194, 255, 0.35);
  animation: heroRingSpin 6s linear infinite;
  pointer-events: none;
}

.hero-brand-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(7, 21, 54, 0.35));
  transition: transform 0.5s ease;
}

.hero-brand-lockup:hover .hero-brand-logo {
  transform: rotate(10deg) scale(1.05);
}

.hero-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-brand-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
}

.hb-star { color: #ffffff; }
.hb-medical {
  background: linear-gradient(90deg, #38bdf8, #00c2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-brand-divider {
  display: block;
  width: 100%;
  height: 2px;
  margin: 7px 0 6px;
  border-radius: 2px;
  background: linear-gradient(90deg, #00c2ff, rgba(0, 194, 255, 0));
}

.hero-brand-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #cbe9fb;
  white-space: nowrap;
}

@keyframes heroRingSpin { to { transform: rotate(360deg); } }
@keyframes heroBrandIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .hero-brand-lockup { margin-left: auto; margin-right: auto; }
}

@media (max-width: 600px) {
  .hero-brand-lockup {
    gap: 12px;
    padding: 8px 16px 8px 8px;
  }
  .hero-brand-emblem { width: 56px; height: 56px; }
  .hero-brand-ring { inset: -6px; }
  .hero-brand-logo { width: 44px; height: 44px; }
  .hero-brand-name { font-size: 1.35rem; }
  .hero-brand-tag { font-size: 0.56rem; letter-spacing: 1.4px; }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 194, 255, 0.18);
  border: 1px solid rgba(0, 194, 255, 0.45);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-cyan-200);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-cyan-400);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--color-cyan-300);
  animation: pulseAnim 2s infinite;
}

@keyframes pulseAnim {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.9rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(135deg, #00c2ff 0%, #ffffff 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.825rem;
  color: #e2e8f0;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-item i {
  color: var(--color-cyan-400);
}

/* ==================== STAR MEDICAL QUANTUM COCKPIT HUD (IMAGINETEAM STYLE) ==================== */
.hero-card-col {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* ==================== STAR MEDICAL FULL-HEADER PANORAMIC HUD VISOR (IMAGINETEAM STYLE) ==================== */
.hero-sky-panoramic {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  background: radial-gradient(circle at 50% 20%, #034e9e 0%, #022b68 45%, var(--color-navy-950) 90%);
}

.sky-clouds-drift {
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: 
    radial-gradient(circle at 25% 35%, rgba(0, 194, 255, 0.16) 0%, transparent 40%),
    radial-gradient(circle at 65% 55%, rgba(56, 189, 248, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 45% 75%, rgba(2, 132, 199, 0.18) 0%, transparent 50%);
  filter: blur(28px);
  animation: driftClouds 36s linear infinite alternate;
}

.sky-aurora-glow {
  position: absolute;
  top: 5%;
  left: 15%;
  right: 15%;
  height: 65%;
  background: radial-gradient(ellipse at center, rgba(0, 194, 255, 0.2) 0%, rgba(2, 132, 199, 0.08) 60%, transparent 80%);
  filter: blur(25px);
  animation: auroraPulse 6s ease-in-out infinite alternate;
}

.sky-grid-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 194, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 194, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.55;
}

@keyframes driftClouds {
  0% { transform: translate(-4%, -3%) scale(1); }
  50% { transform: translate(4%, 3%) scale(1.06); }
  100% { transform: translate(-2%, 4%) scale(1); }
}

@keyframes auroraPulse {
  0% { opacity: 0.5; transform: scale(0.96); }
  100% { opacity: 0.9; transform: scale(1.04); }
}

/* Full-Header Visor HUD Wrapper */
.star-cockpit-wrapper.full-header-hud {
  position: relative;
  width: 100%;
  max-width: 1320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 auto;
}

/* Top Holographic Status Strip */
.cockpit-top-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  background: rgba(3, 20, 54, 0.88);
  border: 1.5px solid rgba(0, 194, 255, 0.4);
  border-radius: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.8px;
  color: #94a3b8;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.cockpit-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #38bdf8;
  font-size: 0.72rem;
}

.cockpit-id {
  font-size: 0.68rem;
  font-weight: 700;
  color: #7dd3fc;
  letter-spacing: 1.2px;
}

/* Panoramic Visor Cockpit Frame */
.star-quantum-cockpit.visor-panoramic {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 340px 1fr;
  gap: 20px;
  align-items: center;
  background: rgba(3, 18, 52, 0.76);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 28px;
  padding: 22px 24px;
  box-shadow: 
    0 25px 65px rgba(0, 0, 0, 0.65), 
    0 0 50px rgba(0, 194, 255, 0.25), 
    inset 0 0 40px rgba(0, 194, 255, 0.12);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Wings: Left & Right HUD Panels */
.cockpit-wing {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(0, 194, 255, 0.35);
  border-radius: 20px;
  padding: 16px;
  box-shadow: inset 0 0 25px rgba(0, 194, 255, 0.08);
  transition: all 0.3s ease;
}

.cockpit-wing.wing-left {
  animation: deployWingLeft 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cockpit-wing.wing-right {
  animation: deployWingRight 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes deployWingLeft {
  from { opacity: 0; transform: translateX(35px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes deployWingRight {
  from { opacity: 0; transform: translateX(-35px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

.cockpit-wing:hover {
  border-color: rgba(0, 194, 255, 0.65);
  box-shadow: inset 0 0 35px rgba(0, 194, 255, 0.15), 0 0 25px rgba(0, 194, 255, 0.2);
}

.wing-header-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(0, 194, 255, 0.2);
  padding-bottom: 8px;
}

.wing-header-tag i {
  color: #00c2ff;
}

/* Corner bracket ticks */
.wing-bracket-line {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid #00c2ff;
  pointer-events: none;
  opacity: 0.85;
}

.wing-bracket-line.top-left { top: -2px; left: -2px; border-right: none; border-bottom: none; border-top-left-radius: 20px; }
.wing-bracket-line.bottom-left { bottom: -2px; left: -2px; border-right: none; border-top: none; border-bottom-left-radius: 20px; }
.wing-bracket-line.top-right { top: -2px; right: -2px; border-left: none; border-bottom: none; border-top-right-radius: 20px; }
.wing-bracket-line.bottom-right { bottom: -2px; right: -2px; border-left: none; border-top: none; border-bottom-right-radius: 20px; }

/* 2x2 Wide High-Contrast Tiles Grid */
.cockpit-tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Cockpit High-Legibility Interactive Tile */
.cockpit-tile {
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(0, 194, 255, 0.28);
  border-radius: 14px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 104px;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.cockpit-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00c2ff, transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cockpit-tile .tile-icon {
  font-size: 1.45rem;
  color: #38bdf8;
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.25s ease;
}

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

.cockpit-tile .tile-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #ffffff;
  line-height: 1.25;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.cockpit-tile .tile-sub {
  font-size: 0.76rem;
  color: #7dd3fc;
  margin-top: 4px;
  font-weight: 600;
  line-height: 1.15;
  transition: color 0.2s ease;
}

/* Hover & Active / Selected Tile (Vibrant Blue/Cyan Glow matching Image 2) */
.cockpit-tile:hover,
.cockpit-tile.active-tile {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.88) 0%, rgba(0, 194, 255, 0.58) 100%);
  border-color: #00c2ff;
  box-shadow: 0 0 28px rgba(0, 194, 255, 0.75), inset 0 0 16px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px) scale(1.02);
}

.cockpit-tile:hover::before,
.cockpit-tile.active-tile::before {
  opacity: 1;
}

.cockpit-tile:hover .tile-icon,
.cockpit-tile.active-tile .tile-icon {
  color: #ffffff;
  transform: scale(1.15);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.9);
}

.cockpit-tile:hover .tile-label,
.cockpit-tile.active-tile .tile-label {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.cockpit-tile:hover .tile-sub,
.cockpit-tile.active-tile .tile-sub {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

/* Highlight tile accent */
.cockpit-tile.highlight-tile {
  border-color: rgba(0, 194, 255, 0.45);
  background: rgba(2, 132, 199, 0.14);
}

/* Center Rolling Polymorphic Orb Core (320px) */
.cockpit-center-core {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 auto;
}

/* Rotating Energy Rings */
.orb-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.orb-ring.ring-outer {
  width: 336px;
  height: 336px;
  border: 1.5px dashed rgba(0, 194, 255, 0.45);
  animation: spinOrbClockwise 24s linear infinite;
}

.orb-ring.ring-middle {
  width: 324px;
  height: 324px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-top-color: #00c2ff;
  border-bottom-color: #00c2ff;
  animation: spinOrbCounter 14s linear infinite;
}

.orb-ring.ring-cyan-halo {
  width: 312px;
  height: 312px;
  box-shadow: 0 0 60px rgba(0, 194, 255, 0.6), inset 0 0 40px rgba(2, 132, 199, 0.45);
}

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

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

/* 3D Liquid Sphere Body (Pure Blues & Cyans, ZERO Black!) */
.orb-sphere-shell {
  position: relative;
  width: 304px;
  height: 304px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #0554b8 0%, #033785 55%, #011d4d 100%);
  border: 2.5px solid #00c2ff;
  box-shadow: 
    0 0 55px rgba(0, 194, 255, 0.65),
    inset 0 0 45px rgba(0, 194, 255, 0.55),
    inset 0 0 85px rgba(2, 132, 199, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.35s ease;
}

/* Rolling Polymorphism Canvas Layer */
.orb-liquid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

/* Sphere Glass Refraction Overlay */
.orb-glass-specular {
  position: absolute;
  top: 4%;
  left: 12%;
  width: 60%;
  height: 40%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 40% 30%, rgba(255, 255, 255, 0.45) 0%, rgba(0, 194, 255, 0.15) 50%, transparent 80%);
  pointer-events: none;
  z-index: 2;
  transform: rotate(-25deg);
}

/* Star Medical 3D Crystal Star ONLY in Center with Letrero Luminoso Backlight */
.orb-star-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.star-neon-backlight {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.85) 0%, rgba(2, 132, 199, 0.5) 50%, transparent 75%);
  filter: blur(16px);
  animation: neonGlowBacklight 2.6s ease-in-out infinite alternate;
}

@keyframes neonGlowBacklight {
  0% { transform: scale(0.92); opacity: 0.7; }
  50% { transform: scale(1.14); opacity: 1; filter: blur(18px); }
  100% { transform: scale(0.92); opacity: 0.7; }
}

.orb-crystal-star {
  position: relative;
  z-index: 4;
  width: 125px;
  height: 125px;
  object-fit: contain;
  filter: 
    drop-shadow(0 0 18px rgba(0, 194, 255, 0.95))
    drop-shadow(0 0 40px rgba(2, 132, 199, 0.85));
  animation: floatStar3D 4s ease-in-out infinite;
  transition: transform 0.3s ease;
}

@keyframes floatStar3D {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  50% { transform: translateY(-4px) scale(1.05) rotate(2deg); }
}

.star-shine-ray {
  position: absolute;
  width: 170px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), #00c2ff, transparent);
  border-radius: 2px;
  filter: blur(1px);
  animation: crystalShineSweep 3.6s ease-in-out infinite;
  z-index: 5;
}

@keyframes crystalShineSweep {
  0% { transform: rotate(45deg) translateY(-80px); opacity: 0; }
  20% { opacity: 1; }
  40% { transform: rotate(45deg) translateY(80px); opacity: 0; }
  100% { transform: rotate(45deg) translateY(80px); opacity: 0; }
}

/* Dynamic Holographic Detail Popup Card (Active ONLY on Hover/Click, matching Image 2) */
.orb-popup-card {
  position: absolute;
  width: 275px;
  height: 260px;
  border-radius: 22px;
  background: rgba(3, 16, 48, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 18px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid #00c2ff;
  box-shadow: inset 0 0 30px rgba(0, 194, 255, 0.4), 0 0 45px rgba(0, 194, 255, 0.65);
  z-index: 6;
}

.cockpit-center-core.show-detail .orb-popup-card {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.cockpit-center-core.show-detail .orb-star-wrapper {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
}

.popup-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  margin-bottom: 6px;
}

.popup-cat-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(0, 194, 255, 0.18);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 194, 255, 0.35);
}

.btn-popup-close {
  position: absolute;
  right: 2px;
  top: -8px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.35rem;
  cursor: pointer;
  padding: 2px 6px;
  transition: color 0.2s ease;
}

.btn-popup-close:hover {
  color: #ffffff;
}

.popup-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 4px 0 8px;
  text-shadow: 0 0 12px rgba(0, 194, 255, 0.7);
}

.popup-card-desc {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0 0 14px;
  max-height: 78px;
  overflow-y: auto;
  padding: 0 4px;
}

.popup-card-btn {
  background: linear-gradient(135deg, #0284c7 0%, #00c2ff 100%);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 20px rgba(0, 194, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.popup-card-btn:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 0 26px rgba(0, 194, 255, 0.85);
}

.popup-card-btn i {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.popup-card-btn:hover i {
  transform: translateX(3px);
}

/* Visor Bottom Indicators & Metrics Strip */
.cockpit-bottom-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 20px;
  background: rgba(3, 20, 54, 0.88);
  border: 1px solid rgba(0, 194, 255, 0.35);
  border-radius: 12px;
  font-size: 0.78rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.cockpit-stats-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cockpit-stats-item strong {
  color: #00c2ff;
  font-weight: 800;
  font-size: 0.88rem;
}

.cockpit-stats-item span {
  color: #cbd5e1;
  font-size: 0.72rem;
}

.cockpit-divider {
  width: 1px;
  height: 20px;
  background: rgba(0, 194, 255, 0.25);
}

.cockpit-mini-video-btn {
  background: rgba(0, 194, 255, 0.14);
  border: 1px solid rgba(0, 194, 255, 0.4);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.cockpit-mini-video-btn:hover {
  background: #0284c7;
  border-color: #00c2ff;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Bottom Actions & Trust Badges */
.hero-bottom-actions-row {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}

@media (max-width: 1100px) {
  .star-quantum-cockpit.visor-panoramic {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .cockpit-center-core {
    order: -1;
  }
}

@media (max-width: 768px) {
  .cockpit-tiles-grid {
    grid-template-columns: 1fr;
  }
  .cockpit-bottom-bar {
    flex-direction: column;
    gap: 8px;
  }
  .cockpit-divider {
    display: none;
  }
}

/* Responsive Cockpit Layout */
@media (max-width: 1240px) {
  .star-quantum-cockpit {
    grid-template-columns: 1fr 210px 1fr;
    gap: 8px;
  }
  .cockpit-center-core {
    width: 210px;
    height: 210px;
  }
  .orb-ring.ring-outer { width: 220px; height: 220px; }
  .orb-ring.ring-middle { width: 210px; height: 210px; }
  .orb-sphere-shell { width: 200px; height: 200px; }
  .orb-crystal-star { width: 80px; height: 80px; }
  .cockpit-tile { min-height: 80px; padding: 10px 4px 8px; }
  .cockpit-tile .tile-label { font-size: 0.62rem; }
}

@media (max-width: 1024px) {
  .star-cockpit-wrapper {
    max-width: 580px;
    margin: 20px auto 0;
  }
  .star-quantum-cockpit {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
  }
  .cockpit-center-core {
    order: -1;
  }
  .cockpit-wing {
    width: 100%;
    max-width: 480px;
  }
}

@media (max-width: 640px) {
  .cockpit-tiles-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .cockpit-tile {
    min-height: 72px;
    padding: 8px 4px;
  }
  .cockpit-tile .tile-icon {
    font-size: 1rem;
    margin-bottom: 4px;
  }
  .cockpit-tile .tile-label {
    font-size: 0.6rem;
  }
  .cockpit-bottom-bar {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  .cockpit-divider {
    display: none;
  }
}

/* Hero Ticker */
.hero-ticker {
  background: rgba(6, 14, 36, 0.95);
  border-top: 1px solid rgba(0, 168, 232, 0.2);
  margin-top: 50px;
  padding: 22px 0;
}

.ticker-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ticker-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 12px;
  border-left: 2px solid var(--color-cyan-400);
}

.ticker-icon {
  font-size: 1.8rem;
  color: var(--color-cyan-400);
}

.ticker-box h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.ticker-box p {
  font-size: 0.775rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* ==================== GENERAL SECTION LAYOUT ==================== */
.section {
  padding: 56px 0;
  position: relative;
}

.section-header {
  margin-bottom: 32px;
}

.section-header.text-center {
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-cyan-100);
  color: var(--color-cyan-600);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(0, 168, 232, 0.2);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-navy-900);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--color-slate-600);
  line-height: 1.6;
}

/* ==================== PRESENTATION & TECHNOLOGY ==================== */
.section-presentation {
  background-color: var(--color-slate-50);
}

.presentation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.video-showcase {
  display: flex;
  flex-direction: column;
}

.video-player-wrapper {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.presentation-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-selector-tabs {
  display: flex;
  background: var(--color-navy-950);
}

.v-tab {
  flex: 1;
  background: none;
  border: none;
  color: #94a3b8;
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 3px solid transparent;
  transition: all var(--transition-fast);
}

.v-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.v-tab.active {
  color: #fff;
  background: rgba(0, 168, 232, 0.15);
  border-bottom-color: var(--color-cyan-400);
}

.video-caption-box {
  margin-top: 16px;
  background: var(--color-cyan-50);
  border: 1px solid rgba(0, 168, 232, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--color-slate-600);
}

.caption-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--color-navy-900);
  margin-bottom: 4px;
}

/* Clinic Badge Card */
.clinic-badge-card {
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.clinic-badge-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-slate-100);
  margin-bottom: 20px;
}

.clinic-avatar img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.clinic-badge-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-navy-900);
  font-weight: 800;
  line-height: 1.2;
}

.legal-name {
  font-size: 0.85rem;
  color: var(--color-cyan-600);
  font-weight: 700;
}

.clinic-details-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.cd-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cd-icon {
  width: 38px;
  height: 38px;
  background: var(--color-cyan-50);
  color: var(--color-cyan-600);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  border: 1px solid rgba(0, 168, 232, 0.2);
}

.cd-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--color-slate-800);
}

.cd-item p {
  font-size: 0.875rem;
  color: var(--color-slate-600);
  margin-top: 2px;
}

.consorcio-box {
  background: linear-gradient(135deg, var(--color-cyan-50) 0%, #e0f2fe 100%);
  border: 1px solid rgba(0, 168, 232, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: auto;
}

.consorcio-box h4 {
  font-size: 0.95rem;
  color: var(--color-navy-900);
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.consorcio-box p {
  font-size: 0.825rem;
  color: var(--color-slate-600);
  margin-bottom: 12px;
}

.consorcio-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.c-pill {
  background: #fff;
  border: 1px solid rgba(0, 168, 232, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--color-cyan-600);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.c-pill.active {
  background: var(--color-cyan-500);
  color: #fff;
  border-color: var(--color-cyan-500);
}

/* ==================== SERVICES SECTION ==================== */
.section-services {
  background-color: var(--color-slate-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-cyan-300);
}

.service-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.service-icon-box {
  width: 52px;
  height: 52px;
  background: var(--color-cyan-50);
  border: 1px solid rgba(0, 168, 232, 0.25);
  color: var(--color-cyan-600);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all var(--transition-fast);
}

.service-card:hover .service-icon-box {
  background: var(--color-cyan-500);
  color: #fff;
}

.service-badge {
  font-size: 0.725rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--color-cyan-50);
  color: var(--color-cyan-600);
  border: 1px solid rgba(0, 168, 232, 0.2);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy-900);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--color-slate-600);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-cyan-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.service-link:hover {
  color: var(--color-cyan-500);
  gap: 10px;
}

/* Levantamiento de Observaciones Banner */
.obs-feature-banner {
  background: linear-gradient(135deg, var(--color-navy-950) 0%, var(--color-navy-800) 100%);
  border: 1.5px solid rgba(0, 194, 255, 0.35);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 32px;
  box-shadow: var(--shadow-xl);
}

.obs-banner-icon {
  width: 76px;
  height: 76px;
  background: rgba(0, 194, 255, 0.15);
  border: 1px solid rgba(0, 194, 255, 0.4);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--color-cyan-400);
  flex-shrink: 0;
}

.obs-banner-content {
  flex-grow: 1;
}

.obs-badge {
  display: inline-block;
  background: var(--color-amber-500);
  color: var(--color-navy-950);
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.obs-banner-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.obs-banner-content p {
  font-size: 0.925rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.obs-banner-action {
  flex-shrink: 0;
}

/* ==================== VIGILANCIA TECNOLÓGICA (VIGIMED & CLOUDAPPER) ==================== */
.section-vigilancia {
  background: #ffffff;
}

.vigimed-portal-box {
  background: #0d1b3e;
  border: 1.5px solid rgba(0, 194, 255, 0.3);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(10, 24, 74, 0.35);
  color: #fff;
}

.portal-toolbar {
  background: #07102a;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.825rem;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.portal-dot.red { background: #ef4444; }
.portal-dot.yellow { background: #f59e0b; }
.portal-dot.green { background: #10b981; }

.portal-title {
  color: #cbd5e1;
  font-weight: 600;
}

.portal-title i {
  color: var(--color-cyan-400);
  margin-right: 6px;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portal-user {
  color: #e2e8f0;
  font-size: 0.8rem;
}

.portal-badge-live {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 600;
}

.portal-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.kpi-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 4px solid #fff;
}

.kpi-card.green { border-color: #10b981; }
.kpi-card.yellow { border-color: #f59e0b; }
.kpi-card.orange { border-color: #fb923c; }
.kpi-card.blue { border-color: var(--color-cyan-400); }

.kpi-icon {
  font-size: 1.6rem;
  color: #94a3b8;
}

.kpi-card.green .kpi-icon { color: #10b981; }
.kpi-card.yellow .kpi-icon { color: #f59e0b; }
.kpi-card.orange .kpi-icon { color: #fb923c; }
.kpi-card.blue .kpi-icon { color: var(--color-cyan-400); }

.kpi-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}

.kpi-label {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* Portal Table */
.portal-table-wrapper {
  padding: 20px;
}

.table-search-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}

.search-input-group {
  position: relative;
  flex-grow: 1;
  max-width: 450px;
}

.search-input-group i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
}

.search-input-group input {
  width: 100%;
  background: #142454;
  border: 1px solid #23397d;
  border-radius: var(--radius-md);
  padding: 9px 12px 9px 38px;
  color: #fff;
  font-size: 0.85rem;
}

.search-input-group input:focus {
  outline: none;
  border-color: var(--color-cyan-400);
}

.filter-group {
  display: flex;
  gap: 6px;
}

.filter-btn {
  background: #142454;
  border: 1px solid #23397d;
  color: #94a3b8;
  font-size: 0.775rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--color-cyan-500);
  color: #fff;
  border-color: var(--color-cyan-500);
}

.table-responsive {
  overflow-x: auto;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.portal-table th {
  background: #0f1c42;
  color: #94a3b8;
  padding: 12px 14px;
  font-weight: 600;
  border-bottom: 1px solid #23397d;
  white-space: nowrap;
}

.portal-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #142454;
  color: #e2e8f0;
  vertical-align: middle;
}

.portal-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.worker-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.worker-avatar-letter {
  width: 32px;
  height: 32px;
  background: #23397d;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge.apto {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.restriccion {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.observado {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-cert-camo {
  background: rgba(0, 168, 232, 0.15);
  color: var(--color-cyan-300);
  border: 1px solid rgba(0, 168, 232, 0.35);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-cert-camo:hover {
  background: var(--color-cyan-500);
  color: #fff;
}

.portal-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
  background: #07102a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pf-card {
  padding: 14px;
}

.pf-icon {
  font-size: 1.5rem;
  color: var(--color-cyan-400);
  margin-bottom: 10px;
}

.pf-card h4 {
  font-size: 0.925rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.pf-card p {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* ==================== MARCO NORMATIVO ==================== */
.section-normativa {
  background-color: var(--color-slate-50);
}

/* Normativa Dual Slider (Empresas Mineras vs Trabajadores) */
.normativa-slider-wrapper {
  position: relative;
  margin-bottom: 45px;
}

.normativa-slider-container {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 45px -12px rgba(10, 25, 60, 0.25);
  border: 1.5px solid rgba(0, 194, 255, 0.3);
  background: #071536;
}

.normativa-slide {
  display: none;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 460px;
  background: #071536;
  opacity: 0;
}

.normativa-slide.active {
  display: grid;
  opacity: 1;
  animation: slideFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.slide-media {
  position: relative;
  overflow: hidden;
  background: #020b1e;
  min-height: 420px;
}

.slide-media .slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.normativa-slide:hover .slide-media .slide-img {
  transform: scale(1.03);
}

.slide-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 21, 54, 0) 60%, rgba(7, 21, 54, 0.95) 100%),
              linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(7, 21, 54, 0.5) 100%);
  pointer-events: none;
}

.slide-content-card {
  padding: 42px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(circle at 90% 10%, rgba(0, 194, 255, 0.08) 0%, rgba(7, 21, 54, 0.98) 100%);
  color: #fff;
  position: relative;
  z-index: 2;
}

.slide-target-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.775rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 14px;
}

.slide-target-badge.target-empresa {
  background: rgba(0, 168, 232, 0.16);
  color: var(--color-cyan-300);
  border: 1.5px solid rgba(0, 194, 255, 0.4);
}

.slide-target-badge.target-trabajador {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1.5px solid rgba(16, 185, 129, 0.4);
}

.slide-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 14px;
}

.slide-desc {
  font-size: 0.925rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 22px;
}

.slide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 26px;
}

.s-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.775rem;
  font-weight: 600;
  color: #e2e8f0;
  transition: all var(--transition-fast);
}

.s-tag i {
  color: var(--color-cyan-400);
}

.s-tag:hover {
  background: rgba(0, 194, 255, 0.15);
  border-color: rgba(0, 194, 255, 0.4);
  color: #fff;
}

.slide-action .btn {
  font-size: 0.875rem;
  padding: 12px 24px;
}

/* Slider Controls & Tabs */
.normativa-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
}

.slider-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-slate-300);
  background: #fff;
  color: var(--color-navy-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
}

.slider-nav-btn:hover {
  background: var(--color-cyan-500);
  color: #fff;
  border-color: var(--color-cyan-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.slider-dots {
  display: flex;
  gap: 10px;
}

.slider-dots .dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 30px;
  border: 1.5px solid var(--color-slate-300);
  background: #fff;
  color: var(--color-slate-600);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.slider-dots .dot i {
  font-size: 0.9rem;
  color: var(--color-slate-400);
  transition: color 0.25s ease;
}

.slider-dots .dot:hover {
  border-color: var(--color-cyan-400);
  color: var(--color-navy-900);
}

.slider-dots .dot:hover i {
  color: var(--color-cyan-500);
}

.slider-dots .dot.active {
  background: linear-gradient(135deg, #0284c7 0%, #00a8e8 100%);
  color: #fff;
  border-color: #00a8e8;
  box-shadow: 0 4px 14px rgba(0, 168, 232, 0.35);
}

.slider-dots .dot.active i {
  color: #fff;
}

@media (max-width: 991px) {
  .normativa-slide {
    grid-template-columns: 1fr;
  }
  .slide-media {
    min-height: 280px;
    max-height: 340px;
  }
  .slide-overlay-gradient {
    background: linear-gradient(180deg, rgba(7, 21, 54, 0) 50%, rgba(7, 21, 54, 0.95) 100%);
  }
  .slide-content-card {
    padding: 28px 22px;
  }
  .slide-title {
    font-size: 1.3rem;
  }
  .slider-dots .dot {
    padding: 8px 14px;
    font-size: 0.775rem;
  }
}

@media (max-width: 540px) {
  .slide-media {
    min-height: 220px;
  }
  .slider-dots .dot span {
    font-size: 0.725rem;
  }
  .slider-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
  }
}

.regulations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}

.regulation-card {
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border-top: 4px solid var(--color-cyan-500);
}

.regulation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--color-cyan-400);
}

.reg-norm-pill {
  display: inline-block;
  background: var(--color-cyan-50);
  color: var(--color-cyan-600);
  font-size: 0.775rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  border: 1px solid rgba(0, 168, 232, 0.2);
}

.regulation-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 6px;
}

.reg-focus {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-cyan-600);
  margin-bottom: 12px;
}

.reg-desc {
  font-size: 0.875rem;
  color: var(--color-slate-600);
  line-height: 1.6;
}

/* Audit Checklist Card */
.audit-checklist-card {
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: var(--shadow-md);
}

.checklist-header {
  margin-bottom: 24px;
}

.ch-badge {
  display: inline-block;
  background: var(--color-amber-500);
  color: var(--color-navy-950);
  font-size: 0.725rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.checklist-header h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-navy-900);
  font-weight: 800;
  margin-bottom: 6px;
}

.checklist-header p {
  font-size: 0.925rem;
  color: var(--color-slate-600);
}

.checklist-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.chk-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.875rem;
  color: var(--color-slate-700);
}

.chk-item i {
  color: var(--color-emerald-500);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ==================== CAPACITACIÓN & AULA VIRTUAL ==================== */
.section-capacitacion {
  background: var(--color-white);
}

.training-cta-banner {
  background: radial-gradient(circle at 10% 20%, #0284c7 0%, var(--color-navy-950) 100%);
  border-radius: var(--radius-xl);
  padding: 48px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-xl);
  margin-bottom: 40px;
  border: 1.5px solid rgba(0, 194, 255, 0.35);
}

.t-badge {
  display: inline-block;
  background: rgba(0, 194, 255, 0.18);
  color: var(--color-cyan-200);
  border: 1px solid rgba(0, 194, 255, 0.45);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.t-banner-left h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
}

.t-banner-left p {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 22px;
}

.t-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
  font-size: 0.875rem;
  color: #e2e8f0;
}

.tf-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tf-item i {
  color: var(--color-cyan-400);
}

/* Giant Aula Virtual Button */
.aula-cta-box {
  margin-top: 10px;
}

.btn-aula-giant {
  background: linear-gradient(135deg, #0284c7 0%, #00c2ff 100%);
  border: 2px solid #fff;
  border-radius: var(--radius-xl);
  padding: 16px 26px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 10px 25px rgba(0, 194, 255, 0.45), 0 0 20px rgba(56, 189, 248, 0.3);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-aula-giant:hover {
  transform: translateY(-3px) scale(1.02);
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  box-shadow: 0 15px 35px rgba(0, 194, 255, 0.6);
  color: #fff;
}

.btn-icon-circle {
  width: 52px;
  height: 52px;
  background: #fff;
  color: var(--color-cyan-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-text-block {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-top-lbl {
  font-size: 0.725rem;
  color: #bae6fd;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.btn-main-lbl {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.btn-sub-lbl {
  font-size: 0.775rem;
  color: #e0f2fe;
  opacity: 0.9;
}

.btn-external-icon {
  font-size: 1.2rem;
  color: #bae6fd;
}

/* Mockup Card on the right */
.aula-mockup-card {
  background: #0f1c42;
  border: 1px solid rgba(0, 194, 255, 0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.m-card-header {
  background: #081129;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.m-dots {
  display: flex;
  gap: 5px;
}

.m-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #475569;
}

.m-title {
  font-size: 0.75rem;
  color: #94a3b8;
  font-family: monospace;
}

.m-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.m-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.m-logo h4 {
  font-size: 0.85rem;
  color: #fff;
  font-weight: 700;
}

.m-course-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.775rem;
}

.mc-tag {
  background: var(--color-cyan-500);
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.mc-info {
  flex-grow: 1;
}

.mc-info strong {
  display: block;
  color: #fff;
}

.mc-info span {
  display: block;
  color: #94a3b8;
  font-size: 0.7rem;
}

.mc-status {
  color: #34d399;
  font-weight: 700;
  font-size: 0.7rem;
}

/* Courses Subgrid */
.courses-subgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.course-card {
  background: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  background: var(--color-white);
  border-color: var(--color-cyan-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.course-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.course-code {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--color-cyan-600);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.course-hours {
  font-size: 0.75rem;
  color: var(--color-slate-500);
  font-weight: 600;
}

.course-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy-900);
  margin-bottom: 8px;
  line-height: 1.3;
}

.course-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-cyan-600);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.course-desc {
  font-size: 0.825rem;
  color: var(--color-slate-600);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.course-action {
  margin-top: auto;
}

.course-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-cyan-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.course-link:hover {
  color: var(--color-cyan-500);
}

/* ==================== CONTACT FORM & ACUSE DE RECIBO ==================== */
.section-contact {
  background: linear-gradient(180deg, var(--color-slate-50) 0%, #e6f6ff 100%);
  position: relative;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: stretch;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
}

.contact-info-panel h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-navy-900);
  line-height: 1.2;
  margin-bottom: 12px;
}

.contact-info-panel p {
  font-size: 0.95rem;
  color: var(--color-slate-600);
  margin-bottom: 28px;
  line-height: 1.6;
}

.c-perks-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

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

.cp-item i {
  font-size: 1.4rem;
  color: var(--color-cyan-500);
  background: #fff;
  padding: 12px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-slate-200);
  flex-shrink: 0;
}

.cp-item strong {
  display: block;
  font-size: 0.925rem;
  color: var(--color-navy-900);
}

.cp-item p {
  font-size: 0.85rem;
  color: var(--color-slate-600);
  margin-top: 2px;
  margin-bottom: 0;
}

.emergency-contact-box {
  background: linear-gradient(135deg, var(--color-navy-950) 0%, var(--color-navy-900) 100%);
  color: #fff;
  padding: 24px;
  border-radius: var(--radius-xl);
  margin-top: auto;
  border: 1px solid rgba(0, 194, 255, 0.35);
  box-shadow: var(--shadow-lg);
}

.emergency-contact-box h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.emergency-contact-box p {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 14px;
}

.direct-phone-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.phone-link {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-cyan-300);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.phone-link:hover {
  color: #fff;
}

.hours-tag {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: #e2e8f0;
}

/* Contact Form Panel */
.contact-form-panel {
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-xl);
}

.form-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-slate-100);
}

.form-header h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-navy-900);
  margin-bottom: 4px;
}

.form-header p {
  font-size: 0.825rem;
  color: var(--color-slate-500);
}

.req-star {
  color: var(--color-rose-500);
  font-weight: 700;
}

.styled-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.col-half {
  flex: 1;
}

.col-full {
  width: 100%;
}

.form-group label {
  display: block;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-slate-800);
  margin-bottom: 6px;
}

.form-group label i {
  color: var(--color-cyan-500);
  margin-right: 4px;
}

.form-control {
  width: 100%;
  background: var(--color-slate-50);
  border: 1.5px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--color-slate-900);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  background: #fff;
  border-color: var(--color-cyan-400);
  box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.18);
}

.form-control.input-error {
  border-color: var(--color-rose-500);
  background: #fff1f2;
}

.field-error {
  display: block;
  font-size: 0.725rem;
  color: var(--color-rose-500);
  margin-top: 4px;
  min-height: 16px;
}

/* Captcha Box */
.captcha-box {
  background: #f0f9ff;
  border: 1px solid rgba(0, 168, 232, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.captcha-challenge {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.captcha-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-slate-500);
}

.captcha-badge i {
  color: var(--color-emerald-500);
}

.captcha-question-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-math-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-cyan-600);
  background: #e0f2fe;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
}

.btn-refresh-captcha {
  background: none;
  border: none;
  color: var(--color-slate-500);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  transition: transform var(--transition-fast);
}

.btn-refresh-captcha:hover {
  color: var(--color-cyan-500);
  transform: rotate(90deg);
}

.captcha-input-wrap {
  min-width: 140px;
}

.captcha-input {
  text-align: center;
  font-weight: 700;
  letter-spacing: 1px;
}

.form-group-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.775rem;
  color: var(--color-slate-600);
  line-height: 1.5;
}

.form-group-checkbox input {
  margin-top: 3px;
  accent-color: var(--color-cyan-600);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Alert Boxes */
.form-alert-box {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.form-alert-box.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.form-alert-box.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* ==================== MODALS ==================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 14, 36, 0.78);
  backdrop-filter: blur(8px);
  z-index: 1000;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-dialog {
  width: 100%;
  max-width: 600px;
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.25s ease-out;
}

.modal-dialog-lg {
  max-width: 800px;
}

.modal-dialog-xl {
  max-width: 1080px;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-slate-200);
}

.modal-header-success {
  background: linear-gradient(135deg, #0284c7 0%, #00c2ff 100%);
  color: #fff;
  border: none;
}

.modal-badge-icon {
  font-size: 1.8rem;
  color: #fff;
  margin-right: 12px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  flex-grow: 1;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: #0f172a;
}

.modal-header-success .modal-close-btn {
  color: rgba(255, 255, 255, 0.8);
}

.modal-header-success .modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 24px;
}

.modal-body.p-0 {
  padding: 0;
}

.modal-footer {
  padding: 16px 24px;
  background: var(--color-slate-50);
  border-top: 1px solid var(--color-slate-200);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Acuse Modal Specifics */
.acuse-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.acuse-top {
  text-align: center;
  background: var(--color-cyan-50);
  border: 1.5px dashed var(--color-cyan-400);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.acuse-org {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--color-slate-600);
  text-transform: uppercase;
}

.acuse-ticket-code {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-cyan-600);
  letter-spacing: 2px;
  margin: 4px 0;
}

.acuse-ticket-lbl {
  font-size: 0.75rem;
  color: var(--color-slate-500);
  font-weight: 600;
}

.acuse-details {
  background: #fff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.acuse-details strong {
  color: var(--color-slate-800);
}

.acuse-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-cyan-50);
  border-left: 4px solid var(--color-cyan-400);
  padding: 12px 16px;
  font-size: 0.825rem;
  color: var(--color-navy-900);
}

.acuse-sla {
  background: #fefce8;
  border: 1px solid #fef08a;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.825rem;
  color: #854d0e;
}

/* Video Modal */
.video-modal-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

/* ==================== AUTOGESTIONABLE ADMIN PANEL UX (CMS) ==================== */
.admin-modal-content {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.admin-modal-header {
  background: var(--color-navy-950);
  color: #fff;
  border-bottom: 1px solid rgba(0, 168, 232, 0.25);
}

.admin-brand-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-brand-top i {
  font-size: 1.6rem;
}

.admin-sub {
  font-size: 0.775rem;
  color: var(--color-cyan-200);
  margin-top: 2px;
}

.admin-body-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  flex-grow: 1;
  overflow: hidden;
  height: 560px;
}

.admin-sidebar {
  background: var(--color-slate-100);
  border-right: 1px solid var(--color-slate-200);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.admin-tab-btn {
  background: none;
  border: none;
  text-align: left;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-slate-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-fast);
}

.admin-tab-btn:hover {
  background: #e2e8f0;
  color: var(--color-cyan-600);
}

.admin-tab-btn.active {
  background: var(--color-cyan-500);
  color: #fff;
}

.admin-tab-content-area {
  padding: 24px;
  overflow-y: auto;
  background: #fff;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: block;
}

.admin-tab-panel h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-navy-900);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-field.full-w {
  grid-column: 1 / -1;
}

.admin-field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-slate-700);
}

.tab-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.admin-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-item-card {
  background: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-botonera-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-botonera-card {
  background: rgba(10, 24, 58, 0.7);
  border: 1px solid rgba(0, 194, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-botonera-card:hover {
  border-color: rgba(0, 194, 255, 0.55);
  box-shadow: 0 4px 18px rgba(0, 194, 255, 0.15);
}

.admin-botonera-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.admin-botonera-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #38bdf8;
  background: rgba(0, 194, 255, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 194, 255, 0.3);
}

.admin-botonera-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-botonera-fields .full-w {
  grid-column: 1 / -1;
}

.admin-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-media-manager {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.media-previews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.preview-box {
  background: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.preview-box strong {
  font-size: 0.775rem;
  color: var(--color-slate-700);
}

.preview-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.preview-path {
  font-size: 0.675rem;
  color: var(--color-slate-400);
  word-break: break-all;
}

.video-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-cyan-600);
  color: #fff;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  margin-top: 10px;
}

.admin-consultas-table-wrap {
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  max-height: 400px;
  overflow-y: auto;
}

.admin-modal-footer {
  background: var(--color-slate-100);
  border-top: 1px solid var(--color-slate-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
}

.admin-footer-left {
  display: flex;
  gap: 10px;
}

.admin-footer-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.save-status-indicator {
  font-size: 0.825rem;
  font-weight: 600;
  color: #15803d;
}

/* ==================== FOOTER ==================== */
.main-footer {
  background: var(--color-navy-950);
  color: #94a3b8;
  padding-top: 70px;
  border-top: 1px solid rgba(0, 168, 232, 0.2);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}

.col-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.f-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.f-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--color-cyan-400);
  font-weight: 700;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

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

.cert-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 168, 232, 0.25);
  color: var(--color-cyan-200);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--color-cyan-400);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-links a.highlight-link {
  color: var(--color-cyan-300);
  font-weight: 700;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.footer-contact-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-contact-list i {
  color: var(--color-cyan-400);
  margin-top: 3px;
}

.footer-admin-box {
  margin-top: 10px;
}

.footer-bottom {
  background: #04091a;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.775rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-links {
  display: flex;
  gap: 10px;
}

.footer-bottom-links a:hover {
  color: #fff;
}

/* ==================== WHATSAPP PREMIUM (SOLO ICONO) ==================== */
.floating-cta-container.floating-left {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 990;
}

.wa-premium-btn {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.85rem;
  text-decoration: none;
  background: radial-gradient(circle at 30% 25%, #4ade80 0%, #22c55e 38%, #128c4a 100%);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 10px 25px rgba(18, 140, 74, 0.45),
    inset 0 2px 6px rgba(255, 255, 255, 0.35),
    inset 0 -4px 10px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s ease;
}

.wa-premium-btn i {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

.wa-premium-btn:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.08);
  box-shadow:
    0 14px 32px rgba(18, 140, 74, 0.55),
    0 0 0 6px rgba(34, 197, 94, 0.18),
    inset 0 2px 6px rgba(255, 255, 255, 0.35);
}

.wa-premium-pulse {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, 0.6);
  animation: waPulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes waPulse {
  0%   { transform: scale(1);   opacity: 0.9; }
  80%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ==================== RIEL DE REDES SOCIALES (CENTRO VERTICAL) ==================== */
.social-rail {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  border-radius: 999px;
  background: rgba(7, 21, 54, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 194, 255, 0.25);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.35);
  z-index: 985;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.social-rail.is-scrolled {
  background: rgba(7, 21, 54, 0.82);
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.45);
}

.social-rail-line {
  position: relative;
  width: 2px;
  height: 34px;
  border-radius: 2px;
  background: rgba(148, 163, 184, 0.35);
  overflow: hidden;
}

.social-rail-line.bottom {
  height: 22px;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.35), transparent);
}

.social-rail-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #00c2ff, #38bdf8);
  box-shadow: 0 0 8px rgba(0, 194, 255, 0.8);
  transition: height 0.1s linear;
}

.social-rail-item {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  font-size: 1.05rem;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2), 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.social-rail-item:hover {
  color: #fff;
  transform: translateX(4px) scale(1.12);
}

/* Etiqueta emergente al pasar el mouse */
.social-rail-item::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #fff;
  background: rgba(7, 21, 54, 0.95);
  border: 1px solid rgba(0, 194, 255, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-rail-item:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Colores oficiales de marca al pasar el mouse */
.social-rail-item.google:hover {
  background: #fff;
  color: #ea4335;
  box-shadow: 0 6px 18px rgba(234, 67, 53, 0.45);
}
.social-rail-item.insta:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  box-shadow: 0 6px 18px rgba(214, 36, 159, 0.45);
}
.social-rail-item.tiktok:hover {
  background: #010101;
  color: #fff;
  text-shadow: -2px -1px 0 #25F4EE, 2px 1px 0 #FE2C55;
  box-shadow: 0 6px 18px rgba(37, 244, 238, 0.35);
}
.social-rail-item.linkedin:hover {
  background: #0a66c2;
  box-shadow: 0 6px 18px rgba(10, 102, 194, 0.5);
}

/* Tablet */
@media (max-width: 1024px) {
  .social-rail {
    left: 10px;
    gap: 8px;
    padding: 10px 6px;
  }
  .social-rail-item {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }
  .social-rail-line { height: 24px; }
  .social-rail-line.bottom { height: 16px; }
  .social-rail-item::after { display: none; }
  .wa-premium-btn {
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
  }
}

/* Celular */
@media (max-width: 600px) {
  .social-rail {
    left: 6px;
    gap: 6px;
    padding: 8px 4px;
    background: rgba(7, 21, 54, 0.7);
  }
  .social-rail-item {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }
  .social-rail-line { height: 16px; }
  .social-rail-line.bottom { height: 10px; }
  .floating-cta-container.floating-left {
    left: 14px;
    bottom: 16px;
  }
  .wa-premium-btn {
    width: 48px;
    height: 48px;
    font-size: 1.45rem;
    border-width: 1.5px;
  }
}

/* ==================== PAGE SCROLL NAVIGATOR (RIGHT SIDE) ==================== */
.page-scroll-navigator {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 990;
}

.nav-section-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  white-space: nowrap;
  background: rgba(9, 21, 48, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 194, 255, 0.35);
  color: #e2e8f0;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--transition-fast);
}

.page-scroll-navigator:hover .nav-section-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.dot-live {
  width: 6px;
  height: 6px;
  background: #00c2ff;
  border-radius: 50%;
  box-shadow: 0 0 8px #00c2ff;
}

.scroll-progress-ring-wrap {
  width: 56px;
  height: 56px;
  position: relative;
  border-radius: 50%;
  background: rgba(9, 21, 48, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 194, 255, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.scroll-progress-ring-wrap:hover {
  transform: scale(1.08);
  border-color: #00c2ff;
  box-shadow: 0 8px 25px rgba(0, 194, 255, 0.4);
}

.progress-ring-svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.progress-ring-circle {
  transition: stroke-dashoffset 0.15s ease-out;
}

.progress-ring-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
}

.progress-ring-arrow {
  display: none;
  font-size: 0.85rem;
  color: #00c2ff;
}

.scroll-progress-ring-wrap:hover #scrollProgressPercent {
  display: none;
}

.scroll-progress-ring-wrap:hover .progress-ring-arrow {
  display: block;
}

.nav-section-controls {
  display: flex;
  gap: 4px;
  background: rgba(9, 21, 48, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 194, 255, 0.25);
  border-radius: var(--radius-full);
  padding: 3px 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-nav-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-nav-step:hover {
  background: rgba(0, 194, 255, 0.2);
  color: #00c2ff;
}

/* ==================== MOBILE DRAWER: DARK TECH GLASS (IMAGINE STYLE) ==================== */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  max-width: 88vw;
  height: 100%;
  background: rgba(5, 14, 36, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-left: 1px solid rgba(0, 194, 255, 0.25);
  z-index: 1050;
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.active {
  right: 0;
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 194, 255, 0.18);
  background: rgba(3, 10, 26, 0.8);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #ffffff;
  font-size: 0.85rem;
}

.drawer-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 194, 255, 0.6));
}

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

.drawer-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
  transform: rotate(90deg);
}

.drawer-quick-actions {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(0, 194, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.drawer-quick-btn {
  flex: 1;
  padding: 8px 10px;
  font-size: 0.725rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.drawer-quick-btn.seguimiento {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.drawer-quick-btn.seguimiento:hover {
  background: #0284c7;
  color: #ffffff;
}

.drawer-quick-btn.admin {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.drawer-quick-btn.admin:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.drawer-nav {
  list-style: none;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  flex-grow: 1;
}

.drawer-item {
  display: flex;
  flex-direction: column;
}

.drawer-link {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}

.drawer-link-content {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.drawer-link i {
  color: #38bdf8;
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
}

.drawer-link .drawer-chevron {
  font-size: 0.7rem;
  color: #64748b;
  transition: transform 0.25s ease;
}

.drawer-item.open .drawer-chevron {
  transform: rotate(180deg);
  color: #00c2ff;
}

.drawer-link:hover {
  background: rgba(0, 194, 255, 0.1);
  color: #ffffff;
  border-color: rgba(0, 194, 255, 0.25);
}

.drawer-submenu {
  list-style: none;
  padding: 4px 0 6px 28px;
  margin: 0;
  display: none;
  flex-direction: column;
  gap: 4px;
}

.drawer-item.open .drawer-submenu {
  display: flex;
}

.drawer-sublink {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.drawer-sublink:hover {
  color: #38bdf8;
  background: rgba(255, 255, 255, 0.05);
}

.drawer-sublink i {
  font-size: 0.7rem;
  color: #00c2ff;
}

.drawer-link.highlight {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25), rgba(0, 194, 255, 0.25));
  border-color: rgba(0, 194, 255, 0.4);
  color: #38bdf8;
  margin-top: 8px;
}

.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(0, 194, 255, 0.18);
  background: rgba(3, 10, 26, 0.9);
}

.drawer-clinic-info {
  margin-top: 12px;
  font-size: 0.74rem;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-clinic-info i {
  color: #00c2ff;
  margin-right: 6px;
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

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

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

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

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

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

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

  .training-cta-banner {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

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

  .admin-body-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .admin-sidebar {
    flex-direction: row;
    overflow-x: auto;
  }
}

@media (max-width: 1280px) {
  .header-container {
    padding: 0 20px;
  }
  .nav-link {
    font-size: 0.86rem;
    padding: 7px 10px;
  }
  .brand-title {
    font-size: 1.3rem;
  }
  .btn-header-cotizar, .btn-aula-header {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}

@media (max-width: 1120px) {
  .main-nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  /* Ocultar barra superior en móvil para eliminar desborde horizontal de 650px y optimizar espacio */
  .topbar {
    display: none !important;
  }

  .main-header {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: clip !important;
  }

  .header-container {
    padding: 0 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .header-inner {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    min-height: 58px !important;
    gap: 8px !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .brand-logo {
    gap: 8px !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
  }

  .brand-badge-glow {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
  }

  .brand-img-large {
    height: 26px !important;
    max-width: 30px !important;
  }

  .brand-title {
    font-size: clamp(0.92rem, 3.6vw, 1.1rem) !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  .brand-tagline {
    display: none !important;
  }

  .main-nav {
    display: none !important;
  }

  .header-right {
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .btn-imagine-cta {
    padding: 6px 12px !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.2px !important;
    gap: 5px !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
  }

  .btn-imagine-cta i {
    font-size: 0.65rem !important;
  }

  .header-search-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.85rem !important;
    flex-shrink: 0 !important;
  }

  .mobile-toggle {
    width: 38px !important;
    height: 38px !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

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

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

  .services-grid, 
  .regulations-grid, 
  .courses-subgrid, 
  .ticker-container {
    grid-template-columns: 1fr;
  }

  .portal-features-grid {
    grid-template-columns: 1fr;
  }

  .checklist-items-grid {
    grid-template-columns: 1fr;
  }

  .obs-feature-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .form-row {
    flex-direction: column;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .topbar-info {
    display: none;
  }

  .topbar-inner {
    justify-content: center;
  }

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

  .media-previews-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== MOUSE HOVER SPOTLIGHT & MICRO-INTERACTIONS ==================== */
.spotlight-card,
.service-card,
.regulation-card,
.audit-checklist-card,
.kpi-card,
.course-card,
.pf-card,
.chk-item {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s ease !important;
}

.service-card:hover,
.regulation-card:hover,
.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -8px rgba(0, 168, 232, 0.22);
  border-color: rgba(0, 194, 255, 0.5) !important;
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -6px rgba(0, 194, 255, 0.2);
}

.chk-item:hover {
  transform: translateX(4px);
  border-color: var(--color-cyan-400);
  background: #f0f9ff;
}

/* ==================== ADMIN LOGIN MODAL WITH STRONG PASSWORD ==================== */
.admin-login-dialog {
  max-width: 440px;
}

.admin-login-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(2, 44, 100, 0.35);
  border: 1.5px solid rgba(0, 194, 255, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Modal Login Brand & Visual Differentiation */
.login-modal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 14px 6px 10px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 12px;
}

.login-brand-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0, 194, 255, 0.8));
}

.login-brand-name {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #f8fafc;
}

.login-sys-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.badge-cms {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.badge-sst {
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
}

.modal-login-cms {
  border: 2px solid rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 25px 65px -10px rgba(7, 21, 54, 0.65), 0 0 35px rgba(56, 189, 248, 0.25) !important;
}

.modal-login-sst {
  border: 2px solid rgba(16, 185, 129, 0.55) !important;
  box-shadow: 0 25px 65px -10px rgba(2, 43, 67, 0.65), 0 0 35px rgba(16, 185, 129, 0.25) !important;
}

.admin-login-header {
  padding: 28px 24px 22px;
  text-align: center;
  position: relative;
}

.header-cms {
  background: linear-gradient(135deg, #090e24 0%, #151a3d 50%, #1a275e 100%) !important;
  border-bottom: 3px solid #38bdf8 !important;
}

.header-sst {
  background: linear-gradient(135deg, #021a2c 0%, #034066 50%, #0077b6 100%) !important;
  border-bottom: 3px solid #10b981 !important;
}

.btn-login-submit-cms {
  background: linear-gradient(135deg, #0284c7, #00adef) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4) !important;
}

.btn-login-submit-cms:hover {
  background: linear-gradient(135deg, #0369a1, #0284c7) !important;
  transform: translateY(-1px);
}

.btn-login-submit-sst {
  background: linear-gradient(135deg, #059669, #0077b6) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4) !important;
}

.btn-login-submit-sst:hover {
  background: linear-gradient(135deg, #047857, #0284c7) !important;
  transform: translateY(-1px);
}

.note-cms {
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  color: #0369a1 !important;
  font-size: 0.76rem !important;
  line-height: 1.4 !important;
}

.note-sst {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  color: #15803d !important;
  font-size: 0.76rem !important;
  line-height: 1.4 !important;
}

.text-emerald {
  color: #10b981 !important;
}

.admin-login-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 194, 255, 0.15);
  border: 1.5px solid rgba(0, 194, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.6rem;
  color: var(--color-cyan-300);
  box-shadow: 0 0 20px rgba(0, 194, 255, 0.3);
}

.admin-login-header h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fff;
}

.admin-login-header p {
  font-size: 0.8rem;
  color: #94a3b8;
}

.admin-login-body {
  padding: 28px 24px;
}

.login-pass-group {
  position: relative;
  margin-bottom: 20px;
}

.login-pass-input {
  width: 100%;
  padding: 13px 44px 13px 16px;
  border: 1.5px solid var(--color-slate-300);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
}

.login-pass-input:focus {
  outline: none;
  border-color: var(--color-cyan-500);
  box-shadow: 0 0 0 4px rgba(0, 194, 255, 0.15);
}

.btn-toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 6px;
}

.btn-toggle-pass:hover {
  color: var(--color-cyan-600);
}

.admin-login-error {
  display: none;
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.admin-security-note {
  margin-top: 16px;
  padding: 12px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  font-size: 0.775rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==================== SISTEMA MULTI-EMPRESA DE SEGUIMIENTO & ALERTAS ==================== */
.modal-dialog-2xl {
  max-width: 1280px;
  width: 96%;
  margin: 20px auto;
}

.seguimiento-app-card {
  background: #081226;
  color: #e2e8f0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 194, 255, 0.3);
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}

.app-topbar {
  background: #050d1e;
  border-bottom: 1px solid rgba(0, 194, 255, 0.2);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.app-brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0284c7 0%, #00c2ff 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(0, 194, 255, 0.4);
}

.app-title-h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: 0;
}

.app-subtitle-p {
  font-size: 0.75rem;
  color: var(--color-cyan-300);
  margin: 2px 0 0;
}

.company-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(0, 194, 255, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.company-select-input {
  background: transparent;
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  outline: none;
}

.company-select-input option {
  background: #071536;
  color: #fff;
}

.app-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.app-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
}

/* Radar de Alertas EMO */
.app-alerts-radar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.alert-radar-card {
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 4px solid #fff;
  background: rgba(255, 255, 255, 0.04);
}

.alert-radar-card.green { border-color: #10b981; }
.alert-radar-card.yellow { border-color: #f59e0b; }
.alert-radar-card.orange { border-color: #fb923c; }
.alert-radar-card.red { border-color: #ef4444; }

.radar-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

.radar-lbl {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 3px;
  display: block;
}

/* App Filter Bar */
.app-filter-bar {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.2);
}

.search-worker-box {
  position: relative;
  flex: 1;
  max-width: 420px;
}

.search-worker-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
}

.search-worker-box input {
  width: 100%;
  background: #0d1b38;
  border: 1px solid #1e3a73;
  border-radius: var(--radius-md);
  padding: 10px 14px 10px 38px;
  color: #fff;
  font-size: 0.85rem;
}

.search-worker-box input:focus {
  outline: none;
  border-color: var(--color-cyan-400);
}

.filter-pills-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.app-pill-btn {
  background: #0d1b38;
  border: 1px solid #1e3a73;
  color: #94a3b8;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.app-pill-btn:hover, .app-pill-btn.active {
  background: var(--color-cyan-500);
  color: #fff;
  border-color: var(--color-cyan-500);
}

/* App Table Area */
.app-table-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 20px;
}

.app-worker-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.app-worker-table th {
  padding: 12px 14px;
  background: #07122b;
  color: #94a3b8;
  font-weight: 600;
  border-bottom: 1px solid #1e3a73;
  position: sticky;
  top: 0;
  z-index: 5;
}

.app-worker-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.app-worker-table tr:hover td {
  background: rgba(0, 194, 255, 0.04);
}

.worker-col-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.worker-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a73, #0284c7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.worker-dni-sub {
  font-size: 0.75rem;
  color: #64748b;
  display: block;
}

.alert-vencimiento-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 700;
}

.alert-vencimiento-pill.optimo {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-vencimiento-pill.preventivo {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.alert-vencimiento-pill.urgente {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.3);
}

.alert-vencimiento-pill.vencido {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.action-buttons-cell {
  display: flex;
  gap: 6px;
}

.app-act-btn {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.app-act-btn.dossier {
  background: rgba(0, 168, 232, 0.15);
  color: var(--color-cyan-300);
  border: 1px solid rgba(0, 168, 232, 0.35);
}

.app-act-btn.dossier:hover {
  background: var(--color-cyan-500);
  color: #fff;
}

.app-act-btn.levantar {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.app-act-btn.levantar:hover {
  background: #f59e0b;
  color: #fff;
}

.app-act-btn.camo {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.app-act-btn.camo:hover {
  background: #10b981;
  color: #fff;
}

/* Modales Clínicos y Certificado CAMO */
.clinical-matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.exam-result-card {
  background: #0f1e42;
  border: 1px solid #1f3b7c;
  border-radius: var(--radius-md);
  padding: 14px;
}

.exam-res-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.exam-res-header strong {
  color: #fff;
  font-size: 0.85rem;
}

.exam-res-desc {
  font-size: 0.775rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* Certificado CAMO Formato Oficial */
.camo-certificate-sheet {
  background: #ffffff;
  color: #0f172a;
  border-radius: 8px;
  padding: 34px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  font-family: Arial, sans-serif;
  max-width: 780px;
  margin: 0 auto;
}

.camo-header-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #0284c7;
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.camo-official-title {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  color: #0c4a6e;
}

.camo-details-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.825rem;
  margin-bottom: 20px;
}

.camo-details-table td {
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
}

.camo-details-table td.camo-label {
  background: #f8fafc;
  font-weight: 700;
  color: #475569;
  width: 32%;
}

.camo-dictamen-box {
  border: 2px solid #059669;
  background: #ecfdf5;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  margin-bottom: 22px;
}

.camo-dictamen-val {
  font-size: 1.4rem;
  font-weight: 900;
  color: #047857;
  letter-spacing: 1px;
}

.camo-footer-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 24px;
  align-items: flex-end;
}

.camo-digital-sign-box {
  border: 1.5px dashed #0284c7;
  background: #f0f9ff;
  border-radius: 6px;
  padding: 12px;
  font-size: 0.725rem;
  color: #0369a1;
}

.camo-qr-scanner-box {
  text-align: center;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.camo-qr-img {
  width: 90px;
  height: 90px;
  margin: 0 auto 6px;
}

@media (max-width: 991px) {
  .app-alerts-radar {
    grid-template-columns: repeat(2, 1fr);
  }
  .clinical-matrix-grid {
    grid-template-columns: 1fr;
  }
}

/* Status Badges in Surveillance Table */
.app-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.app-status-badge.badge-apto {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.app-status-badge.badge-restriccion {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.app-status-badge.badge-observado {
  background: rgba(251, 146, 60, 0.18);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.4);
}

.app-status-badge.badge-vence {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Clinical Matrix Item in Expediente Modal */
.clinical-exam-item {
  background: #0f1e42;
  border: 1px solid #1f3b7c;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--transition-fast);
}

.clinical-exam-item:hover {
  border-color: var(--color-cyan-400);
  background: #142854;
  transform: translateY(-2px);
}

.exam-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.exam-item-result {
  font-size: 0.85rem;
  color: #e2e8f0;
  line-height: 1.5;
  font-weight: 500;
}

.exam-item-norm {
  font-size: 0.725rem;
  color: #94a3b8;
  margin-top: 4px;
}

/* ==================== CMS SOCIAL CHANNELS MANAGEMENT ==================== */
.admin-social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.admin-social-item {
  background: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--transition-fast);
}

.admin-social-item:hover {
  border-color: var(--color-cyan-500);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.social-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.social-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.social-icon-box.wa { background: #22c55e; }
.social-icon-box.google { background: #ea4335; }
.social-icon-box.insta { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.social-icon-box.tiktok { background: #000; }
.social-icon-box.linkedin { background: #0a66c2; }

/* Switch Toggle Slider */
.social-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.social-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.social-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 24px;
}

.social-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.social-switch input:checked + .social-slider {
  background-color: #0284c7;
}

.social-switch input:checked + .social-slider:before {
  transform: translateX(20px);
}




/* ==================== WEBGL 3D QUANTUM HERO ==================== */
.section-homepage_hero {
  position: relative;
  z-index: 4;
  width: 100%;
  height: auto;
  min-height: calc(100vh - 110px);
  color: #FFF;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #020716;
  padding: 20px 0;
  box-sizing: border-box;
}

/* ==================== STRATOSPHERE FLIGHT-DECK COCKPIT BACKDROP ====================
 * Deep space cosmic backdrop with luminescent cyan nebulas:
 * - Enhances contrast of the white glowing cockpit visor and neon star
 * - Reflective flight-deck horizon floor with specular edge
 * =================================================================================== */
.hero-cockpit-backdrop {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-sky-gradient {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 40%, #082154 0%, #030d24 55%, #01040d 100%), linear-gradient(180deg, #020714 0%, #06183a 50%, #010512 100%);
}

/* Soft Billowing Passing Cloud Drifts & Cosmic Nebulas */
.hero-clouds-drift {
  position: absolute;
  left: -25%;
  top: 0;
  width: 160%;
  height: 75%;
  background-image: 
    radial-gradient(ellipse 65% 42% at 20% 38%, rgba(0, 194, 255, 0.12), transparent 72%),
    radial-gradient(ellipse 75% 48% at 72% 32%, rgba(2, 132, 199, 0.10), transparent 72%),
    radial-gradient(ellipse 55% 36% at 48% 52%, rgba(56, 189, 248, 0.08), transparent 72%);
  filter: blur(28px);
  animation: cloudsDriftAnim 50s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes cloudsDriftAnim {
  0% { transform: translateX(-50px) translateY(0); }
  100% { transform: translateX(70px) translateY(-18px); }
}

.section-homepage_hero .block-content {
  position: relative;
  z-index: 5;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-stage-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  z-index: 5;
}

.hero-stage-pure-center {
  margin: 0 auto;
  justify-content: center;
  align-items: center;
}

/* Left Column: Star Medical Typography & Brand Identity */
.hero-col-left {
  width: 34%;
  min-width: 320px;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 8;
  padding-bottom: 25px;
}

.hero-brand-lockup-quantum {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  background: rgba(0, 194, 255, 0.08);
  border: 1px solid rgba(0, 194, 255, 0.35);
  border-radius: 30px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 1.25rem;
  box-shadow: 0 0 20px rgba(0, 194, 255, 0.15);
  width: fit-content;
}

.hero-brand-logo-quantum {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px #00c2ff);
  animation: pulseBrandStar 3s ease-in-out infinite alternate;
}

@keyframes pulseBrandStar {
  0% { transform: scale(0.95); opacity: 0.85; }
  100% { transform: scale(1.08); opacity: 1; filter: drop-shadow(0 0 14px #00e5ff); }
}

.hero-brand-name-quantum {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #67e8f9;
  text-transform: uppercase;
  font-family: inherit;
}

.hero-brand-tag {
  font-size: clamp(12px, 0.9vw, 15px);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 1rem;
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
}

.hero-stage-title {
  font-size: clamp(32px, 2.8vw, 50px);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 40px rgba(2, 132, 199, 0.3);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-stage-subtitle {
  font-size: clamp(14px, 1.05vw, 16.5px);
  line-height: 1.6;
  color: rgba(224, 242, 254, 0.85);
  margin-bottom: 2rem;
  max-width: 480px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-stage-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-imagine-expert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00adef 0%, #0284c7 100%);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 40px;
  padding: 14px 34px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 24px rgba(0, 173, 239, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-imagine-expert:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0096cf 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 173, 239, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

/* Right Column: 66% width - The Cockpit HUD framing the 3D WebGL Sphere */
.hero-col-right {
  width: 66%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
}

.section-homepage_hero .block-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

/* 3D WebGL Canvas Layer mounted directly inside Cockpit Visor Block-Menu */
.section-homepage_hero .block-menu .hero-webgl-wrapper {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.section-homepage_hero .block-menu .hero-webgl-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.section-homepage_hero .block-menu__content {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  aspect-ratio: 928 / 500;
  z-index: 2;
}

.section-homepage_hero .block-menu__content--mobile {
  display: none !important;
}

.section-homepage_hero .block-menu__content--left,
.section-homepage_hero .block-menu__content--right {
  position: absolute;
  top: -5%;
  height: 110%;
  width: 44%;
  pointer-events: none;
  z-index: 1; /* El marco se sitúa detrás de los botones: sin control sobre control */
}

.section-homepage_hero .block-menu__content--left {
  left: 0;
}

.section-homepage_hero .block-menu__content--right {
  right: 0;
}

.section-homepage_hero .block-menu__content--left img,
.section-homepage_hero .block-menu__content--right img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  filter: drop-shadow(0 0 1.5px #ffffff) drop-shadow(0 0 3px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 8px rgba(37, 99, 235, 0.8)) drop-shadow(0 15px 35px rgba(0, 0, 0, 0.7));
}

.section-homepage_hero .block-menu__content--right img {
  transform: scaleX(-1);
}

/* Nav Buttons Grid: botones interactivos con z-index superior, completamente libres de obstrucción */
.section-homepage_hero .block-menu__content .nav {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 4; /* Botones por encima del marco, perfectamente accesibles */
  pointer-events: none;
}

.section-homepage_hero .block-menu__content .nav > li {
  list-style: none;
}

/* Ensure template data text inside nav is strictly hidden from screen */
.d-none {
  display: none !important;
}

.section-homepage_hero .block-menu__content .text,
.section-homepage_hero .block-menu__content .nav > li .text {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
}

/* Central Neon Star Medical Core inside Rolling Visor Sphere */
.hero-sphere-star-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(120px, 12vw, 175px);
  height: clamp(120px, 12vw, 175px);
  z-index: 6;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-sphere-star-core.is-hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  pointer-events: none;
}

.hero-sphere-star-core .star-halo-glow {
  position: absolute;
  width: 140%;
  height: 140%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.55) 0%, rgba(2, 132, 199, 0.28) 45%, transparent 72%);
  filter: blur(14px);
  animation: starPulseHalo 3.5s ease-in-out infinite alternate;
}

.hero-sphere-star-core .star-core-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(0, 229, 255, 0.95)) drop-shadow(0 0 35px rgba(2, 132, 199, 0.7));
  animation: starBreathe 4s ease-in-out infinite alternate;
}

@keyframes starPulseHalo {
  0% { transform: scale(0.92); opacity: 0.65; }
  100% { transform: scale(1.14); opacity: 1; }
}

@keyframes starBreathe {
  0% { transform: scale(0.97) rotate(-1deg); }
  100% { transform: scale(1.03) rotate(1deg); }
}

.section-homepage_hero .block-menu__content .nav > li button {
  position: absolute;
  border: none;
  padding: 0;
  background: none;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.section-homepage_hero .block-menu__content .nav > li button .btn-bg {
  position: relative;
  width: 100%;
  display: block;
}

.section-homepage_hero .block-menu__content .nav > li button .btn-bg img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.3s ease-in-out;
}

.section-homepage_hero .block-menu__content .nav > li button .btn-bg img.active {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}

/* Exact Proportional Coordinates for the 8 Buttons (Harmonious clearance from frame) */
.section-homepage_hero .block-menu__content .nav > li button[data-tab="1"] {
  width: 13.5%;
  left: 3.2%;
  top: 11.5%;
}

.section-homepage_hero .block-menu__content .nav > li button[data-tab="2"] {
  width: 14.8%;
  left: 17.2%;
  top: 19.8%;
}

.section-homepage_hero .block-menu__content .nav > li button[data-tab="3"] {
  width: 13.5%;
  left: 3.2%;
  top: 51.5%;
}

.section-homepage_hero .block-menu__content .nav > li button[data-tab="4"] {
  width: 14.8%;
  left: 17.2%;
  top: 53.5%;
}

.section-homepage_hero .block-menu__content .nav > li button[data-tab="5"] {
  width: 14.8%;
  left: 68.0%;
  top: 19.8%;
}

.section-homepage_hero .block-menu__content .nav > li button[data-tab="6"] {
  width: 13.5%;
  left: 83.3%;
  top: 11.5%;
}

.section-homepage_hero .block-menu__content .nav > li button[data-tab="7"] {
  width: 14.8%;
  left: 68.0%;
  top: 53.5%;
}

.section-homepage_hero .block-menu__content .nav > li button[data-tab="8"] {
  width: 13.5%;
  left: 83.3%;
  top: 51.5%;
}

.section-homepage_hero .block-menu__content .nav > li button .btn-txt {
  width: 100%;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  text-transform: uppercase;
  font-weight: 800;
  padding: 0 6%;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-size: clamp(9px, 0.72vw, 12.5px);
  text-align: center;
  color: #0f172a;
  transition: all 0.25s ease;
  font-family: inherit;
}

.section-homepage_hero .block-menu__content .nav > li button .btn-txt small {
  display: block;
  font-size: 0.82em;
  font-weight: 600;
  opacity: 0.85;
  margin-top: 2px;
  color: #1e293b;
}

/* Button Hover and Active States */
.section-homepage_hero .block-menu__content .nav > li button:hover,
.section-homepage_hero .block-menu__content .nav > li button.active {
  color: #FFF;
  transform: scale(1.05);
  z-index: 8;
}

.section-homepage_hero .block-menu__content .nav > li button:hover .btn-bg img.default,
.section-homepage_hero .block-menu__content .nav > li button.active .btn-bg img.default {
  opacity: 0;
}

.section-homepage_hero .block-menu__content .nav > li button:hover .btn-bg img.active,
.section-homepage_hero .block-menu__content .nav > li button.active .btn-bg img.active {
  opacity: 1;
}

.section-homepage_hero .block-menu__content .nav > li button:hover .btn-txt,
.section-homepage_hero .block-menu__content .nav > li button.active .btn-txt {
  color: #ffffff !important;
  text-shadow: 0 0 12px rgba(0, 194, 255, 0.95), 0 2px 4px rgba(0, 0, 0, 0.7);
}

.section-homepage_hero .block-menu__content .nav > li button:hover .btn-txt small,
.section-homepage_hero .block-menu__content .nav > li button.active .btn-txt small {
  color: #bae6fd !important;
}

/* Central Holographic Popup Card */
.section-homepage_hero .block-menu__popup {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -45.8%);
  width: 39.156%;
  max-width: 380px;
  display: none;
  z-index: 10;
  pointer-events: auto;
}

.section-homepage_hero .block-menu__popup.is-active {
  display: block;
}

.section-homepage_hero .block-menu__popup-backdrop {
  display: none;
}

.section-homepage_hero .block-menu__popup-card {
  position: relative;
  width: 100%;
  height: 100%;
}

.section-homepage_hero .block-menu__popup--bg {
  width: 100%;
  position: relative;
}

.section-homepage_hero .block-menu__popup--bg img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0, 12, 35, 0.75));
}

.section-homepage_hero .block-menu__popup--close {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 18px;
  top: 14px;
  width: 28px;
  height: 28px;
  z-index: 12;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  color: #ffffff;
  font-size: 13px;
  transition: background 0.2s, transform 0.2s;
}

.section-homepage_hero .block-menu__popup--close:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.1);
}

.section-homepage_hero .block-menu__popup--content {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px 12%;
  line-height: 1.35;
  color: #FFF;
}

.section-homepage_hero .block-menu__popup--content .h3 {
  font-size: clamp(14px, 1.25vw, 21px);
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 8px;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
  line-height: 1.2;
}

.section-homepage_hero .block-menu__popup--content p {
  font-size: clamp(11.5px, 0.8vw, 13.5px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.94);
  margin-bottom: 14px;
}

.popup-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0284c7, #00adef);
  color: #fff !important;
  font-size: clamp(10.5px, 0.75vw, 12px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 14px rgba(0, 173, 238, 0.45);
  cursor: pointer;
  transition: all 0.2s ease;
}

.popup-action-btn:hover {
  background: linear-gradient(135deg, #0369a1, #0284c7);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 173, 238, 0.65);
}

/* Bottom Right Action Buttons (Matching Screenshot) */
.hero-bottom-right-actions {
  position: absolute;
  right: 20px;
  bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 10;
}

.btn-imagine-demo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #00a8e8;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 22px 8px 8px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 168, 232, 0.4);
  transition: all 0.25s ease;
}

.btn-imagine-demo .btn-demo-orb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #002b55, #001229);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 168, 232, 0.8), inset 0 0 6px rgba(0, 168, 232, 0.6);
}

.btn-imagine-demo .btn-demo-orb img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px #00a8e8);
}

.btn-imagine-demo:hover {
  background: #0095cf;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 168, 232, 0.6);
}

.btn-imagine-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 250px;
  background: #005fa3;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 95, 163, 0.35);
  transition: all 0.25s ease;
  text-align: center;
}

.btn-imagine-contact:hover {
  background: #004d85;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 95, 163, 0.55);
}

/* ==================== HERO RESPONSIVE ENGINE (DESKTOP & MOBILE INTEGRATION) ==================== */
@media (max-width: 991px) {
  .section-homepage_hero {
    height: auto !important;
    min-height: auto !important;
    padding-top: 30px !important;
    padding-bottom: 60px !important;
    display: block !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: clip !important;
    box-sizing: border-box !important;
  }

  .hero-stage-container {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 16px 20px !important;
    gap: 15px !important;
  }

  .hero-col-left {
    width: 100% !important;
    max-width: 540px !important;
    min-width: 0 !important;
    text-align: center !important;
    align-items: center !important;
    padding-bottom: 10px !important;
    margin: 0 auto !important;
  }

  .hero-brand-lockup-quantum {
    justify-content: center !important;
  }

  .hero-stage-title {
    font-size: clamp(24px, 5.5vw, 34px) !important;
    text-align: center !important;
  }

  .hero-stage-subtitle {
    font-size: clamp(13px, 3vw, 15px) !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 480px !important;
  }

  .hero-stage-cta {
    display: flex !important;
    justify-content: center !important;
  }

  .hero-col-right {
    width: 100% !important;
    max-width: 540px !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: relative !important;
  }

  .section-homepage_hero .block-menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 380px !important;
    margin: 0 auto !important;
    aspect-ratio: auto !important;
    position: relative !important;
  }

  /* Etapa 1 en Móvil: Esfera 3D WebGL con la Estrella Star Medical centrada y radiante */
  .section-homepage_hero .block-menu .hero-webgl-wrapper {
    position: relative !important;
    width: 280px !important;
    height: 250px !important;
    margin: 0 auto !important;
    z-index: 2 !important;
    pointer-events: none !important;
    overflow: visible !important;
  }

  .section-homepage_hero .block-menu .hero-webgl-canvas {
    width: 280px !important;
    height: 250px !important;
    display: block !important;
  }

  /* Ocultar el marco de escritorio en pantallas móviles */
  .section-homepage_hero .block-menu__content--left,
  .section-homepage_hero .block-menu__content--right {
    display: none !important;
  }

  /* Etapa Móvil: Marco interactivo SVG que se contrae al tamaño de pantalla del móvil y agrupa botones dentro sin tocar el marco */
  .section-homepage_hero .block-menu__content {
    position: relative !important;
    width: min(346px, calc(100vw - 32px)) !important;
    max-width: 346px !important;
    min-width: 0 !important;
    aspect-ratio: 346 / 473 !important;
    height: auto !important;
    margin: 15px auto !important;
    z-index: 5 !important;
    display: block !important;
    overflow: visible !important;
  }

  .section-homepage_hero .block-menu__content--mobile {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important; /* El marco detrás de los botones */
    pointer-events: none !important;
  }

  .section-homepage_hero .block-menu__content--mobile img {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    display: block !important;
    filter: drop-shadow(0 0 1.2px #ffffff) drop-shadow(0 0 2.5px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 7px rgba(37, 99, 235, 0.8)) drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7)) !important;
  }

  /* Grilla de los 8 botones ajustados de forma proporcional dentro de cada ranura sin tocar los bordes */
  .section-homepage_hero .block-menu__content .nav {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 3 !important;
  }

  .section-homepage_hero .block-menu__content .nav > li button {
    position: absolute !important;
    left: 16.5% !important;
    width: 67% !important;
    z-index: 3 !important;
    pointer-events: auto !important;
    background: rgba(14, 116, 244, 0.12) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    border-radius: 6px !important;
    box-shadow: inset 0 0 8px rgba(14, 116, 244, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease !important;
  }

  .section-homepage_hero .block-menu__content .nav > li button[data-tab="1"] { top: 8.8% !important; height: 8.0% !important; }
  .section-homepage_hero .block-menu__content .nav > li button[data-tab="2"] { top: 18.8% !important; height: 9.8% !important; }
  .section-homepage_hero .block-menu__content .nav > li button[data-tab="3"] { top: 31.2% !important; height: 8.2% !important; }
  .section-homepage_hero .block-menu__content .nav > li button[data-tab="4"] { top: 41.6% !important; height: 8.2% !important; }
  .section-homepage_hero .block-menu__content .nav > li button[data-tab="5"] { top: 51.8% !important; height: 8.2% !important; }
  .section-homepage_hero .block-menu__content .nav > li button[data-tab="6"] { top: 62.1% !important; height: 8.2% !important; }
  .section-homepage_hero .block-menu__content .nav > li button[data-tab="7"] { top: 72.3% !important; height: 8.2% !important; }
  .section-homepage_hero .block-menu__content .nav > li button[data-tab="8"] { top: 82.5% !important; height: 8.0% !important; }

  .section-homepage_hero .block-menu__content .nav > li button .btn-bg {
    display: none !important;
  }

  .section-homepage_hero .block-menu__content .nav > li button .btn-txt {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    color: #ffffff !important;
    font-size: clamp(10px, 2.8vw, 11.5px) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    line-height: 1.15 !important;
    letter-spacing: -0.01em !important;
    text-align: center !important;
    padding: 0 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
  }

  .section-homepage_hero .block-menu__content .nav > li button .btn-txt small {
    display: block !important;
    color: #93c5fd !important;
    font-size: clamp(8px, 2.2vw, 9px) !important;
    font-weight: 600 !important;
    margin-top: 2px !important;
    opacity: 1 !important;
  }

  .section-homepage_hero .block-menu__content .nav > li button:hover,
  .section-homepage_hero .block-menu__content .nav > li button:active,
  .section-homepage_hero .block-menu__content .nav > li button.active {
    background: rgba(37, 99, 235, 0.35) !important;
    border-color: rgba(56, 189, 248, 0.75) !important;
    box-shadow: 0 0 14px rgba(37, 99, 235, 0.6), inset 0 0 10px rgba(56, 189, 248, 0.35) !important;
    transform: scale(0.98) !important;
  }

  .section-homepage_hero .block-menu__content .nav > li button:hover .btn-txt,
  .section-homepage_hero .block-menu__content .nav > li button:active .btn-txt,
  .section-homepage_hero .block-menu__content .nav > li button.active .btn-txt {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(0, 194, 255, 0.95), 0 1px 3px rgba(0, 0, 0, 0.8) !important;
  }

  .section-homepage_hero .block-menu__content .nav > li button:hover .btn-txt small,
  .section-homepage_hero .block-menu__content .nav > li button.active .btn-txt small {
    color: #bfdbfe !important;
  }

  /* Tarjeta Holográfica Central Adaptada a Móvil / Tablet */
  body.hero-popup-active {
    overflow: hidden !important;
  }

  .block-menu__popup,
  .section-homepage_hero .block-menu__popup,
  body > .block-menu__popup {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
    margin: 0 !important;
    padding: calc(env(safe-area-inset-top, 20px) + 20px) 16px 24px !important;
    box-sizing: border-box !important;
    z-index: 999999 !important; /* Siempre encima del header sticky (1000) y de toda la web */
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
  }

  .block-menu__popup.is-active,
  .section-homepage_hero .block-menu__popup.is-active,
  body > .block-menu__popup.is-active {
    display: flex !important;
  }

  .block-menu__popup-backdrop,
  .section-homepage_hero .block-menu__popup-backdrop,
  body > .block-menu__popup-backdrop {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(2, 6, 23, 0.88) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    z-index: 1 !important;
    cursor: pointer !important;
  }

  .block-menu__popup-card,
  .section-homepage_hero .block-menu__popup-card,
  body > .block-menu__popup-card {
    position: relative !important;
    width: min(340px, calc(100vw - 32px)) !important;
    max-width: 340px !important;
    max-height: calc(100dvh - 80px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    background: linear-gradient(155deg, rgba(10, 24, 58, 0.98) 0%, rgba(4, 11, 28, 0.99) 100%) !important;
    border: 1.5px solid rgba(0, 194, 255, 0.55) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(0, 194, 255, 0.35) !important;
    padding: 38px 20px 24px !important;
    z-index: 2 !important;
    text-align: center !important;
    margin: auto !important;
    box-sizing: border-box !important;
    transform-origin: center center !important;
  }

  .block-menu__popup--bg,
  .section-homepage_hero .block-menu__popup--bg,
  body > .block-menu__popup--bg {
    display: none !important;
  }

  .block-menu__popup--content,
  .section-homepage_hero .block-menu__popup--content,
  body > .block-menu__popup--content {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .block-menu__popup--content .h3,
  .section-homepage_hero .block-menu__popup--content .h3 {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #38bdf8 !important;
    text-shadow: 0 0 16px rgba(56, 189, 248, 0.6) !important;
    margin-bottom: 10px !important;
    line-height: 1.25 !important;
  }

  .block-menu__popup--content p,
  .section-homepage_hero .block-menu__popup--content p {
    font-size: 0.84rem !important;
    line-height: 1.5 !important;
    color: rgba(241, 245, 249, 0.92) !important;
    margin-bottom: 18px !important;
  }

  .block-menu__popup--close,
  .section-homepage_hero .block-menu__popup--close,
  body > .block-menu__popup--close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    right: 12px !important;
    top: 12px !important;
    width: 38px !important;
    height: 38px !important;
    background: rgba(255, 255, 255, 0.16) !important;
    border-radius: 50% !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
    font-size: 19px !important;
    cursor: pointer !important;
    z-index: 25 !important;
    transition: all 0.2s ease !important;
    touch-action: manipulation !important;
  }

  .block-menu__popup--close:hover,
  .block-menu__popup--close:active {
    background: rgba(239, 68, 68, 0.65) !important;
    border-color: rgba(239, 68, 68, 0.9) !important;
    transform: scale(1.08) !important;
  }

  .btn-popup-dismiss-mobile {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin-top: 14px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #cbd5e1 !important;
    padding: 7px 18px !important;
    border-radius: 20px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    transition: all 0.2s ease !important;
  }

  .btn-popup-dismiss-mobile:hover,
  .btn-popup-dismiss-mobile:active {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
  }

  .popup-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 260px !important;
    padding: 11px 20px !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    border-radius: 30px !important;
    background: linear-gradient(135deg, #0284c7, #00c2ff) !important;
    color: #fff !important;
    box-shadow: 0 4px 18px rgba(0, 194, 255, 0.45) !important;
    text-transform: uppercase !important;
  }

  /* Botones de acción inferiores en móvil */
  .hero-bottom-right-actions {
    position: static !important;
    width: 100% !important;
    margin-top: 30px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .btn-imagine-demo,
  .btn-imagine-contact {
    width: 100% !important;
    max-width: 320px !important;
    justify-content: center !important;
  }
}
