/* ============================================================
   ACORDEÓN — Departamento de Género y Diversidad
   Cargado solo en: front page (is_front_page)
   ============================================================ */

.activar_banner:hover {
  background-color: var(--color-purple);
  transition: 0.5s;
  color: var(--color-white);
}

.contenedor_acordeon {
  max-width: 960px;
  margin-top: 0.5rem;
  overflow: hidden;
  height: 0;
  transition: all 0.8s ease;
}

.acordeon {
  margin-top: 0.2rem;
  position: relative;
  max-width: 960px;
  margin: auto;
  margin-bottom: 2rem;
}

#fondo_banner {
  position: absolute;
  z-index: -1;
  top: -1px;
}

.banner {
  margin-top: 4rem;
  height: 90px;
}

.banner span {
  font-size: 18.98px;
  font-family: var(--font-accent);
  font-weight: 700;
  color: var(--color-white);
  background-color: var(--color-purple);
  padding-left: 3rem;
  padding-right: 3rem;
  padding-top: 0.7rem;
  padding-bottom: 0.5rem;
  border-radius: 40px;
}

.banner button {
  width: 195px;
  height: 42px;
  font-size: 22.12px;
  font-family: var(--font-accent);
  font-weight: 700;
  color: var(--color-purple);
  border-radius: 40px;
  border: none;
  background-color: var(--color-white);
}

.banner a {
  z-index: 10;
}

.banner_info {
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-around;
  position: relative;
}

.first_banner {
  max-height: 695px;
}

.titulo {
  padding-left: 6rem;
}

.titulo img {
  width: 515px;
}

.titulo span {
  font-family: var(--font-accent);
  font-size: 54.67px;
  display: inline;
  background: var(--color-purple);
  line-height: 72px;
  color: var(--color-white);
  padding-left: 1rem;
}

.linea1 {
  padding-right: 1rem;
}

.linea2 {
  padding-right: 6rem;
}

.linea3 {
  padding-right: 8.5rem;
}

.departamento {
  max-width: 874px;
  max-height: 525px;
  margin: auto;
  border-radius: 35px;
  padding-top: 19rem;
  padding-bottom: 5rem;
  position: relative;
  top: -119px;
  z-index: -1;
}

#fondo_acordeon {
  position: absolute;
  z-index: -1;
  width: 965px;
  top: -307px;
  left: -46px;
  height: 701px;
}

.info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-row-gap: 20px;
  padding-left: 3rem;
  position: relative;
}

.info div {
  display: flex;
  padding-right: 7rem;
  align-items: center;
}

.info img {
  width: 140px;
}

.departamento p {
  font-family: var(--font-body);
  font-size: 16.5px;
  margin: 0;
  line-height: normal;
  text-align: unset;
}

.second_banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 1rem;
}

.bottom_acordeon .bottom_info {
  display: flex;
}

.bottom_info {
  padding-right: 3rem;
  padding-left: 3rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.bottom_acordeon p {
  font-family: var(--font-body);
  font-size: 17.92px;
  font-weight: 900;
  padding-right: 2rem;
  text-align: left;
}

.btnf {
  align-self: center;
}

.bottom_info button {
  width: 155px;
  height: 40px;
  font-family: var(--font-body);
  font-size: 17.93px;
  border-radius: 8px;
  font-weight: 900;
  align-self: center;
  border: none;
  background-color: var(--color-purple);
  color: var(--color-white);
}

.bottom_info button:hover {
  transition: 0.4s;
  color: var(--color-white);
  background-color: var(--color-navy);
}

/* --- Modal Bootstrap — Género y Diversidad --- */

.modal-header {
  background-color: var(--color-purple) !important;
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
}

.modal-title {
  font-size: 27px !important;
  font-weight: 800 !important;
  text-align: center !important;
  font-family: var(--font-accent) !important;
  color: var(--color-white) !important;
}

.modal-body {
  background-color: var(--color-gray-mid) !important;
  text-align: center !important;
  font-weight: 800 !important;
  font-family: var(--font-accent) !important;
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
  font-size: 20px !important;
  height: 100px;
  padding-top: 3.5rem;
}

.modal-content {
  border-radius: 28px !important;
}

.close {
  color: var(--color-purple) !important;
  opacity: 1 !important;
  background-color: var(--color-white) !important;
  border-radius: 12px !important;
  width: 18px !important;
  font-size: 18px !important;
}

/* --- BTN-PDF — Link PDF del módulo Género y Diversidad --- */

.bottom_acordeon .bottom_info .btn-pdf {
  display: inline-block;
  width: 155px;
  height: 40px;
  line-height: 40px;
  font-family: var(--font-body);
  font-size: 17.93px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  background-color: var(--color-purple);
  color: var(--color-white);
  cursor: pointer;
  box-sizing: border-box;
}

.bottom_acordeon .bottom_info .btn-pdf:hover,
.bottom_acordeon .bottom_info .btn-pdf:focus {
  background-color: var(--color-navy);
  color: var(--color-white);
  text-decoration: none;
}

/* --- Responsive --- */

@media (max-width: 768px) {
  #fondo_banner {
    width: 100%;
    height: 90px;
  }
  .info div {
    padding-right: 4rem;
  }
  .info img {
    width: 120px;
  }
  #fondo_acordeon {
    width: 800px;
    left: -17px;
    height: 690px;
  }
  .first_banner {
    max-height: 680px;
  }
  .titulo {
    padding-left: 2rem;
  }
  .bottom_acordeon p {
    padding-right: 20px;
  }
  .bottom_info {
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

@media (max-width: 425px) {
  .second_banner {
    grid-template-rows: 1fr 1fr;
    margin-top: 0;
    grid-template-columns: none;
  }
  .contenedor_acordeon {
    max-height: 487px;
  }
  .banner {
    height: 65px;
  }
  #fondo_banner {
    height: 65px;
  }
  .bottom_acordeon .bottom_info {
    justify-content: space-around;
    gap: 10px;
  }
  .banner_info {
    padding-top: 2rem;
  }
  .banner span {
    margin-top: 2px;
    font-size: 10px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 7px;
    height: 27px;
  }
  .banner button {
    width: 115px;
    height: 30px;
    font-size: 13px;
  }
  .first_banner {
    max-height: 400px;
  }
  .titulo {
    padding-left: 0.5rem;
  }
  .titulo img {
    width: 315px;
  }
  #fondo_acordeon {
    width: 455px;
    left: -16px;
    height: 385px;
    top: -160px;
  }
  .info {
    grid-row-gap: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .info div {
    padding-right: 0.5rem;
  }
  .departamento {
    padding-top: 15rem;
  }
  .info img {
    width: 90px;
  }
  .departamento p {
    font-size: 11px;
  }
  .bottom_info {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }
  .bottom_info button {
    width: 80px;
    height: 25px;
    font-size: 10px;
  }
  .bottom_acordeon p {
    margin: 0;
    font-size: 11px;
    padding-right: 6px;
    padding-left: 6px;
    padding-top: 4px;
  }
  .btnf.r {
    margin-left: 8px;
  }
  .modal-body {
    padding-top: 2rem !important;
  }
  .bottom_acordeon .bottom_info .btn-pdf {
    width: 80px;
    height: 25px;
    line-height: 25px;
    font-size: 10px;
  }
}

@media (max-width: 375px) {
  .departamento {
    padding-top: 12rem;
  }
  .banner span {
    padding-right: 13px;
    padding-left: 13px;
  }
  .banner button {
    width: 105px;
  }
  .first_banner {
    max-height: 385px;
  }
  .titulo img {
    width: 280px;
  }
  .info {
    grid-template-columns: none;
  }
  .info img {
    width: 60px;
  }
  .info p {
    font-size: 11px;
  }
  #fondo_acordeon {
    width: 400px;
    left: -14px;
    top: -116px;
  }
  .bottom_acordeon .bottom_info {
    justify-content: space-around;
    align-items: baseline;
    gap: 10px;
  }
  .bottom_info {
    padding-bottom: 0;
  }
  .bottom_info button {
    width: 70px;
    height: 25px;
    font-size: 9px;
  }
  .bottom_acordeon p {
    font-size: 11px;
  }
  .bottom_info p {
    padding-right: 0.5rem;
  }
  .second_banner {
    grid-template-rows: 1fr 1fr;
    margin-top: 0;
    grid-template-columns: none;
  }
  .bottom_acordeon .bottom_info .btn-pdf {
    width: 70px;
    height: 25px;
    line-height: 25px;
    font-size: 9px;
  }
}

@media (max-width: 320px) {
  .banner button {
    width: 80px;
    font-size: 10px;
    margin-top: 2px;
    height: 25px;
  }
  .banner span {
    padding-left: 11px;
    padding-right: 11px;
    font-size: 9px;
    height: 25px;
  }
  .bottom_acordeon .bottom_info {
    align-items: center;
  }
  .bottom_acordeon p {
    font-size: 10px;
  }
  #fondo_acordeon {
    width: 340px;
    left: -11px;
    height: 350px;
    top: -84px;
  }
  .first_banner {
    max-height: 360px;
  }
  .second_banner {
    padding-top: 1rem;
  }
  .info p {
    font-size: 10px;
  }
  .info {
    padding-left: 5px;
    padding-right: 5px;
  }
  .info div {
    padding-right: 0;
  }
  .info img {
    width: 60px;
  }
  .titulo {
    padding-left: 0;
  }
  .titulo img {
    width: 260px;
  }
  .bottom_acordeon .bottom_info .btn-pdf {
    width: 70px;
    height: 25px;
    line-height: 25px;
    font-size: 9px;
  }
}
