/* ==========================================================================
   DESIGN SYSTEM & CUSTOM PROPERTIES (HSL CAROUSEL & UTILITIES)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* ========================================================================
     🎨 CONFIGURACIÓN DE IDENTIDAD VISUAL (COLORES Y TIPOGRAFÍA)
     ========================================================================
     Aquí puedes cambiar rápidamente el color de toda la página. 
     Usa valores HSL (Tono, Saturación, Luminosidad). Ej. Azul = 217 90% 50%
     ======================================================================== */
  
  /* Fuentes base */
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 24px -4px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.16);

  /* Default Dark Mode (Premium default) */
  --bg-primary: 240 10% 4%;
  --bg-secondary: 240 8% 8%;
  --bg-card: 240 6% 12%;
  --bg-glass: rgba(18, 18, 22, 0.75);
  --border-color: 240 5% 20%;
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-primary: 0 0% 98%;
  --text-secondary: 240 5% 70%;
  --text-muted: 240 4% 50%;
  --primary: 217 90% 50%; /* Vibrant Brand Medical Blue */
  --primary-hover: 217 90% 43%;
  --secondary: 215 15% 55%; /* Professional Corporate Grey */
  --secondary-hover: 215 15% 45%;
  --accent-gradient: linear-gradient(135deg, hsl(217, 90%, 50%), hsl(215, 15%, 55%));
  --accent-glow: rgba(15, 98, 254, 0.15);
}

/* Light Mode Override */
html.light {
  --bg-primary: 210 20% 98%;
  --bg-secondary: 210 20% 95%;
  --bg-card: 0 0% 100%;
  --bg-glass: rgba(255, 255, 255, 0.8);
  --border-color: 210 14% 90%;
  --border-glass: rgba(0, 0, 0, 0.06);
  --text-primary: 222 47% 11%;
  --text-secondary: 215 16% 35%;
  --text-muted: 215 16% 57%;
  --primary: 217 90% 45%;
  --primary-hover: 217 90% 38%;
  --secondary: 215 15% 50%;
  --secondary-hover: 215 15% 40%;
  --accent-gradient: linear-gradient(135deg, hsl(217, 90%, 45%), hsl(215, 15%, 50%));
  --accent-glow: rgba(15, 98, 254, 0.08);
}

/* ==========================================================================
   CSS RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  font-size: 16px;
  background-color: hsl(var(--bg-primary));
  color: hsl(var(--text-primary));
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: hsl(var(--text-primary));
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: hsl(var(--text-secondary));
  font-size: 1rem;
}

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

button, input, select {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: hsl(var(--bg-secondary));
}
::-webkit-scrollbar-thumb {
  background: hsl(var(--border-color));
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--text-muted));
}

/* ==========================================================================
   LAYOUT CONTAINERS & UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

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

/* Gradient Text */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Badges */
.badge {
  background: var(--accent-glow);
  color: hsl(var(--primary));
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px -4px rgba(6, 182, 212, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px -4px rgba(6, 182, 212, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: hsl(var(--bg-card));
  color: hsl(var(--text-primary));
  border: 1px solid hsl(var(--border-color));
}

.btn-secondary:hover {
  background: hsl(var(--bg-secondary));
  border-color: hsl(var(--primary));
  transform: translateY(-2px);
}

/* ==========================================================================
   NAVIGATION BAR (STICKY GLASS)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background-color var(--transition-normal);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-title);
  text-decoration: none;
}

.brand-logo {
  max-height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-text-representation {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-title);
  letter-spacing: -0.015em;
}

.logo-text-representation .text-gray {
  color: hsl(var(--text-primary));
}

.logo-text-representation .text-blue {
  color: hsl(var(--primary));
  font-weight: 800;
  position: relative;
}

.logo-text-representation .text-plus {
  font-size: 1rem;
  color: hsl(var(--text-muted));
  vertical-align: super;
  position: relative;
  top: -4px;
  margin-left: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: hsl(var(--text-primary));
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.mobile-menu-btn:hover {
  background: rgba(128, 128, 128, 0.1);
}

@media (max-width: 992px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: hsl(var(--bg-card));
    display: flex;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid hsl(var(--border-color));
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 999;
  }
  
  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  
  .nav-links a {
    display: block;
    padding: 20px;
    border-bottom: 1px solid hsl(var(--border-glass));
    font-size: 1.1rem;
    font-weight: 500;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: hsl(var(--bg-card));
    border: 1px solid var(--border-glass);
  }
  
  .demo-btn {
    display: none;
  }
}

/* Theme Toggle Button */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: hsl(var(--bg-card));
  color: hsl(var(--text-primary));
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  border-color: hsl(var(--primary));
  transform: rotate(15deg);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html.light .theme-toggle .icon-sun { display: block; }
html.light .theme-toggle .icon-moon { display: none; }

.mobile-nav-toggle {
  display: none;
  font-size: 1.8rem;
  color: hsl(var(--text-primary));
  cursor: pointer;
}

@media (max-width: 992px) {
  .nav-links {
    display: none; /* Hide for mobile dropdown */
  }
  .mobile-nav-toggle {
    display: block;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding-top: 160px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
}

.hero-text h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  line-height: 1.15;
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 580px;
}

@media (max-width: 992px) {
  .hero-text p {
    margin: 0 auto 40px auto;
  }
}

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

@media (max-width: 992px) {
  .hero-btns {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-btns {
    flex-direction: column;
  }
}

/* ==========================================================================
   PREMIUM CUSTOM CSS HARDWARE MOCKUP (No Placeholder Images)
   ========================================================================== */
.hero-mockup-wrapper {
  position: relative;
}

.glass-glow-orb {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--accent-gradient);
  filter: blur(120px);
  opacity: 0.15;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.mockup-laptop {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  perspective: 1000px;
}

.mockup-screen {
  background: #0f172a;
  border: 12px solid #1e293b;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.mockup-base {
  height: 14px;
  background: #475569;
  border-radius: 0 0 12px 12px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.mockup-base::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: #1e293b;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0 0 4px 4px;
}

/* UI Content Inside Screen */
.system-ui {
  display: grid;
  grid-template-columns: 60px 1fr;
  height: 100%;
}

.sidebar-ui {
  background: #1e293b;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.side-item {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
}

.side-item.active {
  background: var(--accent-gradient);
}

.main-ui {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #0f172a;
  overflow-y: auto;
}

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

.avatar-ui {
  width: 28px;
  height: 28px;
  background: #334155;
  border-radius: var(--radius-full);
}

.bar-ui {
  height: 8px;
  background: #1e293b;
  border-radius: var(--radius-full);
}

.bar-ui.title { width: 100px; background: #64748b; }
.bar-ui.sub { width: 60px; height: 6px; }

.cards-grid-ui {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
}

.card-ui {
  background: #1e293b;
  border-radius: var(--radius-sm);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.patient-profile {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar-lg-ui {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
}

.pulse-bar {
  background: #10b981;
  height: 6px;
  width: 80%;
  border-radius: var(--radius-full);
  margin-top: 6px;
}

.rx-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-ui.rx-item {
  height: 6px;
  background: #334155;
}

.rx-button {
  background: #06b6d4;
  height: 12px;
  border-radius: 4px;
  margin-top: 4px;
}

/* Float Animation */
.float-animation {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

/* ==========================================================================
   FEATURES / CARACTERÍSTICAS
   ========================================================================== */
.features {
  background-color: hsl(var(--bg-secondary));
}

.section-header {
  max-width: 650px;
  margin: 0 auto 60px auto;
}

.section-header h2 {
  font-size: 2.8rem;
  letter-spacing: -0.01em;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 2.2rem;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.glass-card {
  background-color: hsl(var(--bg-card));
  border: 1px solid hsl(var(--border-color));
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.1), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: hsl(var(--primary));
  box-shadow: var(--shadow-lg), 0 0 15px -4px rgba(6, 182, 212, 0.2);
}

.glass-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-glow);
  color: hsl(var(--primary));
  font-size: 1.5rem;
  border: 1px solid rgba(6, 182, 212, 0.15);
}

.glass-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
}

.glass-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   INTERACTIVE SHOWCASE / GALERÍA DE MÓDULOS (Premium Tabbed Screenshots)
   ========================================================================== */
.showcase {
  background-color: hsl(var(--bg-primary));
}

.showcase-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 992px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.showcase-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 992px) {
  .showcase-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.showcase-tab {
  background: hsl(var(--bg-card));
  border: 1px solid hsl(var(--border-color));
  padding: 20px 24px;
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

@media (max-width: 992px) {
  .showcase-tab {
    width: auto;
    padding: 12px 18px;
  }
}

.showcase-tab-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: hsl(var(--bg-secondary));
  color: hsl(var(--text-muted));
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.showcase-tab-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.showcase-tab-content p {
  font-size: 0.85rem;
  display: block;
}

@media (max-width: 992px) {
  .showcase-tab-content p {
    display: none; /* Hide description on mobile to save space */
  }
}

/* Tab Hover & Active States */
.showcase-tab:hover {
  border-color: hsl(var(--primary));
  transform: translateX(4px);
}

@media (max-width: 992px) {
  .showcase-tab:hover {
    transform: translateY(-2px);
  }
}

.showcase-tab.active {
  background: var(--accent-glow);
  border-color: hsl(var(--primary));
  box-shadow: 0 4px 15px -4px rgba(6, 182, 212, 0.15);
}

.showcase-tab.active .showcase-tab-icon {
  background: var(--accent-gradient);
  color: #fff;
}

/* Browser Window Mockup for Screenshots */
.browser-mockup {
  background: #0f172a;
  border: 1px solid hsl(var(--border-color));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  aspect-ratio: 16 / 10;
  position: relative;
  transition: transform var(--transition-normal);
}

.browser-mockup:hover {
  transform: translateY(-4px);
}

.browser-header {
  background: #1e293b;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
}
.browser-dot.red { background: #ef4444; }
.browser-dot.yellow { background: #f59e0b; }
.browser-dot.green { background: #10b981; }

.browser-address-bar {
  background: #0f172a;
  border-radius: var(--radius-sm);
  padding: 4px 16px;
  font-size: 0.75rem;
  color: #64748b;
  flex-grow: 1;
  max-width: 400px;
  margin-left: 20px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.browser-content {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
}

.browser-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  pointer-events: none;
}

.browser-image.active {
  opacity: 1;
  pointer-events: auto;
}

/* Fallback Screenshot placeholder built with CSS (Elegant loading state) */
.screenshot-placeholder {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #1e293b, #0f172a);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: hsl(var(--text-muted));
}

.screenshot-placeholder svg {
  color: hsl(var(--primary));
  opacity: 0.5;
  animation: pulse 2s infinite;
}

/* ==========================================================================
   NORMATIVE / CUMPLIMIENTO LEGAL (Advanced NOM-004 & NOM-024)
   ========================================================================== */
.normative {
  background-color: hsl(var(--bg-secondary));
  position: relative;
}

.normative-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  align-items: stretch;
}

.normative-card {
  background: hsl(var(--bg-card));
  border: 1px solid hsl(var(--border-color));
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.normative-card:hover {
  transform: translateY(-6px);
  border-color: hsl(var(--primary));
  box-shadow: var(--shadow-lg);
}

.normative-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 50%);
  pointer-events: none;
}

.normative-card h3 {
  font-size: 1.8rem;
  letter-spacing: -0.01em;
}

.normative-card p.description {
  font-size: 1rem;
  color: hsl(var(--text-secondary));
}

.compliance-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.compliance-item svg {
  color: hsl(var(--secondary));
  flex-shrink: 0;
  margin-top: 3px;
}

.compliance-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--text-primary));
  margin-bottom: 4px;
}

.compliance-item p {
  font-size: 0.88rem;
  color: hsl(var(--text-muted));
  line-height: 1.5;
}

/* Custom Wide Interoperability Showcase Banner */
.highlight-banner {
  background: hsl(var(--bg-card));
  border: 1px solid hsl(var(--border-color));
  border-radius: var(--radius-lg);
  padding: 56px;
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 992px) {
  .highlight-banner {
    grid-template-columns: 1fr;
    padding: 32px;
    gap: 32px;
  }
}

.highlight-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at bottom right, rgba(6, 182, 212, 0.12), transparent 70%);
  pointer-events: none;
}

.highlight-text h3 {
  font-size: 2.2rem;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.highlight-text p {
  font-size: 1.1rem;
  line-height: 1.7;
}

.highlight-graphic {
  background: hsl(var(--bg-secondary));
  border: 1px solid hsl(var(--border-color));
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.cie-badge {
  background: hsl(var(--primary));
  color: #000;
  font-family: var(--font-title);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 20px;
}

.cie-search-simulation {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-input-sim {
  background: hsl(var(--bg-card));
  border: 1px solid hsl(var(--border-color));
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: hsl(var(--text-secondary));
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.search-input-sim svg {
  color: hsl(var(--primary));
}

.search-results-sim {
  background: hsl(var(--bg-card));
  border: 1px solid hsl(var(--primary));
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.search-item-sim {
  padding: 14px 18px;
  font-size: 0.9rem;
  border-bottom: 1px solid hsl(var(--border-color));
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition-fast);
}

.search-item-sim:hover {
  background-color: rgba(6, 182, 212, 0.05);
}

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

.search-item-sim span.code {
  background: var(--accent-glow);
  color: hsl(var(--primary));
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
}


/* ==========================================================================
   PRICING SECTION (TABLA DE PRECIOS PREMIUM)
   ========================================================================== */
.pricing {
  background-color: hsl(var(--bg-secondary));
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: stretch;
}

.pricing-card {
  background-color: hsl(var(--bg-card));
  border: 1px solid hsl(var(--border-color));
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.pricing-card.featured {
  border-color: hsl(var(--primary));
  box-shadow: var(--shadow-lg), 0 0 24px -6px rgba(6, 182, 212, 0.25);
  transform: translateY(-8px);
}

@media (max-width: 992px) {
  .pricing-card.featured {
    transform: translateY(0);
  }
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: hsl(var(--primary));
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--accent-gradient);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-header {
  border-bottom: 1px solid hsl(var(--border-color));
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.pricing-header h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 2.8rem;
  font-family: var(--font-title);
  font-weight: 800;
  color: hsl(var(--text-primary));
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-price span {
  font-size: 1rem;
  color: hsl(var(--text-muted));
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: hsl(var(--text-secondary));
}

.pricing-features li svg {
  color: hsl(var(--secondary));
  flex-shrink: 0;
}

.pricing-btn {
  width: 100%;
}

/* ==========================================================================
   TESTIMONIALS / TESTIMONIOS
   ========================================================================== */
.testimonials {
  background-color: hsl(var(--bg-primary));
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background-color: hsl(var(--bg-card));
  border: 1px solid hsl(var(--border-color));
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.quote-icon {
  color: hsl(var(--primary));
  font-size: 2rem;
  opacity: 0.3;
  line-height: 1;
}

.testimonial-text {
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.7;
  color: hsl(var(--text-secondary));
}

.author-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-family: var(--font-title);
  box-shadow: var(--shadow-sm);
}

.author-meta h4 {
  font-size: 1rem;
  font-weight: 600;
}

.author-meta p {
  font-size: 0.8rem;
  color: hsl(var(--text-muted));
}

/* ==========================================================================
   FAQ ACCORDION INTERACTIVA
   ========================================================================== */
.faq {
  background-color: hsl(var(--bg-secondary));
}

.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: hsl(var(--bg-card));
  border: 1px solid hsl(var(--border-color));
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover, .faq-item.active {
  border-color: hsl(var(--primary));
}

.faq-header {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.faq-icon {
  font-size: 1.2rem;
  color: hsl(var(--text-muted));
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: hsl(var(--primary));
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
}

.faq-content {
  padding: 0 24px 24px 24px;
  border-top: 1px solid transparent;
  color: hsl(var(--text-secondary));
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-content {
  border-color: hsl(var(--border-color));
}

/* ==========================================================================
   CTA (LLAMADO A LA ACCIÓN)
   ========================================================================== */
.cta {
  background: hsl(var(--bg-primary));
}

.cta-box {
  background: var(--accent-gradient);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .cta-box {
    padding: 60px 20px;
  }
}

.cta-box::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.cta-box::after {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  bottom: -100px;
  left: -100px;
  pointer-events: none;
}

.cta-box h2 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .cta-box h2 {
    font-size: 2.2rem;
  }
}

.cta-box p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 40px auto;
}

.cta-box .btn-white {
  background: #fff;
  color: #0f172a;
}

.cta-box .btn-white:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER SEMÁNTICO
   ========================================================================== */
.footer {
  background: hsl(var(--bg-secondary));
  border-top: 1px solid hsl(var(--border-color));
  padding: 60px 0 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col p {
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: hsl(var(--text-secondary));
}

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

.footer-bottom {
  border-top: 1px solid hsl(var(--border-color));
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: hsl(var(--text-muted));
}

@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON (Micro-Animations)
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  z-index: 999;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-float::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  border: 2px solid #25d366;
  top: 0;
  left: 0;
  animation: pulse-ring 2s infinite;
  pointer-events: none;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (Intersection Observer)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
