@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
:root {
  --azul-principal: #004171;
  --azul-secundario1: #0d5575;
  --azul-secundario2: #297ba2;
  --azul-secundario3: #389eb0;
  --color-destacado: #FF9154;
  --gris-fondo: #f9f9f9;
}
/* Entidades vinculadas */
.entidades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  gap: 2rem;
  padding: 2rem 1rem;
}

.entidades-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.entidades-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.entidades-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f7f7f7;
}

.entidades-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.entidades-thumb:hover img {
  transform: scale(1.05);
}

.entidades-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.entidades-titulo {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--azul-principal, #003366);
  text-align: center;
}

.entidades-datos {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.entidades-datos li {
  margin-bottom: 0.5rem;
  color: #444;
}

.entidades-datos strong {
  font-weight: 600;
  margin-right: 0.3rem;
}

.boton-ver-mas {
  margin-top: auto;
  align-self: center;
  background-color: var(--azul-principal, #003366);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-weight: 500;
}

.boton-ver-mas:hover {
  background-color: #00509e;
}

/*Single entidades vinculadas*/
.entidad-single .container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', sans-serif;
}

.entidad-titulo {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--azul-principal);
}

.entidad-thumb {
  text-align: center;
  margin-bottom: 1.5rem;
}

.entidad-thumb img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.entidad-contenido {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 2rem;
}

.entidad-datos {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.entidad-datos li {
  font-size: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.entidad-datos strong {
  min-width: 140px;
  display: inline-block;
  color: #333;
}

.entidad-datos a {
  color: var(--azul-principal);
  text-decoration: none;
  transition: color 0.3s ease;
}

.entidad-datos a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* BOTÓN VOLVER */
.boton-volver {
  display: inline-block;
  background: var(--azul-principal);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
  font-weight: 500;
}

.boton-volver:hover {
  background: #003e7d;
}
