.lato-thin {
  font-family: "Lato", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.lato-light {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.lato-regular {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.lato-bold {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.lato-black {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.lato-thin-italic {
  font-family: "Lato", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.lato-light-italic {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.lato-regular-italic {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.lato-bold-italic {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.lato-black-italic {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-style: italic;
}

.raleway-dots-regular {
  font-family: "Raleway Dots", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.zilla-slab-highlight-regular {
  font-family: "Zilla Slab Highlight", serif;
  font-weight: 400;
  font-style: normal;
}

.zilla-slab-highlight-bold {
  font-family: "Zilla Slab Highlight", serif;
  font-weight: 700;
  font-style: normal;
}



/* Fondo oscuro semitransparente */
/* Reemplaza .modal-overlay por #modal */
#modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(42, 42, 42, 0.8); 
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

/* Ajusta .modal-content para que sea hijo de #modal */
#modal .modal-content {
  background-color: #dfdfdf;
  width: 800px;
  /* ... (mantén el resto de estilos igual) */
}

/* Ventana modal - Tamaño para escritorio */
.modal-content {
  background-color: #2a2a2a;
  width: 800px;
  max-height: 90vh;
  height: auto;
  border-radius: 10px;
  padding: 50px;
  position: relative;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s;
}

/* Contenedor de texto */
.modal-text-container {
  margin: 20px 0;
  font-size: 18px;
  line-height: 2;
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-style: normal;
  text-align: justify;
  text-justify: inter-word; /* Mejor para español */
}

/* Botón de cierre (✖) */
.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
  color: #d3d3d3;
}

.close-modal:hover {
  color: #c9c9c9;
}

/* Animación de apertura */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsivo para móviles */
@media (max-width: 768px) {
  .modal-content {
    width: 90%;
    height: auto;
    max-height: 90vh;
    font-size: 12px;
   margin: 10px 0;
  }
}

@media (max-width: 768px) {
  .modal-title {
    line-height: 1.1;
   font-size: 16px;
  }
}

@media (max-width: 768px) {
  .modal-title2 {
    line-height: 1.1;
   }
}

@media (max-width: 768px) {
  .modal-title3 {
    line-height: 1.1;
   }
}

@media (max-width: 768px) {
  .modal-content {
    padding-top: 25px; /* o menos, según prefieras */
padding-left: 10px;
    gap: 5px;
  }
  .modal-text-container {
    margin: 0;
    padding: 0 10px; /* opcional: reduce aún más el espacio lateral */
    line-height: 2;
  }
}