/*
 * Function to keep font size consistent
 .selector { font-size: fs(x-small);}
 * You can see the current values and variables in _var-fonts.scss
 */
/*
* Function to use colors in our Scss
.selector { color: color(color-white);}
* You can see the current values and variables in _var-colors.scss
*/
@-webkit-keyframes candy {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes candy {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
/*------------------------------------*\
    $LAYOUT
\*------------------------------------*/
/**
 * Constant layout values, apart from these we can also declare values
 * for different blocks sizes and more.
 */
/*------------------------------------*\
    $COLORS
\*------------------------------------*/
/*
 * Brand colors
 */
/*
* Grey Scale
* This is mainly to hold back designers from adding 200 different greys ;)
*/
/*
* Colors Map
* We may also need a map with all these colors, to create classes.
*/
.ham {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  width: 3rem;
  height: 2rem;
  border: 0;
  background: transparent;
  gap: 0.65rem;
}

.ham > span {
  background: black;
  height: 2px;
  width: 100%;
  border-radius: 5px;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  -webkit-transform-origin: left;
          transform-origin: left;
}

.ham:hover span:first-child {
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}

.ham:hover span:nth-child(2) {
  opacity: 0;
}

.ham:hover span:last-child {
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
}

.cta {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: rgb(255, 255, 255);
  border: none;
  padding: 12px 24px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
}

/*------------------------------------*\
    $SITE
\*------------------------------------*/
html {
  background: rgb(255, 255, 255);
  font-size: 87.5%;
  -webkit-overflow-scrolling: touch;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  width: 100%;
  background-color: transparent;
  font-family: "Poppins", sans-serif;
  line-height: 1.5;
  color: #4d4d4d;
}

.topbar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background: rgb(255, 255, 255);
  margin: 0;
  padding: 10px 30px;
}

.topbar img {
  width: 150px;
}

.slide {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: 100%;
  height: 100vh;
  background: linear-gradient(143deg, #62C7E9, #62B171);
  background-size: 200% 150%;
  -webkit-animation: candy 20s ease infinite;
          animation: candy 20s ease infinite;
}

.content-slide {
  width: 100%;
  max-width: 100%;
  margin: auto;
  padding: 24px 5%;
  color: rgba(0, 0, 0, 0.7);
}

.content-slide h1 {
  font-size: clamp(6rem, 4vw + 0.8rem, 8rem);
  -webkit-margin-before: 0;
          margin-block-start: 0;
  -webkit-margin-after: -0.25em;
          margin-block-end: -0.25em;
  text-align: center;
}

.content-slide h3 {
  font-size: clamp(2rem, 2vw + 0.8rem, 4rem);
  font-weight: 100;
  -webkit-margin-before: 0;
          margin-block-start: 0;
  -webkit-margin-after: 0;
          margin-block-end: 0;
  text-align: center;
}

.is {
  font-weight: 100;
  color: #FFF737;
}

.diego {
  font-weight: 900;
}

.social {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.social a {
  text-decoration: none;
  color: rgba(0, 0, 0, 0.7);
}

.social a :visited {
  color: rgba(0, 0, 0, 0.7);
}

.social svg {
  padding: 12px;
}

.bio {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.content-bio {
  width: 100%;
  max-width: 51%;
  margin: auto;
  padding: 24px 5%;
  color: rgba(0, 0, 0, 0.7);
}

.content-bio h2 {
  font-size: clamp(3rem, 2vw + 0.8rem, 5rem);
  font-weight: 100;
  -webkit-margin-before: 0;
          margin-block-start: 0;
  -webkit-margin-after: 0;
          margin-block-end: 0;
  text-align: left;
}

.content-bio p {
  font-size: clamp(1.5rem, 1vw + 0.8rem, 2rem);
  font-weight: 300;
  -webkit-margin-before: 0;
          margin-block-start: 0;
  -webkit-margin-after: 1em;
          margin-block-end: 1em;
  text-align: left;
}

@media (max-width: 600px) {
  .content-bio {
    max-width: 90%;
  }
}
.footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background: rgb(255, 255, 255);
  margin: 0;
  padding: 10px 30px;
  margin-top: auto;
  font-weight: 100;
}

.footer img {
  width: 26px;
  padding: 0 14px;
}

/*------------------------------------*\
    $HEADER
\*------------------------------------*/

header {
    width: 100%;
    background-color: #f8f8f8; /* Añade el color que quieras para el fondo */
    box-shadow: 0 0 16px rgba(9, 45, 66, .25);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content { 
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    /*max-width: 1200px;*/
    margin: auto;
}

.logo {
    height: 40px;
}

.menu-icon {
  background-color: transparent;
  border: none;
  cursor: pointer;
}
.menu-icon img {
  width: 42px;
  height: 42px;
}

.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none; /* Esto oculta inicialmente el menú */
  /* Background para el menú */
  background: rgb(255, 255, 255);
  background: linear-gradient(143deg, #7062e9, #acb162);
  background-size: 200% 150%;
  -webkit-animation: candy 20s ease infinite;
          animation: candy 20s ease infinite;
  /* Más estilos según sea necesario */
}

.menu ul {
  /* Centra las opciones del menú en la pantalla */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Estilos visuales */
  list-style: none;
  text-align: center;
  padding: 0;
  margin: 0;
  font-size: 3rem;
}

.menu ul li {
  /* Añade un poco de espacio entre cada opción */
  margin-bottom: 1rem;
}

.menu ul li a {
  /* Estilos visuales */
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
}

.menu .menu-close {
  position: absolute;
  top: 20px;
  right: 30px;
  cursor: pointer;
  /* Posiciona la 'X' de cerrar en la esquina superior derecha y la hace clicable */
  font-size: 3rem;
}

.show {
  display: block !important; /* Esto hará que el menú sea visible */
}



/*------------------------------------*\
    $FICHAS
\*------------------------------------*/

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 24px;
}

.card {
  display: block; /* Esto convierte al enlace en un bloque que puede contener otros elementos */
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 0 16px rgba(9, 45, 66, .25);
  overflow: hidden;
  text-decoration: none; /* Esto elimina la línea subrayada del enlace */
  color: inherit; /* Esto asegura que el color del texto dentro del enlace no cambie */
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Esta propiedad asegura que los elementos hijos se distribuyen uniformemente a lo largo del eje vertical */
  padding: 10px;
}

.card h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
  margin: 0;
  color: #5e6c84;
  line-height: 1.2; /* Ajusta esto según tus necesidades */
  height: 3.6em; /* 3 veces el tamaño de la línea */
  overflow: hidden; /* Esto ocultará el texto que exceda el límite de tres líneas */
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limita el texto a 3 líneas */
  -webkit-box-orient: vertical;
}

.adjuntos {
  display: flex;
  align-items: center;
}
.card .num-adjuntos {
  margin-left: 5px;
  font-size: 14px;
  color: #5e6c84;
}
.card p {
  font-size: 16px;
  color: #5e6c84;
}

.card .icono-doc {
  width: 16px;
  height: 16px;
}

.card:hover {
  background-color: #e4f0f6;
}

/*------------------------------------*\
    $FILTROS
\*------------------------------------*/

/* Estilo para los botones del acordeón */
.accordion {
  background-color: transparent;
  color: #444;
  cursor: pointer;
  padding: 18px;
  text-align: right;
  border: none;
  outline: none;
  transition: 0.4s;
  display: none;  /* Oculta inicialmente el botón del acordeón */
}

/* Estilo para el panel de filtros */

.filter {
  display: flex;
  justify-content: end;
  margin: 20px 20px;
  padding: 0 18px;
  background-color: white;
  overflow: hidden;
}

.filter h3 {
  font-size: 14px;
  font-weight: 400;
  margin: 0 10px 0 10px;
  align-self: center;
}

.filter-button.active {
  background-color: #4a5772;
}

.filter-button {
  background-color: #5e6c84;
  height: fit-content;
  border: none;
  color: #ffffff;
  padding: 5px 10px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  margin: 2px 2px;
  cursor: pointer;
  border-radius: 4px;
}

.sort-button {
  background-color: #5e6c84;
  height: fit-content;
  border: none;
  color: #ffffff;
  padding: 5px 10px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  margin: 2px 2px;
  cursor: pointer;
  border-radius: 4px;
}

@media (max-width: 600px) {
  .header-content { 
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 24px;
    /*max-width: 1200px;*/
    margin: auto;
  }
  .logo {
    height: 25px;
  }

  .menu-icon {
    background-color: transparent;
    border: none;
  }
  .menu-icon img {
    width: 26px;
    height: 26px;
  }
  
  .accordion {
    display: block; /* Muestra el botón del acordeón en móvil */  
  }

  .accordion img {
    width: 20px;
    height: 20px;
  }

  .filter {
      display: none;  /* Oculta inicialmente el panel de filtros en móvil */
      text-align: center;
  }

  .icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    height: 42px;
  }
}