@import url('https://fonts.googleapis.com/css2?family=Fahkwang:wght@200;300;400;500;600;700&family=Krub:wght@200;300;400;500;600;700&display=swap');

/* Base */
html, body {
  font-family: 'Krub', sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  min-height: 0;
}

body {
  overflow-x: hidden;
}

p { color: #093246; font-weight: 500; }
a { color: #000; }
main { flex-grow: 0; width: 100%; height: auto; min-height: 0; }
.background01 { background-image: url("../assets/img/background.webp"); }

/* Layout */
.text-index, .text-index02 { width: 80%; margin: 0 auto; padding: 20px; }
.text-index02 { font-size: .9rem; }

.introduction-align, .pages, .index-container03 {
  display: flex; flex-direction: column; align-items: center;
}
.introduction-align { justify-content: flex-start; width: 100%; height: auto; min-height: 0; }
.pages { width: 100%; max-width: 900px; margin: 0 auto; height: auto; min-height: 0; }
#content { width: 100%; display: flex; flex-direction: column; align-items: center; }

/* Pantallas */
.logo { width: 200px; margin-bottom: 10px; }
.title { width: 75%; }

.screen {
  display: none;
  background-color: #d3d3d3;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
  text-align: center;
}
.active { display: block; }

.img-principito { width: 80%; }

/* Botones */
.btn {
  display: inline-block;
  background-color: #fe9923;
  color: #fff;
  padding: 10px 20px;
  border: 0;
  border-radius: 25px;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  margin-top: 20px;
  transition: background-color .3s;
}
.btn:hover { background-color: #26a5a5; }
.btn-start, .btn-next {
  display: block; margin: 5px auto 0; width: 200px; text-align: center;
  font-weight: 600; letter-spacing: 3px;
}

/* Controles de navegación: Regresar y Siguiente con las mismas dimensiones */
#container-interactive {
  position: relative;
  width: 100%;
}
.navigation-buttons {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  margin: 5px auto 0;
}
.navigation-buttons .btn-start {
  width: 200px;
  height: 44px;
  margin: 0;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-back {
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
}
.btn-back:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.btn-option {
  display: block; width: 100%; text-align: left; margin: 10px 0; padding: 15px;
  background-color: #fff; border: 1px solid #ddd; border-radius: 5px;
  transition: all .3s; cursor: pointer; color: #093246; font-size: 1rem;
}
.btn-option:hover { background-color: #e9ecef; border-color: #adb5bd; }

/* Feedback */
.feedback { background-color: #fff; border-radius: 5px; }
.feedback h3 { color: #2c3e50; margin-top: 0; }

/* Progreso */
.progress-container {
  width: 100%; background-color: #fff; border-radius: 5px; margin: 20px 0;
  box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px 0, rgba(27,31,35,.15) 0 0 0 1px;
}
.progress-bar {
  height: 10px; background-color: #e59e20; border-radius: 5px;
  width: 0%; transition: width .5s;
}

.style-sentence { color: #90539c; font-weight: 800; }

/* Iconos / etiquetas */
.icono { width: 24px; height: 24px; vertical-align: middle; margin-right: 8px; }
.tag { display: flex; flex-direction: column; align-items: center; font-size: .9rem; color: #093246; }

.imagen-titulo { width: 35%; max-width: 300px; display: block; margin: 10px auto; }
.imagenText { width: 55%; }

.icon-audio { width: 25px; }
.img-info { width: 50%; }
.box-swal { display: flex; flex-direction: column; align-items: center; justify-content: center; }

.msg-title { font-weight: 600;}

/* Responsive */
@media (max-width: 700px) {
  .feedback-text, .tag, .text-index, .text-index02, .btn-option { font-size: .8rem; }
  .navigation-buttons {
    width: 100%;
    gap: 10px;
  }
  .navigation-buttons .btn-start {
    width: min(200px, calc(50% - 5px));
    padding-left: 10px;
    padding-right: 10px;
  }
  .btn-back { font-size: 22px; }
}

/* Bloqueo orientación ya no lo tengo activo pero me lo pueden pedir */
#rotate-lock {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
  z-index: 9999; background: rgba(0,0,0,.6); backdrop-filter: blur(2px);
}
#rotate-lock[aria-hidden="false"] { display: flex; }
.rotate-card {
  width: min(520px, 86vw); padding: 28px; border-radius: 18px; background: #fff; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.rotate-icon { width: 72px; height: 72px; margin-bottom: 12px; }
body.is-portrait { overflow: hidden; }
#container-interactive.blocked { pointer-events: none; user-select: none; filter: blur(1px); }

/* SweetAlert: Regresar y Siguiente alineados y con las mismas dimensiones */
div:where(.swal2-container) .swal2-actions {
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap !important;
  gap: 14px;
  width: 100%;
  justify-content: center;
}
div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm,
div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel {
  width: 200px;
  height: 46px;
  min-height: 46px;
  margin: 0 !important;
  background-color: #f49a41 !important;
  padding: 0 20px !important;
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50px !important;
  color: #fff !important;
  border: none !important;
  font-size: 1em;
  font-weight: 600;
  letter-spacing: 2px;
  box-shadow: none !important;
}
div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel {
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
}
div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:hover,
div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel:hover {
  background-color: #26a5a5 !important;
  border: none !important;
}
@media (max-width: 700px) {
  div:where(.swal2-container) .swal2-actions { gap: 10px; }
  div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm,
  div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel {
    width: min(200px, calc(42vw - 5px));
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* Botón de audio dentro de los pop-ups */
div:where(.swal2-container) .swal2-popup .icon-wrap {
  width: 50px;
  height: 50px;
  margin: 0 auto 14px;
  border: 2px solid #f49a41;
  border-radius: 50%;
  background: linear-gradient(180deg, #fffaf2 0%, #ffe1ba 100%);
  box-shadow: 0 5px 0 #c96d1d, 0 9px 18px rgba(118, 67, 22, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

div:where(.swal2-container) .swal2-popup .icon-wrap > div {
  display: flex;
  align-items: center;
  justify-content: center;
}

div:where(.swal2-container) .swal2-popup .icon-wrap .icon-audio {
  width: 30px;
  height: auto;
  display: block;
  filter: invert(61%) sepia(91%) saturate(1900%) hue-rotate(338deg) brightness(99%) contrast(93%);
  transition: filter 0.16s ease, transform 0.16s ease;
}

div:where(.swal2-container) .swal2-popup .icon-wrap:hover {
  transform: translateY(-.5px);
  background: linear-gradient(180deg, #f9a84e 0%, #ef842a 100%);
  box-shadow: 0 7px 0 #bd5f15, 0 12px 22px rgba(118, 67, 22, 0.34);
}

div:where(.swal2-container) .swal2-popup .icon-wrap:hover .icon-audio {
  filter: brightness(0) invert(1);
  transform: scale(1.06);
}

div:where(.swal2-container) .swal2-popup .icon-wrap:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #bd5f15, 0 4px 9px rgba(118, 67, 22, 0.25);
}

div:where(.swal2-container) .swal2-popup .icon-wrap:focus-visible {
  outline: 3px solid #26a5a5;
  outline-offset: 4px;
}

@media (max-width: 700px) {
  div:where(.swal2-container) .swal2-popup .icon-wrap {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
  }

  div:where(.swal2-container) .swal2-popup .icon-wrap .icon-audio {
    width: 27px;
  }
}
