/* REVISTA TIPS PARA PADRES */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

.revista-video-container {
  display: flex;
  flex-direction: column;
  gap: 0; /* sin espacio entre páginas para que no se filtren */
  margin-top: 0;
  position: relative;
  overflow: hidden; /* oculta lo que no se debe ver */
}

.pagina-video {
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  min-height: 100vh; /* asegura que ocupe al menos toda la pantalla */
}

.pagina-video:first-of-type {
  display: flex; /* muestra solo la primera al cargar */
}

.pagina-video img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  pointer-events: none;
  background-color: black;
  margin: 0;
}

.btn-siguiente {
  margin: 40px auto;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #008cba;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-siguiente:hover {
  background-color: #005f75;
}

/* Animaciones de transición de páginas */
.pagina-video.fade-out {
  animation: fadeOut 0.5s forwards;
}

.pagina-video.fade-in {
  animation: fadeIn 0.5s forwards;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Microanimaciones para botones */
.btn-siguiente {
  margin: 40px auto;
  padding: 10px 24px;
  font-size: 16px;
  background-color: #008cba;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  animation: pulse 2.5s infinite ease-in-out; /* <- pulso lento */
}

.btn-siguiente:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 140, 186, 0.4);
  background-color: #009dd9;
}

.btn-siguiente:active {
  transform: scale(0.95);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.btn-anterior {
  margin: 40px auto;
  padding: 10px 24px;
  font-size: 16px;
  background-color: #e72e00;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  animation: pulse 2.5s infinite ease-in-out;
}

.btn-anterior:hover {
  background-color: #eb4a00;
  box-shadow: 0 4px 12px rgba(186, 53, 0, 0.4);
}

.btn-indice {
  margin: 40px auto;
  padding: 10px 24px;
  font-size: 16px;
  background-color: #fd7a00;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  animation: pulse 2.5s infinite ease-in-out; /* <- pulso lento */
}

.btn-indice:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(186, 112, 0, 0.4);
  background-color: #ffae00;
}

.btn-indice:active {
  transform: scale(0.95);
}

.botones-navegacion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 70px;
  margin: 40px 0 0 0;
  padding: 0 40px;
}

.revista-interactiva.fondo-pagina1 {
  background-color: #ffffff; /* Azul claro */
}

.revista-interactiva.fondo-pagina2 {
  background-color: #ffffff; /* Rosa suave */
}

.revista-interactiva.fondo-pagina3 {
  background: linear-gradient(to bottom, #ffffff, #ffffff); /* Amarillo pastel */
}

.revista-interactiva.fondo-pagina4 {
  background-color: #ffffff; /* Verde agua */
}

.revista-interactiva.fondo-pagina5 {
  background-color: #ffffff; /* Lavanda claro */
}

.revista-interactiva.fondo-pagina6 {
  background-color: #ffffff; /* Durazno claro */
}

.revista-interactiva.fondo-pagina7 {
  background: linear-gradient(to bottom, #ffffff, #ffffff); /* Azul suave */
}

/* Transición suave */
.revista-interactiva {
  transition: background 0.5s ease-in-out;
}

.pagina-video {
  background-color: white; /* fondo de la página */
  border-radius: 6px;       /* borde suave, no exagerado */
  padding: 20px;
  margin: 0 auto;
  max-width: 960px; /* opcional, para que no se estire en pantallas muy grandes */
  width: 100%;
  transition: box-shadow 0.3s ease-in-out, border-radius 0.3s ease;
}

.video-manual-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.quiz-comunicacion {
  max-width: 700px;
  margin: auto;
  font-family: sans-serif;
}

.pregunta {
  margin-bottom: 20px;
}

.quiz-comunicacion button {
  background-color: #0074d9;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.quiz-comunicacion button:hover {
  background-color: #005fa3;
}

.quizForm .pregunta {
  display: none;
  transition: all 0.4s ease;
  opacity: 0;
}

.quizForm .pregunta.activa {
  display: block;
  opacity: 1;
}

.pregunta button {
  margin-top: 20px;
  display: inline-block;
}

.navegacion-preguntas {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.barra-progreso {
  width: 100%;
  height: 10px;
  background: #ddd;
  border-radius: 5px;
  margin-bottom: 20px;
  overflow: hidden;
}
.progreso-interno {
  height: 100%;
  width: 0%;
  background: #008cba;
  transition: width 0.4s ease;
}

.pregunta:last-of-type .navegacion-preguntas {
  margin-top: 24px;
}

/* Fuente general */
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.8;
  font-size: 16px;
  color: #333;
}

/* Interlineado en preguntas y respuestas */
.pregunta p {
  margin-bottom: 16px;
  line-height: 1.6;
  font-weight: 600;
}

label {
  display: block;
  margin-bottom: 12px;
  line-height: 1.5;
  cursor: pointer;
}

/* Animación entre preguntas */
.pregunta {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: none;
}

.pregunta.activa {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.quiz-contenedor {
  background-color: white;
  padding: 40px 30px;
  max-width: 800px;
  margin: 40px auto;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}

.quiz-contenedor:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

#pagina-3 .quiz-contenedor .opcion-imagen {
  max-width: 150px;
  height: auto;
  display: inline-block;
  margin: 8px 12px;
  vertical-align: middle;
}

/* Resalta la imagen de la opción seleccionada en los quizzes */
.quiz-contenedor input[type="radio"]:checked + img.opcion-imagen {
  outline: 3px solid #008cba;
  border-radius: 10px;
  box-shadow: 0 0 8px #008cba55;
  transition: outline 0.2s, box-shadow 0.2s;
}

.video-especial {
  max-width: 100%;
  margin: 16px;
  display: block;
}

video.video-especial {
  pointer-events: auto;
}

.video-overlay-container {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.video-overlay-container video {
  width: 100%;
  height: auto;
  display: block;
}

/* Superpone el video especial encima */
.video-overlay-container .video-especial {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  pointer-events: auto;
  background-color: rgba(0, 0, 0, 0.4); /* para que se vea como flotando si lo deseas */
}

/* Estilo base: todos los .video-especial */
.video-overlay-container .video-especial {
  position: absolute;
  z-index: 10;
  pointer-events: auto;
  background-color: rgba(0, 0, 0, 0.4); /* opcional */
  border-radius: 8px;
  height: auto;
}

/* Página 4: más abajo, más pequeño, alineado a la izquierda */
#pagina-4 .video-overlay-container .video-especial {
  width: 45%;
  left: 10px;
  top: 12%; /* ajusta más o menos según te guste */
}

/* Página 6: más grande, centrado y más abajo */
#pagina-6 .video-overlay-container .video-especial {
  width: 60%;
  left: 50%;
  transform: translateX(-50%);
  top: 35%; /* ajusta a tu gusto */
}

.audio-reproductor {
  width: 80%;
  max-width: 400px;
  margin: 0 auto 24px auto;
  display: block;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.texto-quizz {
  margin-top: 80px;
  max-width: 590px;
  text-align: center;
  font-size: 1.6rem; /* Tamaño de fuente */
}

#pantalla-carga {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black; /* o un color de fondo que quieras */
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Limita el tamaño de los videos manuales solo en la página 6 */
#pagina-6 .video-manual-wrapper video.video-manual {
  max-width: 1000px;
  width: 100%;
  margin: 24px auto;
  display: block;
}

/* Haz que los videos manuales de la página 2 sean más grandes */
#pagina-2 .video-manual-wrapper video.video-manual {
  max-width: 1000px;
  width: 100%;
  margin: 24px auto;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

.revista-video-container {
  width: 100vw;
  max-width: 100vw;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  padding-left: 80px;
  padding-right: 100px;
}

.pagina-video {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.revista-interactiva {
  padding: 0;
  width: 100vw;
  overflow-x: hidden;
  background-color: #ffffff;
}

.indice {
  top: -50px;
  left: 440px;
  position: relative;
  z-index: 10;
}

.cabecera-tips {
  background-color: #00183b;
  border-bottom: 1px solid #e6e6e6;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  top: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-lado-izquierdo,
.header-lado-derecho {
  flex: 1;
  display: flex;
  align-items: center;
}

.header-centro {
  flex: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-tips {
  width: 200px;
}

.btn-volver-indice {
  background-color: #ffffff;
  color: #00183b;
  border: 2px solid #00183b;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: none;
  box-shadow: none;
  margin-left: 0; /* importante para alinearlo a la izquierda */
}


.btn-volver-indice:hover {
  background-color: #c7c7c7;
  color: #00183b;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.432);
  transform: translateY(-3px);
}

  #pagina-2 .video-manual-wrapper {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: 24px auto;
  text-align: center;
}

.video-manual {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  background-color: black; /* Para evitar glitch en blanco */
}



.linea-info-header {
  width: 100%;
  text-align: center;
  padding: 10px 0;
  background-color: #f5f5f5;
  color: #333;
  font-size: 14px;
  border-bottom: 1px solid #ccc;
  word-spacing: 14px;
}

.revista-video-container {
  transform: scale(0.70);
  transform-origin: top center;
  height: calc(100vh / 0.70); /* Ajusta la altura real al tamaño escalado */
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible;
  padding-bottom: 130px;
}


.pagina-video img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  pointer-events: none;
  background-color: #ffffff; /* color claro neutro en lugar de negro */
  margin: 0;
}

.cintillo-seguimiento {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  background: #fff;
  padding: 8px 0;
  z-index: 9999;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.2);
  display: none;
}

.cintillo-seguimiento img {
  max-width: 728px; /* tamaño típico */
  width: 100%;
  height: auto;
}

#pagina-9 audio {
  display: block !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 9999 !important;
  width: 100% !important;
  max-width: 400px !important;
  margin: 24px auto !important;
  background: #fff !important;
  pointer-events: auto !important;
}

.continuar-publicacion {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: #f9f9f9;
  padding: 16px 24px;
  margin: 40px auto;
  max-width: 1000px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-family: 'Poppins', sans-serif;
}

.continuar-texto {
  flex: 1;
  font-size: 1.2rem;
  color: #333;
  font-weight: 600;
  margin: 5px;
}

.continuar-botones {
  display: flex;
  gap: 12px;
}

.btn-share {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-share img {
  width: 28px;
  height: 28px;
  display: block;
}

.btn-share:hover {
  transform: scale(1.1);
  background-color: #eee;
}

/* Toast general */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #333;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.95em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(20px);
  z-index: 99999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.continuar-botones a, .continuar-botones button {
  font-size: 28px;
  color: #555;
  transition: color 0.2s ease;
}

.continuar-botones .whatsapp { color: #25D366; }
.continuar-botones .facebook { color: #1877F2; }
.continuar-botones .instagram { color: #E1306C; }
.continuar-botones .gmail { color: #D44638; }
.continuar-botones .enlace { color: #333; }


/* ---- MEDIA RESPONSIVE TIPS PARA PADRES ---- */
@media (max-width: 768px) {
  html, body, main {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .revista-interactiva {
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  .revista-video-container {
    transform: none !important;
    transform-origin: unset !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    min-height: 100vh !important;
    padding: 0 !important;
    padding-bottom: 32px !important;
    margin: 0 auto !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .pagina-video {
    min-height: 100vh !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  #quiz-comunicacion,
  .quiz-container {
    margin: 40px !important;
  }

  .texto-quizz {
    margin: 20px !important;
    font-size: 1rem; /* opcional: tamaño más legible en móvil */
  }

  .audio-reproductor {
    width: 80% !important;
    max-width: 400px;
  }

  .btn-siguiente {
    left: 30%;
    padding: 10px 17px;
    font-size: 10px;
  }

  .btn-anterior {
    left: 30%;
    padding: 10px 17px;
    font-size: 10px;
  }

  .btn-indice {
    left: 30%;
    padding: 10px 18px;
    font-size: 10px;
  }

  .botones-navegacion {
    gap: 50px;
  }

  .logo-tips {
    width: 100px;
  }
  
  .btn-volver-indice {
    padding: 2px 8px;
    font-size: 10px;
    border-width: 1.5px;
  }

  .linea-info-header {
    font-size: 12px;
    word-spacing: 1px;
  }

  #pagina-6 .video-especial {
    width: 70% !important;
    max-width: 70% !important;
    height: auto !important;
    margin: 16px 0;
  }

    #pagina-4 .quiz-comunicacion .resultado {
    max-width: 80vw;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.70rem; /* tamaño legible pero no gigante */
    margin: 0 auto;
    text-align: center;
    word-break: break-word; /* para evitar que se salga del contenedor */
  }

  .anuncio-publicitario img {
    border-radius: 0 !important;
  }

  .video-anuncio {
    border-radius: 0 !important;
  }

  .continuar-texto {
  flex: 1;
  font-size: 0.7rem;
  color: #333;
  font-weight: 600;
  margin: 2px;
}

.continuar-botones a, .continuar-botones button {
  font-size: 20px;
  color: #555;
  transition: color 0.2s ease;
}

}

@media (min-width: 769px) {
  #pagina-2 .audio-wrapper {
    /* Compensa el escalado del contenedor padre */
    transform: scale(1.43);
    transform-origin: top left;
    width: 280px;
    margin: 24px auto 24px auto;
    position: relative;
    z-index: 1000;
  }
  #pagina-2 .audio-reproductor {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: none !important;
    border-radius: 0 !important;
    position: static !important;
    opacity: 1 !important;
    display: block !important;
  }
  #pagina-9 .audio-wrapper {
    transform: scale(1.43);
    transform-origin: top left;
    width: 280px;
    margin: 24px auto 24px auto;
    position: relative;
    z-index: 1000;
  }
  #pagina-9 .audio-reproductor {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: none !important;
    border-radius: 0 !important;
    position: static !important;
    opacity: 1 !important;
    display: block !important;
  }
}

@media (max-width: 768px) {
  #pagina-2 .audio-wrapper {
    transform: none !important;
    width: 100% !important;
    margin: 24px auto 24px auto !important;
    position: static !important;
    z-index: auto !important;
  }
  #pagina-2 .audio-reproductor {
    width: 80% !important;
    max-width: 400px !important;
    margin: 24px auto 24px auto !important;
    display: block !important;
    background: #f9f9f9 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    position: static !important;
    opacity: 1 !important;
  }

  #pagina-9 .audio-wrapper {
  transform: none !important;
  width: 100% !important;
  margin: 24px auto !important;
  position: static !important;
  z-index: auto !important;
}

#pagina-9 .audio-reproductor {
  width: 80% !important;
  max-width: 400px !important;
  margin: 24px auto !important;
  display: block !important;
  background: #f9f9f9 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
  position: static !important;
  opacity: 1 !important;
}

}