/* ESTILOS GENERALES */
@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;
}
/* SEDE */
.contenedor-sedes {
  margin: 0 0;
  padding: 0 2rem;
}

.contenedor-sedes h1 {
  text-transform: uppercase;
  font-size: 2rem;
  font-weight: 700;
  color: var(--azul-principal);
  margin-bottom: 1.5rem;
  border-bottom: 3px solid var(--azul-secundario1);
  padding-bottom: 0.5rem;
}

.archivo-sedes .contenedor {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.grid-sedes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2.5rem;
}

.sede-contenido {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sede-card h2 {
  font-size: 1.3rem;
  line-height: 1.2;
}

.sede-card h2 a {
  color: var(--azul-principal);
  text-decoration: none;
}

.sede-card h2 a:hover {
  text-decoration: underline;
}
.sedes-relacionadas h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--azul-secundario1);
}

.sedes-relacionadas ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sedes-relacionadas li a {
  display: inline-block;
  background: #f2f6fa;
  color: var(--azul-principal);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 1.3rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.sedes-relacionadas li a:hover {
  background: var(--azul-secundario1);
  color: #fff;
}

.sede-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sede-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.sede-imagen-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--gris-fondo);
}

.imagen-sede {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.sede-imagen-wrapper:hover .imagen-sede {
  transform: scale(1.05);
}

.sede-contenido {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 2rem;
}

.sede-contenido h2 {
  font-size: 1.25rem;
  color: var(--azul-principal);
  margin-bottom: 1rem;
}

.sede-contenido h2 a {
  text-decoration: none;
  color: inherit;
}

.sedes-relacionadas {
  margin-top: auto;
  padding: 1rem 1.2rem;
  background: var(--gris-fondo);
  border-radius: 10px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.03);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.sedes-relacionadas h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.sedes-relacionadas ul {
  padding-left: 1rem;
  margin: 0;
  list-style: disc;
}

.sedes-relacionadas li {
  margin-bottom: 0.25rem;
}

.sede-contenido > p {
  font-style: italic;
  color: #666;
  margin-top: auto;
}

.sede-contenido h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 1.5rem;
  color: var(--azul-principal);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
}

.sede-contenido h2 a {
  color: inherit;
  text-decoration: none;
}

.sede-contenido h2 a:hover,
.sede-contenido h2 a:focus {
  color: var(--color-destacado);
  text-decoration: underline;
}

.sedes-relacionadas {
  margin-top: auto;
  padding: 1rem 1.5rem;
  background: var(--gris-fondo);
  border-radius: 10px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.05);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.sedes-relacionadas h3 {
  font-weight: 700;
  color: var(--azul-secundario2);
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.sedes-relacionadas ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.sedes-relacionadas li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

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

.sedes-relacionadas li a:hover,
.sedes-relacionadas li a:focus {
  color: var(--color-destacado);
  text-decoration: underline;
}

.contenido-sede{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.texto-sede {
  padding: 1rem 1rem 2rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  text-align: center;
}

.texto-sede h1{
  font-size: 2rem;
}

.texto-sede h1,
.texto-sede h2,
.texto-sede h3 {
  color: var(--azul-principal);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.sede-img {
  text-align: center;
  margin-bottom: 1.5rem;
}

.sede-img img {
  width: 800px;
  height: 400px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* MOBILE */
@media (max-width: 768px) {
  .grid-sedes {
    grid-template-columns: 1fr;
  }

  .sede-imagen-wrapper {
    height: 140px;
  }

  .sede-contenido h2 {
    font-size: 1.25rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .grid-sedes {
    grid-template-columns: 1fr;
  }

  .sede-imagen-wrapper {
    height: 140px;
  }

  .sede-contenido h2 {
    font-size: 3.5rem;
  }

  .contenedor-sedes h1{
    font-size: 3rem;
  }
  .sedes-relacionadas li a{
    font-size: 2.5rem;
  }
  
  .sedes-relacionadas h3{
    font-size: 3rem;
  }

  .texto-sede{
    font-size: 2.5rem;
  }

  .texto-sede h1{
    font-size: 3rem;
  }
}
