/*
Theme Name: Betheme Child
Description: Child Theme for Betheme
Template: betheme
Version: 2.0.2
*/

/* ---------- Generales ---------- */
.programa-header {
  margin-top: 0;
  text-align: center;
}

.programa-resolucion {
  display: inline-block;
  background: var(--mfn-button-action-bg);
  border: 1px solid #153f82;
  color: #153f82;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 14px;
  margin-bottom: 10px;
}

.programa-imagen img {
  border-radius: 12px;
  width: 100%;
  height: auto;
}

.programa-volver {
  margin-top: 2rem;
}

.programa-volver .button,
.programa-card .button {
  padding: 10px 16px;
  background-color: #153f82;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

/* ---------- SINGLE: programa ---------- */
.single-programa .programa-info {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.programa-datos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.programa-datos-grid .programa-card {
  width: calc(50% - 1rem);
}

@media (max-width: 768px) {
  .programa-datos-grid .programa-card {
    width: 100%;
  }
}

/* ---------- ARCHIVE: programa ---------- */

.archive-programa .programa-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.programa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem 0px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0rem;
}

.programa-card {
  background: #F4F8FF;
  padding: 1.5rem;
  border-left: 5px solid #153f82;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.programa-card--grid {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.programa-card--grid:hover {
  box-shadow: 0 4px 12px rgba(21, 63, 130, 0.15);
  transform: translateY(-2px);
}


/*
Theme Name: Betheme Child
Description: Child Theme for Betheme
Template: betheme
Version: 2.0.2
*/

/* ---------- Generales ---------- */
.programa-header {
  margin-top: 0;
  text-align: center;
}

.programa-resolucion {
  display: inline-block;
  background: var(--mfn-button-action-bg);
  border: 1px solid #153f82;
  color: #153f82;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 14px;
  margin-bottom: 10px;
}

.programa-imagen img {
  border-radius: 12px;
  width: 100%;
  height: auto;
}

.programa-volver {
  margin-top: 2rem;
}

.programa-volver .button,
.programa-card .button {
  padding: 10px 16px;
  background-color: #153f82;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

/* ---------- SINGLE: programa ---------- */
.single-programa .programa-info {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.programa-datos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.programa-datos-grid .programa-card {
  width: calc(50% - 1rem);
}

@media (max-width: 768px) {
  .programa-datos-grid .programa-card {
    width: 100%;
  }
}

/* ---------- ARCHIVE: programa ---------- */

.archive-programa .programa-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.programa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem 0px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0rem;
}

.programa-card {
  background: #F4F8FF;
  padding: 1.5rem;
  border-left: 5px solid #153f82;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.programa-card--grid {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.programa-card--grid:hover {
  box-shadow: 0 4px 12px rgba(21, 63, 130, 0.15);
  transform: translateY(-2px);
}


/*-------------------Formulario------------------------*/

#filtro-programas-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center; /* Alinea verticalmente */
  justify-content: center;
  margin-bottom: 2rem;
}

#filtro-programas-form select,
#filtro-programas-form input[type="text"],
#filtro-programas-form button {
  display: flex;
  height: 40px;
  padding: 0 12px;
  box-sizing: border-box;
  margin: 0;
  min-width: 180px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

#filtro-programas-form input[type="text"] {
  flex: 1;
  min-width: 250px;
}

#filtro-programas-form button {
  background-color: #153f82;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#filtro-programas-form button:hover {
  background-color: #0d2b5b;
}

/*-------------------Mensaje inicial------------------------*/

.mensaje-inicial {
  border: 2px dashed #ccc;
  padding: 2rem;
  text-align: center;
  font-style: italic;
  background-color: #f4f7fc;
  color: #333;
  max-width: 900px;
  margin: 0 auto 3rem;
  border-radius: 10px;
  font-size: 1.1rem;
}

/*-------------------Grid de resultados------------------------*/

.programa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* === Estilos de la plantilla taxonomy-sede.php === */

.sede-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
  background: #fff; /* Fondo blanco limpio */
}

.banner-sede-img img {
  width: 100%;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: block;
}

.sede-descripcion {
  text-align: center;
  margin: 1rem auto 2rem;
  max-width: 800px;
}

.sede-anuncio {
  background: #FFF3CD;
  border-left: 5px solid #FFC107;
  padding: 1.5rem;
  border-radius: 6px;
  margin: 2rem 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-weight: 500;
  color: #5c4400;
}

.sede-oferta-wrapper {
  margin-top: 3rem;
}

.sede-oferta-wrapper h2 {
  color: #153f82;
  margin-bottom: 2rem;
}

/* Card reutilizable para contacto */
.sede-card {
  background: #F4F8FF;
  padding: 1.5rem;
  border-left: 5px solid #153f82;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin: 2rem 0;
}

.sede-card h3 {
  margin-top: 0;
  color: #153f82;
}

.sede-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.sede-card ul li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed #ccc;
}

.sede-card ul li:last-child {
  border-bottom: none;
}

/* Botón de volver */
.sede-volver {
  text-align: center;
  margin-top: 2rem;
}

.sede-volver .button {
  background-color: #153f82;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.sede-volver .button:hover {
  background-color: #0f2c5f;
}

/* nav tipos de programa-grid */
.nav-tipos-programa {
  max-width: 960px;
  background: #F4F8FF;
  margin: 2rem auto;
  padding: 1rem;
  border-radius: 8px;
  border-left: 5px solid #153f82;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
}

.nav-tipos-programa strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #153f82;
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.chip {
  padding: 6px 14px;
  background-color: #e0e8f7;
  color: #153f82;
  text-decoration: none;
  border-radius: 30px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.chip:hover {
  background-color: #d1dcf1;
}

.chip.activo {
  background-color: #153f82;
  color: white;
  border: 1px solid #153f82;
}

/* listado de sedes */
.grid-sedes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card-sede {
    background: #1e3a8a;
    color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.card-sede h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.card-sede h3 a {
    color: white;
    text-decoration: none;
}

.card-sede h3 a:hover {
    text-decoration: underline;
}

.card-sede ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-sede li {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

