* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #fff1f6;
  color: #202020;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background:
    radial-gradient(circle at 10% 20%, #f8a7c4 0 8px, transparent 9px),
    radial-gradient(circle at 85% 15%, #f8a7c4 0 7px, transparent 8px),
    radial-gradient(circle at 40% 70%, #f8a7c4 0 6px, transparent 7px);
  background-size: 210px 210px;
}

img {
  max-width: 100%;
}

.menu {
  width: min(1100px, 92%);
  margin: auto;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.marca {
  color: #202020;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.2rem;
}

.links {
  display: flex;
  gap: 16px;
}

.links a {
  color: #202020;
  text-decoration: none;
  font-weight: bold;
}

.btn-menu {
  display: none;
  border: 2px solid #202020;
  background: #ffffff;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 1.2rem;
}

.inicio {
  background: #ffd7e5;
}

.portada {
  width: min(1100px, 92%);
  margin: auto;
  padding: 55px 0 70px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.etiqueta {
  display: inline-block;
  background: white;
  border: 2px solid #202020;
  border-radius: 30px;
  padding: 8px 15px;
  font-weight: bold;
}

h1 {
  margin: 12px 0;
  font-size: clamp(2.6rem, 8vw, 5.6rem);
   white-space: nowrap;
  line-height: 0.95;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}

h3 {
  margin: 0 0 10px;
}

p, li {
  font-size: 1.05rem;
  line-height: 1.6;
}

.boton {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 16px;
  background: #202020;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.imagen-portada {
  text-align: center;
}

.imagen-portada img {
  max-height: 330px;
}

.bloque {
  width: min(1100px, 92%);
  margin: 58px auto;
  position: relative;
  z-index: 1;
}

.dos-columnas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}

.tarjeta,
.lista-controles article,
.cuidado,
.alarma,
.video-caja {
  background: #ffffff;
  border: 3px solid #202020;
  border-radius: 22px;
  box-shadow: 6px 6px 0 #202020;
}

.tarjeta {
  
  padding: 24px;
}

.importante {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 18px;
  align-items: center;
}

.importante img {
  max-height: 130px;
}

.lista-controles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.lista-controles article {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
}

.lista-controles span {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  background: #f58cb1;
  color: white;
  border: 2px solid #202020;
  border-radius: 50%;
}

.apoyo-imagenes {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: center;
}

.apoyo-imagenes img,
.imagenes-alimentacion img {
  background: #ffffff;
  border: 3px solid #202020;
  border-radius: 18px;
  padding: 8px;
  
}

.cuidados-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cuidado {
  padding: 18px;
  text-align: center;
}

.cuidado img {
  height: 115px;
  object-fit: contain;
  margin-bottom: 12px;
}

.alarma {
  padding: 28px;
  background: #fff;
}

.titulo-alarma {
  display: flex;
  align-items: center;
  gap: 12px;
}

.titulo-alarma img {
  width: 55px;
}

.lista-alarma {
  color: #e5334f;
  font-weight: bold;
  columns: 2;
  column-gap: 40px;
}

.alimentacion {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: center;
}

.imagenes-alimentacion {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: #ffffff;
  border: 3px solid #202020;
  border-radius: 22px;
  box-shadow: 6px 6px 0 #202020;
}

.imagenes-alimentacion img {
  height: 360px;
  width: 100%;
  object-fit: cover;
}

.videos {
  padding-bottom: 20px;
}


.grid-videos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

.video-caja {
  min-height: 190px;
  padding: 18px;
  display: grid;
  width: 280px;
  place-items: center;
  text-align: center;
  background-color: white;
}

.video-caja p {
  margin: 0;
  color: #555;
}

.video-caja video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.videos-alimentacion {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 25px;
}

.videos-alimentacion video {
  width: 260px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

@media (max-width: 600px) {
  .videos-alimentacion video {
    width: 230px;
  }
}


footer {
  margin-top: 40px;
  padding: 25px 16px;
  background: #202020;
  color: white;
  text-align: center;
}

@media (max-width: 850px) {
  .btn-menu {
    display: block;
  }

  .links {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: white;
    border: 3px solid #202020;
    border-radius: 16px;
    padding: 14px;
    flex-direction: column;
  }

  .links.abierto {
    display: flex;
  }

  .portada,
  .dos-columnas,
  .alimentacion,
  .apoyo-imagenes,
  .imagenes-alimentacion,
  .grid-videos {
    grid-template-columns: 1fr;
  }

  .lista-controles,
  .cuidados-grid {
    grid-template-columns: 1fr;
  }

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

  .lista-alarma {
    columns: 1;
  }

  .imagenes-alimentacion img {
    height: auto;
  }
}


/* Separación correcta de las dos partes del PDF */
.controles-layout,
.cuidados-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 22px;
  align-items: start;
}

.controles-prenatales .lista-controles {
  grid-template-columns: 1fr;
}

.lista-controles article p,
.lista-cuidados article p {
  margin: 0;
}



.lista-cuidados {
  display: grid;
  gap: 12px;
}

.lista-cuidados article {
  background: #ffffff;
  border: 3px solid #202020;
  border-radius: 22px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
  box-shadow: 6px 6px 0 #202020;
}

.lista-cuidados span {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  background: #f58cb1;
  color: white;
  border: 2px solid #202020;
  border-radius: 50%;
}

.imagenes-cuidados {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.imagenes-cuidados img {
  background: #ffffff;
  border: 3px solid #202020;
  border-radius: 18px;
  padding: 8px;
  max-height: 145px;
  width: 60%;
  object-fit: contain;
}

@media (max-width: 850px) {
  .controles-layout,
  .cuidados-layout {
    grid-template-columns: 1fr;
  }

  .imagenes-cuidados {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  h1 {
    white-space: normal;
  }
}

.chatbot {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
}

.chatbot-boton {
  width: 62px;
  height: 62px;
  border: 3px solid #202020;
  border-radius: 50%;
  background: #f58cb1;
  color: white;
  font-size: 1.7rem;
  cursor: pointer;
  box-shadow: 5px 5px 0 #202020;
}

.chatbot-ventana {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: 340px;
  max-height: 520px;
  display: none;
  flex-direction: column;
  background: white;
  border: 3px solid #202020;
  border-radius: 22px;
  box-shadow: 7px 7px 0 #202020;
  overflow: hidden;
}

.chatbot-ventana.activo {
  display: flex;
}

.chatbot-header {
  background: #f58cb1;
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header strong {
  display: block;
  font-size: 1rem;
}

.chatbot-header span {
  font-size: 0.8rem;
}

.chatbot-header button {
  border: none;
  background: white;
  color: #202020;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}

.chatbot-mensajes {
  padding: 15px;
  height: 270px;
  overflow-y: auto;
  background: #fff7fa;
}

.mensaje {
  max-width: 85%;
  margin-bottom: 12px;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.4;
}

.mensaje.bot {
  background: white;
  border: 2px solid #202020;
  color: #202020;
}

.mensaje.usuario {
  margin-left: auto;
  background: #202020;
  color: white;
}

.chatbot-opciones {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 2px solid #202020;
  background: white;
  overflow-x: auto;
}

.chatbot-opciones button {
  flex: 0 0 auto;
  border: 2px solid #202020;
  border-radius: 18px;
  background: #ffd7e5;
  padding: 7px 10px;
  font-weight: bold;
  cursor: pointer;
}

.chatbot-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 2px solid #202020;
  background: white;
}

.chatbot-form input {
  flex: 1;
  border: 2px solid #202020;
  border-radius: 14px;
  padding: 10px;
  outline: none;
}

.chatbot-form button {
  border: 2px solid #202020;
  border-radius: 14px;
  background: #202020;
  color: white;
  padding: 0 12px;
  font-weight: bold;
  cursor: pointer;
}

@media (max-width: 480px) {
  .chatbot {
    right: 14px;
    bottom: 14px;
  }

  .chatbot-ventana {
    width: calc(100vw - 28px);
    right: 0;
  }
}