/* ReconoSERte — reproductor de video explicativo (Nutrición) */
.video-section { background: var(--bg-soft); }
.nv-player {
  max-width: 900px; margin: 0 auto; border-radius: 24px; overflow: hidden;
  background: #2D3A32; box-shadow: 0 24px 60px rgba(45, 58, 50, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.nv-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }

/* Escenas */
.nv-scene {
  position: absolute; inset: 0; display: grid; align-content: center;
  padding: 7% 8%; opacity: 0; pointer-events: none;
  transition: opacity 0.7s ease;
}
.nv-scene.is-active { opacity: 1; pointer-events: auto; }
.nv-scene .nv-kicker {
  font-family: var(--font-body); font-size: clamp(0.6rem, 1.4vw, 0.78rem); font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--terra);
  margin-bottom: 14px;
}
.nv-scene h3 {
  font-family: var(--font-display); font-weight: 500; color: #FBFDF9;
  font-size: clamp(1.4rem, 4.2vw, 2.6rem); line-height: 1.15; max-width: 60%;
  margin-bottom: 18px; text-wrap: pretty;
}
.nv-scene h3 em { font-style: italic; color: var(--sage); }
.nv-lines { display: grid; gap: 10px; max-width: 55%; }
.nv-line {
  display: flex; gap: 12px; align-items: flex-start;
  font-family: var(--font-body); font-size: clamp(0.78rem, 1.9vw, 1.02rem);
  color: #D8DDD2; line-height: 1.5;
}
.nv-line::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--sage);
  flex-shrink: 0; margin-top: 0.55em;
}
.nv-num {
  display: inline-grid; place-items: center; width: clamp(34px, 5vw, 46px); height: clamp(34px, 5vw, 46px);
  border-radius: 50%; background: var(--sage); color: #2D3A32;
  font-family: var(--font-display); font-size: clamp(1rem, 2.4vw, 1.4rem); font-weight: 600;
  margin-bottom: 16px;
}
.nv-photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 42%;
  object-fit: cover; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%);
  mask-image: linear-gradient(90deg, transparent, #000 28%);
}
.nv-scene > *:not(.nv-photo):not(.nv-bg) { position: relative; z-index: 1; }
.nv-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.22; z-index: 0;
  -webkit-mask-image: none; mask-image: none;
}
.nv-scene.nv-center::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(45, 58, 50, 0.2), rgba(45, 58, 50, 0.7));
}
/* B-roll: movimiento Ken Burns mientras la escena está activa */
@media (prefers-reduced-motion: no-preference) {
  .nv-scene.is-active .nv-photo { animation: nvKenBurns 14s ease-in-out both; }
  .nv-scene.is-active .nv-bg { animation: nvKenBurns 16s ease-in-out both; }
}
@keyframes nvKenBurns {
  from { transform: scale(1.06) translate(1.5%, 0.5%); }
  to { transform: scale(1.18) translate(-1.5%, -1.5%); }
}
.nv-scene .nv-cta-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 10px;
  background: var(--wa); color: #fff; text-decoration: none;
  font-family: var(--font-body); font-weight: 700; font-size: clamp(0.78rem, 1.9vw, 1rem);
  padding: clamp(10px, 1.8vw, 15px) clamp(18px, 3vw, 30px); border-radius: 999px;
  box-shadow: 0 8px 24px rgba(78, 141, 91, 0.4); justify-self: start;
}
.nv-scene .nv-cta-pill svg { width: 1.2em; height: 1.2em; }
.nv-center { text-align: center; justify-items: center; }
.nv-center h3, .nv-center .nv-lines { max-width: 80%; margin-inline: auto; }
.nv-center .nv-cta-pill { justify-self: center; }

/* Animación de entrada de elementos */
@media (prefers-reduced-motion: no-preference) {
  .nv-scene.is-active .nv-anim {
    animation: nvIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--d, 0s);
  }
}
@keyframes nvIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Barra de control */
.nv-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: #25302A; border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.nv-play {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--sage); color: #25302A; border: none; cursor: pointer;
  display: grid; place-items: center; transition: transform 0.15s;
}
.nv-play:hover { transform: scale(1.08); }
.nv-play svg { width: 16px; height: 16px; }
.nv-segments { display: flex; gap: 6px; flex: 1; }
.nv-seg {
  flex: 1; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.18);
  border: none; cursor: pointer; padding: 0; position: relative; overflow: hidden;
}
.nv-seg .nv-fill {
  position: absolute; inset: 0; width: 0%; background: var(--sage); border-radius: 999px;
}
.nv-time {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  color: rgba(255, 255, 255, 0.55); font-variant-numeric: tabular-nums; flex-shrink: 0;
}

@media (max-width: 640px) {
  .nv-photo { display: none; }
  .nv-scene h3, .nv-lines { max-width: 100%; }
}
