/*-----FONTS-----*/
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.woff2') format('woff2'),
        url('../fonts/Inter-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Inter-Light';
    src: url('../fonts/Inter-Light.woff2') format('woff2'),
        url('../fonts/Inter-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Inter-Bold';
    src: url('../fonts/Inter-Bold.woff2') format('woff2'),
        url('../fonts/Inter-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Inter-ExtraLight';
    src: url('../fonts/Inter-ExtraLight.woff2') format('woff2'),
        url('../fonts/Inter-ExtraLight.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'LFTEticaSheriff-Regular';
    src: url('../fonts/LFTEticaSheriff-Regular.woff2') format('woff2'),
        url('../fonts/LFTEticaSheriff-Regular.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}


@font-face {
    font-family: 'LFTEticaSheriff-SemiBd';
    src: url('../fonts/LFTEticaSheriff-SemiBd.woff2') format('woff2'),
        url('../fonts/LFTEticaSheriff-SemiBd.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'LFTEticaSheriff-Bold';
    src: url('../fonts/LFTEticaSheriff-Bold.woff2') format('woff2'),
        url('../fonts/LFTEticaSheriff-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --verde: #1F9562;
    --verde2: #024C36;
    --dorado: #EFB810;
    --gris: #8E8E93;
    --max-width: 1200px;

    /* Fuentes */
    --font-title: 'LFTEticaSheriff-Bold', serif;
    --font-subtitle1: 'LFTEticaSheriff-SemiBd', serif;
    --font-subtitle2: 'LFTEticaSheriff-Regular', serif;

    --font-paragraph: 'Inter', sans-serif;

    /* Tamaños de fuente */
    --font-size-title: 60px;
    --font-size-subtitle: 35px;
    --font-size-paragraph: 20px;
}



.modal-buscador {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-subtitle2);
}
.modal-content {
  /* background: #fff; */
  background-color: var(--verde);
  /* padding: 2rem; */
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  position: relative;
  border: 2px solid var(--dorado);


}
/* Header fijo del modal */
.modal-header {
    flex-shrink: 0; /* No se reduce */
    padding: 1rem;
    border-bottom: 1px solid var(--dorado);
    position: relative;
}

/* Contenido scrolleable */
.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    /* Estilos para scrollbar personalizados */
    scrollbar-width: thin;
    scrollbar-color: var(--dorado) transparent;
}
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background-color: var(--dorado);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background-color: #d4a00a;
}


.modal-buscador .close {
  position: absolute;
  right: 1rem;
  /* top: 1rem; */
  font-size: 2rem;
  cursor: pointer;
  margin: 1rem;
}
.filtros-tiempo button,
.cat-buscador {
  margin: 0.25rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  /* background: #eaeaea; */
  cursor: pointer;
}
.filtros-tiempo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1rem;
}
.filtro-tiempo {
  border: 1px solid var(--dorado)!important;
  background: transparent;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.filtro-tiempo img{
  width: 25px;
}
.filtros-categorias{
  margin: 2rem auto;
  flex-wrap: wrap;
}
.cat-buscador {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  
}
.cat-buscador img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.5rem;
}
form {
  margin: 1rem;
  display: flex;
  
}
form input{
  border-radius: 5px 0 0 5px;
}
form button {
  background-color: var(--dorado);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}
.close {
  color: var(--dorado);
  padding: 0;
  
}
h2, h3 {
  color: white;
  margin-bottom: 0.5rem;
  font-family: var(--font-subtitle1);
  margin: 1.5rem 1rem;
}
.resultados-busqueda{
  background-color: #fff;
  border-radius: 0 0 8px 8px;
  padding: 1rem;
  max-height: 270px; /* Altura máxima para resultados */
  overflow-y: auto;
}
.resultados-busqueda img {
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}
.btn{
  border: none;
  border-radius: 50px;
  align-self: center;
  display: inline-block;
  align-items: center;
}


/* Estilos responsivos */
@media (max-width: 768px) {
    form{
        margin: 0.5rem;
    }
    h2,h3 {
        margin: 0;
    }
    .filtros-categorias {
        margin: 0.5rem auto;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }
    .modal-buscador {
        padding: 10px;
    }
    .modal-buscador .close {
      margin: 0;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    .modal-content h2,h3 {
      margin: 10px;

    }
    .modal-header {
        padding: 0.5rem;
    }
    
    .modal-body {
        padding: 0.5rem;
    }
    
    .filtros-tiempo {
        gap: 5px;
    }
    
    .filtro-tiempo {
        padding: 0.25rem 0.5rem;
        font-size: 14px;
    }
    
    .filtro-tiempo img {
        width: 20px;
    }
    .resultados-busqueda {
        max-height: 150px; /* Altura máxima para resultados en móviles */

    }

}