/* Reset y base */
* { box-sizing: border-box; }
 
 .tarjeta-confirmacion {
      background-color: #fff;
      border: 1px solid #ddd;
      border-radius: 12px;
      padding: 40px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      max-width: 700px;
      margin: 50px auto;
      text-align: center;
      font-family: 'Montserrat', sans-serif;
    }
    .tarjeta-confirmacion h2 {
      color: #5e2d91;
      margin-bottom: 20px;
    }
    .tarjeta-confirmacion p {
      font-size: 1.2em;
      color: #333;
      margin-bottom: 10px;
    }
    .btn-descargar {
      background-color: #5e2d91;
      color: #fff;
      padding: 12px 24px;
      border: none;
      border-radius: 6px;
      font-size: 1em;
      cursor: pointer;
      text-decoration: none;
      display: inline-block;
      margin-top: 20px;
    }
    .btn-descargar:hover {
      background-color: #4b2376;
    }
    .video-agradecimiento {
      margin-top: 30px;
    }
    .video-agradecimiento iframe {
      width: 100%;
      max-width: 560px;
      height: 315px;
      border: none;
      border-radius: 12px;
    }
    
.tarjeta-confirmacion {
      background-color: #fff;
      border: 1px solid #ddd;
      border-radius: 12px;
      padding: 40px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      max-width: 700px;
      margin: 50px auto;
      text-align: center;
      font-family: 'Montserrat', sans-serif;
    }
    .tarjeta-confirmacion h2 {
      color: #5e2d91;
      margin-bottom: 20px;
    }
    .tarjeta-confirmacion p {
      font-size: 1.2em;
      color: #333;
      margin-bottom: 10px;
    }
    .btn-descargar {
      background-color: #5e2d91;
      color: #fff;
      padding: 12px 24px;
      border: none;
      border-radius: 6px;
      font-size: 1em;
      cursor: pointer;
      text-decoration: none;
      display: inline-block;
      margin-top: 20px;
    }
    .btn-descargar:hover {
      background-color: #4b2376;
    }
    .video-agradecimiento {
      margin-top: 30px;
    }
    .video-agradecimiento iframe {
      width: 100%;
      max-width: 560px;
      height: 315px;
      border: none;
      border-radius: 12px;
    }
    
 .mensaje-error, .mensaje-exito {
      background-color: #fff;
      border: 2px solid #ccc;
      border-radius: 12px;
      padding: 30px;
      max-width: 600px;
      margin: 60px auto;
      text-align: center;
      font-family: 'Montserrat', sans-serif;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .mensaje-error {
      border-color: #e0b4b4;
      background-color: #fff3f3;
    }

    .mensaje-exito {
      border-color: #b4e0b4;
      background-color: #f3fff3;
    }

    .mensaje-error h3 {
      color: #a94442;
      font-size: 1.4em;
      margin-bottom: 10px;
    }

    .mensaje-exito h3 {
      color: #3c763d;
      font-size: 1.4em;
      margin-bottom: 10px;
    }

    .mensaje-error p,
    .mensaje-exito p {
      color: #333;
      font-size: 1.1em;
      margin: 10px 0;
    }

    .btn-volver {
      display: inline-block;
      margin-top: 20px;
      padding: 12px 24px;
      background-color: #5e2d91;
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 1em;
      text-decoration: none;
      transition: background-color 0.3s ease;
    }

    .btn-volver:hover {
      background-color: #4b2376;
    }

.fila-tarjetas-flex {
  display: flex;
  justify-content: space-between;
  gap: 12px;             /* Reduce el espacio entre tarjetas */
  flex-wrap: wrap;
}

.contenedor-estadisticas {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  font-family: 'Montserrat', sans-serif;
}

.contenedor-estadisticas h2 {
  text-align: center;
  color: #5e2d91;
  margin-bottom: 30px;
}

.estadisticas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.tarjeta-grafica {
  flex: 1 1 45%;
  max-width: 500px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 16px;
  text-align: center;
}

.tarjeta-grafica h3 {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: #5e2d91;
}

.tarjeta-grafica canvas {
  max-width: 100%;
  height: 180px !important;
}

@media (max-width: 768px) {
  .tarjeta-grafica {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.mensaje-error {
  background-color: #fff3f3;
  border: 1px solid #e0b4b4;
  border-radius: 12px;
  padding: 20px;
  max-width: 600px;
  margin: 30px auto;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mensaje-error h3 {
  color: #a94442;
  margin-bottom: 10px;
  font-size: 1.3em;
}

.mensaje-error p {
  color: #333;
  font-size: 1.1em;
  margin: 0;
}

.card-video {
  max-width: 960px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.08);
  text-align: center;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* proporción 16:9 */
  height: 0;
  border-radius: 8px;
  overflow: hidden;
}

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


.tarjeta-mensajero {
  flex: 1;               
  min-width: 280px;      
  background-color: #fff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.imagen-mensajero {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 220px;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .fila-tarjetas-flex {
    flex-direction: column;
    align-items: center;
  }

  .tarjeta-mensajero {
    max-width: 90%;
  }
}

.contenido-mensajero {
  padding: 20px;
  font-size: 1.05rem;
  color: #333;
}

.contenido-mensajero h3 {
  color: #5c2791;
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.animada {
  opacity: 0;
  transform: translateY(30px);
  animation: aparecer 0.8s ease-out forwards;
}

@keyframes aparecer {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

 .contenido-mensajero {
    font-size: 1rem;
  }

  .contenido-mensajero h3 {
    font-size: 1.2rem;
  }

.card-intro {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.08);
  padding: 24px;
  margin: 20px auto;
  max-width: 800px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.card-intro:hover {
  transform: scale(1.01);
}

.intro-titulo, .intro-subtitulo {
  color: #5c2791;
  margin-bottom: 12px;
  font-size: 1.6rem;
  text-align: center;
}

.intro-texto {
  font-size: 1.1rem;
  color: #333;
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .card-intro {
    padding: 16px;
    margin: 15px;
  }

  .intro-titulo, .intro-subtitulo {
    font-size: 1.4rem;
  }

  .intro-texto {
    font-size: 1rem;
  }
}

.intro {
  text-align: center;
  padding: 50px 20px;
  background: #eef6f9;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: #fdf6f0;
  color: #333;
}

/* Enlaces */
.link-inicio {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}
.link-inicio:hover {
  color: #ffd700;
}

/* Botones */
.btn-inicio,
.btn-amarillo,
.role-btn,
.role-btn.amarillo {
  background: #f9c74f;
  color: #000;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1em;
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
  text-align: center;
  border: none;
  cursor: pointer;
}
.btn-inicio:hover,
.btn-amarillo:hover,
.role-btn:hover,
.role-btn.amarillo:hover {
  background: #f9844a;
  transform: scale(1.05);
}

.role-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 300px;
  padding: 15px 25px;
  font-size: 1.1em;
  border: none;
  border-radius: 8px;
  background-color: #f9c74f;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  box-sizing: border-box;
}


 .btn-amarillo {
  display: inline-block;
  justify-content: center;
  max-width: 300px;
  width: auto;
  font-size: 1em;
}

.boton-cuestionario {
 text-align: center;
  justify-content: center;
  margin-top: 20px;
}

.boton-cuestionario button {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  background-color: #fdd835; /* amarillo institucional */
  color: #333;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.boton-cuestionario button:hover {
  background-color: #fbc02d;
}

/* Agrupaci��n de botones */
.boton-grupo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}
.boton-grupo .role-btn {
  flex: 1 1 220px;
  max-width: 300px;
}

/* Tarjetas */

.tarjeta-cuestionario {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 30px;
  max-width: 900px;
  margin: 40px auto;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  font-family: 'Montserrat', sans-serif;
  text-align: left; 
}

input:not([type="radio"]), select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
}

.opcion-cuestionario {
  display: flex;
  align-items: left;
  gap: 10px;
  margin-bottom: 10px;
}

.opcion-cuestionario input[type="radio"] {
  width: auto;
  height: 18px;
  accent-color: #5e2d91; /* color institucional */
  cursor: pointer;
}

.opcion-cuestionario span {
  font-size: 1em;
  color: #333;
}


/* Encabezado institucional */
.encabezado-mensajeros {
  background-color: #000;
  color: #fff;
  padding: 20px 40px;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.header-logo img {
  height: 100px;
  max-width: 100%;
}
.header-texto-derecha {
  flex: 1;
  padding-left: 30px;
}
.header-texto-derecha h1 {
  font-size: 1.8em;
  margin: 0;
  font-weight: 700;
  color: #fff;
}
.header-texto-derecha p {
  font-size: 1em;
  margin: 5px 0 0;
  font-weight: 500;
  color: #ccc;
}
.boton-inicio {
  margin-top: 10px;
  text-align: right;
}

/* Formulario */
form {
  max-width: 900px;
  margin: 40px auto;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
h2 {
  text-align: center;
  color: #5e2d91;
  margin-bottom: 30px;
}
.form-group {
  margin-bottom: 20px;
}
label {
  font-weight: bold;
  display: block;
  margin-bottom: 6px;
}
input, select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
}
button {
  background: #5e2d91;
  color: white;
  padding: 14px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  margin-top: 20px;
  width: 100%;
}
button:hover {
  background: #4b2376;
}

/* Footer */

.footer-mensajeros {
  background-color: #000;
  color: #eee;
  border-top: 1px solid #333;
  text-align: center;
  padding: 30px 20px;
}

.footer-mensajeros img {
  filter: brightness(1.2);
  max-height: 60px;
  margin-bottom: 10px;
}

.footer-text {
  color: #ccc;
  font-size: 0.9em;
}

footer {
  background: #fdf6f0;
  text-align: center;
  padding: 30px;
  font-size: 0.9em;
  color: #777;
}
footer img {
  max-height: 60px;
  margin-bottom: 10px;
}

/* Banner y men�� */
.mensaje-banner {
  background: #f9c74f;
  color: #000;
  text-align: center;
  padding: 10px 20px;
  font-weight: 500;
}
.gradient-bar {
  height: 6px;
  background: linear-gradient(to right, #f9c74f, #f9844a, #5e2d91);
}
.menu-principal {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 15px 0;
  background-color: #000;
}
.menu-principal a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}
.menu-principal a:hover {
  color: #f9c74f;
  text-decoration: underline;
}
.menu-principal a.activo {
  color: #f9c74f;
  border-bottom: 2px solid #f9c74f;
}

/* Bienvenida */
.bienvenida-estudiante {
  padding: 50px 20px;
  background: #eef6f9;
  text-align: center;
}
.titulo-bienvenida {
  font-size: 2em;
  font-weight: 700;
  color: #5e2d91;
  margin-bottom: 30px;
}
.mensaje-central {
  font-size: 1.2em;
  max-width: 800px;
  margin: auto;
  color: #444;
  margin-bottom: 40px;
  line-height: 1.6;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


.video-descripcion {
  text-align: center;
  font-weight: 500;
  color: #333;
  margin-top: 8px;
}
/* Responsivo */
@media (max-width: 768px) {
  .boton-inicio,
  .boton-grupo,
  .header-container,
  .menu-principal,
  .roles {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .header-texto-derecha {
    padding-left: 0;
    margin-top: 20px;
  }
}

/* Cuestionario institucional */
.opcion-cuestionario {
  display: flex;
  align-items: left;
  gap: 10px;
  margin-bottom: 10px;
}

.btn-validar {
  margin-top: 30px;
  float: center;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 6px;
  background-color: #fdd835;
  color: #000;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-validar:hover {
  background-color: #fbc02d;
}

.card-verificacion {
  max-width: 600px;
  margin: 40px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
  overflow: hidden;
  padding: 24px;
  box-sizing: border-box;
  font-size: 1.1rem; /* tamaño base más grande */
}

.card-verificacion h2 {
  color: #5c2791;
  margin-bottom: 12px;
  font-size: 1.6rem;
  text-align: center;
}

.card-verificacion p {
  font-size: 1.1rem;
  color: #333;
  margin: 10px 0;
  text-align: center;
}

@media (max-width: 600px) {
  .card-verificacion {
    margin: 20px;
    padding: 20px;
    font-size: 1.2rem; /* aún más grande en móviles */
  }

  .card-verificacion h2 {
    font-size: 1.8rem;
  }

  .card-verificacion p {
    font-size: 1.2rem;
  }
}