@font-face {
    font-family : Beclave;
    src: url(../fonts/Beclave_Demo.ttf);
}
@font-face {
    font-family : Metropolis;
    src: url(../fonts/Metropolis-Regular.otf);
}

/* Reset global */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;   /* importante */
  width: 100%;    /* importante */
}

body {
    background-color: #f2f1eb;
}

h1, h2, h3, h4, h5, h6, legend, button{
    font-family: Metropolis;
    font-weight: bold;
}

p, label, input, select, a, table, span {
    font-family: Metropolis;
    color: #49280c;
}

.header_principal {
    display: flex;
    align-items: center;
    background-color: #49280c;
}
.logo {
    width: 30%;
    margin:auto;
}

.buscar_principal {
    top:74%;
    display: block;
    width: 95%;
    height: 40px;
    position: relative;
    z-index:2;
    margin-left: 1.2%;
}
.buscar {
    border:none;
    font-size: 1rem;
    padding: 1rem;
    width:100%;
    border-radius: 2rem;
    margin-left: -1%;
}
button {
    font-size: 1rem;
    border: none;
    border-radius:2rem;
    cursor: pointer;
    background-color: #fff;
    color: #49280c;
    display: flex;
    align-items: center;
}
button img {
    width: 30px;
}

.crea {
    text-align: center;
    margin-top: -3%;
}
.crea img {
    width: 20%;
    margin:auto;
}
.servicios {
    display: flex;
}
.servicios img {
    width: 50%;
}
footer {
    text-align:center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-weight: bold;
}
footer a {
    text-decoration: underline;
    color: #49280c;
}

.resultados {
  position: absolute;   /* encima del mapa */
  background: #49280c;
  width: 100%;          /* corregido con ; */
  color: #fff;
  z-index: 999;
  padding: 10px;
  display: none;
}

/* Scroll horizontal para los botones */
.filtros-scroll {
  position: absolute;   /* encima del mapa */
  top: 50;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 10px;
  padding: 10px;
  z-index: 1000;
}
.filtros-scroll::-webkit-scrollbar {
  display: none; /* ocultar scrollbar en móviles */
}
.filtro-categoria {
  white-space: nowrap;       /* evita saltos de línea */
  padding-right: 15px;
}    

/* Modal deslizable */
.modal-filtros {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
  height: 40vh;              /* ocupa solo parte vertical */
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}
.modal-filtros.active {
  transform: translateY(0);
}
.filtros-contenido {
  flex: 1;
  overflow-y: auto;          /* scroll interno */
  padding: 1rem;
}
.btn-cerrar {
  align-self: flex-end;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #49280c;
}
.titulo-modal {
    text-align:center;
    color: #49280c;
    font-family : Metropolis;
    font-size: 15px;
}
.modal-filtros h4 {
    text-align:center;
    color: #49280c;
    font-family : Metropolis;
}
h4.titulo-lineas {
  display: flex;
  align-items: center;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
}
h4.titulo-lineas::before,
h4.titulo-lineas::after {
  content: "";
  flex: 1;                  
  border-bottom: 1px solid #49280c; 
  margin: 0 20px;           
}

/* Botones de filtro */
.filtro-btn, .btn-filtros {
  flex: 0 0 auto;
  cursor: pointer;
  white-space: nowrap;
  font-size: 16px;
}
.filtro-btn.active {
  background: #6b4f3b;
  border-color: #6b4f3b;
  color: white;
}

.filtro-btn {
    padding: 10px;
    border: solid 1px #49280c;
    margin: 10px;
}

/* mapa en general */
#map {
    position: relative;
    z-index: 1;
    top: -6%;
}

.grupo-filtros {
    display: flex;
    justify-content: space-around;
}

.buscar-modal select {
  width: 100%;
  padding: 10px;
  border: 2px solid #49280c;
  border-radius: 20px;
  font-size: 16px;
  background: #fff;
  color: #49280c;
  cursor: pointer;
  margin-top: 30px;
  margin-bottom: 30px;
}

/* pop up */
.pop_principal {
  background-color: #f2f1eb !important;
  border-radius: 20px;
  width: 120%;
  margin-left: -8%;
}

.nombre-negocio {
    position: relative;
    top: 30px;
    padding-left: 20px;
    color: #49280c;        /* café por defecto */
    font-family: Metropolis;
    font-weight: bold;
    word-wrap: break-word; /* permite saltos de línea */
    white-space: normal;   /* permite varias líneas */
    line-height: 1.3;
    font-size: 15px;
}

/* Cuando tiene descuento o suscripción */
    .nombre-negocio.con-beneficio {
    position: absolute;
    color: #fff;           /* blanco */
    font-size: 17px;
    top: 2%;
    padding-bottom: 10%;
}

.leaflet-popup{
    background-color: transparent !important;
    opacity: 1 !important;
    border-radius: 20px;
}

.leaflet-popup-content-wrapper {
    background-color: transparent !important;
    border-radius: 20px;
    padding: 0 !important;
}
.leaflet-popup-content-wrapper b{
    padding: 10px;
}

.leaflet-control-zoom{
    display: none;
}
/* botón cerrar pop up */
.leaflet-popup-close-button span {
    width: 27px !important;
    height: 25px !important;
    font-size: 35px !important;
    background-color: white !important;
    border-radius: 50% !important;
    padding-top: 3px !important;
    display: flex;
    justify-content:center;
    align-items: center;
    margin-top: 25px;
    margin-left: -20px;
    font-family: Metropolis;
}

.leaflet-popup-content {
    background-color: #f2f1eb;
}

/* Carrusel */
.carrusel {
  position: relative;
  width: 100%;
  margin: 0 !important;
  overflow: hidden;
  background-color: #f2f1eb;
  top: -10% !important;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}
.carrusel-inner {
  display: flex;
  transition: transform 0.5s ease;
}
.carrusel-inner img {
  width: 100%;
  flex-shrink: 0;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}
.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0);
  color: white;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}
.carrusel-btn.prev { left: 10px; background-color: rgba(0, 0, 0, 0.5); border-radius: 100%; width:20px; height:20px;}
.carrusel-btn.next { right: 10px; background-color: rgba(0, 0, 0, 0.5); border-radius: 100%; width:20px; height:20px;}

.redes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5%;
    margin-top: -20%;
    
}

.ruta {
    color:white;
    background-color: #49280c;
    padding: 10px;
    font-size: 15px;
}

.info-general {
    padding-bottom: 60px;
    top: 60px !important;
}

.cerrar-ruta {
    color:white;
    background-color: #49280c;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}
/* Estilos para pantallas pequeñas */
@media screen and (max-width: 768px){
    .header_principal {
        display: flex;
    }
    .logo {
        width: 50%;
        margin:auto;
    }
    fieldset {
        margin-top: 1rem;
        width: 93%;
    }
    legend {
        font-size: 1.2rem;
    }
    button {
        font-size: 1rem;
        padding: .5rem;
        border: none;
        border-radius: 2rem;
        cursor: pointer;
        background-color:#fff;
        color: #49280c;
    }
    .crea {
        margin-top: -10%;
    }
    .crea img {
        width: 40%;
        margin:auto;
        margin-bottom: 5%;
    }
}
