@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

* {
  border: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --primary-gradient: #ed4037;
  --secondary-color: #f8f9fa;
  --accent-color: #474747ff;
  --text-dark: #2c3e50;
  --text-muted: #6c757d;
}

html {
  /* font-size: 62.5%; */
}

/* Clases para altura automática del home */
.home-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.container {
  width: 80%;
  margin: 0 auto;
  /* min-height: 100vh; */
}

.navbar {
  width: 100%;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.5) !important;
  position: absolute !important;
  z-index: 10;
  color: #fff;
  border-bottom: 1px solid #ccc;

  /* color: black !important; */
}

.navbar .nav-link {
  color: #fff !important;
}

/* Corrección específica para dropdowns */
.navbar .dropdown {
  position: relative;
  display: flex;
}

.navbar .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  transform: none;
  margin-top: 0;
  z-index: 1000;
}

/* Estilos específicos para el dropdown de ubicación */
.ubicacion-dropdown {
  position: relative;
}

.ubicacion-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  transform: none;
  margin-top: 0;
  min-width: 120px;
}

/* Asegurar que los botones del dropdown mantengan el estilo del nav */
.navbar .nav-link.dropdown-toggle {
  color: #fff !important;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
}

.navbar .nav-link.dropdown-toggle:hover {
  color: #fff !important;
  text-decoration: none;
}

.logo {
  margin: 0 !important;
}

.logo img {
  width: 5rem;
  height: auto;
}

.item-abogado {
  width: 40vw;
  padding: 10%;
  background: transparent;
  color: #fff;
  border-radius: 0px !important;
  text-align: justify !important;
}

.item-abogado::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--primary-gradient);
}

.grid-abogados {
  padding: 0 15% 0 15%;
}

/* .grid-abogados :nth-child(2n) {
  padding-left: 1rem;
} */

.icon-abogados {
  font-size: 50px;
  margin-right: 2rem;
}

.background-blur {
  position: relative;
  overflow: hidden;
  /* Para que el blur no se salga del contenedor */
}

.background-blur::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(rgba(138, 43, 226, 0.3), rgba(138, 43, 226, 0.3)),
    url('../assets/images/justicia.png') no-repeat center center;
  background-size: cover;
  filter: blur(10px);
  z-index: -1;
}

.background-blur>* {
  position: relative;
  z-index: 1;
}

.grid-abogados {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.item-abogado {
  display: flex;
  align-items: center;
  padding: 20px;
  border-radius: 10px;
  width: 45%;
}

footer {
  background-color: rgb(70, 70, 70);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-size: 1rem
}

.footer-container {
  display: flex;
  padding-right: 2rem;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer ul li a {

  color: #fff;
  border-bottom: 1px;
}

.item-footer {
  margin: 2rem 0 2rem 2rem;

}

footer iframe {
  width: 90%;
}

footer .ternimos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 0 !important;
}

footer .ternimos img {
  width: 50%;
  margin: 0 auto;
}

footer .ternimos .container-terminos {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container-terminos img {
  width: 50%;
}

.pipe {
  width: 1px;
  height: 60px;
  border-left: 1px solid #fff;
  display: none;
}

.condiciones {
  color: #fff;
  margin-bottom: 1rem;
}

.setion-home {
  background-color: #767577ff !important;
  color: #fff;
  padding: 2rem 0;
}

.stats-section {
  border-radius: 0 !important;
  margin-top: 40px !important;
}

footer .btn-btn {
  background: #ed4037;
  /* background: #25d366; */
  border: none;
  color: white;
  font-size: 1.1rem;
  padding: 10px 30px;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.navbar-toggler {
  padding: 2px 4px !important;
}


@media screen and (max-width: 400px) {
  .botonera {
    gap: 0 ;
  }

}
@media screen and (min-width: 400px) {
  .botonera {
    gap: 5px;
  }

}
#copyright {
    font-size: 0.8rem !important;
    text-align: center;
    margin:0;
  }
.condiciones {
    font-size: 0.8rem !important;
    text-align: center;
    margin:0;
}
@media screen and (max-width: 700px) {
  #copyright {
    padding: 1rem;
  }
.condiciones {
    padding: 1rem;
    border-bottom: 0;
}
}
@media screen and (max-width: 768px) {
  .stats-section {
            width: 60%;
  }

}



@media screen and (min-width: 500px) {
  footer .ternimos img {
    margin: 0 auto;
  }

  .pipe {
    display: block;
  }

  footer .ternimos .container-terminos {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    place-items: center;
  }

  .container-terminos img {
    width: 25%;
  }

}

@media screen and (max-width: 500px) {
  .boton-nav {
    font-size: 13px !important;
    padding: 0 .3rem !important;
    margin: 0 auto !important;
  }

}



@media screen and (min-width: 700px) {
  .footer-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }

  footer .ternimos {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 2rem;
    place-items: center;

  }

  footer .ternimos img {
    width: 120%;
  }

}

@media screen and (max-width: 992px) {
  .navbar {
    flex-direction: row-reverse;
  }

  .hero-section {
    padding-top: 15% !important;
  }

  .service-card {
    margin-top: 60px !important;
  }
  .button-despliegue {
  padding: 0 !important;
 
  }

}

@media screen and (min-width: 992px) {
  .hero-section {
    padding-top: 25% !important;
  }

  .navbar {
    background-color: transparent;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column !important;
    justify-content: center;
    align-items: center;
  }

  .logo img {
    width: 14rem;
    height: auto;
  }

  .ubicacion-dropdown {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 5rem;
  }

  /* Ajuste específico para el dropdown de ubicación en desktop */
  .ubicacion-dropdown .dropdown-menu {
    right: 5rem;
    left: auto;
  }

  .navbar .nav-link {
    font-size: 0.9rem;
    margin: 0 1rem 0 1rem;
  }

  .botonera {
    width: 100%;
    justify-content: flex-end;
  }
  .container-bottons button {
    margin: 5px !important;
  }

}

@media screen and (min-width: 1000px) {
  .footer-container {
    grid-template-columns: 1fr 1fr 1fr;
    padding: 2rem;
  }
}

@media screen and (min-width: 1200px) {
  .footer-container {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  .hero-section {
    padding-top: 20% !important;
  }
}

@media screen and (max-width: 720px) {
  .grid-abogados {
    grid-template-columns: 1fr;
  }

  .item-abogado {
    width: auto;
  }

  /* Ajustes para móvil */
  .home-container {
    min-height: 100vh;
  }

  .icon-abogados {
    font-size: 35px;
    margin-right: 1rem;
  }

  .grid-abogados {
    padding: 0 5% 0 5%;
  }
}

@media screen and (min-width: 500px) {
  .grid-abogados {
    grid-template-columns: 1fr 1fr;
  }
}

/* Estilos adicionales para mejor espaciado */

section:last-child {
  margin-bottom: 0;
  flex-grow: 1;
}

@media screen and (max-width: 500px) {
  .condiciones {
    padding: 0rem 0 2rem 0;
  }
}

@media screen and (max-width: 700px) {
  footer .ternimos {
    padding: 30px !important;
  }
  #copyright {
        margin-top: 2rem;
        /* padding: 1rem; */
  }
  footer .ternimos .container-terminos {
    height: 50px;
  }
      .condiciones {
        
        
    }
}