html {
    font-size: 62.5%;
    box-sizing: border-box;
}


*,
*::before,
*::after {
    box-sizing: inherit;
}


html,
body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    background-color: white;

}

/* Blurs */

.blur {
    background-color: #6969698f;
    position: fixed;
    justify-content: center;
    align-items: center;
    text-align: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    overflow: auto;
    display: block;
}

.blur-contenedor{
  background-color: white;
  color: rgb(21, 37, 48);
  text-align: left;
  margin: 4rem auto;
  border-radius: 0.8rem;
  font-family: "Gabarito", cursive;
  padding-left: 1rem;
  padding-right: 1rem;
  box-shadow: 5px 5px 10px rgba(21, 37, 48, 0.705);
  

}


.blur-encabezado {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: 1rem;
  padding:  0 1rem 0 1rem;
  
}


.blur-encabezado h2 {
  font-size: 2.1rem;
  color: #152530 !important;
}


.blur-encabezado button {
  background-color: transparent;
  color: rgb(250, 75, 75);
  border: none;
  transition: all .2s ease;
  cursor: pointer;
}

.blur-encabezado button:hover {
  transform: scale(1.2);
  color: rgb(248, 55, 55);
}

/* Zonas disponibles */

 .zonas-contenedor {
    transform:  scale(0.5);
  opacity: 0;
  transition: opacity 0.2s ease-in-out, transform 0.3s ease-in-out; 
  max-width: 45rem;
  
} 

.zonas-contenedor.animated{
    opacity: 1;
  transform: scale(1);
}



.buscar-ubicacion-input{
    position: relative;
    margin: 0;
    font-family: "Gabarito", cursive;
    display: flex;
    justify-content: left;
    margin-bottom: 1rem;
    margin-top: 1rem;
    padding: 0 1.2rem 0 1.2rem;
  }
  
  
  .input-field-ubicacion-zonas{
    
  
    width: 100%;
    padding: 1.3rem 4rem 1.3rem 1.3rem;
    border: none;
    font-size: 16px;
    border: 0.2rem solid #152530;
    color: #152530;
    outline: none;
    border-radius: 0.5rem;
    background-color: transparent;
  }
  
  .input-label-ubicacion-zonas {
    position: absolute;
    top: 50%;
    left: 2.8rem;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 16px;
    color: #152530;
    pointer-events: none;
    background-color: transparent;
    transition: 0.2s ease all;
   
  }
  
  
  .input-field-ubicacion-zonas:focus ~ .input-label-ubicacion-zonas,
  .input-field-ubicacion-zonas:valid ~ .input-label-ubicacion-zonas {
    transform: translateY(-50%);
    top: 4.5%;
    left: 2.8rem;
    font-size: 12px;
    color: #152530;
    background-color: white;
    padding: 0 5px;
  }
  
  .span-ubicacion-zonas{
    position: absolute;
    transform: translate(-50%,-50%);
    top: 50%;
    right: 2.5rem;
  }
  
  .span-limpiar-busqueda{
    color: red;
    position: absolute;
    transform: translate(-50%,-50%);
    top: 50%;
  
  }
  
  .span-username i, .span-ubicacion-zonas i{
    font-size: 1.5rem;
    
    color:#152530;
  }
  /* Zona actual */

  .ubicacion-actual{
    display: flex;
    align-items: center;
    color:rgb(21, 37, 48);
    background-color: rgba(21, 37, 48, 0.068);
    gap: 5px;
    padding-left: 1rem;
    
    font-family: "Questrial", sans-serif;
    cursor: pointer;
  }

  .ubicacion-actual:hover{
    text-decoration: underline;
  }

  /* Detalles de zona */

  .detalles-zona {
    display: flex;
    align-items: center;
    background-color: rgba(21, 37, 48, 0.068);
    cursor: pointer;
    font-family: "Questrial", sans-serif;
    gap: 5px;
    padding-left: 1rem;
    flex-wrap: wrap; 
    max-width: 100%; 
    padding: 1.8rem 1rem 1.8rem 1rem; 
    margin-bottom: 0.5rem;

  }
  
  .detalles-zona h2 {
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  
  .zona-nombre {
    flex: 1;             /* Hace que ocupe el espacio restante */
    min-width: 0;        /* Importante para que el texto se quiebre en flex */
  }

  .detalles-zona:hover{
    text-decoration: underline;
  }
  /*  */


.main-content {
    flex: 1;

}

/* Cuerpo */

.cuerpo {
    width: 70%;
    margin: 0 auto;
    text-align: center;
    margin-top: 10rem;
}

/* Ubicaciones disponible */

.ubicaciones-disponibles {
    display: flex;
    align-items: center;
    font-family: "Questrial", sans-serif;
    font-weight: normal;
    padding-left: 1.5rem;
    color: green;
    margin-bottom: 0.5rem;
    margin-top: 2rem;
    border-radius: 2rem;
    padding: 0.5rem;
    width: fit-content;
    transition: .2s all ease;
    user-select: none;
    cursor: pointer;

}

.ubicaciones-disponibles:hover {

    background-color: rgba(0, 128, 0, 0.089);
    box-shadow: 0 4px 10px rgba(0, 128, 0, 0.2);
}

.ubicaciones-disponibles * {
    margin: 0;
    padding: 0;
}


/* Buscador de servicios */

.buscar-explorar-input {
    position: relative;
    margin: 0;
    font-family: "Gabarito", cursive;
    display: inline-block;
    width: 100%;
    justify-content: left;
    margin-bottom: 3rem;
    text-align: left;

}


.input-field-username,
.input-field-explorar-buscar {


    width: 100%;
    padding: 1.2rem 5rem 1.2rem 2rem;
    border: none;
    background-color: #ececec;
    font-family: "Gabarito", cursive;
    color: #152530;
    outline: none;
    border-radius: 3rem;

}

.input-label-explorar-buscar {
    pointer-events: none;
    font-size: 4.2rem;
    color: #152530;
    pointer-events: none;
    background-color: transparent;
    transition: 0.2s ease all;
    font-family: "Bebas Neue", sans-serif;
    font-weight: 600;
    font-style: normal;
}


.span-buscar-explorar {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    right: -1rem;
    display: inline-block;
    background-color: #152530;
    padding: 0.9rem;
    border-radius: 50%;
}

.span-limpiar-busqueda {
    color: red;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;

}

.span-username i,
.span-buscar-explorar i {
    font-size: 1.5rem;

    color: gray;
}

/* Busqueda inteligente */

.busqueda-inteligente-servicios {
    position: absolute;
    display: none;
    height: 50rem;
    width: 100%;
    background-color: #ececec;
    overflow: auto;
    top: 57%;
    border-bottom-right-radius: 2rem;
    border-bottom-left-radius: 2rem;
}

/* Disponible cerca de ti */

.disponible-cerca-ubicacion{
  text-align: left;
  font-family: "Gabarito", cursive;
}

/* Servicios */

.servicios-disponibles{
  background-color: #ECECEC;
  display: inline-block;
  display: flex;
  align-items: center;
  width: fit-content;
  border-radius: 2rem;
  padding: 1.5rem 2rem 1.5rem 0;
  cursor: pointer;
  user-select: none;
  transition: .2s all ease;
  
}

.servicios-disponible-cuerpo {
  display: flex;
  flex-wrap: wrap; /* Para que bajen si no caben */
  gap: 1rem;        /* Espacio entre ellos */
  justify-content: flex-start; /* O usa center si quieres centrarlos */
}

.servicios-disponibles:hover{
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  scale: 1.1;
}

.servicios-disponibles img{
  width: 6rem;
  height: auto;
}

.detalles-servicio *{
  padding: 0;
  margin: 0;
  
}

.nombre-servicio{
  font-size: 1.9rem;
  margin-bottom: 0.2rem;
}

.servicio-disponible{
  font-weight: normal;
  color: green;
  font-size: 1.3rem;
}

/* Mapa de selecionar direccion */
#contenedorMapa {
  width: 100%;
  max-width: 465px;
  overflow: hidden;
  background-color: white;
  box-shadow: 5px 5px 10px rgba(21, 37, 48, 0.705);
  margin: 5% auto;
  position: relative;
  border-radius: 0.5rem;
  padding-bottom: 2rem;
}

#map {
  width: 100%;      /* Siempre llenar el contenedor */
  height: 460px;    /* Puedes ajustar esta altura también */
}

.volver-mapa-ubicaciones{
  
  box-shadow: 5px 5px 10px rgba(21, 37, 48, 0.705);
  display: inline-block;
  width: 27px;
  height: 27px;
  font-size: 1.4rem;
  border-radius: 50%;
  
  border: none;
  border: 0.1rem solid #152530;
  color: #152530;
  position: absolute;
  z-index: 9999;
  left: 2rem;
  top: 2rem;
  cursor: pointer;
  transition: .2s all ease;

}

.volver-mapa-ubicaciones:hover{
  scale: 1.1;
}

#ubicacion-larga{
    border: none;
    background-color: #ececec;
    font-family: "Gabarito", cursive;
    font-weight: normal;
    color: #152530;
    outline: none;
    width: 85%;
   
    padding: 1.5rem 1rem;
    border-radius: 0.5rem;
    
}

.boton-confirmar-ubicacion{
  margin-top: 1rem;
}

/* Guardar direccion para futura compras */

.guardar-direccion-contenedor{
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: left;
  margin-top: 1rem;
  margin-left: 1rem;
}

.guardar-direccion-contenedor label{
  font-size: 1.3rem;
  font-family: "Gabarito", cursive;
  font-weight: normal;
  user-select: none;
  margin-left: 0.3rem;
}


/* Animaciones */

.loader {
    width: 22px;
    height: 22px;
    border: 3px solid #152530;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    text-align: center;
    
    }

    @keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
    } 

/* General */

.boton-estilo-general{
  padding: 1rem;
  border-radius: 0.5rem;
  font-family: "Gabarito", cursive;
  border: none;
  background-color: #152530;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;

}

.boton-estilo-general:hover{
  background-color: #152530f1;
}

/* Cuerpo animacion */

.cuerpo {
  animation: scaleUp 0.5s ease-in-out forwards;
  opacity: 0;
}

/* Loader aceptar ubicacion */

.loader-ubicacion-actual{
  width: 40px;
  height: 40px;
  position: absolute;
  transform: translate(-50%, -50%);
  left: 50%;
  
  top: 40%;
}

@keyframes scaleUp {
  0% {
      transform: scale(1.3);
      opacity: 0;
  }
  100% {
      transform: scale(1);
      opacity: 1;
  }
}

@keyframes entradaSuave {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width:800px) {

  .cuerpo{
    width: 95% !important;
    padding-bottom: 80px !important;
  }
  .cuerpo-2{
    width: 95% !important;
  }

  .zonas-contenedor{
    width: 100% !important;
    height: 100%;
    border-radius: 0;
    margin: 0 auto !important;
    max-width: none;

  }

  #contenedorMapa{
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0 auto !important;
  }


  

}