* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.navbar {
  padding: 0;
  margin: 0;
}

.container-fluid {
  padding-left: 0;
}

.navbar a.active {
  color: var(--primary);
  border-bottom: solid 3px var(--primary);
}

.navbar-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background-color: var(--primary);
  border-radius: 0 0 2rem 0;
  width: 20%;
}

.navbar-toggler {
  margin-right: 1rem;
}

.navbar {
  border-radius: 0 0 2rem 0;
}

.navbar a {
  border-bottom: solid 3px transparent;
  transition: 0.2s ease-in;
  color: white !important;
}

.navbar-brand:hover {
  background-color: var(--primary) !important;
}

.navbar a:hover {
  color: var(--primary) !important;
  background-color: var(--secondary);
  border-bottom: solid 3px var(--primary);
}

.navbar a .active {
  color: var(--primary) !important;
  border-bottom: solid 3px var(--primary);
}

.dropdown-menu {
  background-color: var(--secondary);
}

#carousekExampleFade .carousel-item {
  height: 70vh;
}

.offcanvas-body {
  text-align: right;
}

.carousel-item img {
  height: auto;
  max-height: 70vh;
  object-fit: cover;
}

.carousel {
  margin-top: 1em;
}

#dondeEstamos {
  height: 60vh;
  display: flex;
  padding: 0;
}

.map-container {
  flex: 1;
  height: 100%;
  padding: 0 !important;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contenedorTexto {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  height: 100%;
  text-align: center;
}

#sectionNovedades {
  padding-top: 2rem;
  text-align: center;
}

.cardContainer {
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.cardContainer .card {
  text-align: left;
  cursor: pointer;
  transition: 0.3s ease;
}

.cardContainer .card:hover {
  box-shadow: 1px 8px 14px 0px rgba(0, 0, 0, 0.25);
}

#Asociados {
  padding: 3rem 0;
  color: white;
  text-align: center;
  margin-top: 1rem;
}

#Asociados h3 {
  margin-bottom: 1rem;
}

#Asociados .container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  height: auto;
  padding: 1rem;
}

.scroller {
  max-width: 100%;
}

.scroller__inner {
  padding-block: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.scroller__inner img {
  max-width: 300px;
}

.scroller[data-animated="true"] {
  overflow: hidden;
  -webkit-mask: linear-gradient(
    90deg,
    transparent,
    white 20%,
    white 80%,
    transparent
  );
  mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller[data-animated="true"] .scroller__inner {
  width: max-content;
  flex-wrap: nowrap;
  animation: scroll var(--_animation-duration, 40s)
    var(--_animation-direction, forwards) linear infinite;
}

.scroller[data-direction="left"] {
  --_animation-direction: reverse;
}

.scroller[data-direction="right"] {
  --_animation-direction: forwards;
}

.scroller[data-speed="fast"] {
  --_animation-duration: 20s;
}

.scroller[data-speed="slow"] {
  --_animation-duration: 80s;
}

@keyframes scroll {
  to {
    transform: translate(calc(-50% - 0.5rem));
  }
}

#Contacto {
  text-align: center;
  color: white;
  padding: 2rem;
}

#Contacto h3 {
  margin-bottom: 1rem;
}

#Contacto .btn-secondary {
  margin: 1.5rem;
}

/* HISTORIA */

#ftHistoria {
  height: 40vh;
  overflow: hidden;
  background-image: url("./img/carrusel1.png");
  background-position: center;
  background-size: cover;
}

.galeriaImg {
  height: 50vh;
  background-size: cover;
  background-position: center;
}

#galeriaHistoria .col-8 {
  background-image: url("./img/carrusel2.png");
}
#galeriaHistoria .col-6 {
  background-image: url("./img/carrusel4.png");
}
#galeriaHistoria .col-4 {
  background-image: url("./img/carrusel5.png");
}
#galeriaHistoria .col {
  background-image: url("./img/carrusel1.png");
}
#galeriaHistoria .col-2 {
  background-image: url("./img/carrusel3.png");
}

.contenedorEquipo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.cardEquipo {
  display: flex;
  padding: 2rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 20%;
}

.cardEquipo img {
  border-radius: 100%;
  max-width: 60%;
}

.contenedorFundadora {
  display: flex;
  flex-wrap: wrap;
}

.cardFundadora {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  max-width: 33%;
  align-items: center;
  gap: 0.5rem;
}

.cardFundadora img {
  border-radius: 100%;
  max-width: 40%;
}

/* NOVEDADES */

#ftNovedades {
  height: 60vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding-bottom: 2em;
  align-items: baseline;
  background-position: center;
  background-size: cover;
  font-size: 1.5em;
}

#ftNovedades h3 {
  color: white;
  font-weight: bolder;
}

#Noticias {
  text-align: center;
}

.cardComunicado {
  width: 50%;
  display: flex;
  justify-content: space-between;
}

#Comunicados {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#actividadesIndex {
  min-height: 50vh;
  margin: 10vh auto;
}
#noticiasIndexContainer {
  margin: 10vh auto;
}

#Actividades {
  margin: 10vh auto !important;
  min-height: 75vh;
}

#Actividades .card {
  padding: 5%;
  display: flex;
  flex-direction: row;
  align-items: center;
}

#Actividades .card h4 {
  font-size: 1.7em;
}

#Noticias {
  margin: 10vh auto !important;
}

#Noticias .card {
  padding: 5%;
  display: flex;
  flex-direction: row;
  align-items: center;
}

#Noticias .card h4 {
  font-size: 1.7em;
}

#linksFooter {
  display: flex;
  flex-direction: column;
}

#linksFooter a {
  color: #71757c !important;
  text-decoration: none;
}

/* Areas */

.area {
  min-height: 80vh;
  margin-top: 15vh !important;
  margin-bottom: 10vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.area h1 {
  color: var(--primary);
}

.area hr {
  background-color: var(--primary);
  height: 3px;
}

.area h3 {
  color: var(--primary);
}

/*  */

.acordeon {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 1rem;
  margin: 2rem auto;
  padding: 1 0rem;
}

.item {
  flex: 1 1 calc(50% - 1rem);
  padding: 1 0rem;
}

.item:hover {
  color: var(--primary);
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  border-bottom: 2px solid var(--primary);
}

.item-header span {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: var(--primary);
}

.item-content {
  display: none;
  padding: 0.5rem 0 0;
  color: #444;
}

.item.active .item-content {
  display: block;
}

.item.active .item-header span {
  transform: rotate(45deg);
}

/* Llamados Laborales */

#llamados {
  min-height: 40vh;
  margin: 20vh 0;
}

#detalle-container {
  margin-top: 15vh;
}

#cards-container div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Organigrama */

/* Ocultar contenido por defecto */
.contenedorEquipo {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

/* Mostrar cuando activo */
.item-organigrama.active .contenedorEquipo {
  max-height: 1000px;
  opacity: 1;
}

/* Estilo del encabezado */
.item-header {
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

/* Estilo del ícono + */
.toggle-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Rotar al estar activo */
.item-organigrama.active .item-header .toggle-icon {
  transform: rotate(45deg);
}

@media screen and (max-width: 768px) {
  .navbar-brand {
    width: 35%;
  }

  .navbar a:hover {
    color: var(--secondary) !important;
    background-color: var(--primary);
    border-bottom: solid 3px var(--primary);
  }

  .dropdown-toggle {
    background-color: var(--primary);
    border: none;
  }

  .dropdown-menu {
    background-color: var(--primary);
    text-align: right;
    border: none;
  }

  #txtPlemuu {
    font-size: 0.9rem;
  }

  .carousel-item img {
    max-height: 50vh;
  }

  #dondeEstamos {
    min-height: fit-content;
    flex-direction: column-reverse;
    justify-content: space-between;
    align-items: center;
  }

  .contenedorTexto {
    font-size: 1rem;
    height: fit-content;
  }

  .contenedorTexto ul {
    margin: 5% 0;
    padding: 0;
    width: 100%;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
  }

  .map-container {
    width: 100%;
    min-height: 40vh;
  }

  .carousel-inner {
    max-height: 30vh;
  }

  .cardContainer {
    display: flex;
    justify-content: center;
  }

  .cardContainer .card {
    max-width: 400px !important;
  }

  .galeriaImg {
    height: 25vh;
  }

  .contenedorEquipo {
    display: flex;
    flex-wrap: wrap;
  }

  .cardFundadora {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    align-items: center;
    gap: 0.5rem;
    font-size: small;
    max-width: 50%;
  }

  .cardEquipo {
    max-width: 50%;
  }

  .cardFundadora img {
    border-radius: 100%;
    max-width: 90%;
  }

  .contenedorFundadora {
    flex-wrap: wrap;
  }

  #ftNovedades {
    padding: 2em;
    font-size: 1em;
  }

  .cardComunicado {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .item {
    flex: 1 1 100%;
  }

  .area {
    margin-top: 10vh !important;
    margin-bottom: 10vh;
  }

  #llamados {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}
