* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Mitr", serif;
}



.imagen{
  width: 750px;
  margin-right: -150px;
}

  body{
  background: linear-gradient(to right,#000000, #282828);
}

  .header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 10%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: #282828;
  }


#menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #282828;
        flex-direction: column;
        align-items: center;
        display: none;
    }

    .navbar a {
        padding: 12px 0;
        width: 100%;
        text-align: center;
        border-top: 1px solid #444;
    }

    #menu-toggle:checked + .menu-icon + .navbar {
        display: flex;
    }

    .menu-icon {
        display: block;
    }

    .logo img {
        width: 150px; /* Ajuste para móviles */
    }
}


  .logo{
    font-size: 20px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
  }


  .navbar * {
    box-sizing: border-box;
    transition: all .35s ease;
    
  }
  
  .navbar li {
    display: inline-block;
    list-style: outside none none;
    margin: .5em 1em;
    padding: 0 95px;
  }
  
  .navbar a {
    padding: .5em .8em;
    color: #ffffff;
    position: relative;
    text-decoration: none;
    font-size: 18px;
    text-align: center;
    font-weight: 500;
    margin-left: 35px;
  }
  
  .navbar a::before,
  .navbar a::after {
    content: '';
    height: 14px;
    width: 14px;
    position: absolute;
    transition: all .35s ease;
    opacity: 0;
  }
  
  .navbar a::before {
    content: '';
    right: 0;
    top: 0;
    border-top: 3px solid #efb810;
    border-right: 3px solid #efb810;
    transform: translate(-100%, 50%);
  }
  
  .navbar a:after {
    content: '';
    left: 0;
    bottom: 0;
    border-bottom: 3px solid #efb810;
    border-left: 3px solid #efb810;
    transform: translate(100%, -50%)
  }
  
  .navbar a:hover:before,
  .navbar a:hover:after{
    transform: translate(0,0);
    opacity: 1;
  }
  
  .navbar a:hover {
    color: #efb810;
  }
  

  .home{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100vh;
    color: #ffffff;
    padding: 0 10%;
    overflow: hidden;
  }

  .home-content{
    max-width: 600px;
  }

  .home-content h1{
    font-size: 40px;
    font-weight: 400;
  }

  .home-content h3{
    font-size: 32px;
    font-weight: 400;
    color: #efb810;
  }

  .home-content p{
    font-size: 16px;
    margin: 20px 0 40px;
  }

  .home-content .btn-box{
    width: 345px;
    height: 50px;
    display: flex;
    justify-content: space-between;
    color:#081b29
  }

 

.home-img{
  position: relative;
  right: -7%;
  width: 450px;
  height: 450px;
  transform: rotate(45deg);
  overflow: hidden;
  margin: 0 auto;
}


.home-img .rombo{
  position: absolute;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border: 25px solid #efb810;
  overflow: hidden;
}




.rombo .carousel {
  display: flex;
  width: 1350px; /* 3 imágenes → 100% * número de imágenes */
  height: 100%;
   transition: transform 1s ease-in-out;
}

.rombo .carousel img {
  width: 450px;
  height: 450px;
  object-fit: cover;
}

@keyframes slide {
    0%   { transform: translateX(0%); }
    33%  { transform: translateX(-100%); }
    66%  { transform: translateX(-200%); }
    100% { transform: translateX(0%); }
}

@media (max-width: 768px) {
  .home-img {
    width: 350px;
    height: 350px;
    display: none;
  }

  .rombo .carousel {
    width: 1050px; /* 3 imágenes de 350px */
  }

  .rombo .carousel img {
    width: 350px;
    height: 350px;
  }
}

@media (max-width: 480px) {
  .home-img {
    width: 280px;
    height: 280px;
  }

  .rombo .carousel {
    width: 840px; /* 3 imágenes de 280px */
  }

  .rombo .carousel img {
    width: 280px;
    height: 280px;
  }
}




  .home-icon{
    position: absolute;
    bottom: 40px;
    width: 170px;
    display: flex;
    justify-content: space-between;
  }

  .home-icon a{
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #efb810;
    border-radius: 50%;
    font-size: 20px;
    color: #efb810;
    text-decoration: none;
    z-index: 1;
    overflow: hidden;
    transition: .5s;

  }

  .home-icon a:hover{
    color: #081b29;
  }

  .home-icon a::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #efb810;
    z-index: -1;
    transition: .5s;
  }

  .home-icon a:hover::before{
    width: 100%;
  }



  .quienes-content h1{
    display: flex;
    flex-direction: column;
    justify-content:start;
    text-align: center;
    color: #ffffff;
    margin: 0 10%;
  }



.abogados-img{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 180px;
  height: 180px;
  background:#efb810 ;
  margin: 10%;
  border-radius: 50%;
  border: 20px solid #ffffff;
}


.abogados-img img{
 
  justify-content: center;
  align-items: center;
  max-width: 150px;
}


.nomina {
  display: flex; 
  flex-direction: column;
  justify-content: center;
  padding: 90px 9%;
  text-align: center;
}

.quienessomos .nomina{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
}

.abogado {
  text-align: center;
}

.abogado p.nombre {
  margin-top: 10px;
  font-size: 1.1em;
  color: #ffffff;
}



.servicios{
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    color: #000000;
    margin: 0 10%;
   
  }

.servicios-content h1{
  color: #ffffff;
  margin-bottom: 20px;
}

 .servicios .wrapper{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }

  .wrapper .box1{
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 10px;
    transition: .5s;
  }

  .wrapper .box1:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(0, 0, 0, 2);
  }


.box1 i{
  color: #efb810;
  font-size: 55px;
}

  .box1 h2{
  font-size: 20px;
  margin: 5px;
 }


  .contacto{
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    color: #ffffff;
    margin: 0 10%;
    padding: 20px 9%;
  }



.contacto .contacto-content{
  margin-bottom: 20px;
}


 
.footer-row{
  width: 100%;
  
}


.footer-row .footerbox{
  width: 100%;
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 50px;
  padding: 45px 0px;
}

.footer-row .footerbox .box figure{
  width: 100%;
  display: flex;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.footer-row .footerbox .box figure img{
  width: 250px;
}

.footer-row .footerbox .box h2{
  margin-bottom: 25px;
}


.footer-row .grupo2{
  padding: 15px 10px;
  text-align: center;
}

.footer-row .grupo2 small{
  font-size: 15px;
}


@media screen and (max-width:800px) {
  .footer-row .footerbox{
  width: 90%;
  grid-template-columns: repeat(1, 1fr);
  grid-gap: 30px;
  padding: 35px 0px;
}
}

@keyframes show{
  from {
    opacity: 0;
    scale: 25%;
  }

  to{
    opacity: 1;
    scale: 100%;
  }
}

img {
  view-timeline-name: --image;
  view-timeline-axis: block;

  animation-timeline: --image;
  animation-name: show;

  animation-range: entry 25% cover 30% ;
  animation-fill-mode: both;
}

