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

:root {
  --mint: #A8E6CF;
  --mint-dark: #7DD4B0;
  --rose: #FFD3B6;
  --lavender: #D4A5A5;
  --cream: #FFF1E6;
  --text: #4A4A4A;
  --text-light: #7A7A7A;
  --white: #FAFAFA;
  --shadow: 0 10px 30px rgba(0, 0, 0, .06);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .10);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: .3s ease;
  --font-head: 'Nunito', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.3;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 250, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(168, 230, 207, .3);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

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

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  color: var(--text);
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--mint-dark);
  transition: width var(--transition);
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--mint-dark);
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

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

.section-tag {
  display: inline-block;
  background: var(--mint);
  color: #2a6050;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: .8rem;
}

.section-intro {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-top: .8rem;
}

.section-subtitle {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--mint-dark);
  margin-top: .3rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 7rem 0 4rem;
  background: linear-gradient(135deg, var(--cream) 0%, #fff 60%, var(--mint) 100%);
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--rose);
  color: #8a4520;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  padding: .35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

.hero-text h1 {
  color: var(--text);
  margin-bottom: 1.2rem;
}

.hero-text p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: linear-gradient(135deg, var(--mint-dark), #5bbf9a);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(125, 212, 176, .4);
  transition: transform var(--transition), box-shadow var(--transition);
  margin-top: .5rem;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(125, 212, 176, .5);
}

.btn-icon {
  font-size: 1.1rem;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
  max-height: 480px;
}

/* ============================================================
   SECTION BACKGROUNDS
   ============================================================ */
.section-rh {
  background: var(--white);
}

.section-lactancia {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}

.section-alimentacion {
  background: linear-gradient(180deg, #f0fbf6 0%, var(--white) 100%);
}

.section-ictericia {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}

/* ============================================================
   INCOMPATIBILIDAD RH
   ============================================================ */
.rh-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  /* centra verticalmente imagen y tarjetas */
  margin-bottom: 2rem;
}

.rh-image {
  align-self: center;
  /* garantía extra: la figura siempre centrada */
}

.rh-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
  max-height: 400px;
}

.rh-cards {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.info-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--mint);
  transition: transform var(--transition), box-shadow var(--transition);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.info-card.card-alert {
  border-left-color: var(--lavender);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: .5rem;
}

.info-card h3 {
  margin-bottom: .6rem;
  font-size: 1rem;
}

.info-card ul {
  padding-left: 1rem;
}

.info-card li {
  position: relative;
  padding-left: .8rem;
  color: var(--text-light);
  font-size: .92rem;
  margin-bottom: .3rem;
}

.info-card li::before {
  content: '•';
  color: var(--mint-dark);
  position: absolute;
  left: 0;
}

/* Video Banner */
.video-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, var(--mint), var(--cream));
  border-radius: var(--radius);
  padding: 1.2rem 1.8rem;
  box-shadow: var(--shadow);
}

.video-icon {
  font-size: 2rem;
}

.video-label {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-light);
}

.video-link {
  font-family: var(--font-head);
  font-weight: 700;
  color: #2a6050;
  font-size: 1rem;
  transition: color var(--transition);
}

.video-link:hover {
  color: var(--mint-dark);
}

/* ============================================================
   LACTANCIA
   ============================================================ */
.lactancia-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: start;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.benefit-group {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow);
}

.benefit-group h3 {
  font-size: 1rem;
  margin-bottom: .7rem;
}

.benefit-list li {
  color: var(--text-light);
  font-size: .88rem;
  padding: .2rem 0 .2rem 1rem;
  position: relative;
}

.benefit-list li::before {
  content: '✓';
  color: var(--mint-dark);
  position: absolute;
  left: 0;
}

.accordion-title {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

/* Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.accordion-btn {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(168, 230, 207, .5);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .93rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .7rem;
  box-shadow: var(--shadow);
  transition: background var(--transition), box-shadow var(--transition);
}

.accordion-btn:hover {
  background: var(--cream);
  box-shadow: var(--shadow-lg);
}

.accordion-btn[aria-expanded="true"] {
  background: var(--mint);
}

.myth-tag {
  background: #ffe4e4;
  color: #c0392b;
  border-radius: 6px;
  padding: .15rem .5rem;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
  background: var(--cream);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 0 1.2rem;
}

.accordion-body.open {
  max-height: 200px;
  padding: 1rem 1.2rem;
}

.truth-tag {
  color: #2a6050;
  font-weight: 700;
}

/* Lactancia image */
.lactancia-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
  max-height: 320px;
}

.recomendaciones-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow);
  margin-top: 1rem;
  font-size: .88rem;
}

.recomendaciones-box h4 {
  margin-bottom: .7rem;
  font-size: .97rem;
}

.recomendaciones-box ol {
  padding-left: 1.2rem;
}

.recomendaciones-box li {
  color: var(--text-light);
  margin-bottom: .3rem;
}

/* ============================================================
   ALIMENTACION - CARRUSEL
   ============================================================ */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
  background: #fff;
}

.carousel-track {
  display: flex;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}

.carousel-slide {
  min-width: 100%;
}

.slide-figure {
  position: relative;
  margin: 0;
}

.slide-figure img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  /* anula el scale del lightbox-trigger para no romper el carrusel */
  transition: opacity var(--transition);
}

.slide-figure img.lightbox-trigger:hover {
  transform: none;
  /* sin escala dentro del carrusel */
  opacity: .92;
  box-shadow: none;
}

/* Ícono de lupa en la esquina superior derecha */
.slide-figure::after {
  content: '🔍';
  position: absolute;
  top: .8rem;
  right: .8rem;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, .75);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  /* no intercepta el clic del carrusel */
  opacity: 0;
  transition: opacity var(--transition);
}

.slide-figure:hover::after {
  opacity: 1;
}

.slide-figure figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7));
  color: #fff;
  padding: 2rem 2rem 1.5rem;
}

.slide-number {
  display: block;
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  opacity: .3;
  line-height: 1;
  margin-bottom: .2rem;
}

.slide-figure figcaption h3 {
  font-size: 1.3rem;
  color: #fff;
}

.slide-figure figcaption p {
  font-size: .9rem;
  opacity: .85;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background var(--transition), transform var(--transition);
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--mint);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 1rem;
}

.carousel-next {
  right: 1rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  padding: .8rem;
  background: #fff;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.dot.active {
  background: var(--mint-dark);
  transform: scale(1.3);
}

/* Alimentacion info */
.alimentacion-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.info-col {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.info-col h3 {
  font-size: 1rem;
  margin-bottom: .8rem;
}

.info-col-warning {
  border-top: 3px solid var(--lavender);
}

.check-list li,
.cross-list li {
  padding: .25rem 0 .25rem 1.3rem;
  position: relative;
  color: var(--text-light);
  font-size: .88rem;
}

.check-list li::before {
  content: '✓';
  color: var(--mint-dark);
  position: absolute;
  left: 0;
}

.cross-list li::before {
  content: '✗';
  color: var(--lavender);
  position: absolute;
  left: 0;
}

/* ============================================================
   ICTERICIA
   ============================================================ */
.ictericia-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: start;
}

.myth-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  border-left: 4px solid var(--rose);
}

.myth-text {
  margin-bottom: .5rem;
  font-size: .92rem;
}

.truth-text {
  font-size: .92rem;
  color: var(--text-light);
}

.badge-myth {
  background: #ffe4e4;
  color: #c0392b;
  border-radius: 6px;
  padding: .1rem .5rem;
  font-size: .78rem;
  font-weight: 700;
  margin-right: .3rem;
}

.badge-truth {
  background: #d4f5e2;
  color: #1a7a45;
  border-radius: 6px;
  padding: .1rem .5rem;
  font-size: .78rem;
  font-weight: 700;
  margin-right: .3rem;
}

.alert-box {
  background: linear-gradient(135deg, #fff5f5, #fff);
  border: 1px solid #ffd6d6;
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow);
}

.alert-box h3 {
  margin-bottom: .8rem;
  font-size: 1rem;
}

.alert-box li {
  padding: .25rem 0 .25rem 1.3rem;
  position: relative;
  color: var(--text-light);
  font-size: .9rem;
}

.alert-box li::before {
  content: '⚠️';
  position: absolute;
  left: 0;
  font-size: .7rem;
  top: .35rem;
}

.ictericia-images figure {
  margin-bottom: 1.2rem;
}

.ictericia-images img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  max-height: 240px;
}

.ictericia-images figcaption {
  font-size: .82rem;
  color: var(--text-light);
  text-align: center;
  margin-top: .4rem;
  font-style: italic;
}

.tips-box {
  background: linear-gradient(135deg, var(--mint), var(--cream));
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow);
}

.tips-box h4 {
  font-size: .97rem;
  margin-bottom: .7rem;
  color: #2a6050;
}

.tips-box li {
  padding: .2rem 0 .2rem 1.2rem;
  position: relative;
  font-size: .88rem;
  color: var(--text);
}

.tips-box li::before {
  content: '✓';
  color: #2a6050;
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: linear-gradient(135deg, #2a3d35, #1a2a22);
  color: #e8f5f0;
  padding: 0;
  overflow: hidden;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  min-height: 360px;
}

.footer-img {
  margin: 0;
  overflow: hidden;
}

.footer-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .7;
}

.footer-content {
  padding: 3rem 2.5rem;
}

.footer-logo img {
  height: 50px;
  width: auto;
  border-radius: 8px;
  margin-bottom: 1.2rem;
  filter: brightness(1.5);
}

.footer-content h2 {
  font-size: 1.4rem;
  color: var(--mint);
  margin-bottom: 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-col h3 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--mint);
  margin-bottom: .4rem;
}

.footer-col p,
.footer-col li {
  font-size: .88rem;
  color: rgba(232, 245, 240, .75);
  margin-bottom: .2rem;
}

.footer-copy {
  font-size: .78rem;
  color: rgba(232, 245, 240, .4);
  border-top: 1px solid rgba(232, 245, 240, .1);
  padding-top: 1rem;
}

/* ============================================================
   MODAL VIDEO
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .78);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  position: relative;
  background: #111;
  border-radius: var(--radius);
  width: min(92vw, 820px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 1rem .7rem 1.2rem;
  background: rgba(255, 255, 255, .06);
}

.modal-video-title {
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .8);
}

.modal-close {
  background: rgba(255, 255, 255, .14);
  border: none;
  color: #fff;
  font-size: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}

.modal-close:hover {
  background: rgba(255, 255, 255, .35);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   VIDEO BANNER — as clickable button
   ============================================================ */
.video-banner {
  cursor: pointer;
  user-select: none;
}

.video-banner:hover {
  box-shadow: var(--shadow-lg);
}

.video-banner .video-link {
  cursor: pointer;
}

/* ============================================================
   IMAGE CAPTION VISIBLE
   ============================================================ */
.img-caption-visible {
  display: block;
  font-size: .82rem;
  color: var(--text-light);
  font-style: italic;
  text-align: center;
  margin-top: .5rem;
  padding: 0 .5rem;
}

/* ============================================================
   LIGHTBOX — image modal
   ============================================================ */
.lightbox-trigger {
  cursor: zoom-in;
  transition: transform var(--transition), box-shadow var(--transition);
}

.lightbox-trigger:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.lightbox-box {
  position: relative;
  max-width: min(94vw, 1000px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
}

.lightbox-box .modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 10;
  background: rgba(255, 255, 255, .9);
  color: #333;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}

.lightbox-box .modal-close:hover {
  background: #fff;
}

#lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  object-fit: contain;
}

.lightbox-caption {
  color: rgba(255, 255, 255, .85);
  font-size: .88rem;
  text-align: center;
  max-width: 680px;
  line-height: 1.6;
  padding: 0 1rem;
}

/* ============================================================
   INFOGRAFÍA BLOCKS
   ============================================================ */
.infografia-block {
  margin: 2.5rem 0 0;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: visible;   /* permite que el figcaption se muestre debajo */
}

.infografia-caption-top {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--mint), var(--cream));
  border-bottom: 1px solid rgba(168, 230, 207, .4);
}

.infografia-caption-top p {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: #2a6050;
}

.infografia-label {
  background: rgba(42, 96, 80, .12);
  color: #2a6050;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .8rem;
  border-radius: 50px;
  white-space: nowrap;
}

.infografia-block img {
  width: 100%;
  display: block;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Caption debajo de la infografía */
.infografia-block .img-caption-visible {
  padding: .6rem 1.2rem .8rem;
  background: #fff;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  border-top: 1px solid rgba(168,230,207,.25);
}

/* ============================================================
   SKIP LINK — Accessibility
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--mint-dark);
  color: #fff;
  padding: .6rem 1.6rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  z-index: 3000;
  transition: top var(--transition);
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* ============================================================
   FOCUS — Keyboard Navigation
   ============================================================ */
*:focus-visible {
  outline: 3px solid var(--mint-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(125, 212, 176, .35);
}

/* ============================================================
   SURVEY / ENCUESTA QR SECTION
   ============================================================ */
.section-encuesta {
  background: linear-gradient(160deg, #f0fbf6 0%, var(--cream) 40%, #fff 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative floating circles */
.section-encuesta::before,
.section-encuesta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: .1;
  pointer-events: none;
}

.section-encuesta::before {
  width: 320px;
  height: 320px;
  background: var(--mint);
  top: -80px;
  right: -100px;
  animation: float-circle 8s ease-in-out infinite;
}

.section-encuesta::after {
  width: 200px;
  height: 200px;
  background: var(--rose);
  bottom: -60px;
  left: -60px;
  animation: float-circle 10s ease-in-out infinite reverse;
}

@keyframes float-circle {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(15px, -20px); }
}

/* QR Card — glassmorphism */
.qr-card {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(168, 230, 207, .35);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, .06),
    inset 0 1px 0 rgba(255, 255, 255, .6);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.qr-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, .1),
    inset 0 1px 0 rgba(255, 255, 255, .7);
}

/* Subtle animated glow behind card */
.qr-card-glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--mint), var(--rose), var(--lavender), var(--mint));
  background-size: 300% 300%;
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity .5s ease;
  animation: glow-shift 5s ease infinite;
}

.qr-card:hover .qr-card-glow {
  opacity: 1;
}

@keyframes glow-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.qr-card-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 2.5rem;
  background: rgba(255, 255, 255, .7);
  border-radius: inherit;
}

.qr-icon-badge {
  position: absolute;
  top: -10px;
  left: -10px;
  background: linear-gradient(135deg, var(--mint-dark), #5bbf9a);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 6px 18px rgba(125, 212, 176, .4);
}

/* QR Image */
.qr-figure {
  flex-shrink: 0;
  text-align: center;
}

.qr-image {
  width: 220px;
  max-width: 220px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.qr-image:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
}

.qr-caption {
  display: block;
  font-size: .78rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: .6rem;
}

/* QR Info text */
.qr-info {
  flex: 1;
}

.qr-info h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .6rem;
}

.qr-info p {
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

/* Secondary button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--mint-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  padding: .7rem 1.6rem;
  border-radius: 50px;
  border: 2px solid var(--mint-dark);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--mint-dark), #5bbf9a);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(125, 212, 176, .35);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-height: 320px;
    margin: 0 auto;
  }

  .rh-layout {
    grid-template-columns: 1fr;
  }

  .lactancia-layout {
    grid-template-columns: 1fr;
  }

  .alimentacion-info {
    grid-template-columns: 1fr 1fr;
  }

  .ictericia-layout {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-img {
    max-height: 220px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* QR Card tablet */
  .qr-card-content {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.8rem;
  }

  .qr-info {
    text-align: center;
  }

  .qr-icon-badge {
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(250, 250, 250, .97);
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(168, 230, 207, .3);
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .alimentacion-info {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .slide-figure img {
    height: 280px;
  }

  /* QR Card mobile */
  .qr-card-content {
    padding: 1.8rem 1.2rem;
    gap: 1.5rem;
  }

  .qr-image {
    width: 180px;
    max-width: 180px;
  }

  .qr-info h3 {
    font-size: 1.05rem;
  }

  .qr-info p {
    font-size: .88rem;
  }

  .btn-secondary {
    font-size: .85rem;
    padding: .6rem 1.2rem;
  }
}