/* ==========================================================================
   MEDIADVANCE S.A.S. · MODELO 3 VIDEO & STORYTELLING
   Estilos Cinemáticos, Bio-Ópticos y Fluidos 60fps
   ========================================================================== */

:root {
  /* Paleta cromática bio-óptica */
  --bg-deep: #030b14;
  --bg-surface: #071526;
  --bg-surface-elevated: #0c2038;
  --bg-card: rgba(10, 26, 48, 0.7);
  --bg-glass: rgba(7, 21, 38, 0.85);

  --accent-cyan: #00e5ff;
  --accent-teal: #00b4d8;
  --accent-glow: rgba(0, 229, 255, 0.35);
  --accent-subtle: rgba(0, 229, 255, 0.12);

  --text-main: #f0f7ff;
  --text-muted: #94a9c2;
  --text-dim: #607590;

  --border-light: rgba(255, 255, 255, 0.1);
  --border-active: rgba(0, 229, 255, 0.4);
  --border-highlight: rgba(0, 229, 255, 0.75);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  --header-height: 110px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis maneja el scroll suave */
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}

/* Enlace de accesibilidad para saltar al contenido */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent-cyan);
  color: #000;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  z-index: 99999;
  border-radius: 4px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* Canvas de fondo bio-óptico interactivo */
.bio-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

/* Efectos cinemáticos de viñeta y textura */
.cinematic-vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 40%, rgba(3, 11, 20, 0.75) 90%, rgba(3, 11, 20, 0.95) 100%);
}

.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Cursor magnético bio-médico */
.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  z-index: 10000;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

.cursor-ring {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent-cyan);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
  opacity: 0.5;
}

body:hover .cursor-ring.is-hover {
  width: 54px;
  height: 54px;
  border-color: #fff;
  background: rgba(0, 229, 255, 0.08);
}

/* Barra superior de progreso de scroll */
.scroll-progress-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), #48cae4);
  z-index: 10001;
  box-shadow: 0 0 10px var(--accent-cyan);
  transition: width 0.08s linear;
}

/* ==========================================================================
   HEADER FIJO Y DEMO-BAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(3, 11, 20, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.15);
  transition: background var(--transition-fast);
}

/* Barra obligatoria de demostración SimCodec */
.demo-bar {
  background: #02060d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
}

.demo-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.demo-bar-notice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
}

.demo-pill {
  display: inline-block;
  background: #ffb703;
  color: #000;
  font-weight: 800;
  font-size: 0.65rem;
  padding: 0.12rem 0.45rem;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

.demo-text {
  color: #cbd5e1;
}

.demo-orig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed rgba(0, 229, 255, 0.5);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.demo-orig-link:hover {
  color: #fff;
  border-color: #fff;
}

/* Selector de modelos */
.models-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.switcher-title {
  color: var(--text-dim);
  font-size: 0.7rem;
  margin-right: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.model-pill-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
}

.model-pill-link:hover {
  background: rgba(0, 229, 255, 0.15);
  color: #fff;
  border-color: var(--accent-cyan);
}

.model-pill-link.is-active {
  background: rgba(0, 229, 255, 0.22);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  font-weight: 700;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.25);
}

/* Navegación principal */
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-cyan);
  letter-spacing: 0.04em;
}

.main-nav {
  display: none;
}

@media (min-width: 992px) {
  .main-nav {
    display: block;
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.5rem;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-cyan);
  transition: width var(--transition-fast);
}

.nav-item:hover {
  color: #fff;
}

.nav-item:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Botones estándar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 180, 216, 0.3);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00e5ff 0%, #0096c7 100%);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.45);
  transform: translateY(-1px);
  color: #030b14;
}

.btn-outline {
  background: rgba(0, 229, 255, 0.05);
  color: var(--accent-cyan);
  border-color: rgba(0, 229, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--accent-cyan);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

@media (min-width: 992px) {
  .mobile-toggle {
    display: none;
  }
}

.toggle-bar {
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform var(--transition-fast);
}

.mobile-menu {
  display: none;
  background: #040e1b;
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  padding: 1.5rem;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.mobile-nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  display: block;
}

.mobile-nav-link.sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-left: 1rem;
}

.mobile-actions {
  margin-top: 1.5rem;
}

/* ==========================================================================
   TIMELINE LATERAL DE SCROLLYTELLING
   ========================================================================== */
.story-timeline {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: none;
}

@media (min-width: 1200px) {
  .story-timeline {
    display: block;
  }
}

.timeline-track {
  position: absolute;
  top: 0;
  right: 8px;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.timeline-progress {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent-cyan), #0077b6);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-cyan);
  transition: height 0.15s ease;
}

.timeline-nodes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.timeline-node {
  position: relative;
}

.timeline-link {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 0.85rem;
  text-decoration: none;
}

.timeline-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #071526;
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: all var(--transition-fast);
  box-shadow: 0 0 0 2px #030b14;
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  background: rgba(7, 21, 38, 0.9);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.timeline-node:hover .timeline-meta,
.timeline-node.is-active .timeline-meta {
  opacity: 1;
  transform: translateX(0);
}

.timeline-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-cyan);
  font-weight: 700;
}

.timeline-title {
  font-size: 0.75rem;
  color: #fff;
  white-space: nowrap;
}

.timeline-node.is-active .timeline-dot {
  background: var(--accent-cyan);
  border-color: #fff;
  box-shadow: 0 0 12px var(--accent-cyan);
  transform: scale(1.2);
}

/* ==========================================================================
   SECCIONES Y LAYOUT GENERAL
   ========================================================================== */
main {
  position: relative;
  z-index: 10;
  padding-top: var(--header-height);
}

/* HERO CINEMÁTICO */
.hero-section {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 3rem 1.5rem 5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-container {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  margin-bottom: 1.5rem;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse-ring 2s infinite ease-out;
}

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

.badge-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  letter-spacing: 0.06em;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.title-line {
  display: block;
}

.title-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 60%, #0077b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.font-sub {
  font-weight: 400;
  color: #b0c4de;
  font-size: 0.82em;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 2.2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

.stat-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

/* Holograma / Visual Hero */
.hero-visual {
  position: relative;
}

.hologram-frame {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 229, 255, 0.1);
  overflow: hidden;
}

.hologram-glow {
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.media-preview-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.hero-media-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
  filter: contrast(1.08) brightness(0.95);
}

.media-scanner-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: scan-vertical 4s ease-in-out infinite alternate;
}

@keyframes scan-vertical {
  0% { top: 0%; opacity: 0.2; }
  50% { opacity: 0.9; }
  100% { top: 100%; opacity: 0.2; }
}

.media-overlay-data {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(3, 11, 20, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 229, 255, 0.25);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.data-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.spec-label {
  color: var(--text-dim);
  margin-right: 0.3rem;
}

.spec-value {
  color: var(--accent-cyan);
  font-weight: 700;
}

.hologram-meta {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0.25rem 0.25rem;
  font-size: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 0.5rem;
}

.meta-label {
  color: var(--text-dim);
  font-size: 0.65rem;
  display: block;
}

.meta-val {
  color: #fff;
  font-weight: 600;
}

.hero-scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 3rem;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.hero-scroll-cue:hover {
  opacity: 1;
}

.cue-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.cue-wheel {
  width: 3px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 2px;
  animation: wheel-bounce 2s infinite ease-in-out;
}

@keyframes wheel-bounce {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
  100% { transform: translateY(0); opacity: 1; }
}

.cue-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ==========================================================================
   NARRATIVA VISUAL EN 4 CAPÍTULOS
   ========================================================================== */
.storytelling-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.section-badge-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 5rem;
}

.badge-pill {
  display: inline-block;
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  border: 1px solid rgba(0, 229, 255, 0.25);
  margin-bottom: 1rem;
}

.section-title-large {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.section-lead-max {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Bloque de Capítulo */
.chapter-block {
  margin-bottom: 8rem;
  position: relative;
  border-radius: 16px;
  background: rgba(7, 21, 38, 0.4);
  border: 1px solid rgba(0, 229, 255, 0.12);
  padding: 3rem 2rem;
  backdrop-filter: blur(10px);
}

.chapter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .chapter-grid {
    grid-template-columns: 1fr 1.15fr;
  }

  .chapter-block.is-reversed .chapter-grid {
    grid-template-columns: 1.15fr 1fr;
  }

  .chapter-block.is-reversed .chapter-media {
    order: 2;
  }
}

.chapter-visual-wrapper {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 229, 255, 0.1);
}

.chapter-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.chapter-block:hover .chapter-img {
  transform: scale(1.03);
}

.chapter-visual-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(3, 11, 20, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 229, 255, 0.4);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.visual-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.corner-tl {
  top: 6px;
  left: 6px;
  border-top: 2px solid var(--accent-cyan);
  border-left: 2px solid var(--accent-cyan);
}

.corner-br {
  bottom: 6px;
  right: 6px;
  border-bottom: 2px solid var(--accent-cyan);
  border-right: 2px solid var(--accent-cyan);
}

.chapter-narrative {
  display: flex;
  flex-direction: column;
}

.chapter-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.chapter-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.chapter-subtitle {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent-teal);
  margin-bottom: 1.25rem;
}

.chapter-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.chapter-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .chapter-features {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-item {
  display: flex;
  gap: 0.85rem;
}

.feature-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.feature-body h5 {
  font-size: 0.92rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.feature-body p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.chapter-quote {
  padding: 1.2rem 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 8px 8px 0;
}

.chapter-quote blockquote {
  font-size: 0.92rem;
  font-style: italic;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.chapter-quote cite {
  font-size: 0.75rem;
  font-style: normal;
  font-family: var(--font-mono);
  color: var(--accent-teal);
  display: block;
}

/* ==========================================================================
   CATÁLOGO DE SOLUCIONES CLÍNICAS
   ========================================================================== */
.catalog-section {
  padding: 6rem 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 21, 38, 0.6) 50%, transparent 100%);
  position: relative;
}

.catalog-container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.section-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 650px;
}

.catalog-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: rgba(0, 229, 255, 0.12);
  color: #fff;
  border-color: var(--accent-cyan);
}

.filter-btn.is-active {
  background: var(--accent-cyan);
  color: #030b14;
  font-weight: 700;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-cyan);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 229, 255, 0.2);
}

.product-thumb {
  position: relative;
  background: #02070e;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.product-thumb img {
  max-height: 180px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-smooth);
}

.product-card:hover .product-thumb img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(3, 11, 20, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.product-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-meta-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
}

.product-type {
  color: var(--accent-teal);
  font-weight: 600;
}

.product-code {
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.product-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1.25rem;
}

.spec-cell {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.spec-name {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.spec-val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   SIMULADOR / CALCULADORA CLÍNICA
   ========================================================================== */
.calculator-section {
  padding: 6rem 1.5rem;
}

.calc-container {
  max-width: 1000px;
  margin: 0 auto;
}

.calc-header {
  text-align: center;
  margin-bottom: 3rem;
}

.calc-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

.calc-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

.calc-box {
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 14px;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.calc-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .calc-form-grid {
    grid-template-columns: 1fr 1.5fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
  background: #030b14;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.input-helper {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

.calc-results-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  background: rgba(3, 11, 20, 0.7);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  margin-bottom: 1.5rem;
}

.result-tile {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.result-tile.highlight {
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.4);
}

.result-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.result-val {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1.1;
}

.result-unit {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

.calc-footer-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.note-icon {
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ==========================================================================
   CONFORMIDAD SANITARIA ARCSA
   ========================================================================== */
.compliance-section {
  padding: 6rem 1.5rem;
}

.compliance-container {
  max-width: 1400px;
  margin: 0 auto;
}

.compliance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .compliance-grid {
    grid-template-columns: 1.3fr 0.7fr;
  }
}

.compliance-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.compliance-checklist li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.check-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
}

.check-content strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.check-content span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.compliance-card-visual {
  background: linear-gradient(145deg, #071526, #030b14);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 229, 255, 0.15);
}

.cert-shield {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.25);
}

.cert-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.cert-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.cert-tags {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cert-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
}

/* ==========================================================================
   CONTACTO INSTITUCIONAL
   ========================================================================== */
.contact-section {
  padding: 6rem 1.5rem;
  background: #02070e;
}

.contact-container {
  max-width: 1400px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1.15fr;
  }
}

.contact-points {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.point-item {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.point-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.point-text strong {
  display: block;
  font-size: 0.92rem;
  color: #fff;
}

.point-text span, .point-text a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.link-clean {
  text-decoration: none;
  color: var(--accent-cyan) !important;
}

.link-clean:hover {
  text-decoration: underline;
}

.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 14px;
  padding: 2.5rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.form-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.form-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.medical-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-textarea {
  resize: vertical;
}

.btn-submit {
  margin-top: 0.5rem;
  padding: 0.85rem;
}

.form-feedback {
  font-size: 0.85rem;
  text-align: center;
  min-height: 1.2rem;
  margin-top: 0.5rem;
}

.form-feedback.success {
  color: #10b981;
}

.form-feedback.error {
  color: #ef4444;
}

/* ==========================================================================
   FOOTER OBLIGATORIO
   ========================================================================== */
.site-footer {
  background: #010408;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 10;
}

.footer-demo-bar {
  background: #02060d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem 1.5rem;
}

.footer-demo-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-demo-text {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
}

.footer-orig-link {
  color: var(--accent-cyan);
  text-decoration: underline;
  font-weight: 600;
}

.footer-main {
  padding: 4rem 1.5rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-tax-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.current-model {
  color: var(--accent-cyan) !important;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem;
}

.footer-bottom-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright-text {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-safety-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-teal);
  font-size: 0.75rem;
}

/* ==========================================================================
   OPTIMIZACIONES Y RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .site-header {
    position: sticky;
  }
  
  main {
    padding-top: 0;
  }

  .chapter-block {
    padding: 2rem 1.25rem;
    margin-bottom: 5rem;
  }

  .calc-box {
    padding: 1.5rem;
  }

  .contact-form-card {
    padding: 1.5rem;
  }

  .cursor-dot, .cursor-ring {
    display: none !important;
  }
}
