.panfletos-section {
  background-color: #f8f5eb;
  padding: 3rem 1rem;
  font-family: "Marko One", sans-serif;
}

.panfletos-title {
  font-size: 2.25rem;
  text-align: center;
  color: #166534;
  margin-bottom: 2rem;
  font-weight: 700;
}

.panfletos-subtitle {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  text-align: center;
  font-size: 1rem;
  color: #5b4a2f;
  font-family: "Poppins", sans-serif;
}

.panfletos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* menos ancho */
  gap: 1.5rem;
}

.panfleto-card {
  background-color: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
  height: 500px; /* más pequeño */
  display: flex;
  flex-direction: column;
}

/* Estado inicial: invisible y abajo */
.panfleto-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Cuando esté visible en viewport */
.panfleto-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.panfleto-card:hover {
  transform: scale(1.05);
}

.panfleto-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* muestra toda la imagen, sin recortarla */
}

.panfleto-info {
  padding: 0.5rem 1rem;
  flex-grow: 1;
}

.panfleto-info h3 {
  color: #204425;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-family: "Marko One", sans-serif;
}

.panfleto-info p {
  font-size: 0.875rem;
  color: #5b4a2f;
  font-family: "Poppins", sans-serif;
}

/* Modal */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  max-width: 80vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.download-btn {
  background-color: #15803d;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.download-btn:hover {
  background-color: #166534;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 2rem;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
}

/*boton de volver -------------------------------*/
.back-button {
  position: absolute;
  top: 20px;
  left: 45px;
  background-color: #808000;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s;
  z-index: 2000;
}

.back-button i {
  margin-right: 8px;
}

.back-button:hover {
  background-color: #666600;
}
/* Diseño del cambio de idioma */
.language-icon i {
  margin-right: 0.4rem; /* o 8px si prefieres */
}

.language-selector {
  display: flex;
  flex-direction: row; /* Ahora en columna */
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  overflow: hidden;

  /* Posición fija arriba a la derecha */
  position: absolute;
  top: 20px;
  right: 40px;
  z-index: 999;
}

.language-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s ease;
  background-color: rgba(
    0,
    0,
    0,
    0.5
  ); /* Fondo más oscuro para mejor visibilidad */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.language-icon:last-child {
  border-bottom: none; /* Evitar borde extra en el último */
}

.language-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.language-icon.active {
  background-color: rgba(255, 255, 255, 0.3);
  font-weight: bold;
  color: #fff; /* Aseguramos que el texto se mantenga blanco */
}

.language-icon span {
  font-size: 0.9rem;
}
