/* ==========================================================================
   NATURALSLIM ECUADOR S.A.S. · MODELO 2 INMERSIVO 3D / WEBGL
   Estilos CSS de vanguardia técnica y bio-celular
   Sin emojis. WCAG AAA Compliant. Responsive Desktop (1440x900) y Móvil (390x844)
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Tight';
  src: url('fonts/inter-tight-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Tight';
  src: url('fonts/inter-tight-800-normal.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/instrument-serif-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg-deep: #050d09;
  --bg-canvas: #07110c;
  --bg-card: rgba(13, 28, 21, 0.88);
  --bg-card-hover: rgba(18, 38, 29, 0.95);
  --bg-hud: rgba(9, 21, 15, 0.82);
  --border-bio: rgba(16, 185, 129, 0.2);
  --border-bio-strong: rgba(16, 185, 129, 0.45);
  --border-gold: rgba(245, 158, 11, 0.3);
  
  --emerald-main: #10b981;
  --emerald-glow: #34d399;
  --emerald-dark: #059669;
  --gold-main: #f59e0b;
  --gold-light: #fbbf24;
  --cyan-bio: #38bdf8;

  --text-pure: #ffffff;
  --text-body: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-heading: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-hud: 0 8px 32px 0 rgba(0, 0, 0, 0.65), 0 0 1px 1px var(--border-bio);
  --shadow-glow: 0 0 24px rgba(16, 185, 129, 0.25);
  --shadow-gold-glow: 0 0 24px rgba(245, 158, 11, 0.25);
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-body);
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  background-color: var(--bg-deep);
  color: var(--text-body);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   1. DEMO BAR OBLIGATORIA SIMCODEC
   ========================================================================== */
.demo-bar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(5, 13, 9, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-bio);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.demo-bar__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.45rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.demo-bar__info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.demo-bar__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-glow);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.72rem;
  text-transform: uppercase;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.demo-bar__text {
  color: var(--text-body);
}

.demo-bar__orig-link {
  color: var(--emerald-glow);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}

.demo-bar__orig-link:hover {
  color: #a7f3d0;
}

.demo-bar__modelos {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.demo-bar__label {
  color: var(--text-dim);
  margin-right: 0.25rem;
  font-weight: 500;
}

.demo-bar__link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 500;
  transition: var(--transition);
}

.demo-bar__link:hover {
  background: rgba(16, 185, 129, 0.12);
  color: var(--text-pure);
  border-color: var(--border-bio);
}

.demo-bar__link.active {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-glow);
  border-color: var(--emerald-main);
  font-weight: 600;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

/* ==========================================================================
   2. NAVEGACIÓN PRINCIPAL
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 500;
  background: rgba(7, 17, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

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

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text-pure);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.68rem;
  color: var(--emerald-glow);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

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

.nav-link {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link:hover {
  color: var(--emerald-glow);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-cta-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-cta-whatsapp:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  color: #ffffff;
}

/* ==========================================================================
   3. SECCIÓN HERO & CONTENEDOR 3D WEBGL
   ========================================================================== */
.hero-webgl-section {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

#webgl-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
}

/* Viñeta de degradado bio-celular sobre el canvas para legibilidad */
.webgl-overlay-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at 65% 50%, rgba(7, 17, 12, 0.15) 0%, rgba(7, 17, 12, 0.85) 80%, rgba(5, 13, 9, 0.98) 100%);
}

/* Telemetría HUD Superior */
.hud-telemetry {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hud-pill {
  background: var(--bg-hud);
  border: 1px solid var(--border-bio);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-hud);
}

.hud-pill strong {
  color: var(--text-pure);
  font-weight: 600;
}

.hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--emerald-glow);
  box-shadow: 0 0 8px var(--emerald-glow);
  animation: pulse-dot 2s infinite ease-in-out;
}

.hud-dot.gold {
  background-color: var(--gold-light);
  box-shadow: 0 0 8px var(--gold-light);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Selector de Modos 3D */
.mode-selector-bar {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  z-index: 10;
  display: flex;
  background: var(--bg-hud);
  border: 1px solid var(--border-bio);
  border-radius: var(--radius-full);
  padding: 0.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-hud);
  gap: 0.25rem;
}

.mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.mode-btn:hover {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.05);
}

.mode-btn.active {
  background: rgba(16, 185, 129, 0.25);
  color: var(--emerald-glow);
  border: 1px solid rgba(16, 185, 129, 0.45);
  font-weight: 600;
}

/* Contenido Principal del Hero sobre WebGL */
.hero-content-layer {
  position: relative;
  z-index: 5;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 2rem 1.5rem;
  pointer-events: none; /* Dejar pasar clic al canvas 3D */
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  min-height: 70vh;
}

.hero-text-card {
  pointer-events: auto; /* Reactivar clics en textos y botones */
  background: rgba(7, 17, 12, 0.75);
  border: 1px solid var(--border-bio);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  max-width: 580px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-pure);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.45);
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-pure);
  padding: 0.75rem 1.3rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--emerald-main);
  color: var(--emerald-glow);
}

/* Indicador de Ayuda / Controles 3D Inferior */
.webgl-controls-bar {
  position: relative;
  z-index: 10;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.controls-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-hud);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.controls-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon-control {
  background: var(--bg-hud);
  border: 1px solid var(--border-bio);
  color: var(--text-body);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon-control:hover {
  color: var(--emerald-glow);
  border-color: var(--emerald-glow);
  transform: scale(1.05);
}

/* Hotspots 3D Proyectados */
.hotspot-element {
  position: absolute;
  z-index: 20;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.hotspot-beacon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid var(--emerald-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.hotspot-beacon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--emerald-glow);
  animation: beacon-ripple 2.2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

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

.hotspot-inner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
}

.hotspot-label {
  position: absolute;
  left: 38px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-bio);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-pure);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--shadow-hud);
}

.hotspot-element:hover .hotspot-beacon {
  transform: scale(1.15);
  background: rgba(16, 185, 129, 0.5);
}

/* Modal / Drawer de Detalle del Hotspot */
.hotspot-modal {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: min(440px, calc(100vw - 2rem));
  background: rgba(7, 17, 12, 0.95);
  border: 1px solid var(--emerald-main);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(16, 185, 129, 0.2);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hotspot-modal.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.1);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 0.5rem;
}

.modal-desc {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.modal-quote {
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid var(--emerald-main);
  padding: 0.6rem 0.85rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.78rem;
  color: var(--emerald-glow);
  font-style: italic;
  margin-bottom: 1rem;
}

/* ==========================================================================
   4. SECCIÓN: LOS 4 PILARES DE FRANK SUÁREZ
   ========================================================================== */
.section-wrapper {
  position: relative;
  z-index: 10;
  background-color: var(--bg-deep);
  padding: 5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.container-boxed {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--emerald-glow);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-pure);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-bio);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald-main), var(--gold-main));
  opacity: 0;
  transition: var(--transition);
}

.pillar-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-bio-strong);
  box-shadow: var(--shadow-glow);
}

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

.pillar-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.08);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--border-bio);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-glow);
  margin-bottom: 1.25rem;
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 0.75rem;
}

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

.pillar-footer-meta {
  font-size: 0.75rem;
  color: var(--gold-light);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   5. SIMULADOR DE HIDRATACIÓN FRANK SUÁREZ
   ========================================================================== */
.hydration-section {
  position: relative;
  z-index: 10;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #061510 50%, var(--bg-deep) 100%);
  padding: 5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hydration-box {
  background: var(--bg-card);
  border: 1px solid var(--border-bio-strong);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hydration-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.unit-switch-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem;
  border-radius: var(--radius-full);
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.unit-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.unit-btn.active {
  background: var(--emerald-main);
  color: #ffffff;
}

.slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-val-badge {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--emerald-glow);
}

.custom-range {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--emerald-glow);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
  cursor: pointer;
  border: 2px solid #ffffff;
  transition: transform 0.1s ease;
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.hydration-formula-card {
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hydration-results {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid var(--border-bio);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.glasses-display {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.glasses-number {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--cyan-bio);
  line-height: 1;
}

.glasses-unit {
  font-size: 1.1rem;
  color: var(--text-pure);
  font-weight: 600;
}

.liters-badge {
  font-size: 0.95rem;
  color: var(--emerald-glow);
  background: rgba(16, 185, 129, 0.15);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.glasses-icons-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  max-width: 380px;
  margin-bottom: 1.5rem;
}

.glass-svg-icon {
  width: 22px;
  height: 28px;
  color: var(--cyan-bio);
  opacity: 0.3;
  transition: opacity 0.2s ease;
}

.glass-svg-icon.filled {
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.6));
}

.hydration-scientific-quote {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

/* ==========================================================================
   6. TEST EVALUACIÓN SISTEMA NERVIOSO (FRANK SUÁREZ)
   ========================================================================== */
.nervous-system-section {
  position: relative;
  z-index: 10;
  background-color: var(--bg-deep);
  padding: 5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.quiz-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-bio);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.quiz-questions-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.quiz-question-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.quiz-question-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.question-text-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.question-number-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-glow);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.question-title {
  font-size: 0.92rem;
  color: var(--text-pure);
  font-weight: 500;
}

.quiz-toggle-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.toggle-option-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.toggle-option-btn.selected-yes {
  background: var(--gold-main);
  color: #000000;
  border-color: var(--gold-light);
}

.toggle-option-btn.selected-no {
  background: var(--emerald-dark);
  color: #ffffff;
  border-color: var(--emerald-glow);
}

.quiz-result-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--border-bio-strong);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-top: 1.5rem;
  display: none;
  animation: fadeIn 0.4s ease;
}

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

.quiz-result-box.visible {
  display: block;
}

.quiz-result-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quiz-result-desc {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.quiz-recommendations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.rec-card {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rec-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.rec-detail {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   7. CATÁLOGO BIO-ACTIVO 3D DE SUPLEMENTOS
   ========================================================================== */
.catalog-section {
  position: relative;
  z-index: 10;
  background-color: var(--bg-deep);
  padding: 5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-bio);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-bio-strong);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.2);
}

.product-media-wrapper {
  position: relative;
  height: 240px;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.12) 0%, rgba(7, 17, 12, 0.95) 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.product-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.7));
  transition: transform 0.3s ease;
}

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

.product-badge-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-glow);
  border: 1px solid var(--border-bio);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.product-info-wrapper {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 0.35rem;
}

.product-function {
  font-size: 0.75rem;
  color: var(--gold-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

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

.product-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.product-feature-item {
  font-size: 0.78rem;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.product-feature-item svg {
  color: var(--emerald-glow);
  flex-shrink: 0;
}

.product-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
}

.product-dose {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.product-dose strong {
  color: var(--text-body);
}

/* ==========================================================================
   8. FOOTER OBLIGATORIO SIMCODEC & CRÉDITOS
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 10;
  background-color: #040906;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4.5rem 1.5rem 2rem 1.5rem;
  color: var(--text-muted);
}

.footer-top-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-pure);
}

.footer-brand-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-pure);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}

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

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

.footer-link:hover {
  color: var(--emerald-glow);
  padding-left: 4px;
}

.contact-meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-body);
  margin-bottom: 0.75rem;
}

.contact-meta-row svg {
  color: var(--emerald-glow);
  flex-shrink: 0;
}

.footer-bottom-bar {
  max-width: 1440px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
}

.footer-legal-notice {
  color: var(--text-dim);
  max-width: 750px;
  line-height: 1.5;
}

.footer-legal-notice a {
  color: var(--emerald-glow);
  text-decoration: underline;
}

/* ==========================================================================
   9. RESPONSIVE DESIGN (DESKTOP 1440px & MÓVIL 390px)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-content-layer {
    grid-template-columns: 1fr;
    padding-top: 5.5rem;
  }
  .hero-text-card {
    max-width: 100%;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hydration-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .demo-bar__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .demo-bar__modelos {
    flex-wrap: wrap;
  }
  .nav-links {
    display: none; /* Simplificado para viewport móvil */
  }
  .hud-telemetry {
    top: auto;
    bottom: 5rem;
    right: 1rem;
  }
  .mode-selector-bar {
    top: 0.75rem;
    left: 0.75rem;
    max-width: calc(100vw - 1.5rem);
    overflow-x: auto;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .quiz-recommendations {
    grid-template-columns: 1fr;
  }
  .hotspot-modal {
    right: 1rem;
    bottom: 1rem;
    width: calc(100vw - 2rem);
  }
}
