/* Estilos base */
body {
  background: #f9f9f9;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.contenedor {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

h1 {
  text-align: center;
  color: #7b150b;
  margin-bottom: 1.5rem;
}

h2 {
  margin-top: 2rem;
  color: #333;
}

.intro {
  text-align: justify;
  margin-bottom: 1.5rem;
}

ul {
  margin-left: 1.2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

table th, table td {
  border: 1px solid #ccc;
  padding: 0.6rem;
  text-align: left;
}

table th {
  background: #eaeaea;
  font-weight: bold;
}

/* Botones PDF individuales */
.botones-pdf {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 2rem;
}

.btn-pdf {
  background: #7b150b;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  max-width: 400px;
  transition: background 0.3s ease;
}

.btn-pdf:hover {
  background: #5d0f09;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 4rem;
  background: #7b150b;
  color: white;
  padding: 1rem;
}

/* Tarjetas PDF estilo cards */
.grid-documentos-pdf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card-pdf {
  background: #fff;
  border: 1px solid #ddd;
  padding: 1.2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.card-pdf p {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.card-pdf a {
  background: #7b150b;
  color: #fff;
  padding: 0.5rem 1.2rem;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  display: inline-block;
  transition: background 0.3s ease;
}

.card-pdf a:hover {
  background: #5e1009;
}

/* Tabla de documentos tipo columnas */
.tabla-documentos {
  display: inline-flex;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  border: 1px solid #ddd;
  margin-top: 2rem;
  background: #eee;
}

.columna {
  background: #fdfdfd;
  padding: 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: #600000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  border-left: 1px solid #ddd;
}

.columna:first-child {
  border-left: none;
}

.columna a {
  text-decoration: none;
  color: #7b150b;
  font-weight: 500;
}

.columna a:hover {
  text-decoration: underline;
}

/* Botonera general */
.botonera-documentos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

/* MEDIA QUERIES PARA RESPONSIVE */

/* Tablets */
/* RESPONSIVE: cuando la pantalla sea menor a 768px, usar grid vertical */
@media (max-width: 768px) {
  .tabla-documentos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .columna {
    border-left: none;
    border-top: 1px solid #ddd;
  }

  .columna:first-child {
    border-top: none;
  }
}

/* Teléfonos */
@media (max-width: 480px) {
  h1 {
    font-size: 1.7rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  table th, table td {
    font-size: 0.85rem;
  }

  .columna {
    font-size: 0.85rem;
    padding: 0.8rem;
  }

  .botones-pdf {
    gap: 0.5rem;
  }

  .btn-pdf {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
}


/* Fin de archivo *//* Modal básico */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s ease;
}

.modal.mostrar {
  visibility: visible;
  opacity: 1;
}

.modal-contenido {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-contenido img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

#cerrar-modal {
  margin-top: 1rem;
  padding: 8px 20px;
  background: #7b150b;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#cerrar-modal:hover {
  background-color: #5e1009;
}
/* Fin de archivo */