/* ==========================================================================
   THE PAINHEALERS | LIGHT MEDICAL DESIGN SYSTEM
   Basado fielmente en el Brandbook Oficial (Páginas 1 a 10)
   Fondo Blanco / Gris Neutro, Plecas Dinámicas (Rojo, Amarillo, Verde)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&family=Rajdhani:wght@600;700;800&display=swap');

:root {
  /* --- PALETA OFICIAL DE FRANQUICIA (BRANDBOOK PÁG. 10) --- */
  --brand-green-dark: #065a22;
  --brand-green-primary: #1a8429;
  --brand-green-bright: #42b463;
  --brand-green-light: #e8f7ec;
  
  --brand-yellow-gold: #fcd820;
  --brand-yellow-light: #fff9db;
  
  --brand-red-accent: #df0714;
  --brand-red-deep: #cf2028;
  --brand-red-light: #fde8e9;

  --brand-wave-gradient: linear-gradient(90deg, #cf2028 0%, #fcd820 48%, #42b463 80%, #065a22 100%);
  --brand-wave-gradient-rev: linear-gradient(90deg, #065a22 0%, #42b463 35%, #fcd820 70%, #cf2028 100%);

  /* --- FONDOS BLANCOS & GRISES NEUTROS (BRANDBOOK PÁG. 10: #ececec) --- */
  --bg-main: #ffffff;
  --bg-surface: #f8fafc;
  --bg-gray-tech: #ececec;
  --bg-gray-soft: #f1f5f9;
  --bg-gray-card: #ffffff;
  --bg-hero-overlay: linear-gradient(180deg, rgba(8, 20, 13, 0.45) 0%, rgba(6, 18, 11, 0.85) 100%);
  
  /* --- COLORES POR PRODUCTO (BRANDBOOK PÁG. 11-13) --- */
  /* 1. Dolo-Neurobión Forte */
  --p-forte-dark: #02540a;
  --p-forte-main: #308e44;
  --p-forte-light: #45dd53;
  --p-forte-bg: #eaf8ed;
  
  /* 2. Dolo-Neurobión Retard */
  --p-retard-dark: #12674f;
  --p-retard-main: #119371;
  --p-retard-light: #69bf9e;
  --p-retard-bg: #e6f6f1;
  
  /* 3. Gavindo N */
  --p-gavindo-dark: #7a1128;
  --p-gavindo-main: #e0486a;
  --p-gavindo-light: #ffc2d5;
  --p-gavindo-bg: #fdf0f3;
  
  /* 4. Dolo-Neurobión Forte DC */
  --p-dc-purple-dark: #4e2c79;
  --p-dc-purple-main: #795ea5;
  --p-dc-blue-main: #1065a2;
  --p-dc-blue-cyan: #28a5dc;
  --p-dc-bg: #f3f0f9;

  /* --- TEXTOS --- */
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  /* --- BORDES & SOMBRAS --- */
  --border-light: #e2e8f0;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-brand: rgba(26, 132, 41, 0.25);
  
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 25px 50px rgba(0, 0, 0, 0.12);
  --shadow-brand: 0 12px 30px rgba(26, 132, 41, 0.18);
  
  /* --- TIPOGRAFÍAS --- */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-hud: 'Rajdhani', sans-serif;
  
  /* --- RADIUS --- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-body);
  font-family: var(--font-main);
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   FORMAS GEOMÉTRICAS DE FONDO (BRANDBOOK: GRIS, ROJO, AMARILLO, VERDE)
   ========================================================================== */
.brand-top-stripe {
  height: 6px;
  width: 100%;
  background: var(--brand-wave-gradient);
  position: relative;
  z-index: 1001;
}

.bg-tech-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.slash-shape {
  position: absolute;
  transform: skewX(-18deg);
  opacity: 0.85;
}

.slash-gray {
  background: var(--bg-gray-tech);
  border-radius: 4px;
}

.slash-green {
  background: rgba(66, 180, 99, 0.12);
  border-left: 3px solid var(--brand-green-bright);
}

.slash-yellow {
  background: rgba(252, 216, 32, 0.15);
  border-left: 3px solid var(--brand-yellow-gold);
}

.slash-red {
  background: rgba(207, 32, 40, 0.1);
  border-left: 3px solid var(--brand-red-deep);
}

/* Franja Superior Oficial (Fija) */
.brand-top-stripe {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--brand-wave-gradient);
  z-index: 10001;
}

/* ==========================================================================
   2. HEADER & NAVBAR (100% FIXED CON SCROLL, TEMA BLANCO COMPACTO)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 5px;
  left: 0;
  width: 100%;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  height: 72px;
  display: flex;
  align-items: center;
  transition: all var(--transition-fast);
}

.header-fixed-spacer {
  height: 77px;
  width: 100%;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  width: 100%;
}

/* Logo The Painhealers fiel al Brandbook (Ultra Nítido Retina) */
.brand-logo-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
}

.official-brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: transform var(--transition-fast);
}

.official-brand-logo-img:hover {
  transform: scale(1.02);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mobile-drawer-header,
.mobile-drawer-actions {
  display: none;
}

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

.nav-link {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-dark);
  position: relative;
  padding: 8px 2px;
  white-space: nowrap;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-green-primary);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

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

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

.btn-sm-nav {
  padding: 9px 18px;
  font-size: 0.84rem;
  min-height: 40px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  background: transparent;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10002;
}

.nav-toggle:hover {
  background: var(--bg-gray-soft);
  border-color: var(--brand-green-primary);
}

.nav-toggle-bar {
  width: 22px;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, background-color 0.3s ease;
  transform-origin: center;
}

.nav-toggle.open .bar-1 {
  transform: translateY(7.5px) rotate(45deg);
  background: var(--brand-green-primary);
}

.nav-toggle.open .bar-2 {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open .bar-3 {
  transform: translateY(-7.5px) rotate(-45deg);
  background: var(--brand-green-primary);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: var(--transition-fast);
  cursor: pointer;
  min-height: 44px;
  text-decoration: none;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--brand-green-primary);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(26, 132, 41, 0.35);
  border: 1px solid var(--brand-green-dark);
}

.btn-primary:hover {
  background: var(--brand-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(26, 132, 41, 0.45);
}

.btn-gold {
  background: linear-gradient(135deg, #fcd820 0%, #f6c800 100%);
  color: #141f17;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(252, 216, 32, 0.4);
  border: 1px solid #e5bd00;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(252, 216, 32, 0.6);
}

.btn-outline-dark {
  background: #ffffff;
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-outline-dark:hover {
  border-color: var(--brand-green-primary);
  color: var(--brand-green-primary);
  background: var(--brand-green-light);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background: #ffffff;
  color: var(--text-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   3. HERO BANNER PANORÁMICO INTEGRADO (THE PAINHEALERS)
   ========================================================================== */
.hero-panoramic-section {
  padding: 16px 0 24px;
  background: var(--bg-surface);
  position: relative;
}

.hero-panoramic-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  position: relative;
}

.hero-panoramic-visual-wrap {
  position: relative;
  width: 100%;
  background: #ffffff;
}

.hero-panoramic-badge {
  position: absolute;
  top: 14px;
  left: 18px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 10;
}

.hero-mobile-badge {
  display: none;
}

.hero-master-fullwidth-img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-panoramic-content-box {
  padding: 22px 36px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: center;
}

.hero-panoramic-h1 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.18;
  margin-bottom: 8px;
}

.hero-panoramic-h1 span.txt-green {
  color: var(--brand-green-primary);
}

.hero-panoramic-h1 span.txt-red {
  color: var(--brand-red-deep);
}

.hero-panoramic-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.55;
}

.hero-panoramic-cta-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
}

.hero-cta-box-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
}

.hero-cta-btn-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Fichas inferiores interactivas de los 6 héroes */
.hero-heroes-strip {
  padding: 12px 18px 14px;
  background: #ffffff;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  border-top: 1px solid var(--border-light);
}

.hero-mini-hero-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.hero-mini-hero-card:hover {
  background: #ffffff;
  border-color: var(--brand-green-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 132, 41, 0.12);
}

.mini-hero-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  border: 2px solid var(--border-light);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.hero-mini-hero-card:hover .mini-hero-avatar {
  transform: scale(1.06);
  border-color: var(--brand-green-primary);
}

.mini-hero-info strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
}

.mini-hero-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================
   SECCIÓN: WAVE DEL ALIVIO (FONDO CLARO)
   ========================================== */
.wave-overview-section {
  padding: 45px 0 40px;
  background: var(--bg-main);
  position: relative;
}

.section-title-wrap {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 26px;
}

.section-pretitle {
  font-family: var(--font-hud);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--brand-green-primary);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: inline-block;
}

.section-heading-dark {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 10px;
}

.section-desc-clean {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.wave-infographic-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.wave-step-white-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: var(--transition-fast);
}

.wave-step-white-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-green-primary);
  box-shadow: var(--shadow-hover);
}

.step-top-color-stripe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
}

.stripe-red { background: var(--brand-red-deep); }
.stripe-yellow { background: var(--brand-yellow-gold); }
.stripe-green { background: var(--brand-green-bright); }

.step-number-tag {
  font-family: var(--font-hud);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.step-icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-red { background: var(--brand-red-light); color: var(--brand-red-deep); }
.icon-yellow { background: var(--brand-yellow-light); color: #9c7b00; }
.icon-green { background: var(--brand-green-light); color: var(--brand-green-primary); }

.step-card-h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.step-card-text {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ==========================================================================
   PORTAFOLIO DE 5 MEDICAMENTOS (FONDO TÉCNICO #ececec / #ffffff)
   ========================================================================== */
.portfolio-light-section {
  padding: 45px 0 50px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.products-nav-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  max-width: 1160px;
  margin: 0 auto 22px;
  width: 100%;
}

.prod-tab-pill {
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  width: 100%;
}

.prod-tab-pill:hover {
  border-color: var(--brand-green-primary);
  color: var(--brand-green-primary);
}

.prod-tab-pill.active {
  background: var(--brand-green-primary);
  color: #ffffff;
  border-color: var(--brand-green-dark);
  box-shadow: var(--shadow-brand);
}

/* Pestañas activas por color oficial */
.prod-tab-pill[data-prod="dc"].active { background: #1065a2; }
.prod-tab-pill[data-prod="fortedc"].active { background: #00704a; }
.prod-tab-pill[data-prod="retard"].active { background: #119371; }
.prod-tab-pill[data-prod="forte"].active { background: #308e44; }
.prod-tab-pill[data-prod="gavindo"].active { background: #e0486a; }
.prod-tab-pill[data-prod="dexabion"].active { background: #cf2028; }

/* Tarjeta Principal del Producto */
.product-hero-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  padding: 28px 36px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.product-left-showcase {
  background: var(--bg-gray-soft);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.prod-pleca-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
  transition: opacity var(--transition-normal);
}

.prod-logo-display {
  max-height: 48px;
  width: auto;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.product-visual-duo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  position: relative;
}

.prod-character-display {
  max-height: 220px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
  transition: transform var(--transition-normal);
}

.prod-packshot-display {
  max-height: 220px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
  transition: transform var(--transition-normal);
}

.product-hero-card:hover .prod-character-display {
  transform: translateY(-6px) scale(1.03);
}

.product-hero-card:hover .prod-packshot-display {
  transform: translateY(-4px) scale(1.03);
}

.product-right-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.prod-tag-pill {
  font-family: var(--font-hud);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--brand-green-primary);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.prod-title-h2 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 8px;
}

.prod-formula-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-gray-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  width: fit-content;
}

.prod-description-text {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 18px;
}

.prod-specs-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.spec-clean-box {
  background: var(--bg-gray-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.spec-clean-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-clean-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 2px;
}

/* ==========================================================================
   6. TEMARIO DEL PROGRAMA
   ========================================================================== */
.modules-clean-section {
  padding: 45px 0;
  background: var(--bg-white);
  position: relative;
}

.module-dc-active-container {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  align-items: center;
}

.temario-video-illustrative-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  height: fit-content;
  align-self: center;
  margin: 0;
  width: 100%;
  transition: all var(--transition-normal);
}

.temario-video-illustrative-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.1);
  border-color: var(--brand-green-primary);
}

.temario-video-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d1b14;
  overflow: hidden;
  min-height: 280px;
}

.temario-video-poster {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 90, 34, 0.3) 0%, rgba(9, 20, 14, 0.88) 100%),
              url('public/banner_painhealers_4heroes.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.temario-poster-center-brand {
  align-self: center;
  margin: auto 0;
}

.poster-brand-logo {
  max-height: 44px;
  width: auto;
  opacity: 0.92;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.6));
}

.temario-card-caption-bar {
  padding: 16px 22px;
  background: #fafafa;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.temario-visual-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.temario-visual-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08);
  border-color: var(--brand-green-primary);
}

.temario-visual-media {
  background: linear-gradient(135deg, #091a10 0%, #065a22 100%);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  position: relative;
}

.temario-dc-overlay-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-hud);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.temario-visual-media::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--brand-wave-gradient);
}

.temario-dc-img {
  max-height: 260px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
  transition: transform var(--transition-normal);
}

.temario-visual-card:hover .temario-dc-img {
  transform: scale(1.04);
}

.temario-visual-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.temario-features-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.temario-chip {
  background: var(--bg-gray-soft);
  color: var(--text-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
}

.video-player-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.video-screen-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d1b14;
  overflow: hidden;
}

.video-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 90, 34, 0.4) 0%, rgba(13, 27, 20, 0.9) 100%),
              url('public/banner_painhealers_4heroes.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  transition: opacity var(--transition-normal);
}

.video-badge-live {
  align-self: flex-start;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-hud);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-dot-red {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}

.video-play-btn {
  align-self: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--brand-green-primary);
  border: 3px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(66, 180, 99, 0.6);
  transition: all var(--transition-fast);
}

.video-play-btn:hover {
  transform: scale(1.12);
  background: var(--brand-green-hover);
}

.video-play-btn svg {
  margin-left: 4px;
}

.video-playback-active {
  position: absolute;
  inset: 0;
  background: #09140e;
  display: flex;
  flex-direction: column;
}

.video-screen-sim {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 16px 20px;
}

.video-sim-hud {
  display: flex;
  justify-content: space-between;
  color: #a7f3d0;
  font-family: var(--font-hud);
  font-size: 0.8rem;
  font-weight: 700;
}

.video-sim-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
}

.video-sim-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-ctrl-sim {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.btn-ctrl-sim:hover {
  background: rgba(255, 255, 255, 0.3);
}

.video-sim-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.video-sim-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--brand-green-primary);
  transition: width 0.3s linear;
}

.video-footer-details {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafafa;
  border-top: 1px solid var(--border-light);
}

.modules-upcoming-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.upcoming-mod-card {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #ffffff;
  transition: all var(--transition-fast);
}

.upcoming-mod-card.active-card {
  border-color: var(--brand-green-primary);
  background: #f4fbf6;
  box-shadow: 0 4px 15px rgba(66, 180, 99, 0.08);
}

.upcoming-mod-card.locked-card {
  opacity: 0.75;
  background: #f9f9f9;
}

.status-tag {
  font-family: var(--font-hud);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.status-tag.active-tag {
  color: var(--brand-green-primary);
}

.status-tag.locked-tag {
  color: var(--text-muted);
}

/* ==========================================================================
   7. CENTRO DE RECURSOS, VIDEOS Y MATERIALES DE DESCARGA
   ========================================================================== */
.resources-clean-section {
  padding: 45px 0 40px;
  background: var(--bg-gray-soft);
  position: relative;
}

.resources-3col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 26px;
}

.resource-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
  border-color: var(--brand-green-primary);
}

.resource-card.highlight-resource {
  border-color: rgba(66, 180, 99, 0.4);
}

.resource-card-image-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resource-img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.resource-img-contain {
  max-height: 155px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
  transition: transform var(--transition-normal);
}

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

.resource-card:hover .resource-img-contain {
  transform: scale(1.06) translateY(-4px);
}

.resource-type-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-hud);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
}

.pill-video {
  background: #065a22;
  color: #ffffff;
}

.pill-quiz {
  background: #1065a2;
  color: #ffffff;
}

.pill-download {
  background: var(--brand-yellow-primary);
  color: #065a22;
}

.resource-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.resource-card-h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.35;
}

.resource-card-p {
  font-size: 0.86rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 14px;
}

.resource-badge-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}

.feat-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-green-dark);
}

/* Banner de Materiales Oficiales */
.official-materials-banner {
  background: linear-gradient(135deg, #091a10 0%, #065a22 100%);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: center;
  box-shadow: 0 15px 40px rgba(6, 90, 34, 0.2);
  border: 1px solid rgba(66, 180, 99, 0.3);
  position: relative;
  overflow: hidden;
}

.official-materials-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--brand-wave-gradient);
}

.mat-hero-syringe-img {
  max-height: 200px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.6));
  animation: floatSyringe 4s ease-in-out infinite;
}

@keyframes floatSyringe {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

.quiz-dc-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.badge-step-quiz {
  background: var(--bg-gray-soft);
  color: var(--brand-green-dark);
  font-family: var(--font-hud);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid var(--border-light);
}

.quiz-question-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.45;
}

.quiz-answers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-ans-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  background: #ffffff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-body);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quiz-ans-btn:hover {
  border-color: var(--brand-green-primary);
  background: #f7fcf8;
}

.quiz-ans-btn.correct {
  border-color: var(--brand-green-primary);
  background: #edfbf0;
  color: var(--brand-green-dark);
}

.quiz-ans-btn.wrong {
  border-color: #ef4444;
  background: #fef2f2;
  color: #991b1b;
}

.quiz-feedback-box {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  display: none;
}

.quiz-feedback-box.show.success {
  display: block;
  background: #edfbf0;
  border: 1px solid #42b463;
  color: #065a22;
}

.quiz-feedback-box.show.error {
  display: block;
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #991b1b;
}

.quiz-congrats-card {
  text-align: center;
  padding: 24px 18px;
}

.module-white-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.module-white-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-green-primary);
  box-shadow: var(--shadow-hover);
}

.mod-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.mod-pill-badge {
  font-family: var(--font-hud);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--brand-green-light);
  color: var(--brand-green-dark);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mod-duration-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mod-title-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.mod-desc-text {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 16px;
}

.mod-list-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.mod-list-item {
  font-size: 0.85rem;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mod-list-item svg {
  color: var(--brand-green-primary);
  flex-shrink: 0;
}

/* ==========================================================================
   SIMULADOR DE MOSTRADOR (INTERACTIVO)
   ========================================================================== */
.simulator-light-section {
  padding: 45px 0 40px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.sim-box-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.sim-dialogue-quote {
  background: var(--brand-green-light);
  border-left: 4px solid var(--brand-green-primary);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 14px 0 18px;
  font-style: italic;
  color: var(--brand-green-dark);
  font-weight: 500;
}

.quiz-option-light {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 13px 18px;
  text-align: left;
  color: var(--text-dark);
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.quiz-option-light:hover {
  border-color: var(--brand-green-primary);
  background: var(--brand-green-light);
  transform: translateX(4px);
}

.quiz-option-light.correct {
  background: #edfbf0;
  border-color: var(--brand-green-bright);
  color: var(--brand-green-dark);
}

.quiz-option-light.wrong {
  background: #fdf0f1;
  border-color: var(--brand-red-accent);
  color: var(--brand-red-deep);
}

.feedback-alert {
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-top: 14px;
  display: none;
}

.feedback-alert.show { display: block; }
.feedback-alert.success { background: #edfbf0; border: 1px solid var(--brand-green-bright); color: var(--brand-green-dark); }
.feedback-alert.error { background: #fdf0f1; border: 1px solid var(--brand-red-accent); color: var(--brand-red-deep); }

/* ==========================================================================
   CONSTANCIA OFICIAL
   ========================================================================== */
.certificate-clean-section {
  padding: 45px 0 50px;
  background: var(--bg-main);
}

.cert-preview-wrapper {
  background: #ffffff;
  border: 6px solid var(--brand-green-primary);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
}

.cert-preview-wrapper::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed var(--brand-yellow-gold);
  pointer-events: none;
}

/* ==========================================================================
   MODALES (ESTILO LIMPIO BLANCO / CLARO & RESPONSIVE MOBILE SCROLL)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-clean-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 30px 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 6px solid var(--brand-green-primary);
  margin: auto;
}

.modal-overlay.active .modal-clean-box {
  transform: scale(1) translateY(0);
}

.modal-close-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  background: transparent;
  transition: var(--transition-fast);
  z-index: 10;
  cursor: pointer;
}

.modal-close-icon:hover {
  background: var(--bg-gray-soft);
  color: var(--text-dark);
  transform: rotate(90deg);
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.form-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: var(--font-main);
  font-size: 16px; /* Evita zoom automático en Safari iOS */
  color: var(--text-dark);
  transition: var(--transition-fast);
  min-height: 44px;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-green-primary);
  box-shadow: 0 0 0 3px rgba(26, 132, 41, 0.15);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ==========================================================================
   FOOTER LIMPIO Y RESPONSIVO
   ========================================================================== */
.site-footer-light {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: 42px 0 24px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 36px;
  align-items: start;
}

.footer-logo-img {
  max-height: 42px;
  width: auto;
  margin-bottom: 14px;
  display: block;
}

.footer-brand-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
}

.footer-col-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color var(--transition-fast);
  padding: 2px 0;
  text-decoration: none;
  display: inline-block;
}

.footer-link:hover {
  color: var(--brand-green-primary);
}

.footer-cta-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.footer-cta-btn {
  width: auto;
  min-width: 170px;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  justify-content: center;
  border-radius: var(--radius-sm);
  display: inline-flex;
}

.footer-legal-bar {
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
  margin-top: 32px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* --- 1. TABLETS / LAPTOPS PEQUEÑAS (<= 1024px) --- */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .product-hero-card {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 36px;
  }

  .module-dc-active-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .resources-3col-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .wave-infographic-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .site-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .hero-main-heading {
    font-size: 3rem;
  }

  .official-materials-banner {
    grid-template-columns: 1.2fr 1fr;
    padding: 36px;
  }
}

/* --- 2. MOBILE DRAWER TRIGGER (<= 991px) --- */
@media (max-width: 991px) {
  .nav-desktop-action {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 86vw);
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    z-index: 10002;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.18);
    transform: translateX(105%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 18px;
    width: 100%;
  }

  .drawer-logo-img {
    max-height: 36px;
    width: auto;
  }

  .drawer-close-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-gray-soft);
    color: var(--text-dark);
    transition: var(--transition-fast);
    cursor: pointer;
  }

  .drawer-close-btn:hover {
    background: var(--brand-red-light);
    color: var(--brand-red-deep);
  }

  .nav-links-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

  .nav-link {
    font-size: 1.02rem;
    font-weight: 700;
    padding: 12px 14px;
    border-radius: 10px;
    min-height: 48px;
    display: flex;
    align-items: center;
    color: var(--text-dark);
    transition: all var(--transition-fast);
    width: 100%;
  }

  .nav-link:hover, .nav-link.active {
    background: var(--brand-green-light);
    color: var(--brand-green-dark);
  }

  .nav-link::after {
    display: none;
  }

  .mobile-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    width: 100%;
  }

  .mobile-drawer-btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.95rem;
    justify-content: center;
    font-weight: 700;
  }
}

/* --- 3. TABLETS PORTRAIT & PHABLETS (<= 768px) --- */
@media (max-width: 768px) {
  .brand-top-stripe {
    height: 4px;
  }

  .site-header {
    top: 4px;
    height: 66px;
  }

  .header-fixed-spacer {
    height: 70px;
  }

  .official-brand-logo-img {
    height: 34px;
    max-width: 175px;
  }

  .hero-panoramic-section {
    padding: 12px 0 24px;
  }

  .hero-panoramic-badge {
    display: none !important;
  }

  .hero-mobile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #e8f7ec;
    border: 1px solid rgba(26, 132, 41, 0.2);
    border-radius: var(--radius-full);
    font-family: var(--font-hud);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--brand-green-primary);
    text-transform: uppercase;
    margin-bottom: 10px;
    width: fit-content;
  }

  .hero-master-fullwidth-img {
    height: 180px;
    object-fit: cover;
    object-position: center;
  }

  .hero-panoramic-content-box {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    gap: 18px;
  }

  .hero-panoramic-h1 {
    font-size: 1.65rem;
    line-height: 1.15;
    margin-bottom: 8px;
  }

  .hero-panoramic-desc {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .hero-heroes-strip {
    grid-template-columns: repeat(2, 1fr);
    padding: 10px 12px 14px;
    gap: 8px;
  }

  .hero-mini-hero-card {
    padding: 8px 10px;
    gap: 8px;
    min-height: 52px;
  }

  .hero-mini-hero-card:last-child:nth-child(odd) {
    grid-column: span 2;
  }

  .mini-hero-avatar {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  .mini-hero-info strong {
    font-size: 0.76rem;
    line-height: 1.15;
    white-space: normal;
  }

  .mini-hero-info span {
    font-size: 0.66rem;
    line-height: 1.15;
    display: block;
  }

  /* Portfolio Selector en 2 columnas con 5to elemento centrado */
  .products-nav-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 20px;
  }

  .prod-tab-pill {
    font-size: 0.84rem;
    padding: 10px 12px;
    min-height: 46px;
  }

  .prod-tab-pill:last-child:nth-child(odd) {
    grid-column: span 2;
  }

  .product-hero-card {
    padding: 26px 20px;
    border-radius: var(--radius-md);
  }

  .product-left-showcase {
    padding: 24px 16px;
    min-height: 200px;
  }

  .prod-character-display,
  .prod-packshot-display {
    max-height: 190px;
  }

  .prod-title-h2 {
    font-size: 1.75rem;
  }

  .prod-specs-2x2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .spec-clean-box {
    padding: 12px 14px;
  }

  .resources-3col-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .wave-infographic-track {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .wave-step-white-card {
    padding: 26px 22px;
  }

  .official-materials-banner {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    text-align: center;
    gap: 20px;
  }

  .mat-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .mat-banner-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer-light {
    padding: 36px 0 20px;
  }

  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .footer-col-brand {
    grid-column: span 2;
  }

  .footer-col-cta {
    grid-column: span 2;
  }

  .footer-cta-btn {
    width: 100%;
    max-width: 280px;
  }

  .footer-legal-bar {
    margin-top: 24px;
    padding-top: 14px;
    font-size: 0.76rem;
    line-height: 1.5;
  }
}

/* --- 4. SMARTPHONES ESTÁNDAR (<= 480px / 430px / 390px) --- */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-col-brand,
  .footer-col-cta {
    grid-column: span 1;
  }

  .footer-cta-btn {
    width: 100%;
    max-width: 100%;
  }

  .footer-legal-bar {
    text-align: left;
  }

  .site-header {
    height: 62px;
  }

  .header-fixed-spacer {
    height: 66px;
  }

  .official-brand-logo-img {
    height: 30px;
    max-width: 150px;
  }

  .hero-main-heading {
    font-size: 1.95rem;
    line-height: 1.12;
  }

  .hero-btn-row {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 30px;
  }

  .hero-btn-row .btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.95rem;
  }

  .hero-feat-num {
    font-size: 1.35rem;
  }

  .hero-feat-label {
    font-size: 0.74rem;
  }

  .section-heading-dark {
    font-size: 1.7rem;
    line-height: 1.2;
  }

  .section-desc-clean {
    font-size: 0.92rem;
  }

  .products-nav-bar {
    gap: 8px;
    margin-bottom: 22px;
  }

  .prod-tab-pill {
    font-size: 0.8rem;
    padding: 8px 10px;
    gap: 6px;
    min-height: 46px;
  }

  .prod-character-display,
  .prod-packshot-display {
    max-height: 155px;
  }

  .prod-title-h2 {
    font-size: 1.5rem;
  }

  .prod-formula-tag {
    font-size: 0.8rem;
    padding: 6px 10px;
    gap: 6px;
    max-width: 100%;
    white-space: normal;
  }

  .prod-specs-2x2 {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .product-right-details .btn {
    width: 100%;
    min-height: 48px;
  }

  .temario-video-viewport {
    min-height: 190px;
  }

  .video-info-overlay h3 {
    font-size: 1.05rem !important;
  }

  .video-info-overlay p {
    font-size: 0.78rem !important;
  }

  .temario-card-caption-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
  }

  .resource-card-image-wrap {
    height: 160px;
  }

  .resource-card-body {
    padding: 18px 16px;
  }

  .resource-card-h3 {
    font-size: 1.1rem;
  }

  .mat-banner-content h3 {
    font-size: 1.4rem !important;
  }

  .official-materials-banner div[style*="display: flex"] {
    flex-direction: column;
    width: 100%;
  }

  .official-materials-banner .btn {
    width: 100%;
    min-height: 48px;
  }

  /* Modales en Mobile: Flujo limpio sin desborde de teclado */
  .modal-overlay {
    padding: 10px;
    align-items: flex-end;
  }

  .modal-clean-box {
    padding: 28px 18px 22px;
    border-radius: 20px 20px 12px 12px;
    max-height: calc(100dvh - 16px);
  }

  .modal-clean-box h3 {
    font-size: 1.45rem !important;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* --- 5. COMPACT DEVICES (<= 375px - iPhone SE, Androids compactos) --- */
@media (max-width: 375px) {
  .official-brand-logo-img {
    height: 28px;
    max-width: 140px;
  }

  .hero-panoramic-h1 {
    font-size: 1.45rem;
    line-height: 1.15;
  }

  .hero-heroes-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 8px 10px 12px;
  }

  .hero-mini-hero-card {
    padding: 6px 8px;
    gap: 6px;
    min-height: 48px;
  }

  .mini-hero-avatar {
    width: 32px;
    height: 32px;
  }

  .mini-hero-info strong {
    font-size: 0.7rem;
    line-height: 1.12;
  }

  .mini-hero-info span {
    font-size: 0.62rem;
    line-height: 1.12;
  }

  .prod-tab-pill {
    font-size: 0.75rem;
    padding: 7px 6px;
  }

  .prod-character-display,
  .prod-packshot-display {
    max-height: 135px;
  }

  .modal-clean-box {
    padding: 24px 14px 20px;
  }
}

/* ==========================================================================
   BOTÓN FLOTANTE "VOLVER ARRIBA" (GO TOP)
   ========================================================================== */
.btn-go-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: var(--brand-green-primary);
  color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(26, 132, 41, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  cursor: pointer;
  border: 2px solid #ffffff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-go-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.btn-go-top:hover {
  background: var(--brand-green-dark);
  box-shadow: 0 8px 25px rgba(6, 90, 34, 0.5);
  transform: translateY(-4px) scale(1.08);
}

.btn-go-top:active {
  transform: translateY(0) scale(0.95);
}

@media (max-width: 768px) {
  .btn-go-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}
