/* ===== MODAL AUTOMÁTICO ===== */
.modal-auto {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

/* Contenido */
.modal-auto-contenido {
  background: white;
  width: 80%;
  max-width: 800px;
  height: 85vh;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

/* Botón cerrar */
.btn-cerrar {
  align-self: flex-end;
  background: crimson;
  color: white;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
}

/* Título */
.modal-auto-contenido h2 {
  text-align: center;
  margin: 10px 0 15px;
}

/* Contenedor con scroll */
.imagenes-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-right: 10px;
}

/* Imágenes */
.imagenes-scroll img {
  width: 100%;
  border-radius: 10px;
}

/* Scroll suave */
.imagenes-scroll {
  scroll-behavior: smooth;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .modal-auto-contenido {
    width: 95%;
    height: 90vh;
  }

  .btn-cerrar {
    font-size: 12px;
  }
}
