/* ======================================
   RESET Y CONFIGURACIÓN GENERAL
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
body {
  font-family: 'Poppins', sans-serif;
  /* Fondo adaptable a cualquier tamaño de pantalla */
  background: url('./assets/imgs/recursos/bg2.png') no-repeat center center;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ======================================
 CONTENEDOR GENERAL (USADO EN AMBAS PÁGINAS)
========================================= */
.container {
  width: 90%;
  max-width: 1200px;
  text-align: center;
  padding: 60px 20px;
  margin-top: 30px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ======================================
 BARRAS SUPERIOR E INFERIOR
========================================= */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 23px;
  background-color: #0256E2;
  z-index: 1000;
}
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 23px;
  background-color: #0256E2;
  z-index: 1000;
}

/* ======================================
 ESTILOS COMPARTIDOS DE BOTONES Y TIPOGRAFÍA
========================================= */
h1 {
  color: #ffffff;
}
p {
  color: #ffffff;
}
.btn-primary {
  background-color: #0256E2;
  color: #ffffff;
  padding: 10px 20px;
  border: none;
  border-radius: 47px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-bottom: 20px;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #5e99ff;
  outline: none;
}

/* ======================================
 ESTILOS ESPECÍFICOS PARA index.html
========================================= */
.logo {
  margin-top: 40px;
}
.logo img {
  max-width: 100%;
  height: auto;
}
.main-section {
  padding: 20px;
  margin: 20px 0;
}
.main-section h1 {
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.2;
}
.main-section p {
  font-weight: 400;
}
.info-section {
  margin: 20px 0;
}
.info-rectangle {
  border: 1px solid #000;
  border-radius: 33px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.info-rectangle img {
  max-width: 50px;
  height: auto;
}
.info-rectangle p {
  font-weight: 400;
}

/* ======================================
 ESTILOS ESPECÍFICOS PARA index2.html y pagina4
========================================= */
body.pagina4 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
body.pagina4 .container {
  margin: 0;
  width: 90%;
  max-width: 1200px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* Alineación de párrafos a la izquierda en la página */
body.pagina4 .content-paragraph {
  text-align: left;
  width: 100%;
}
/* Títulos centrados */
.content-title {
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}
.content-paragraph {
  font-size: 1em;
  font-weight: 400;
  margin-bottom: 20px;
}

/* Contenedor del reproductor de video: limitar tamaño para que el título sea visible */
.video-player {
  width: 100%;
  max-width: 320px; /* Ajusta este valor según sea necesario */
  margin: 0 auto 20px;
}
.video-player video {
  width: 100%;
  max-height: 300px; /* Limita la altura del video en dispositivos móviles */
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Contenedor de opciones en la parte 2: botones en columna */
#responseOptions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: 100%;
}

/* ======================================
 REPRODUCTOR DE AUDIO Y GRABACIÓN
========================================= */
.audio-container {
  width: 90%;
  max-width: 320px;
  height: 70px;
  background-color: rgba(0, 0, 0, 0.5);
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
}
.waveform {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  position: relative;
}
.waveform span {
  display: inline-block;
  width: 2px;
  margin: 0 1px;
  background-color: #fff;
  border-radius: 1px;
}
.play-button {
  position: absolute;
  width: 32px;
  height: 32px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  transition: left 0.1s linear;
}
.audio-button img {
  width: 40px;
  height: 40px;
}
.text-input {
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 20px;
  width: 80%;
  max-width: 400px;
}
.record-section {
  position: relative;
  background-color: rgba(0, 0, 0, 0.5);
  height: 60px;
  margin-bottom: 20px;
}
.record-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
}
.record-button img {
  width: 40px;
  height: 40px;
}

/* ======================================
 RESPONSIVE
========================================= */
@media (max-width: 768px) {
  .container {
      padding: 10px;
  }
  .info-rectangle {
      padding: 15px;
  }
  .audio-container, .record-section {
      height: 80px;
  }
  .audio-button img, .record-button img {
      width: 30px;
      height: 30px;
  }
}
