/*
Theme Name: Tema Template nivel 2
Theme URI: http://example.com
Author: Alejandro Cortes
Author URI: http://example.com
Description: Un tema personalizado desde cero
Version: 1.0
*/

/* Estilos principales y x defecto */

:root {
  --main-green-color: #01a499;
  --main-light-green-color: #49beb6;
  --main-lighter-green-color: #f2fbfa;
  --main-darker-green-color: #304f55;
  --main-dark-grey-color: #394049;
  --main-grey-color: #5e6269;
  --main-orange-color: #e37604;
  --variant-green-color: #2b9b7c;
}

* {
  box-sizing: border-box;
  font-family: "Nunito Sans", sans-serif;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Atkinson Hyperlegible", sans-serif;
  margin: 0;
  background-repeat: no-repeat;
  display: grid;
  min-height: 100dvh;
  width: 100dvw;
  grid-template-columns: 1fr;
  grid-template-rows: min-content 1fr min-content;
  grid-auto-rows: min-content;
}

h1 {
  font-size: 3.2rem; /* 51.2px */
  font-stretch: semi-expanded;
}

h2 {
  font-size: 2.7rem; /* 43.2px */
  font-stretch: semi-expanded;
}

h3 {
  font-size: 2.2rem; /* 35.2px */
  font-stretch: semi-expanded;
}

h4 {
  font-size: 2rem; /* 32px */
}

h5 {
  font-size: 1.7rem; /* 27.2px */
}

h6 {
  font-size: 1.5rem; /* 24px */
  font-family: "Atkinson Hyperlegible", sans-serif;
}

p {
  font-size: 1.35rem; /* 21.6px */
  font-family: "Atkinson Hyperlegible", sans-serif;
}
strong {
  font-family: "Nunito sans", sans-serif;
}
a {
  font-size: 1.35rem; /* 21.6px */
  font-family: "Nunito sans", sans-serif;
  font-weight: bold;
  text-decoration: none;
}
a:hover {
  cursor: pointer;
}
button:hover {
  cursor: pointer;
}
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem; /* 40px */
  }

  h2 {
    font-size: 2.2rem; /* 35.2px */
  }

  h3 {
    font-size: 1.8rem; /* 28.8px */
  }

  h4 {
    font-size: 1.6rem; /* 25.6px */
    font-family: "Atkinson Hyperlegible", sans-serif;
  }

  h5 {
    font-size: 1.5rem; /* 24px */
    font-family: "Atkinson Hyperlegible", sans-serif;
  }

  h6 {
    font-size: 1.4rem; /* 22.4px */
  }

  p {
    font-size: 1.2rem; /* 19.2px */
  }
  a {
    font-size: 1.2rem; /* 19.2px */
  }
}
/*TODO: EVALUAR SI DEJAR LAS FUENTES EN EL MEDIA QUERY */
li {
  list-style: none;
}
.a-bordered {
  width: fit-content;
  height: fit-content;
  padding: 8px 15px;
  border: 1.5px solid var(--main-green-color);
  background-color: transparent;
  border-radius: 25px;
  font-size: 1.25rem;
  color: var(--main-green-color);
  font-weight: 800;
}

.a-bordered-grey {
  color: var(--main-dark-grey-color);
  border-color: var(--main-dark-grey-color);
}

.main-header {
  margin-bottom: 20px;
}
.main-nav {
  z-index: 999;
  background-color: var(--main-green-color);
  margin: 3vh 2vw;
  display: flex;
  min-height: 100px;
  border-radius: 19px;
  overflow: hidden;
  max-width: 100%;
  > a {
    display: grid;
  }
}

.front-nav {
  position: absolute;
  right: 0%;
  left: 0%;
  top: 0%;
}

.main-nav img {
  width: auto;
  height: 100px;
  margin: auto 0px;
}

.main-nav div {
  margin-inline: 10px;
  width: 100%;
  ul {
    height: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: end;
  }
}
.main-nav li {
  width: max-content;
  a {
    display: block;
    color: white;
    padding: 20px;
  }
}
.menu-btn {
  display: none;
}

.slider-nav {
  z-index: -1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: hidden;
  /* TODO: EVALUAR RESPONSIVE, opciones: min-height, height 70vh, dejar aspect-ratio 
  width fijo y height movil, width movil y heigth fijo, etc... */
  img {
    aspect-ratio: 30/10;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0px 0 5vw 5vw;
  }
}

/* Estilo usado en los pages para que las imagenes mantengan su formato */
.onlyPageContent {
  margin-top: 120px;
  ul {
    height: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: end;
  }
}

.main-nav li {
  width: max-content;
  a {
    display: block;
    color: white;
    padding: 20px;
  }
}
.menu-btn {
  display: none;
}

.slider-nav {
  z-index: -1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: hidden;
  /* TODO: EVALUAR RESPONSIVE, opciones: min-height, height 70vh, dejar aspect-ratio 
  width fijo y height movil, width movil y heigth fijo, etc... */
  img {
    aspect-ratio: 30/10;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0px 0 5vw 5vw;
  }
}

@media (max-width: 768px) {
  .onlyPageContent {
    margin-top: 0px;
  }
  .main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-radius: 0px;
    grid-template-columns: 1fr min-content;
    height: auto;
    text-align: center;
    position: relative;
    margin: 0vw;
  }
  .logo {
    width: min-content;
    display: flex;
  }
  .main-nav img {
    min-width: 200px;
    width: 50%;
    height: auto;
  }
  .main-nav div {
    display: none;
    flex-direction: column;
    grid-column: 1/-1;
    margin-inline: 0px;
  }

  .main-nav li {
    width: 100%;
    text-align: center;
    a {
      display: block;
      padding: 20px;
    }
  }
  .menu-btn {
    display: grid;
    color: white;
    width: fit-content;
    background-color: transparent;
    cursor: pointer;
    place-self: center;
    border: none;
    text-align: left;
    & span {
      place-self: center;
      grid-column: 1;
      width: 30px;
      margin-right: 10px;
      border: 2px solid white;
    }
    & p {
      font-size: 1.5rem;
      grid-column: 2;
      grid-row: 1/4;
      padding-right: 20px;
    }
  }
  .main-header {
    display: flex;
    flex-direction: column-reverse;
  }
}

/* SECCION DE NOTICIAS */
.content {
  display: grid;
  gap: 150px;
  padding-bottom: 50px;
}

.pblock-10 {
  padding-block: 10px;
  margin-bottom: 0;
}

.section-noticias {
  width: 100%;
  padding-inline: 7vw;
  padding-bottom: 10px;
  margin-top: 10px; 
  padding-top: 0;   
  margin-bottom: 5px; 
  padding-bottom: 0; 
}
.section-noticias {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
.card-noticia {
  margin-bottom: 0 !important;
}

.voluntariado-wrapper {
  padding-top: 10px !important;
  margin-top: 0 !important;
}
.dfii-volunteer {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.card-noticia {
  margin-bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: start;
  height: 100%;
  gap: 15px;
  div {
    aspect-ratio: 9/5;
    width: 100%;
    height: auto;
    background-color: rgb(197, 119, 197);
    border-radius: 10px;
    overflow: hidden;
    -webkit-box-shadow: 5px 5px 0px 0px var(--main-dark-grey-color);
    -moz-box-shadow: 5px 5px 0px 0px var(--main-dark-grey-color);
    box-shadow: 5px 5px 0px 0px var(--main-dark-grey-color);
  }
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  p {
    margin: 0;
    color: var(--main-dark-grey-color);
    padding-inline: 7px;
    align-self: flex-start;
    margin: 0;
    flex-grow: 1;
  }
  a:visited {
    color: #01a499;
  }
  a:hover {
    color: #f2fbfa;
    background-color: #01a499;
  }
}

.section-noticias header {
  margin-bottom: 0;
  width: 40vw;
  max-width: 450px;
  position: absolute;
  left: 0%;
  background-color: white;
  z-index: 999;
  transform: translateX(-30%);
  text-align: end;
  h2 {
    color: var(--main-green-color);
  }
}


.pagination {
  text-align: center;
  a {
    color: var(--main-green-color);
  }
  span {
    color: var(--main-green-color);
    font-size: 21px;
    font-weight: 700;
  }
}

@media (max-width: 550px) {
  .content {
    padding-block: 10px;
  }
  .section-noticias {
    padding-left: 150px;
    grid-template-columns: 1fr;

  }
  .section-noticias header {
    width: fit-content;
    transform: translateX(10%);
  }
}

/* SECCION DE GALERIA */

.section-galeria {
  padding: 7vw;
  padding-bottom: 20px;

  display: grid;
  height: 100%;
  width: 100%;
  grid-template-columns: 10fr 13fr 10fr;
  gap: 50px;
  place-items: center;
  background-color: var(--main-lighter-green-color);
  header {
    grid-column: 1/-1;
    place-self: center;
    h2 {
      font-weight: 900;
      color: var(--main-dark-grey-color);
    }
  }
  a {
    grid-column: 1/-1;
  }
}

.section-galeria-2 {
  padding: 7vw;
  padding-bottom: 20px;

  display: grid;
  height: 100%;
  width: 100%;
  grid-template-columns: 8fr 8fr 8fr;
  gap: 50px;
  place-items: center;
  background-color: var(--main-lighter-green-color);
  header {
    grid-column: 1/-1;
    place-self: center;
    h2 {
      font-weight: 900;
      color: var(--main-dark-grey-color);
    }
  }
  a {
    grid-column: 1/-1;
  }
}
.card-galeria {
  width: 100%;
  background-color: white;
  padding: 6%;
  border-radius: calc(5% + 20px);
  -webkit-box-shadow: 0px 0px 25px 7px rgba(0, 0, 0, 0.22);
  -moz-box-shadow: 0px 0px 25px 7px rgba(0, 0, 0, 0.22);
  box-shadow: 0px 0px 25px 7px rgba(0, 0, 0, 0.22);
  div {
    aspect-ratio: 20/19;
    width: 100%;
    height: auto;
    border-radius: 25px;
    a img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 25px;
    }
  }
  p {
    padding: 15px 7px;
    font-size: 140%;
    font-family: "Nunito Sans", sans-serif;
    font-weight: 600;
    text-wrap: pretty;
    line-height: 2rem;
    color: var(--main-dark-grey-color);
  }
}
@media (max-width: 768px) {
  .section-galeria {
    grid-template-columns: 1fr;
  }
  .card-galeria {
    width: 70%;
    padding: 3%;
  }
}

.top-wave {
  position: relative;
  overflow: visible;
  &::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 10px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(
      --main-lighter-green-color
    ); /* Color que quieras para el fondo */
    mask-image: url("data:image/svg+xml,%3Csvg%20width%3D%221677%22%20height%3D%22197%22%20viewBox%3D%220%200%201677%20197%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M193%2040C147%2015.6981%20101.5%200.500002%200.5%200.5V179.5L1677%20196V4.99998C1591.5%20-9%201525.53%2020.0328%201472%2047C1406.5%2080%201226.25%20120.893%201035.5%2040C844.5%20-41%20669.5%2025.5%20622%2040C595.284%2048.1554%20463.5%2087.5%20391.5%2086C319.5%2084.5%20267.214%2079.2075%20193%2040Z%22%20fill%3D%22%23ffffff%22%20stroke%3D%22%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    transform: translateY(-100%); /* Ajusta la posición de la onda */
  }
}

/* SECCION DE DESTACADOS */

.top-color {
  position: relative;
  overflow: visible;
  &::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -150px;
    left: 0;
    width: 100%;
    height: 150px;
    background-color: var(--main-lighter-green-color);
  }
}
.back-balls {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  .sphere {
    aspect-ratio: 1/1;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 18%;
    height: auto;
    background-image: linear-gradient(
      165deg,
      var(--main-green-color) 0,
      var(--main-darker-green-color) 100%
    );
    border-radius: 100%;
    filter: blur(0.3rem);
    z-index: -2;
  }
  .sphere:nth-child(1) {
    top: -10px;
    left: -50px;
    border-radius: 0% 0% 100% 0;
  }
  .sphere:nth-child(2) {
    top: auto;
    left: auto;
    bottom: 15%;
    width: 25%;
    right: 0px;
    background-image: linear-gradient(
      200deg,
      var(--main-green-color) 0,
      var(--main-darker-green-color) 100%
    );
    transform: translateX(40%);
    border-radius: 100%;
  }
  .sphere:nth-child(3) {
    top: auto;
    left: 15%;
    bottom: 0%;
    right: auto;
    width: 15%;
    background-image: linear-gradient(
      -17deg,
      var(--main-green-color) 20%,
      var(--main-darker-green-color) 90%
    );
    transform: translateY(30%);
    border-radius: 100%;
  }
  .sphere:nth-child(4) {
    top: 0%;
    left: auto;
    bottom: auto;
    right: 5%;
    width: 14%;
    transform: translateY(-40%);
    background-image: linear-gradient(
      180deg,
      var(--main-green-color) 10%,
      var(--main-darker-green-color) 80%
    );
    border-radius: 100%;
  }
  .sphere:nth-child(5) {
    top: 0%;
    left: auto;
    bottom: auto;
    right: 40%;
    width: 19%;
    transform: translateY(-64%);
    background-image: linear-gradient(
      180deg,
      var(--main-green-color) 10%,
      var(--main-darker-green-color) 80%
    );
    border-radius: 100%;
  }
  .sphere:nth-child(6) {
    top: auto;
    left: 30%;
    bottom: 30%;
    right: auto;
    width: 13%;
    background-image: linear-gradient(
      180deg,
      var(--main-green-color) 10%,
      var(--main-darker-green-color) 80%
    );
    border-radius: 100%;
  }
  .sphere:nth-child(7) {
    top: auto;
    right: 30%;
    bottom: 0%;
    left: auto;
    width: 13%;
    background-image: linear-gradient(
      120deg,
      var(--main-green-color) 0%,
      var(--main-darker-green-color) 100%
    );
    border-radius: 100%;
  }
  .sphere:nth-child(8) {
    display: none;
    top: 30%;
    right: 15%;
    bottom: auto;
    left: auto;
    width: 40%;
    background-image: linear-gradient(
      120deg,
      var(--main-green-color) 20%,
      var(--main-darker-green-color) 50%
    );
    border-radius: 100%;
  }
}
.section-destacados {
  padding: 10vw;
  background: linear-gradient(
    0deg,
    var(--main-green-color) 15%,
    var(--main-darker-green-color) 100%
  );

  position: relative;
  z-index: -1;
  /* Propiedades adicionales */
  background-size: cover;
  background-blend-mode: overlay; /* Permite que los colores se mezclen */
  display: grid;
  min-height: 50dvh;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: min-content;
  grid-auto-rows: 1fr;
  place-items: center;
  gap: 40px;
  header {
    grid-row: 1;
    grid-column: 1/-1;
    padding-bottom: 20px;
    h2 {
      color: white;
    }
  }
  .card-destacado {
    width: 100%;
    height: fit-content;
    div {
      aspect-ratio: 3/2;
      width: 80%;
      height: auto;
      margin: auto;
      border-radius: 20px;
      -webkit-box-shadow: 0px 0px 20px 6px rgba(0, 0, 0, 0.18);
      -moz-box-shadow: 0px 0px 20px 6px rgba(0, 0, 0, 0.18);
      box-shadow: 0px 0px 20px 6px rgba(0, 0, 0, 0.18);
      a img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 25px;
      }
    }
  }
}
@media (max-width: 768px) {
  .back-balls .sphere:nth-child(8) {
    display: initial;
  }
  .section-destacados {
    grid-template-columns: 1fr;
  }
  .card-destacado {
    width: 70%;
  }
}

/* SECCION DE VIDEOS */

.video-adapted {
  p {
    padding-bottom: 5px;
  }
  div {
    aspect-ratio: auto;
    iframe {
      width: 100%;
      border-radius: 25px;
    }
  }
}

.galeria-videos {
  padding-top: 0px;
  grid-template-columns: 1fr 1fr 1fr;
}

.bottom-wave {
  position: relative;
  overflow: visible;
  margin-bottom: 200px;
  &::after {
    content: "";
    position: absolute;
    z-index: -1;
    bottom: 0%;
    left: 0%;
    width: 100%;
    height: 100px;
    background-color: var(
      --main-lighter-green-color
    ); /* Color que quieras para el fondo */
    mask-image: url("data:image/svg+xml,%3Csvg%20width%3D%221677%22%20height%3D%22197%22%20viewBox%3D%220%200%201677%20197%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M193%2040C147%2015.6981%20101.5%200.500002%200.5%200.5V179.5L1677%20196V4.99998C1591.5%20-9%201525.53%2020.0328%201472%2047C1406.5%2080%201226.25%20120.893%201035.5%2040C844.5%20-41%20669.5%2025.5%20622%2040C595.284%2048.1554%20463.5%2087.5%20391.5%2086C319.5%2084.5%20267.214%2079.2075%20193%2040Z%22%20fill%3D%22%23ffffff%22%20stroke%3D%22%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    transform: rotateX(180deg) translateY(-100%); /* Ajusta la posición de la onda */
  }
}

@media (max-width: 768px) {
  .galeria-videos {
    grid-template-columns: 1fr;
  }
}

/* SECCION DE BIBLIOTECA DIGITAL */

.section-biblio {
  width: 100%;
  height: 100%;
  padding: 6vw;
  grid-template-columns: 2fr 1fr;
  position: relative;
  overflow-y: visible;
  overflow-x: clip;
  header {
    width: 40vw;
    max-width: 450px;
    min-width: 230px;

    position: absolute;
    aspect-ratio: 1 / 1;
    z-index: 1;
    top: 50%;
    right: 0%;
    transform: translate(30%, -50%);
    border-radius: 50%;
    overflow: visible;
    background-size: 100%;
    background-position: 200% 200%;
    background-image: conic-gradient(
      from 180deg at 50% 50%,
      var(--main-green-color) 5%,
      var(--main-dark-grey-color) 5%,
      var(--main-dark-grey-color) 45%,
      var(--main-green-color) 45%
    );
    background-repeat: no-repeat;
    border: 0px;

    &::after {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      height: 93%;
      width: 93%;
      border-radius: 50%;
      background-color: white;
      transform: translate(-50%, -50%);
      z-index: 1;
    }

    h2 a {
      color: var(--main-green-color);
      display: block;
      position: absolute;
      top: 50%;
      font-weight: 800;
      left: -50px;
      width: 50%;
      transform: translateY(-50%);
      background-color: white;
      z-index: 99;
      font-size: smaller;
    }
  }
}

.section-biblio2 {
  width: 100%;
  height: 100%;
  padding: 6vw;
  grid-template-columns: 2fr 1fr;
  position: relative;
  overflow-y: visible;
  overflow-x: clip;
  header {
    width: 40vw;
    max-width: 450px;
    min-width: 230px;

    position: absolute;
    aspect-ratio: 1 / 1;
    z-index: 1;
    top: 50%;
    right: 0%;
    transform: translate(30%, -50%);
    border-radius: 50%;
    overflow: visible;
    background-size: 100%;
    background-position: 200% 200%;
    background-image: conic-gradient(
      from 180deg at 50% 50%,
      var(--main-green-color) 5%,
      var(--main-dark-grey-color) 5%,
      var(--main-dark-grey-color) 45%,
      var(--main-green-color) 45%
    );
    background-repeat: no-repeat;
    border: 0px;

    &::after {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      height: 93%;
      width: 93%;
      border-radius: 50%;
      background-color: white;
      transform: translate(-50%, -50%);
      z-index: 1;
    }

    h2 {
      color: var(--main-green-color);
      display: block;
      position: absolute;
      top: 50%;
      font-weight: 800;
      left: -50px;
      width: 50%;
      transform: translateY(-50%);
      background-color: white;
      z-index: 99;
    }
  }
}
.pagination {
  text-align: center;
  a {
    color: var(--main-green-color);
  }
  span {
    color: var(--main-green-color);
    font-size: 21px;
    font-weight: 700;
  }
}

.card-biblio-container {
  display: grid;
  width: calc(60vw - 50px);
  min-height: 40vh;
  height: 100%;
  z-index: -999;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  place-items: center;
  gap: 50px;
  grid-template-rows: 1fr;
  grid-auto-rows: 1fr;
  padding-bottom: 40px;
}
.card-biblio {
  display: grid;
  margin: auto;
  width: 100%;
  height: 100%;
  background-color: white;
  border: 1.5px solid var(--main-green-color);
  border-radius: 10px;
  padding-block: 30%;
  text-align: start;
  -webkit-box-shadow: 5px 5px 0px 0px var(--main-green-color);
  -moz-box-shadow: 5px 5px 0px 0px var(--main-green-color);
  box-shadow: 5px 5px 0px 0px var(--main-green-color),
    10px 10px 0px 0px var(--main-light-green-color);
  p {
    display: grid;
    padding-inline: 1.7rem 0.5em;
    align-self: center;
    font-size: 1.7rem;
    font-weight: 500;
    text-wrap: balance;
    color: var(--main-dark-grey-color);
    a strong {
      color: var(--main-green-color);
    }
  }
}

@media (max-width: 768px) {
  .section-biblio {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    gap: 30px;
    header {
      position: relative;
      grid-column: 1;
    }
  }
  .card-biblio-container {
    grid-template-columns: 1fr;
    width: 80%;
    margin: auto;
  }
  .card-biblio p {
    font-size: 1.5rem;
  }
}

.buton-biblio {
  margin: auto;
  display: block;
}

/* SECCION DE PREGUNTS FRECUENTES */
.section-faq {
  padding-bottom: 50px;
}

.faq {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-block: 20px;
  border-radius: 5px;
  position: relative;
  background-color: white; /* Fondo blanco dentro de la caja */
}

.faq::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  z-index: -2;
  border-radius: 10px;
  background: linear-gradient(
    var(--main-orange-color) 10%,
    var(--main-green-color) 90%
  );
}

.faq::after {
  content: "";
  width: 50px;
  height: 50px;
  transform: rotate(45deg) translateY(50%);
  position: absolute;
  right: 10%;
  bottom: 0%;
  z-index: -1;
  background-color: white;
  border: 5px solid var(--main-green-color);
}

.faq-sombra-1 {
  position: absolute;
  right: 7%;
  top: 10px;
  z-index: -4;
  border-radius: 10px;
  padding-bottom: 25px;
  background: linear-gradient(
    var(--main-orange-color) 10%,
    var(--main-green-color) 90%
  );
  &::after {
    z-index: -6;
  }
  &::before {
    top: 5px;
    bottom: 5px;
    left: 5px;
    right: 5px;
    z-index: -5;
    background: white;
    border-radius: 5px;
  }
}

.faq-sombra-2 {
  position: absolute;
  right: 4.5%;
  top: 25px;
  z-index: -7;
  border-radius: 10px;
  background: linear-gradient(
    var(--main-orange-color) 10%,
    var(--main-green-color) 90%
  );
  &::after {
    z-index: -9;
  }
  &::before {
    top: 5px;
    bottom: 5px;
    left: 5px;
    right: 5px;
    z-index: -5;
    background: white;
    border-radius: 5px;
  }
}

.faq h2 {
  color: var(--main-dark-grey-color);
}

@media (max-width: 768px) {
  .faq h2 {
    font-size: 1.5rem;
  }
}

.back-semisphere {
  position: relative;
}
.back-semisphere::after {
  position: absolute;
  top: -150px;
  bottom: -150px;
  left: 0%;
  width: 100%;
  height: auto;
  content: "";
  overflow: visible;
  border-radius: 50% 50% 0% 0%;
  background-color: var(--main-lighter-green-color);
  z-index: -999;
}

/* SECCION DE INDICADORES */

.section-indicadores {
  position: relative;
  min-height: 50vh;
  z-index: 1;
  padding-inline: 7vw;
  padding-bottom: 100px;
  background-image: linear-gradient(
    180deg,
    var(--main-green-color) 0,
    var(--main-darker-green-color) 80%
  );
  display: grid;
  width: 100%;
  place-items: center;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  header {
    grid-column: 1/-1;
    h2 {
      color: white;
      font-size: 3.2rem;
      font-weight: 800;
      font-stretch: normal;
    }
  }
}

.card-circles-indicator {
  aspect-ratio: 1/1;
  width: 210px;
  background-image: linear-gradient(
    350deg,
    var(--main-light-green-color) 0%,
    var(--main-green-color) 20%,
    var(--main-darker-green-color) 70%
  );
  -webkit-box-shadow: 5px 5px 0px 0px var(--main-dark-grey-color);
  -moz-box-shadow: 5px 5px 0px 0px var(--main-dark-grey-color);
  box-shadow: 3px 3px 20px 2px rgba(54, 51, 51, 0.18);
  border-radius: 100%;
  display: grid;
  gap: 0;
  overflow: clip;
  grid-auto-rows: min-content;
  place-items: center;
  place-content: center;
  text-align: center;
  color: white;
  p {
    font-size: 1.1rem;
    padding-inline: 10px;
    text-wrap: pretty;
  }
}

.top-rounded-color {
  &::before {
    content: "";
    position: absolute;
    top: -69px;
    left: 0%;
    height: 70px;
    width: 100%;
    z-index: -1;
    border-radius: 10rem 10rem 0px 0px;
    background-image: linear-gradient(
      0deg,
      var(--main-green-color) 80%,
      var(--main-light-green-color) 200%
    );
  }
}

.bottom-color {
  position: relative;
  overflow: visible;
  &::after {
    content: "";
    position: absolute;
    z-index: -1;
    bottom: 1%;
    left: 0%;
    width: 100%;
    height: 100px;
    background-image: linear-gradient(
      var(--main-darker-green-color) 20%,
      var(--main-dark-grey-color) 100%
    );
    transform: translateY(100%);
  }
}
.bottom-color-green {
  position: relative;
  overflow: visible;
  &::after {
    content: "";
    position: absolute;
    z-index: -1;
    bottom: 1%;
    left: 0%;
    width: 100%;
    height: 100px;
    background-color: var(--main-lighter-green-color);
    transform: translateY(100%);
  }
}
/* SECCION DE REDES */
.section-redes {
  position: relative;
  padding-inline: 10vw;
  display: flex;
  margin-top: -100px;
  background-color: white;
  justify-content: space-evenly;

  align-items: center;
  z-index: 1;
}
.top-white-rounded {
  &::before {
    z-index: 999;
    background-image: linear-gradient(0deg, white, white);
  }
}
.redes {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
@media (max-width: 768px) {
  .section-indicadores {
    header {
      h2 {
        font-size: 2rem;
      }
    }
  }

  .section-redes {
    padding-inline: 0vw;
  }

  .redes {
    width: 50px;
    height: 50px;
    a {
      font-size: 2rem;
    }
    img {
      place-items: center;
    }
  }
}

/*FOOTER */
.main-footer {
  position: relative;
  overflow: visible;
  margin-top: 75px;
  padding-bottom: 20px;
  min-height: 30vh;
  display: grid;
  max-width: 100%;
  padding-inline: 9vw;
  gap: 50px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  place-items: center;
  place-content: center;
  background-color: var(--main-green-color);
  color: white;
  font-size: 4rem;
  &::before {
    z-index: 1;
  }
}

.footer_img_1 {
  height: auto;
  width: 100%;
}

.footer_img_2 {
  height: auto;
  width: 100%;
}

.footer_img_3 {
  height: auto;
  width: 100%;
}

.logo_redes {
  height: 70px;
  width: 70px;
  border-radius: 100px;
}

@media (max-width: 768px) {
  .logo_redes {
    height: 50px;
    width: 50px;
  }
}

.page-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  section {
    h1 {
      text-align: center;
    }
  }
}

.body-page {
  font-family: "Nunito Sans", sans-serif;
  background-color: var(--main-lighter-green-color);
  flex-grow: 1;
  margin-top: 150px;
  padding-top: 40px;
  padding-inline: 8vw;
  padding-bottom: 80px;
  p {
    background-color: var(--main-lighter-green-color);
  }
}

@media (max-width: 1550px) {
  .body-page {
    padding-inline: 6vw;
  }
}

@media (max-width: 1365px) {
  .body-page {
    padding-inline: 7vw;
  }
}
@media screen and (max-width: 800px) {
  .page-content h1 {
    padding-top: 20px;
  }
}

.archive-noticia {
  text-align: center;
  margin-bottom: 16px;
}
.ver-mas:hover {
  background-color: #01a499;
  color: #f2fbfa;
}

.card-noticia-ind {
  margin-bottom: 100px;
  padding-left: 0 !important;
}

.section-noticias-2 {
  margin-inline: 7vw;
  display: grid;
  place-items: center;
  min-height: 50vh;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

  gap: 50px;
  height: 100%;
}

.title-noticia {
  text-align: left;
  font-size: 56px;
  font-family: "Nunito Sans", sans-serif;
  margin-left: 160px;
  margin-right: 160px;
  margin-bottom: 16px;
  font-weight: 650;
  color: #111827;
}

.date-noticia {
  text-align: center;
  margin-bottom: 32px;
}

.bajada-noticia {
  text-align: left;
  font-size: 32px;
  margin-left: 160px;
  margin-right: 160px;
  margin-bottom: 32px;
  color: #4b5563;
}

.images-noticia {
  display: flex;
  width: 100%;
  height: auto;
  justify-content: center;
}

.image-noticia {
  img {
    width: 800px;
    height: auto;
  }
}

@media (max-width: 950px) {
  .image-noticia {
    img {
      width: 600px;
    }
  }
}

@media (max-width: 750px) {
  .image-noticia {
    img {
      width: 400px;
    }
  }
}

.content-noticia {
  margin-top: 80px;
  margin-left: 160px;
  margin-bottom: 160px;
  margin-right: 160px;
  p {
    font-size: 24px;
    color: #1f2937;
  }
}

.title-otras-noticias {
  h2 {
    text-align: center;
  }
}

/* Estilos Para el carrusel*/

.container-carousel {
  position: relative;
  width: 100%;
  height: 60dvh;
  overflow: hidden;
}

.carruseles {
  width: 1000%;
  height: 100%;
  display: flex;
  overflow: hidden;
}

/* Estilos Para el Slider del inicio*/

.slider-section {
  background-color: white;
  height: 100%;
  overflow: hidden;
  border-radius: 0px 0 5vw 5vw;
}

.slider-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-left,
.btn-right {
  position: absolute;
  top: 50%;
  font-size: 3rem;
  background-color: #3b3a3a85;
  border-radius: 5px;
  transform: translate(0, 100%);
  cursor: pointer;
  color: white;
  height: 50px;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
  transition: 0.5s ease;
  user-select: none;
}

.btn-left:hover,
.btn-right:hover {
  background-color: #333333ed;
  color: #fff;
}

.btn-left {
  left: 10px;
  padding-right: 2px;
}

.btn-right {
  right: 10px;
  padding-left: 2px;
}

@media (max-width: 768px) {
  .container-carousel{
    height: 30dvh;
  }
  .btn-left,
  .btn-right {
    transform: translate(0, -50%);
    font-size: 2rem;
    height: 30px;
    width: 30px;
  }

  .btn-left {
    padding-right: 0px;
  }

  .btn-right {
    padding-left: 0px;
  }
}


/*desde aquí revisar estilos*/
/* 1) Permite overflow visible en la barra de navegación */
.main-nav,
.menu-container {
  overflow: visible !important;
  z-index: 1000;
  position: relative;
}

.menu-superior li.menu-item-has-children .sub-menu {
  background-color: white !important;
  border-radius: 8px;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 100%;           /* Asegura que sea al menos tan ancho como su padre */
  width: max-content;        /* Se ajusta al contenido */
  max-width: 300px;          /* Limita el ancho si el texto es muy largo */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
  white-space: nowrap;       /* Evita saltos de línea innecesarios */
}

/* ACTIVA EL SUBMENÚ AL HACER HOVER EN EL PADRE */
.menu-superior > li {
  position: relative;
}

.menu-superior > li.menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
}

.menu-superior .sub-menu li {
  width: 100%;
  margin: 0;
  padding: 0;
}
.menu-superior .sub-menu li a {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background-color: white !important;
  color: #222;
  font-size: 1rem;
  text-decoration: none;
  box-sizing: border-box;
  white-space: normal; /* permite que los textos largos usen varias líneas */
}
.menu-superior .sub-menu li a:hover {
  background-color: #f2f2f2;
  color: var(--main-green-color);
}


/* ─────────  NOTICIA INDIVIDUAL (hero superpuesto) ───────── */

.noticia-hero{
  width:auto;
  height:800px;                 /* ajusta a tu gusto o usa vh */
  background-size:cover;
  background-position:center;
  position:relative;
  overflow:hidden;
  margin-inline: 30px;
}

.noticia-hero-overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:0 2rem;
  color:#fff;
  /* degradado de arriba transparente a abajo oscuro */
  background:linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.7) 100%);
}

.badge-hero{
  background:#000;
  padding:4px 12px;
  font-size:12px;
  text-transform:uppercase;
  border-radius:3px;
  margin-bottom:10px;
}

.hero-title{
  font-size:clamp(28px,4vw,42px);
  line-height:1.2;
  margin:0;
  font-weight:800;
}

.hero-date{
  margin-top:10px;
  font-size:14px;
  opacity:.8;
}

/* cuerpo de la noticia */
.noticia-body{
  max-width: 90%;
  margin:60px auto 120px;
  padding:0 20px;
}

.noticia-body > h2:first-of-type{
  font-size:32px;          /* igual que .bajada-noticia */
  font-weight:600;
  line-height:1.4;
  color:#4b5563;
  text-align:left;
  margin:40px 0;
}

/* ─── Más separación entre párrafos dentro de la noticia ─── */
.noticia-body p{
  margin-bottom:1.6em;   /* antes era 1em → ajusta a tu gusto */
  line-height:1.55;      /* opcional: mejora la legibilidad */
}

/* Si quieres que el último párrafo no deje espacio extra: */
.noticia-body p:last-child{
  margin-bottom:0;
}


.bajada-noticia{
  font-size:1.7rem;
  font-weight:600;
  line-height:1.4;
  color:#4b5563;
  margin-bottom:40px;
}

.noticia-body img{
  max-width:100%;
  height:auto;
  margin:60px 0;
}

/* responsive */
@media(max-width:768px){
  .noticia-hero{height:260px;}
  .bajada-noticia{font-size:1.4rem;}
}

/* Bloque/iframe de vídeo dentro de la noticia */
.noticia-body iframe,
.noticia-body .wp-block-embed,
.noticia-body .wp-block-video,
.noticia-body .video-adapted{
  display:block;
  margin:40px auto;        /* centrado */
  width:100%;              /* llena el contenedor */
  max-width:960px;         /* ← cambia este valor para agrandarlo */
  aspect-ratio:16/9;       /* mantiene proporción (soportado en navegadores modernos) */
}

/* Compatibilidad para navegadores sin aspect-ratio */
.noticia-body iframe{
  height:auto;
}
.noticia-body .aligncenter{
  margin-left:auto!important;
  margin-right:auto!important;
}

/* ─── Centrado definitivo de imágenes dentro de la noticia ─── */

/* Para el bloque de Gutenberg (figure) y para <img> del editor clásico */
.noticia-body .wp-block-image.aligncenter,
.noticia-body img.aligncenter,
.noticia-body img.wp-align-center,
.noticia-body .aligncenter{
    float:none !important;          /* anula float:left/right que traiga el tema */
    display:block !important;       /* las convierte en bloque */
    margin:40px auto !important;    /* centra y deja aire arriba/abajo */
    text-align:center;              /* centra caption en Gutenberg */
    max-width:100%;                 /* nunca sobrepasa el contenedor */
}

/* Si el figure contiene el caption, centramos también el texto */
.noticia-body .wp-block-image.aligncenter figcaption{
    text-align:center;
}

/* ─── Título principal de la página de noticias ─── */
.news-page-title{
  text-align: center;
  margin-bottom: 2rem; /* Aumenta si es necesario */
  padding-top: 4rem;   
}

.news-page-title h1{
  position:relative;
  font-size: 2.8rem;
  font-weight:700;
  color:var(--main-green-color);
  line-height:1.2;
  display:inline-block;
  padding-bottom:12px;
}

.news-page-title h1::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:60%;
  height:6px;
  border-radius:3px;
  background:linear-gradient(90deg,
           var(--main-green-color) 0%,
           var(--main-light-green-color) 60%,
           var(--main-orange-color) 100%);
}

/* ------------ HERO ------------------ */
.home-hero{
  width:100%;
  height:60vh;          /* ó 70-80vh si quieres que se vea más alto   */
  min-height:400px;
  background-size:cover;
  background-position:center;
}

/* ------------ ESLOGAN --------------- */
.home-slogan{
  background:var(--main-green-color);  /* mismo verde que el hero */
  color:#fff;
  text-align:center;
  padding:2.5rem 1rem 3rem;            /* ↑ separa el texto de la imagen */
}

.home-slogan h1{
  font-size:clamp(10px,4vw,30px);
  font-weight:800;
  line-height:1.25;
  margin:0;
}

/* oculta por completo cualquier slider antiguo */
.container-carousel,
.carruseles,
.btn-left,
.btn-right{
    display:none !important;
}

/* ─────────  NAV - color inverso  ───────── */
.main-nav{
  background:#fff;                 /* barra blanca  */
  box-shadow:0 2px 8px rgba(0,0,0,.08);
  min-height: 140px;   /* ligera sombra opcional */
  width:auto;          /* asegura 100 % */
  margin:0;            /* sin "padding" lateral */
  border-radius:0;
  margin-top: 12px;
}

.main-nav li > a{                    /* enlaces nivel 1 */
  color:#111 !important;           /* texto negro (o tu gris oscuro) */
}

.main-nav li > a:hover,
.main-nav li > a:focus{
  color:var(--main-green-color);   /* mismo verde para hover/focus  */
  background:rgba(0,0,0,.03);      /* pequeño feedback opcional     */
}

/* submenu (si usas dropdown)
.menu-superior .sub-menu{
  background:#fff;                 
}

.menu-superior .sub-menu li a{
  color:#111;
}
.menu-superior .sub-menu li a:hover{
  background:rgba(0,0,0,.05);
  color:var(--main-green-color);
} */

/* Altura real que le diste al menú */
:root{
  --alto-header: 140px;   /* pon aquí el mismo valor del min-height del menú */
}

/* Portada (hero) */

.home-hero {
  margin-top: 10px !important;
}

/* Asegúrate de que los enlaces del menú estén en posición relativa */
.main-nav a {
  position: relative;
  color: #000;         /* texto negro */
  padding: 1rem 1.5rem; /* igual que ya tenías */
  text-decoration: none;
}

/* Crea la franja naranja como pseudo-elemento */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;           /* grosor de la línea */
  width: 0;              /* comenzamos en 0 */
  background: #e37604;   /* color naranja */
  transition: width 0.3s ease;
}

/* Al pasar el ratón o en el ítem activo, expandimos la línea */
.main-nav a:hover::after,
.main-nav .current-menu-item > a::after {
  width: 100%;
}


.menu-superior > li {
  margin: 0 1rem; /* separación horizontal */
  position: relative;
}

/* ───── Indicador naranja sólo en nivel 1 ───── */
.main-nav > ul > li > a {
  position: relative;
}
.main-nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: #e37604; /* naranja */
  transition: width 0.3s ease;
}
.main-nav > ul > li > a:hover::after,
.main-nav > ul > li.current-menu-item > a::after {
  width: 100%;
}

/* ───── Submenú: sin indicador de línea ───── */
.menu-superior .sub-menu li a::after {
  display: none;
}

/* ───── Submenú: texto naranja en hover/activo ───── */
.menu-superior .sub-menu li a:hover,
.menu-superior .sub-menu li.current-menu-item > a {
  color: #e37604 !important;
}

/* ───── Un poco más de separación entre opciones de menú ───── */
.menu-superior > li {
  margin: 0 1.5rem;
}

.main-nav {
  position: relative;
  top: 12px;
  padding-top: 0;
}

/* ─── ESTILOS PARA "¿QUÉ HACEMOS?" ─── */
.home-what {
  width: 100%;
  margin: 3rem auto 5rem;
  max-width: 1200px;
  padding: 0 1.5rem;
}

.what-header h2 {
  background: linear-gradient(135deg, var(--main-green-color), var(--main-green-color) 80%, var(--main-light-green-color));
  color: #fff;
  font-size: 2.2rem;
  text-align: center;
  padding: 1.2rem 0;
  margin: 0 auto 2rem;
  max-width: 90%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.what-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--main-orange-color);
}

.what-description {
  max-width: 80%;
  margin: 0 auto 2.5rem;
  padding: 1.5rem 2rem;
  border-left: 5px solid var(--main-orange-color);
  background-color: rgba(245, 245, 245, 0.8);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.what-description p {
  color: var(--main-dark-grey-color);
  line-height: 1.8;
  font-size: 1.2rem;
  margin: 0;
  letter-spacing: 0.01em;
}

.what-links {
  background: linear-gradient(to bottom, var(--main-light-green-color), var(--main-light-green-color) 95%, var(--main-green-color));
  padding: 2rem;
  max-width: 90%;
  margin: 0 auto;
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.what-links a {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  border-bottom: none;
}

.what-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: var(--main-orange-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.what-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.what-links a:hover::after {
  width: 80%;
}

.what-links .icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-right: 1rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  padding: 0.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.what-links a:hover .icon {
  background-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.icon-admision {
  background-image: url('<?= get_stylesheet_directory_uri() ?>/imgs/icon-admision.svg');
}

.icon-capacitaciones {
  background-image: url('<?= get_stylesheet_directory_uri() ?>/imgs/icon-capacitaciones.svg');
}

.icon-vinculacion {
  background-image: url('<?= get_stylesheet_directory_uri() ?>/imgs/icon-vinculacion.svg');
}

/* ─── Responsive ─── */
@media (min-width: 769px) and (max-width: 1024px) {
  .what-links {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .what-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .home-what {
    margin: 2rem auto 4rem;
  }
  
  .what-header h2 {
    font-size: 1.8rem;
    max-width: 95%;
    padding: 1rem 0;
  }
  
  .what-description, .what-links {
    max-width: 95%;
  }
  
  .what-description {
    padding: 1.2rem 1.5rem;
  }
  
  .what-links {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  
  .what-links a {
    padding: 1rem;
  }
  
  .what-description p {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .what-header h2 {
    font-size: 1.6rem;
  }
  
  .what-links a {
    font-size: 1.1rem;
  }
  
  .what-description p {
    font-size: 1rem;
  }
}

/* ─── BASE: usa estilos de "¿Qué hacemos?" ─── */

.home-resources .what-links {
  /* en lugar de grid, forzamos listado vertical */
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom, var(--main-light-green-color), var(--main-light-green-color) 95%, var(--main-green-color));
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  margin: 0 auto 5rem;
}

.home-resources .what-links a {
  /* cada enlace a pantalla completa */
  padding: 1rem 1.5rem;
  margin-bottom: 0.5rem;
  background-color: rgba(255,255,255,0.1);
  border-radius: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.home-resources .what-links a:last-child {
  margin-bottom: 0;
}

.home-resources .what-links a::after {
  /* línea naranja centrada */
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: var(--main-orange-color);
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

.home-resources .what-links a:hover {
  background-color: rgba(255,255,255,0.2);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.home-resources .what-links a:hover::after {
  width: 80%;
}

/* íconos */
.home-resources .icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  margin-right: 1rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
  padding: 0.3rem;
  background-color: rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}
.home-resources .what-links a:hover .icon {
  background-color: rgba(255,255,255,0.4);
  transform: scale(1.1);
}

/* ─── Responsive ─── */
@media (max-width:768px) {
  .home-resources .what-links {
    padding: 1.5rem;
  }
  .home-resources .what-links a {
    padding: 0.75rem;
    font-size: 1rem;
  }
}

/* ─── TÍTULOS AZULES PARA AMBAS SECCIONES ─── */
.home-what .what-header h2,
.home-resources .what-header h2 {
  /* sustituye por el código exacto de tu azul */
  background: #50b0d8 !important;
}

/* si quieres mantener la línea naranja inferior, dejémosla: */
.home-what .what-header h2::after,
.home-resources .what-header h2::after {
  background: var(--main-orange-color); /* tu naranja actual */
}

.section-divider {
  width: 93%;
  max-width: none;
  height: 3px;                                 /* línea fina */
  margin: 1rem auto 0.5rem auto;                       /* espacio arriba y abajo */
  background: linear-gradient(
    to right,
    rgba(227, 118, 4, 0) 0%,                   /* transparente al inicio */
    rgba(227, 118, 4, 0.8) 50%,                /* naranja al centro */
    rgba(227, 118, 4, 0) 100%                  /* transparente al final */
  );
  border-radius: 2px;                          /* esquinas suaves */
  position: relative;
  
}

.section-divider::before,
.section-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--main-orange-color);        /* puntitos finales */
  border-radius: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
}

.section-divider::before {
  left: -4px;                                  /* puntito izquierdo */
}

.section-divider::after {
  right: -4px;                                 /* puntito derecho */
}


/* ── Sección Voluntariado ── */
.dfii-volunteer {
  padding: 2rem 1rem;
  margin: 0 auto;
  max-width: 1100px;
  margin-top: 0;
  padding-top: 0;
  background-color: var(--main-lighter-green-color);
  
}


.dfii-volunteer__header h2 {
  font-size: 1.6rem;
  padding: 0.5rem 1rem;
  color: #01a499;
  background: rgba(1, 164, 153, 0.15);  /* Fondo más visible pero no demasiado intenso */
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 0.8rem;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(1, 164, 153, 0.2);  /* Sombra sutil */
  border-left: 4px solid #01a499;  /* Borde izquierdo para mejor énfasis */
  letter-spacing: 0.5px;  /* Mejor espaciado de letras */
  text-transform: uppercase;  /* Mayúsculas para mayor impacto */
}

.dfii-volunteer__description {
  max-width: 800px;
  margin: 0 auto 2.5rem;
  color: #394049;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: justify;
}


.dfii-volunteer-slider {
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
}

.dfii-volunteer-slider .slide {
  position: relative;
  padding: 0 1rem;
}

.dfii-volunteer-slider .slide img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dfii-volunteer-slider .slide-caption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #5e6269;
}

/* Flechas personalizadas */
.slick-prev, .slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--main-orange-color);
  z-index: 10;
  opacity: 0.8;
}

.slick-prev:hover, .slick-next:hover {
  opacity: 1;
}

/* Puntos debajo del slider */
.slick-dots {
  bottom: -30px;
}

.slick-dots li button:before {
  font-size: 12px;
  color: var(--main-orange-color);
}

.slick-dots li.slick-active button:before {
  opacity: 1;
  color: var(--main-orange-color);
}


/* ─── Experiencias ─── */
.home-experiences {
  background: var(--main-green-color);
  padding: 4rem 1.5rem;
  width: 90%;
  max-width: 1200px;
  margin: 3rem auto;
  margin-top: 0;
}


.experiences-header h2 {
  color: #fff;
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 2.5rem;
  margin-top: 0;
}

.experiences-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.experience-card {
  /* Degradado suave de un azul más oscuro a uno más claro */
  background: linear-gradient(135deg, #048ba8, #50b0d8);
  color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Al pasar el ratón, elevamos ligeramente y reforzamos la sombra */
.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}


.exp-text {
  font-style: italic;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.exp-author {
  display: flex;
  align-items: center;
  margin-top: 1rem;
}

.exp-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 0.75rem;
  border: 2px solid var(--main-light-green-color);
}

.exp-info .exp-name {
  display: block;
  font-weight: bold;
  color: #fff;
}

.exp-info .exp-role {
  display: block;
  font-size: 0.9rem;
  color: #f2fbfa;
}

/* Responsive */
@media (max-width: 768px) {
  .experiences-header h2 {
    font-size: 2.2rem;
  }
  .exp-text {
    font-size: 0.95rem;
  }
}

/* Tamaño más compacto para imágenes */
.dfii-volunteer-slider .vol-slide img {
  max-width: 700px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  display: block;
}


/* ====== VOLUNTEER SLIDER ====== */
.dfii-volunteer-slider { margin: 2rem auto; max-width: 1000px; }

.vol-slide img{
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.vol-caption{
  text-align: center;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--main-dark-grey-color);
}

.slick-dots li button:before{
  font-size: 12px;
  color: var(--main-orange-color);
}

.slick-prev:before,
.slick-next:before{
  font-size: 28px;
  color: var(--main-orange-color);
}


/* ====== V O L U N T A R I A D O  –  S L I D E R ====== */
.dfii-volunteer-slider { position: relative; }

/* Flechas redondas, con la punta anaranjada */
.dfii-volunteer-slider .slick-prev,
.dfii-volunteer-slider .slick-next{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--main-orange-color);
  display: flex !important;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  cursor: pointer;
  padding: 0;
  opacity: .9;
  transition: background .25s, opacity .25s;
  font-size: 0;          /* ocultamos cualquier texto interno */
}

.dfii-volunteer-slider .slick-prev:hover,
.dfii-volunteer-slider .slick-next:hover{
  background: var(--main-orange-color);
  opacity: 1;
}

/* Dibujamos la punta de la flecha con bordes */
.dfii-volunteer-slider .slick-prev::before,
.dfii-volunteer-slider .slick-next::before{
  content: "";
  width: 14px;
  height: 14px;
  border-top: 3px solid var(--main-orange-color);
  border-right: 3px solid var(--main-orange-color);
  transition: border-color .25s;
}

.dfii-volunteer-slider .slick-prev:hover::before,
.dfii-volunteer-slider .slick-next:hover::before{
  border-color: #fff;          /* punta blanca sobre fondo naranja */
}

/* Orientaciones */
.dfii-volunteer-slider .slick-prev{ left: -70px; }
.dfii-volunteer-slider .slick-next{ right: -70px; }

.dfii-volunteer-slider .slick-prev::before{ transform: rotate(-135deg); }
.dfii-volunteer-slider .slick-next::before{ transform: rotate(45deg); }

/* ─── DOTS del slider de voluntariado ─── */
.dfii-volunteer-slider .slick-dots{
  display: flex !important;      /* los alinea en horizontal */
  justify-content: center;
  gap: 8px;                      /* separación entre círculos */
  bottom: -30px;                 /* la misma distancia que ya tenías */
  list-style: none;
}

.dfii-volunteer-slider .slick-dots li{
  margin: 0;                    /* anulamos márgenes por defecto */
}

.dfii-volunteer-slider .slick-dots li button{
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: var(--main-orange-color);
  border: none;
  font-size: 0;                 /* oculta el número que Slick inyecta */
  opacity: .35;                 /* punto tenue */
  cursor: pointer;
}

.dfii-volunteer-slider .slick-dots li.slick-active button{
  opacity: 1;                   /* punto encendido */
}

.dfii-volunteer__social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px; /* espacio entre íconos y título */
}

.social-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-icon--instagram {
  background: #d6326c; /* Color rosa para Instagram */
}

.social-icon--mail {
  background: #ff5533; /* Color naranja para correo */
}

.elementor-screen-only {
  position: absolute;  
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .social-icon {
      width: 50px;
      height: 50px;
      font-size: 20px;
  }
}


.social-icon--instagram i {
  color: white;/* Color rosa para Instagram */
}
.social-icon--mail i {
  color: white; /* Color naranja para correo */
}

/* Ajustes para que el menú quede en una línea */
.main-nav ul li a {
  font-size: 1rem;        /* de 1.35rem baja a 1rem o lo que necesites */
  padding: 12px 16px;      /* reduce un poco el padding horizontal */
  white-space: nowrap;     /* evita que los textos se envuelvan */
}


.dfii-panorama-slider {
  margin: 2rem auto;
  max-width: 900px;
}

.panorama-slide {
  padding: 0 10px;
  text-align: center;
}

.panorama-slide img {
  max-width: 100%;
  width: 250px;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vol-caption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #555;
}

/* Estilo solo para imágenes del carrusel de panoramas */
.dfii-panorama-slider .vol-slide img {
  max-width: 250px;
  max-height: 350px;
  margin: 0 auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/*Seecion de videos */
/* Contenedor principal con fondo azul semi-transparente */
.videos-container-wrapper {
  background-color: rgba(80, 176, 216, 0.35); /* Color #50b0d8 con 35% de opacidad */
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 30px rgba(80, 176, 216, 0.4);
  margin: 0 auto 3rem;
  position: relative;
  max-width: 1200px;
  overflow: hidden;
  border: 2px solid rgba(80, 176, 216, 0.5); /* Borde más visible */
}

/* Efecto decorativo con círculos */
.videos-container-wrapper::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: rgba(80, 176, 216, 0.25);
  z-index: 0;
}

.videos-container-wrapper::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: rgba(80, 176, 216, 0.25);
  z-index: 0;
}

.dfii-volunteer__header {
  text-align: center;
  margin-bottom: 0.5rem;
}

.dfii-volunteer__header h2 {
  color: #2c5d73;
  font-size: 2.2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.8rem;
}

.dfii-volunteer__header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #50b0d8, #87ceeb);
  border-radius: 2px;
}

.videos-embed {
  max-width: 900px;
  margin: 0 auto 40px auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0 20px;
}

.video-item iframe {
  width: 100% !important;
  height: 200px !important;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Mejoramos la descripción */
.dfii-volunteer__description {
  text-align: center;
  margin-bottom: 2.5rem;
}

.dfii-volunteer__description p {
 text-align: center;
  max-width: 850px;
  margin: 0 auto 40px auto;
  padding: 0 10px;
  color: #2d5060;
  font-size: 1rem;
}


.dfii-volunteer__description p a {
  color: #2c7fb8; /* Un azul más oscuro que combina con el tema */
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  padding-bottom: 2px;
}

.dfii-volunteer__description p a:hover {
  border-color: #50b0d8;
  color: #50b0d8;
}

/* Nuevo layout con video principal y 2 columnas laterales */
.videos-container {
  display: flex;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Columna izquierda */
.videos-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 25%;
}

/* Video principal destacado en el centro */
.videos-embed {
  width: 50%;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(80, 176, 216, 0.5);
  border: 3px solid rgba(80, 176, 216, 0.7);
}

.videos-embed iframe {
  width: 100% !important;
  height: 400px !important;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

/* Columna derecha */
.videos-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 25%;
}

/* Ocultamos la cuadrícula original */
.videos-grid {
  display: none;
}

/* Estilo para los elementos de video */
.video-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  height: 190px; /* Altura fija para las miniaturas laterales */
  border: 3px solid rgba(80, 176, 216, 0.6);
}

.video-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(80, 176, 216, 0.35);
  border-color: rgba(80, 176, 216, 0.7);
}

/* Efecto de brillo al pasar el cursor */
.video-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.video-item:hover::before {
  opacity: 1;
}

.video-item iframe {
  width: 100% !important;
  height: 100% !important;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.video-item:hover iframe {
  transform: scale(1.02);
}

/* Diseño responsivo */
@media (max-width: 992px) {
  .videos-container {
    flex-direction: column;
  }
  
  .videos-left, .videos-right, .videos-embed {
    width: 100%;
  }
  
  .videos-left, .videos-right {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .videos-left .video-item, .videos-right .video-item {
    width: calc(50% - 1rem);
    height: 180px;
  }
}

@media (max-width: 768px) {
  .videos-container-wrapper {
    padding: 1.5rem;
  }

  .videos-left, .videos-right {
    flex-direction: column;
  }
  
  .videos-left .video-item, .videos-right .video-item {
    width: 100%;
    height: 200px;
  }
  
  .videos-embed iframe {
    height: 350px !important;
  }
}

@media (max-width: 480px) {
  .videos-container-wrapper {
    padding: 1rem;
  }

  .videos-embed iframe {
    height: 220px !important;
  }
  
  .videos-left .video-item, .videos-right .video-item {
    height: 180px;
  }
}

.dfii-volunteer,
.section-noticias,
.section-galeria,
.section-destacados,
.section-biblio,
.section-indicadores,
.section-faq,
.section-redes {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 40px;
  padding-bottom: 40px;
}

.home-que-hacemos-y-recursos {
  width: 100%;
  padding: 4rem 2rem;
  background-color: var(--main-lighter-green-color);
  display: flex;
  justify-content: center;
}

.home-dual-column {
  display: flex;
  gap: 2rem;
  max-width: 1600px;
  width: 100%;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
}
/* Ajuste visual para alinear el título derecho */
.home-resources {
  margin-top: 47px; /* ajusta según necesidad: 6px, 8px o 10px suelen bastar */
}

@media (max-width: 992px) {
  .home-dual-column {
    flex-direction: column;
    align-items: center;
  }

  .home-dual-column .home-what,
  .home-dual-column .home-resources {
    width: 100%;
  }
}


.home-dual-column .home-what,
.home-dual-column .home-resources {
  flex: 1 1 48%;
  padding: 2rem;
  min-height: 550px; /* ← NUEVO: más altura mínima */
}

/* Reduce márgenes y paddings */
.home-what .what-header h2,
.home-resources .what-header h2 {
  font-size: 2.2rem;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
}

.home-what .what-description {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  padding: 1.5rem;
  line-height: 1.8;
}

.home-what .what-links a,
.home-resources .what-links a {
  font-size: 1.2rem;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.2rem;
  border-radius: 10px;
}

/* Reduce íconos */
.home-what .icon,
.home-resources .icon {
  width: 1.8rem;
  height: 1.8rem;
}

.icon-img {
  width: 1.6rem;
  height: 1.6rem;
  margin-right: 0.5rem;
  vertical-align: middle;
  object-fit: contain;
}

.icon {
  font-size: 1.4rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}


/* Responsive para móviles */
@media (max-width: 992px) {
  .home-dual-column {
    flex-direction: column;
    align-items: center;
  }

  .home-dual-column .home-what,
  .home-dual-column .home-resources {
    width: 100%;
  }
}

/* Reducción extrema del espacio superior de la sección de voluntariado */
.dfii-volunteer {
  padding-top: 0px !important;
  margin-top: 0 !important;
}

.dfii-volunteer__header {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.dfii-volunteer h2 {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.noticias-titulo {
  font-size: 2.4rem;
  color: var(--main-dark-grey-color);
  text-align: center;
  margin-bottom: 2rem;
}

.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.noticias-encabezado {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 7vw;
  margin-bottom: 1.5rem;
}

.noticias-titulo {
  font-size: 2.2rem;
  color: var(--main-dark-grey-color);
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.noticias-sublinea {
  width: 65px;
  height: 4px;
  background-color: var(--main-green-color);
  margin-top: 12px;
  border-radius: 2px;
}

.voluntariado-wrapper {
  background-color: #f2fbfa; /* Mismo color que .section-galeria */
  width: 100%;
  padding: 70px 0;
  padding-top: 30px;
}

.voluntariado-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 7vw;
  text-align: center;
}

.voluntariado-title {
  display: inline-block;
  font-size: 2.2rem;
  color: #2c5d73;
  font-weight: 800;
  margin-bottom: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(1, 164, 153, 0.15);
  border-left: 4px solid #01a499;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(1, 164, 153, 0.2);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.voluntariado-description {
  color: #394049;
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.panoramas-wrapper {
  background-color: white !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  padding-bottom: 200px;
}
.dfii-panorama {
  background-color: white !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.voluntariado-wrapper {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.panoramas-wrapper h2,
.dfii-panorama h2 {
  margin-top: 0 !important;
  padding-top: 10px !important;
}

.fondo-voluntariado {
  background-color: #f2fbfa; /* Mismo fondo que usas en voluntariado */
  padding: 0;
  margin: 0;
}

/* Evita márgenes extra entre ambas secciones */
.dfii-volunteer__title {
  margin-top: 80px;
  text-align: center;
  background-color: #d4f3f3;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.08);
  font-size: 2rem;
  color: #2d5060;
  font-weight: bold;
}

.dfii-volunteer__title h2 {
  margin: 0;
  font-size: 2rem;
}

.subrayado {
  width: 80px;
  height: 4px;
  background-color: #01a499;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* Elimina margen inferior excesivo del carrusel */
.dfii-volunteer-slider {
  margin-bottom: 0;
  padding-bottom: 0;
}

.dfii-volunteer-slider.dfii-panorama-slider {
  margin-bottom: 0; /* evita separación visual con experiencias */
  padding-bottom: 60px; /* asegura que el fondo cubra debajo de los dots */
  background-color: #f2fbfa; /* mismo fondo que voluntariado */
}

.voluntariado-wrapper {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.dfii-volunteer {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.home-experiences {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0;
}

.dfii-volunteer-slider .slick-dots {
  margin-top: 10px;
  padding-bottom: 0;
}


/* PÁGINA QUIENES SOMOS */

.academicos-container {
  display: grid;
 grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
  gap: 20px;
  margin: 0 auto;
  padding: 30px 40px; 
  max-width: 1200px;  
}


.academico-card {
  background-color: #01a499;
  border-radius: 15px;
  width: 100%;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}


.academico-video-container {
  width: 100%;
  margin-bottom: 15px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  padding-bottom: 177.78%;
  height: 0;
  background-color: #000;
}


.academico-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 105%;
  height: 105%;
  object-fit: cover;
}


.academico-nombre {
  font-size: 16px;
  font-weight: bold;
  color: white;
  margin: 0 0 8px 0;
}


.academico-rol {
  font-size: 14px;
  color: #dfd7d7;
  margin: 0 0 15px 0;
}




@media screen and (max-width: 1200px) {
  .academicos-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 900px) {
  .academicos-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .academicos-container {
    grid-template-columns: 1fr;
  }
  
  .academico-card {
    max-width: 100%;
  }
}

.section-header-orange {
  background: linear-gradient(to right, #ff8c00, #f47c00, #e65c00);
  width: 100%;
  padding: 30px 0; 
  display: flex;
  align-items: left;
  justify-content: left;
  padding-left: 50px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  margin-bottom: 0;

}

.header-content1 {
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
}

.titulo-orange {
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
  text-align: left;
}

.section-header-turquoise {
  padding: 50px 20px;
  text-align: center;
  position: relative;
}

.titulo-equipo {
  font-size: 2.5rem;
  font-weight: 700;
  color: black;
  margin: 0;
  position: relative;
  display: inline-block;
  padding: 0 15px;
}

.titulo-equipo::before,
.titulo-equipo::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40px;
  height: 3px;
  background-color: #f47c00;
  transform: translateY(-50%);
}

.titulo-equipo::before {
  left: -50px;
}

.titulo-equipo::after {
  right: -50px;
}

.subrayado-naranjo {
  height: 4px;
  width: 120px;
  background: linear-gradient(to right, #ff8c00, #f47c00, #e65c00);
  margin: 15px auto 0 auto;
  border-radius: 10px;
}

.academico-media-container {
  width: 100%;
  margin-bottom: 15px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  padding-bottom: 177.78%;
  height: 0;
  background-color: #000;
}

.academico-video,
.academico-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 105%;
  height: 105%;
  object-fit: cover;
  border-radius: 20px;
}


.divisor-seccion-naranja {
  height: 4px;
  width: 80%;
  margin: 20px auto;
  border-radius: 10px;
  background: linear-gradient(to right, #ff8c00, #f47c00, #e65c00);
}



.seccion-proposito-verde {
  background-color: var(--main-green-color); 
  padding: 4rem 1rem;
  text-align: center;
  color: white;
  margin: 0 200px;
}

.contenedor-proposito {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem; 
}

.titulo-blanco {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #fff;
}

.texto-destacado-blanco {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #fff;
}

.video-central iframe {
  width: 100%;
  max-width: 800px;
  height: 450px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}


.seccion-accion-depto-dosfilas {
  padding: 80px 30px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}


.fila-textos {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
 
}

.bloque-texto {
  flex: 1;
  min-width: 300px;
}

.bloque-texto h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0px;
  text-align: center;
}

.bloque-texto p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.8;
  white-space: pre-line;
  text-align: justify;
}


.fila-imagenes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.tarjeta-imagen {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 100%;
  max-width: 350px;
  text-align: center;
}

.tarjeta-imagen img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.tarjeta-imagen:hover img {
  transform: scale(1.03);
}



@media (max-width: 768px) {
  .fila-textos {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bloque-texto {
    width: 100%;
  }

  .fila-imagenes {
    flex-direction: column;
    align-items: center;
  }

  .tarjeta-imagen {
    max-width: 100%;
  }

  .tarjeta-imagen img {
    height: auto;
  }
}

.video-en-centro {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 40px 0;
}

.video-en-centro iframe {
  max-width: 100%;
  width: 800px;
  height: 450px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}


.lineas-accion {
  padding: 80px 30px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.lineas-accion-titulo {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  color: #1a1a1a;
}

.lineas-accion-contenedor {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.linea-accion {
  max-width: 260px;
  flex: 1 1 220px;
  text-align: center;
}

.linea-accion .icono {
  background-color: #e06600;
  color: white;
  font-size: 1.6rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.linea-accion h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.linea-accion p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  text-align: justify;
}


@media (max-width: 768px) {
  .lineas-accion-contenedor {
    flex-direction: column;
    align-items: center;
  }

  .linea-accion {
    max-width: 90%;
  }
}



.timeline-horizontal {
  padding: 60px 0;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  max-width: 1100px;
  position: relative;
  padding-top: 40px;
  width: 100%;
}

.timeline-wrapper::before {
  content: "";
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--main-orange-color);
  z-index: 0;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 250px;
  z-index: 1;
}

.timeline-item .dot {
  background-color: var(--main-green-color);
  color: white;
  font-weight: bold;
  border: 3px solid white;
  width: 28px;
  height: 28px;
  font-size: 0.9rem;
  border-radius: 50%;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 0 0 3px var(--main-orange-color);
  margin-bottom: 8px;
  z-index: 2;
}

.timeline-item .content {
  background-color: #f9f9f9;
  padding: 6px 10px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  text-align: center;
  font-size: 0.85rem;
  max-width: 200px;
}
.timeline-item h3 {
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  color: var(--main-dark-grey-color);
  line-height: 0.9;
  margin-bottom: 0;
  margin-top: 8px;
}
.timeline-item .content p {
  margin: 0;
  padding: 0;
  line-height: 1.2;
  margin-top: -110px; 
}

/*
.simple-footer {
  background-color: #393f49;
  color: white;
  font-size: 0.5rem;
  padding: 12px 20px;
  border-top: 1px solid #aaa;
  height: 150px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
  padding-top: 50px;
}

.simple-footer p {
  margin: 0;
  line-height: 1.4;
}*/

.footer-simplificado {
  background-color: #393f49;
  color: white;
  font-size: 0.85rem;
  min-height: 100px;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  border-top: 1px solid #aaa;
}

.footer-simple-content {
  max-width: 1000px;
  width: 100%;
  padding-bottom: 10px;
}

.footer-simple-content p {
  margin: 0;
  line-height: 1.4;
  font-size: 0.85rem;
}

/*Sección de cupo*/
.cupo-hero {
  position: relative;
  width: 100%;
  height: 55vh;
  overflow: hidden;
}

.cupo-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.2);
}

.cupo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
}

.cupo-btn {
  background-color: #50b0d8;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
}

.cupo-caption {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: white;
  color: #333;
  padding: 8px 14px;
  font-size: 0.85rem;
  box-shadow: -4px 4px 10px rgba(0,0,0,0.1);
  transform: translate(0, 50%);
}

.cupo-opciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 60px 20px;
  background: white;
  gap: 40px;
}

.opcion-item {
  width: 180px;
  text-align: center;
  font-weight: 600;
  color: #222;
}

.opcion-item img {
  width: 100px;
  margin-bottom: 12px;
}

.cupo-opciones .opcion-item a {
  color: #222 !important; /* o #000 si prefieres negro absoluto */
  text-decoration: none;
}

.cupo-opciones .opcion-item a:hover {
  text-decoration: underline; /* o elimina esta línea si no quieres subrayado al pasar el mouse */
}
/*Page fases del proceso*/

.proceso-header {
  background-color: #394049;
  color: white;
  padding: 2rem;
  text-align: left;
}

.proceso-header h1 {
  font-size: 2.2rem;
  margin: 0;
}

.proceso-header h2 {
  font-size: 1.2rem;
  font-weight: 300;
  margin-top: 0.5rem;
}

.proceso-descripcion {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  align-items: center;
}

.intro-icon img {
  width: 80px;
}

.fases {
  padding: 2rem;
}

.fases h3 {
  color: #e37604;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.fase {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.fase img {
  width: 40px;
  flex-shrink: 0;
}

.fase ul {
  margin: 0.5rem 0 0;
  padding-left: 1rem;
}

.tabla-evaluacion {
  margin-top: 1rem;
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

.tabla-evaluacion th,
.tabla-evaluacion td {
  border: 1px solid #ccc;
  padding: 10px 14px;
  text-align: left;
}

.tabla-evaluacion thead {
  background-color: #f5f5f5;
  font-weight: bold;
}

@media (max-width: 768px) {
  .proceso-descripcion, .fase {
    flex-direction: column;
    align-items: flex-start;
  }

  .tabla-evaluacion td, .tabla-evaluacion th {
    font-size: 0.85rem;
  }
}

/*pagina requisitos*/

.requisitos-header {
  background-color: #394049;
  color: white;
  padding: 2rem;
  text-align: left;
}

.requisitos-header h1 {
  font-size: 2.2rem;
  margin: 0;
}

.requisitos-header p {
  font-size: 1.1rem;
  font-weight: 300;
  margin-top: 0.5rem;
}

.requisitos-contenido {
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
}

.requisitos-contenido h2 {
  font-size: 1.4rem;
  color: #333;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.requisitos-lista {
  list-style: none;
  padding-left: 0;
}

.requisitos-lista li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.requisitos-lista img {
  width: 28px;
  flex-shrink: 0;
  margin-top: 5px;
}

.requisitos-lista span {
  font-size: 1rem;
  color: #222;
  line-height: 1.5;
}

.criterios-titulo {
  color: #e37604;
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.criterios-lista {
  list-style: disc;
  padding-left: 2rem;
  font-size: 1rem;
  color: #222;
}

.criterios-lista li {
  margin-bottom: 0.75rem;
}

/*page carreras y cupos */
.carreras-header {
  background-color: #394049;
  color: white;
  padding: 2rem;
  text-align: left;
}

.carreras-header h1 {
  font-size: 2.2rem;
  margin: 0;
}

.carreras-header h2 {
  font-size: 1.2rem;
  font-weight: 300;
  margin-top: 0.5rem;
}

.carreras-tabla {
  padding: 2rem;
  overflow-x: auto;
}

.carreras-tabla table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.carreras-tabla th,
.carreras-tabla td {
  border: 1px solid #ccc;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.carreras-tabla thead {
  background-color: #f5f5f5;
  font-weight: bold;
}

.carreras-tabla tbody tr:hover {
  background-color: #f9f9f9;
}
/* --- Ajuste general para sección Fases del proceso --- */
.fases {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* --- Cada fase alineada y ligeramente centrada --- */
.fase {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-left: 1rem;
}

/* --- Tamaño uniforme de íconos --- */
.fase img {
  width: 42px;
  height: auto;
  flex-shrink: 0;
  margin-top: 6px;
}

/* --- Contenido de texto de cada fase --- */
.fase div {
  max-width: 800px;
}

/* --- Ajustes visuales suaves al texto --- */
.fase strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.fase ul, .fase p {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/*Normativas vigentes*/


.normativa-header p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0;
}

.normativa-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 2rem;
  background: #ffffff;
}

.columna {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  flex: 1;
}

.normativa-btn {
  display: block;
  background-color: #0288d1;
  color: white;
  text-decoration: none;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: background 0.3s ease;
  text-align: left;
}

.normativa-btn:hover {
  background-color: #0277bd;
}

.titulo-normativa {
  background-color: #d5f5f9; /* celeste suave */
  padding: 3rem 1rem 2.5rem;
  text-align: center;
  border-radius: 8px 8px 0 0;
}

.titulo-normativa h1 {
  font-size: 2.3rem;
  font-weight: 700;
  color: #224b5e; /* azul institucional */
  margin: 0;
  margin-top: 0;
  text-transform: uppercase;
}

.titulo-normativa .subrayado {
  width: 60px;
  height: 4px;
  background-color: #0097a7; /* verde-azulado */
 
}

.imageSelector {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}

.cardImageSlider {
  border: 1px solid #ddd;
  padding: 10px;
  background: #fff;
  border-radius: 4px;
  width: 150px;
  text-align: center;
}

/* ================================
   PROGRAMAS Y SERVICIOS - ESTILOS MEJORADOS
   ================================ */

/* Variables adicionales para esta sección */
:root {
  --programas-primary: #01a499;
  --programas-secondary: #49beb6;
  --programas-accent: #e37604;
  --programas-dark: #394049;
  --programas-light: #f2fbfa;
  --programas-white: #ffffff;
  --programas-text: #5e6269;
}

/* === CABECERA DE PROGRAMAS === */
.programas-header {
  background: linear-gradient(135deg, var(--programas-primary) 0%, var(--programas-secondary) 100%);
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
}

.programas-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(1, 164, 153, 0.8) 0%, rgba(73, 190, 182, 0.6) 100%);
  z-index: 1;
}

.programas-header-segundo {
background-color: #353b43; /* gris oscuro agradable */
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
}

.programas-header-segundo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
 background-color: #353b43; /* gris oscuro agradable */
  z-index: 1;
}


.programas-header-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.programas-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.programas-header p {
  font-size: 1.3rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* === PROGRAMAS ACADÉMICOS MEJORADOS === */
.programas-academicos {
  background: var(--programas-light);
  padding: 4rem 2rem;
}

.programas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* CARD BASE - SIN ALTURA FIJA */
.programa-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(1, 164, 153, 0.1);
  overflow: hidden;
  /* REMOVIDO: min-height fijo */
}

.programa-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(1, 164, 153, 0.25);
  border-color: rgba(1, 164, 153, 0.3);
}

/* CLASES ESPECÍFICAS PARA CARDS CON Y SIN IMAGEN */
.programa-card-con-imagen {
  /* Altura automática - se adapta al contenido */
  min-height: 400px; /* Mínimo razonable para cards con imagen */
}

.programa-card-sin-imagen {
  /* Altura completamente automática para texto */
  min-height: auto;
  max-height: fit-content;
}

/* HEADER DE LA CARD */
.programa-header {
  background: linear-gradient(135deg, var(--programas-primary), var(--programas-secondary));
  padding: 1.5rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0; /* No se contrae */
}

.programa-icono {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.programa-icono i {
  font-size: 1.5rem;
}

.programa-header h3 {
  font-size: 1.4rem;
  margin: 0;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  line-height: 1.3;
}

/* CONTENIDO DE LA CARD - MEJORADO */
.programa-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.5rem;
}

/* TEXTO CON IMAGEN */
.programa-card-con-imagen .programa-texto {
  color: var(--programas-text);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* TEXTO SIN IMAGEN - EXPANDIDO Y CENTRADO */
.programa-texto-expandido {
  color: var(--programas-text);
  line-height: 1.7;
  font-size: 1.1rem;
  text-align: justify;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  flex-grow: 1;
  display: flex;
  align-items: flex-start;
  min-height: 80px; /* Mínimo para evitar cards muy pequeñas */
}

/* IMAGEN */
.programa-imagen {
  margin: 1rem 0 1.5rem 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.programa-imagen img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.programa-imagen:hover img {
  transform: scale(1.05);
}

/* BOTONES - SIEMPRE AL FINAL */
.programa-actions {
  margin-top: auto; /* Se empuja hacia abajo */
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(1, 164, 153, 0.1);
  flex-shrink: 0; /* No se contrae */
}

/* BOTONES MEJORADOS */
.btn-programa {
  padding: 0.8rem 1.6rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-align: center;
  border: 2px solid var(--programas-primary);
  color: var(--programas-primary);
  background: transparent;
  position: relative;
  overflow: hidden;
  min-width: 100px;
  display: inline-block;
}

.btn-programa::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-programa:hover::before {
  left: 100%;
}

.btn-programa:hover {
  background: var(--programas-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(1, 164, 153, 0.3);
}

.btn-formulario {
  background: var(--programas-accent);
  color: white;
  border-color: var(--programas-accent);
}

.btn-formulario:hover {
  background: #d66a03;
  border-color: #d66a03;
  box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

/* === SERVICIOS PARA LA COMUNIDAD === */
.servicios-generales {
  background: var(--programas-white);
  padding: 4rem 2rem;
}

.servicios-generales h2 {
  text-align: center;
  color: var(--programas-dark);
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* SERVICIO CARD - ESTRUCTURA FLEXIBLE */
.servicio-card {
  display: flex;
  flex-direction: column;
  background: var(--programas-white);
  border: 2px solid var(--programas-light);
  border-radius: 15px;
  padding: 0;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  /* SIN altura mínima fija para adaptarse al contenido */
}

.servicio-card:hover {
  border-color: var(--programas-primary);
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(1, 164, 153, 0.2);
}

/* CONTENIDO DEL SERVICIO */
.servicio-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 2rem;
}

.servicio-icono {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #40ace6, #50b0d8); /* azul institucional */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(1, 164, 153, 0.2);
  flex-shrink: 0;
}

.servicio-card:hover .servicio-icono {
  transform: scale(1.15);
}

.servicio-icono i {
  font-size: 1.8rem;
  color: white;
}

.servicio-card h3 {
  font-size: 1.4rem;
  color: var(--programas-dark);
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

/* TEXTO ADAPTABLE */
.servicio-card p {
  color: var(--programas-text);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  flex-grow: 1; /* Ocupa el espacio disponible */
  text-align: justify;
  min-height: 60px; /* Mínimo para evitar cards muy pequeñas */
}

/* IMAGEN DEL SERVICIO */
.servicio-imagen {
  margin: 1rem 0 1.5rem 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.servicio-imagen img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.servicio-imagen:hover img {
  transform: scale(1.05);
}



/* BOTÓN SIEMPRE AL FINAL */
.servicio-actions {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(1, 164, 153, 0.1);
}

.btn-servicio {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, #40ace6, #50b0d8); /* azul institucional */
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 120px;
}

.btn-servicio::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-servicio:hover::before {
  left: 100%;
}

.btn-servicio:hover {
  background: var(--programas-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(1, 164, 153, 0.3);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .programas-header h1 {
    font-size: 2.2rem;
  }
  
  .programas-header p {
    font-size: 1.1rem;
  }
  
  .programas-grid,
  .servicios-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* PROGRAMAS RESPONSIVE */
  .programa-card-con-imagen,
  .programa-card-sin-imagen {
    min-height: auto;
  }
  
  .programa-texto-expandido {
    font-size: 1rem;
    padding: 0.5rem 0;
    min-height: 60px;
    text-align: left;
  }
  
  .programa-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn-programa {
    width: 100%;
    text-align: center;
  }
  
  .programa-header {
    padding: 1.2rem;
  }
  
  .programa-content {
    padding: 1.2rem;
  }
  
  /* SERVICIOS RESPONSIVE */
  .servicio-content {
    padding: 1.5rem;
  }
  
  .servicio-card p {
    font-size: 1rem;
    text-align: left;
    min-height: 50px;
  }
  
  .servicio-icono {
    width: 60px;
    height: 60px;
  }
  
  .servicio-icono i {
    font-size: 1.6rem;
  }
  
  .btn-servicio {
    width: 100%;
    text-align: center;
    padding: 0.8rem 1rem;
  }
}

@media (max-width: 480px) {
  .programas-grid,
  .servicios-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* PROGRAMAS MOBILE */
  .programa-header h3 {
    font-size: 1.2rem;
  }
  
  .programa-icono {
    width: 40px;
    height: 40px;
  }
  
  .programa-icono i {
    font-size: 1.2rem;
  }
  
  /* SERVICIOS MOBILE */
  .servicio-content {
    padding: 1.2rem;
  }
  
  .servicio-card h3 {
    font-size: 1.2rem;
  }
  
  .servicio-icono {
    width: 50px;
    height: 50px;
  }
  
  .servicio-icono i {
    font-size: 1.4rem;
  }
  
  .servicio-card p {
    min-height: 40px;
  }
}


/* === AJUSTES RAZONABLES === */
.ajustes-razonables {
  background: linear-gradient(135deg, var(--programas-primary), var(--programas-secondary));
  padding: 4rem 2rem;
  color: white;
}

.ajustes-header {
  text-align: center;
  margin-bottom: 3rem;
}

.ajustes-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.ajustes-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.ajustes-tipos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.ajuste-tipo {
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.ajuste-tipo h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.ajuste-tipo p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn-ajuste-estudiante,
.btn-ajuste-funcionario {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--programas-white);
  color: var(--programas-primary);
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-ajuste-estudiante:hover,
.btn-ajuste-funcionario:hover {
  background: var(--programas-accent);
  color: white;
  transform: translateY(-3px);
}

/* === RECURSOS CON TABS === */
.recursos-destinatarios {
  background: var(--programas-light);
  padding: 4rem 2rem;
}


.recursos-tabs {
  max-width: 1200px;
  margin: 0 auto;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.tab-button {
  padding: 1rem 2rem;
  background: var(--programas-white);
  border: 2px solid var(--programas-primary);
  color: var(--programas-primary);
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.tab-button:hover,
.tab-button.active {
  background: var(--programas-primary);
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.recursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.recurso-card {
  background: var(--programas-white);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(1, 164, 153, 0.1);
}

.recurso-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(1, 164, 153, 0.1);
}

.recurso-icono {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--programas-accent), #d66a03);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.recurso-icono i {
  color: white;
  font-size: 1.2rem;
}

.recurso-card h4 {
  font-size: 1.2rem;
  color: var(--programas-dark);
  margin-bottom: 1rem;
}

.recurso-card p {
  color: var(--programas-text);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.btn-recurso {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--programas-accent);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-recurso:hover {
  background: #d66a03;
  transform: translateY(-2px);
}

/* === ACCESIBILIDAD === */
.accesibilidad-recursos {
  background: var(--programas-white);
  padding: 4rem 2rem;
}



.accesibilidad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.accesibilidad-card {
  background: var(--programas-light);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.accesibilidad-card:hover {
  border-color: var(--programas-primary);
  transform: translateY(-5px);
  background: var(--programas-white);
}

.accesibilidad-icono {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #40ace6, #50b0d8); /* azul institucional */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.accesibilidad-icono i {
  font-size: 1.5rem;
  color: white;
}

.accesibilidad-card h3 {
  font-size: 1.3rem;
  color: var(--programas-dark);
  margin-bottom: 1rem;
}

.accesibilidad-card p {
  color: var(--programas-text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Botones de accesibilidad - Estilos específicos para la sección de accesibilidad */
.accesibilidad-recursos .btn-accesibilidad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--programas-accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: auto;
}

.accesibilidad-recursos .btn-accesibilidad:hover {
  background: #d66a03;
  transform: translateY(-2px);
}

/* Contenedor para múltiples botones en accesibilidad */
.accesibilidad-card .btn-accesibilidad + .btn-accesibilidad {
  margin-left: 0.5rem;
}

/* Responsive para botones de accesibilidad */
@media (max-width: 768px) {
  .accesibilidad-recursos .btn-accesibilidad {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
    text-align: center;
  }
  
  .accesibilidad-card .btn-accesibilidad + .btn-accesibilidad {
    margin-left: 0;
  }
}

/* Botones de accesibilidad - Estilos generales (para otras secciones) */
.btn-accesibilidad {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #f57c00, #ff9800);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-accesibilidad-acceder + .btn-accesibilidad-solicitar {
  margin-top: 0.5rem;
}

.btn-accesibilidad:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}


/* === SECCIÓN DE CONTACTO === */
.contacto-info {
  background: var(--programas-dark);
  color: white;
  padding: 4rem 2rem;
}

.contacto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contacto-card {
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.contacto-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--programas-secondary);
}

.contacto-card p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
  line-height: 1.6;
}

.btn-contacto {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--programas-primary);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-contacto:hover {
  background: var(--programas-secondary);
  transform: translateY(-2px);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .programas-header h1 {
    font-size: 2.2rem;
  }
  
  .programas-header p {
    font-size: 1.1rem;
  }
  
  .acciones-grid,
  .programas-grid,
  .servicios-grid {
    grid-template-columns: 1fr;
  }
  
  .tabs-nav {
    flex-direction: column;
    align-items: center;
  }
  
  .tab-button {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  .recursos-grid,
  .accesibilidad-grid,
  .contacto-grid {
    grid-template-columns: 1fr;
  }
  
  .programa-actions {
    flex-direction: column;
  }
  
  .btn-programa {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .programas-header {
    padding: 2rem 1rem;
  }
  
  .programas-acciones-rapidas,
  .programas-academicos,
  .servicios-generales,
  .ajustes-razonables,
  .recursos-destinatarios,
  .accesibilidad-recursos,
  .contacto-info {
    padding: 2rem 1rem;
  }
  
  .programa-header {
    flex-direction: column;
    text-align: center;
  }
  
  .ajustes-tipos {
    grid-template-columns: 1fr;
  }
}

/* === ANIMACIONES === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.programa-card,
.servicio-card,
.recurso-card,
.accesibilidad-card {
  animation: fadeInUp 0.6s ease-out;
}

/* === CONTAINER UTILITIES === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

.evento-card {
  background-color: white;
  border: 1px solid var(--main-green-color);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.evento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.eventos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.evento-tarjeta {
  background-color: white;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.evento-tarjeta:hover {
  transform: translateY(-5px);
}

.evento-imagen img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 4px solid var(--main-green-color);
}

.evento-info {
  padding: 15px 20px;
}

.evento-info h3 {
  margin-bottom: 10px;
  color: var(--main-green-color);
  font-size: 1.4rem;
}

.evento-info p {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 6px;
}

.evento-acciones {
  margin-top: auto;
  padding: 0 20px 20px;
}

.evento-acciones a.btn-formulario {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--main-orange-color);
  color: white;
  border-radius: 8px;
  text-decoration: none;
}

.body-p {
  margin-top: 0;
  padding-top: 0;
}
.ajuste-botones {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-ajuste-personalizado {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: #01a499;
  padding: 12px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-ajuste-personalizado i {
  font-size: 1.1rem;
}

.btn-ajuste-personalizado:hover {
  background: #f2f2f2;
  transform: translateY(-2px);
}

/*
.biblioteca-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}


.titulo-seccion {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.biblioteca-digital {
  background: var(--programas-white);
  padding: 4rem 2rem;
}

.biblioteca-digital h2 {
  text-align: center;
  color: var(--programas-dark);
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.imagen-biblioteca {
  width: 100%;
  height: 160px;
  object-fit: cover;
}*/

/* Sección Biblioteca Digital - Versión Mejorada */
.biblioteca-digital {
  background: var(--programas-light);
  padding: 5rem 2rem;
  position: relative;
}



.biblioteca-digital .subtitle {
  text-align: center;
  color: var(--programas-text);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Grid de la biblioteca - Máximo 3 por fila, centrado */
.biblioteca-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px; /* Reducido para mejor control con 3 columnas */
  margin: 0 auto;
  justify-content: center;
}

/* Limitamos a máximo 3 columnas */
@media (min-width: 900px) {
  .biblioteca-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    max-width: 1020px; /* 3 * 320px + gaps */
  }
}

/* Para 1-2 elementos: centrar mejor */
.biblioteca-grid:has(.recurso-card:nth-child(1):last-child) {
  max-width: 320px; /* Un solo elemento centrado */
}

.biblioteca-grid:has(.recurso-card:nth-child(2):last-child) {
  max-width: 680px; /* Dos elementos centrados */
}

/* Tarjetas de recursos */
.recurso-card.estilo-biblioteca {
  background: var(--programas-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid rgba(1, 164, 153, 0.1);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 320px;
  margin: 0 auto; /* Centrar cada tarjeta */
}

.recurso-card.estilo-biblioteca:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--programas-primary);
}

/* Contenedor de imagen perfectamente cuadrado */
.recurso-card.estilo-biblioteca .recurso-icono {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%; /* Ratio 1:1 perfecto */
  overflow: hidden;
  background: #f8fafc;
  flex-shrink: 0;
}

/* Imagen cuadrada con objeto-fit optimizado */
.imagen-biblioteca {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: all 0.3s ease;
  display: block;
}

/* Efecto hover en la imagen */
.recurso-card.estilo-biblioteca:hover .imagen-biblioteca {
  transform: scale(1.05);
}

/* Overlay sutil para mejorar legibilidad */
.recurso-card.estilo-biblioteca .recurso-icono::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom, 
    rgba(0, 0, 0, 0) 0%, 
    rgba(0, 0, 0, 0.03) 50%,
    rgba(0, 0, 0, 0.08) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.recurso-card.estilo-biblioteca:hover .recurso-icono::after {
  opacity: 1;
}

/* Ícono de respaldo cuando no hay imagen - Perfectamente centrado */
.recurso-card.estilo-biblioteca .recurso-icono i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  color: var(--programas-primary);
  background: var(--programas-white);
  padding: 1.2rem;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 1;
}

.recurso-card.estilo-biblioteca:hover .recurso-icono i {
  transform: translate(-50%, -50%) scale(1.1);
  color: var(--programas-primary);
}

/* Indicador de tipo de archivo */
.recurso-card.estilo-biblioteca .tipo-archivo {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* Contenido de la tarjeta */
.recurso-card.estilo-biblioteca .contenido-tarjeta {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.recurso-card.estilo-biblioteca h4 {
  color: var(--programas-dark);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8rem;
}

.recurso-card.estilo-biblioteca p {
  color: var(--programas-text);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 1.5rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Botón de descarga */
.recurso-card.estilo-biblioteca .btn-accesibilidad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--programas-accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: auto;
}

.recurso-card.estilo-biblioteca .btn-accesibilidad:hover {
  background: #d66a03;
  transform: translateY(-2px);
}

/* Mensaje cuando no hay documentos */
.biblioteca-digital .no-documentos {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--programas-text);
  font-size: 1.1rem;
  padding: 3rem;
  background: var(--programas-white);
  border-radius: 12px;
  border: 2px dashed rgba(1, 164, 153, 0.2);
  max-width: 500px;
  margin: 0 auto;
}

.biblioteca-digital .no-documentos i {
  font-size: 3rem;
  color: var(--programas-primary);
  margin-bottom: 1rem;
  display: block;
  opacity: 0.5;
}

/* Responsive - Optimizado para centrado */
@media (max-width: 768px) {
  .biblioteca-digital {
    padding: 3rem 1rem;
  }
  
  .biblioteca-digital h2 {
    font-size: 2rem;
  }
  
  .biblioteca-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 600px; /* Máximo 2 en tablets */
  }
  
  .recurso-card.estilo-biblioteca {
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .biblioteca-digital h2 {
    font-size: 1.75rem;
  }
  
  .biblioteca-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 320px; /* Una sola columna en móviles */
  }
  
  .recurso-card.estilo-biblioteca {
    max-width: 100%;
  }
  
  .recurso-card.estilo-biblioteca .contenido-tarjeta {
    padding: 1.25rem;
  }
}

/* Soporte para navegadores sin :has() */
@supports not selector(:has(*)) {
  .biblioteca-grid {
    justify-items: center;
  }
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.recurso-card.estilo-biblioteca {
  animation: fadeInUp 0.6s ease forwards;
}

.recurso-card.estilo-biblioteca:nth-child(1) { animation-delay: 0.1s; }
.recurso-card.estilo-biblioteca:nth-child(2) { animation-delay: 0.2s; }
.recurso-card.estilo-biblioteca:nth-child(3) { animation-delay: 0.3s; }
.recurso-card.estilo-biblioteca:nth-child(4) { animation-delay: 0.4s; }
.recurso-card.estilo-biblioteca:nth-child(5) { animation-delay: 0.5s; }
.recurso-card.estilo-biblioteca:nth-child(6) { animation-delay: 0.6s; }

/**/

/* — Submenú "Solicitudes" — */
.submenu-cuentas {
  background: var(--programas-white);
  padding: 1rem 0;
  border-bottom: 3px solid var(--programas-light);
}

.submenu-cuentas .container ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 0;
  list-style: none;
}

.submenu-cuentas .container ul li a {
  color: var(--programas-dark);
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.submenu-cuentas .container ul li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--programas-accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.submenu-cuentas .container ul li a:hover::after,
.submenu-cuentas .container ul li.current-menu-item a::after {
  width: 100%;
}

/* — Sección Solicitudes — */
.cuentas-usuario {
  background: var(--programas-light);
  padding: 4rem 2rem;
}

.cuentas-usuario h2 {
  text-align: center;
  color: var(--programas-dark);
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.cuentas-usuario h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--programas-accent);
  border-radius: 2px;
}

/* — Grid de tarjetas — */
.cuentas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* igual que programas-grid */ 
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* — Tarjetas y botones ya están definidos como en programas — */
/* .programa-card, .programa-header, .programa-icono, .programa-content, .programa-actions, .btn-programa, .btn-formulario */ 

/* === Distribución de secciones de Cuentas en 2 filas === */
.cuentas-secciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.tarjeta-seccion {
  background: #f9ffff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}


.seccion-titulo {
  text-align: center;
  font-size: 2.5rem; /* Tamaño como cuentas-usuario h2 */
  color: var(--programas-dark); /* Mismo color que cuentas-usuario */
  font-weight: bold;
  position: relative;
  margin: 50px auto 30px;
}

.seccion-titulo::before,
.seccion-titulo::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 2px;
  background-color: #f57c00; /* naranja */
  vertical-align: middle;
  margin: 0 15px;
}

.accesibilidad-recursos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--programas-primary);
}

/*Pagina generica*/


.pagina-header {
  background-color: #394049;
  color: #fff;
  padding: 1.5rem 1rem !important;
  text-align: left;
  min-height: auto !important;
}

.pagina-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0;
}

.pagina-header h2 {
  font-size: 1.6rem;
  font-weight: 400;
  margin: 0;
}

.pagina-content {
  background: #fff;
  padding: 2rem 1rem;
}

/* Estilo del header */
.proceso-header h1 {
  font-size: 2.2em;
  color: white;
  margin: 40px 0;
}

/* Estilo general de cada sección */
.fases .fase {
  margin-bottom: 30px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

/* Imagen del ícono */
.fases .fase img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* Títulos dentro de cada fase */
.fases .fase strong {
  font-size: 1.5em;
  display: block;
  margin-bottom: 5px;
}

/* Texto descriptivo de cada fase */
.fases .fase p,
.fases .fase li,
.fases .fase table td {
  font-size: 1.2em;
  line-height: 1.6;
}

/* Tablas más legibles */
.fases .fase table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 10px;
}

.fases .fase table td {
  border: 1px solid #ccc;
  padding: 10px;
}

.tabla-carreras {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.tabla-carreras th {
  background-color: #2c3e50; /* color más oscuro como en tu imagen */
  color: white;
  padding: 10px;
  text-align: left;
}

.tabla-carreras td {
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
}

.tabla-carreras-wrap {
  overflow-x: auto;
}



.contacto-info {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.contacto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.contacto-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.contacto-icono {
  font-size: 40px;
  margin-bottom: 15px;
  color: #007c91;
}

.contacto-card p {
  color: #000 !important;
}
.descripcion-card {
  white-space: pre-line;
}

/* Prevenir scroll horizontal global sin afectar submenús */
html {
  overflow-x: hidden;
  width: 100vw;
  box-sizing: border-box;
}

/* Corrige posibles desbordes en contenedores principales, pero NO en body */
.container, .container-carousel, .main-content, .page-content, .content, .main-header, .main-footer, .section-header-turquoise, .section-header-orange, .section-galeria, .section-galeria-2, .section-destacados, .section-biblio, .section-biblio2, .section-indicadores, .section-faq, .section-redes, .body-page, .onlyPageContent {
  max-width: 100vw;
  box-sizing: border-box;
}

/* Imágenes y iframes nunca deben desbordar */
img, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Grids y flex que puedan crecer de más */
[class*="grid"], [class*="row"], [class*="col"], [class*="flex"] {
  min-width: 0;
  max-width: 100vw;
  box-sizing: border-box;
}

/* FOOTER: cubre toda la página de lado a lado, sin bordes ni esquinas redondeadas */
.main-footer, .footer-simplificado {
  width: 100vw !important;
  max-width: 100vw !important;
  left: 0;
  right: 0;
  border-radius: 0 !important;
  margin: 0 !important;
  padding-inline: 0 !important;
  gap: 0 !important;
  box-shadow: none !important;
}

.top-rounded-color, .bottom-color, .top-white-rounded, .bottom-color-green {
  border-radius: 0 !important;
}

.footer-simple-content {
  max-width: 100vw !important;
  width: 100vw !important;
  padding: 0 !important;
}

/* Elimina cualquier borde decorativo */
.main-footer::before, .main-footer::after,
.footer-simplificado::before, .footer-simplificado::after {
  display: none !important;
  content: none !important;
}

.temarios-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.temario-bloque {
  width: 320px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.temario-icono img {
  max-width: 70px;
  margin: 0 auto 1rem;
  display: block;
}

.temario-texto h3 {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  color: #e2761f;
}

.temario-texto h4 {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  color: #333;
  margin-bottom: 1rem;
}

.temario-texto p {
  font-size: 0.95rem;
  text-align: left;
  line-height: 1.5;
}
