body {
  margin: 0;
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  background-color: #e2cfe7;
  color: #49024d;
  text-align: justify;
  font-size: 18px;
  line-height: 1.6;
}
h2 {
    display: block;
    font-size: 2.0em;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}
p {
    display: block;
    margin-block-start: 1.5em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}

header {
  background: #610f42;
  color: white;
  text-align: justify;
  font-size: 18px;
  
}


.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #7a1554;
  text-align: justify;
}

.logo {
  margin: 0;
  font-size: 28px; /* tamaño base para escritorio */
  text-align: justify;
  font-weight: 700;
}

/* Estilos para pantallas pequeñas (móviles) */
@media (max-width: 768px) {
  .logo {
    font-size: 20px; /* más pequeño en móviles */
    text-align: center; /* más limpio visualmente en pantallas pequeñas */
  }
}


nav a {
  margin: 0 10px;
  color: white;
  text-decoration: none;
  text-align: justify;
  display: inline-block;
  font-size: 18px;
}

.modo-oscuro {
  background: #ff4081;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  text-align: justify;
  font-size: 18px;
  font-weight: 600;
}

.overlay {
  height: 30vh;
  background: url('img/fondo-mision.jpg') no-repeat center center;
  background-size: cover;
  border-radius: 10px;
  position: relative;
  z-index: 1;
  overflow: hidden;

  /* Centrado total */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 60px 30px;
  text-align: justify;
  color: white;
  min-height: 300px;
  font-size: 18px;
  line-height: 1.6;
}

.overlay::before {
  height: 80vh;
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(80, 0, 90, 0.6);
  z-index: -1;
  border-radius: 10px;
}

button, .btn-volver {
  font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  font-size: 18px;
  padding: 14px 28px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: justify;
  display: inline-block;
  color: white;
}

.btn-rojo {
  background-color: #4a0b6e;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.5);
}

.btn-rojo:hover {
  background-color: #c2185b;
  box-shadow: 0 6px 14px rgba(194, 24, 91, 0.7);
}

.btn-rosa {
  background-color: #f06292;
  box-shadow: 0 4px 12px rgba(240, 98, 146, 0.5);
}

.btn-rosa:hover {
  background-color: #e91e63b3;
  box-shadow: 0 6px 14px #cf1a56c9;
}

.modo-oscuro {
  background: #ff4081;
  box-shadow: 0 4px 12px rgba(255, 64, 129, 0.5);
  padding: 12px 28px;
  font-weight: 700;
  border-radius: 30px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  text-align: justify;
  font-size: 18px;
}

.modo-oscuro:hover {
  background-color: #d5006a;
  box-shadow: 0 6px 14px #d5006ab3;
}

/* Estilo normal del botón volver */
.btn-volver {
  background-color: #741781;
  box-shadow: 0 4px 12px rgba(206, 147, 216, 0.5);
  color: white;
  text-decoration: none;
  display: inline-block;
  padding: 12px 30px;
  font-weight: 700;
  border-radius: 30px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

/* Hover normal */
.btn-volver:hover {
  background-color: #5e0067;
  box-shadow: 0 6px 14px rgba(72, 47, 77, 0.7);
}

/* Modo oscuro para botón volver */
body.oscuro .btn-volver {
  background-color: #53063a;  /* Un púrpura oscuro para modo oscuro */
  box-shadow: 0 4px 12px rgba(94, 58, 106, 0.7);
  color: #f1e4f6;
}

/* Hover modo oscuro */
body.oscuro .btn-volver:hover {
  background-color: #7b4ca5;
  box-shadow: 0 6px 14px rgba(123, 76, 165, 0.8);
}


.botones button {
  margin-right: 15px;
  margin-top: 10px;
  text-align: justify;
  font-size: 18px;
}

.btn-rojo, .btn-rosa {
  color: white;
  border: none;
  padding: 12px 24px;
  margin-right: 10px;
  border-radius: 5px;
  cursor: pointer;
  text-align: justify;
  font-size: 18px;
}

.btn-rojo {
  background-color: #e91e63;
}

.btn-rosa {
  background-color: #e91e63;
}

main {
  padding: 40px;
  text-align: justify;
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
}

main h2, main h3, main h4, main h5, main p {
  margin-bottom: 1em;
  text-align: justify;
}

.secciones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 10%));
  gap: 30px;
  padding: 40px;
  justify-items: center;
  }

.tarjeta {
  background: #d9bee0;
  padding: 15px;
  border-radius: 15px;
  width: 220px;
  box-shadow: 0 4px 10px #230a2b9f;
  text-decoration: none;
  color: #24021d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: justify;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 18px;
}

.tarjeta:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(65, 39, 72, 0.3);
}

.tarjeta img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.tarjeta p {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  text-align: justify;
}

body.oscuro .tarjeta {
  background-color: #2c2c2c;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

footer {
  text-align: justify;
  padding: 20px;
  background-color: #7a1554;
  color: white;
  font-size: 18px;
}



body.oscuro {
  background-color: #1e1e1e;
  color: #eee;
  text-align: justify;
}

body.oscuro .top-bar {
  background-color: #333;
  text-align: justify;
}

body.oscuro .overlay {
  background-color: rgba(0, 0, 0, 0.6);
  text-align: justify;
}

body.oscuro .tarjeta {
  background-color: #2c2c2c;
  color: white;
  text-align: justify;
}

body.oscuro footer {
  background-color: #111;
  text-align: justify;
}

.imagen-mision {
  width: 200px;
  height: auto;
  margin: 20px auto;
  border-radius: 10px;
  display: block;
  box-shadow: 0 0 10px #89199d66;
}
.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  color: white;
}

.logo img {
  width: 40px;
  height: auto;
  margin-right: 10px;
  border-radius: 50%;
}
.titulo-con-fondo {
  background-color: #d9bee0; /* Morado claro */
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px #282629e3;
  margin-bottom: 30px;
  text-align: center;
}

/* Versión para modo oscuro */
.titulo-con-fondo {
 color: #610f42;
}

body.active {
background: #121212;
color: #000;
  
}

body.active h1,
body.active h2,
body.active h3 {
  color: #d4c8d0;
}
body.active .carrusel p{
  color: #fff;
}
body.active .contenedor-carrusel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(49, 8, 100, 0.5);
  z-index: 1;
}
body.active .barra-navegacion {
  background: #2c0059;
}

body.active .barra-navegacion .menu a {
  color: #e0e0e0;
  
}

body.active .barra-navegacion .menu a:hover {
  text-decoration: underline;
}

body.active .info-contacto {
  background-color: #311b92;
  border-top-color: #24136e;
}

body.active .info-contacto a {
  color: #311b92;
}

body.active .info-contacto .iconos-redes img {
  filter: brightness(0.8);
  
}

body.active .seccion-contacto {
  background-color: #4a148c;
  border-top-color: #350f64;
  color: #eee;
}

body.active .formulario-contacto label {
  color: #ddd;
  
}


body.active .formulario-contacto input,
body.active .formulario-contacto select,
body.active .formulario-contacto textarea {
  background-color: #6c22c7;
  border-color: #621fb4;
  color: #ffffff;
  
}

body.active .formulario-contacto button {
  background-color: #f50057;
  
}

body.active .formulario-contacto button:hover {
  background-color: #aa1348;
  
}

body.active footer {
  background: #2c0059;
  color: #ddd;
  
}
body.active .fila-contacto {
  background-color: #493991;
  border-color: #5846aa;
  color: #eee;
  box-shadow: 0 2px 4px rgba(67, 20, 155, 0.1);
  
}

body.active .fila-contacto h1,
body.active .fila-contacto p {
  color: #eee;
  
}

body.active .fila-contacto img {
  filter: brightness(0.8);
  
}
body.active .panel-lateral {
  background-color: #2c0059;
  
}

body.active .iconos-redes{
  background-color: #3c1266;
  border-top: 4px solid #350f64;
  
}

body.active .iconos-redes2{
  background-color: #3c1266;
  border-top: 4px solid #350f64;
  
}

body.active .iconos-redes .icono-item span{
  color: #fff;
}
body.active .iconos-redes2 .icono-item span{
  color: #fff;
}

body.active .panel-lateral::-webkit-scrollbar-thumb {
  background-color: #340b5e;
  border-radius: 3px;
  
}

body.active .panel-lateral::-webkit-scrollbar-track {
  background-color: #3f1a6d;
  
}

/* === Cuestionario === */
form.cuestionario {
  
  background-color: #fbe9f8;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(123, 31, 162, 0.2);
  max-width: 800px;
  margin: 30px auto;
}

form.cuestionario h2 {
  color: #6a1b9a;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

form.cuestionario fieldset {
  border: none;
  margin-bottom: 25px;
}

form.cuestionario legend {
  font-weight: 600;
  color: #4a0b6e;
  margin-bottom: 10px;
  display: block;
  font-size: 18px;
}

form.cuestionario label {
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 17px;
}

form.cuestionario input[type="radio"] {
  margin-right: 10px;
  accent-color: #8e24aa;
}

form.cuestionario .resultado {
  background-color: #fff0f7;
  padding: 20px;
  border-radius: 12px;
  border-left: 6px solid #ba68c8;
  margin-top: 20px;
  font-weight: 600;
}

form.cuestionario button[type="submit"] {
  background-color: #8e24aa;
  color: white;
  font-size: 18px;
  padding: 12px 28px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(142, 36, 170, 0.3);
  transition: background-color 0.3s ease;
}

form.cuestionario button[type="submit"]:hover {
  background-color: #6a1b9a;
}

/* === Modo Oscuro Cuestionario === */
body.oscuro form.cuestionario {
  background-color: #2c2c2c;
  color: #eee;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

body.oscuro form.cuestionario .resultado {
  background-color: #3b2d4a;
  border-left-color: #9c27b0;
}

body.oscuro form.cuestionario button[type="submit"] {
  background-color: #ab47bc;
}

body.oscuro form.cuestionario button[type="submit"]:hover {
  background-color: #7b1fa2;
}

/* Tarjetas en modo oscuro */
body.active .tarjeta {
  background-color: #2e004d;
  border: 1px solid #5a1e82;
  color: #33042b;
  transition: all 0.3s ease;
}

body.active .tarjeta p {
  color: #fff;
  transition: color 0.3s ease;
}

body.active .tarjeta img {
  filter: brightness(0.85);
  transition: filter 0.3s ease;
}

body.active .tarjeta:hover {
  background-color: #4a0072;
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 4px 12px rgba(122, 25, 163, 0.5);
}

/* Botones en modo oscuro */
body.active .btn-rojo {
  background-color: #c2185b;
  color: white;
  transition: background-color 0.3s ease;
}

body.active .btn-rojo:hover {
  background-color: #ad1457;
}

body.active .btn-rosa {
  background-color: #ad1457;
  color: white;
  transition: background-color 0.3s ease;
}

body.active .btn-rosa:hover {
  background-color: #d81b60;
}

/* Título con fondo en modo oscuro */
body.active .titulo-con-fondo {
  background-color: #3d006b;
  color: #f0d1f5;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.active .titulo-con-fondo h2 {
  color: #ece9e9;
}

/* Hero slider en modo oscuro */
.hero-slider .overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 2rem;
  /* background-color: rgba(0, 0, 0, 0.4); */ /* Eliminar esta línea */
  border-radius: 1rem;
}

