html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    width: 100%;
    margin: auto;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

* {
    box-sizing: border-box;
}


header {
    width: 100%;
    background: black;
}

.navMobile {
    display: none;
}

.slider {
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    height: 700px;
    max-width: 100vw;
    min-height: 700px; /* Reserva el espacio necesario */
    margin: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

.overlay {
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    position: absolute;
    background: black;
}

.list {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    width: 100%;
    max-width: 300vw;
    transition: 800ms ease-in-out;
}

.list .item {
    width: 100vw;
    display: flex;
    flex: 1 0 100%;
    max-width: 100vw;
    height: 100%;
}

.list img {
    width: 100vw;
    max-width: 100vw;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.buttons {
    display: none;
    position: absolute;
    top: 45%;
    left: 5%;
    width: 90%;
    display: flex;
    justify-content: space-between;
}

.buttons button {
    display: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff6;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

.dots {
    position: absolute;
    bottom: 10px;
    color: #fff;
    left: 0%;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.dots li {
    list-style: none;
    width: 10px;
    height: 10px;
    background: #fff;
    margin: 20px;
    border-radius: 20px;
    transition: 800ms ease-in;
    cursor: pointer;
}

.dots li.active {
    width: 30px;
}

.slider .navWeb {
    z-index: 19;
    padding-top: 3svb;
    width: 90%;
    align-self: center;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
}

.icon {
    display: flex;
    height: 100%;
}

.mobileIcon {
    display: none;
}

.icon img {
    height: 100%;
    width: 50%;
}

.navWeb ul {
    display: flex;
    justify-content: space-between;
}

.navWeb ul li {
    width: 100%;
    height: 100%;
    list-style: none;
}

.navWeb ul li a {
    z-index: 30;
    display: inline-block;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    border-right: 2px solid white;
    color: white;
    text-decoration: none;
    height: 100%;
}

.contacto {
    border: none;
}

.hero {
    overflow: hidden;
    padding-top: 120px;
    height: 80%;
    z-index: 2;
    width: 90%;
    margin: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.title {
    color: white;
    font-size: 3.5rem;
    font-weight: 100;
    width: 100%;
}

.hero h2 {
    margin-top: -50px;
    color: white;
    font-size: 3.5rem;
    line-height: 59px;
    font-style: italic;
    font-weight: 400;
    font-family: "adobe-handwriting-ernie", sans-serif;
}

.contactUs {
    padding: 10px 24px;
    font-size: 1.6rem;
    font-weight: 400;
    border: 1px solid white;
    border-radius: 8px;
    color: white;
    text-decoration: none;
}

.carousel {
    width: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carousel span {
    margin-top: 180px;
    display: inline-block;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 20px;
}

.principal {
    overflow: hidden;
    margin-top: -10px;
    width: 100%;
    padding-bottom: 80px;
    background-image: url('../images/sectionBackground.webp');
    background-position: center;
    background-size: cover;
}

.principal > article {
    overflow: hidden;
    padding-top: 120px;
    color: gray;
    margin: auto;
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    font-size: 1rem;
    flex-wrap: wrap;

}



.principal-title {

    width: 20%;
    margin-top: 20px;
    margin-right: 20px;



}

.principal-title img {
    width: 100%;
}

.principal-description {
 
    width: 100%;
    width: 70%;
    text-align: justify;

}


/* servicios*/

.services-section {
    padding-top: 100px;
    width: 80%;

    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-cont {

    margin: 20px auto;
    width: 100%;

   
    width: 100%;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
}

/* servicios*/

.services-section {
    overflow: hidden;
    padding-top: 100px;
    width: 80%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-section h3 {
    font-size: 2.5rem;
    text-align: center;
    font-weight: 600;
}
.services-cont {
    margin: 20px auto;
    width: 80%;
    align-items: center;
    justify-content: space-between;
    display: flex;
    flex-wrap: wrap;
}

.service {
 
    position: relative;
    display: inline-block;
    width: 48%;
    height: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 50px;
    margin-bottom: 100px;
    text-align: center;

    padding: 20px 0 20px;
}

.service img {
    width: 50px;
    height: 50px;
}


.service #sociedades {
    width: 80px;
    object-fit: cover;
}

.service #service-btn {
    position: absolute;
    top: calc(50% - 20px);
    right: 0;
    width: 28px;
    height: 28px;
    display: inline-block;
    background: black;
    border-radius: 20px;
    cursor: pointer;
    z-index: 4;
}


.service #service-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-60%, -60%) rotate(320deg);
    transition: transform 0.3s ease-in-out;
}



.service-hover {
    visibility: hidden;
    position: absolute;
    opacity: 0;
    top: 120px;
    right: -100%;
    width: 100%;
    height: 90%;
    background: #eef8fc;
    color: black;
    text-align: start;
    transition: all 0.3s ease-in-out;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-border {
    position: absolute;
    top: 120px;
    right: 0%;
    width: 100%;
    height: 80%;
    color: black;
    border-top: 1.5px  solid #e0dedb;

    border-radius: 6px;
}

.service-hover ul {
    margin: auto;
    padding-top: 30px;
    width: 80%;
    height: 100%;
}

.service-hover ul li {
    font-size: .9rem;
    width: 90%;
    padding: 2px 0;
    border-bottom: 1px solid #c2bdb8;
}

.service-hover ul .last-list {
    border-bottom: none;
}

.service.active .service-hover {
    visibility: visible;
    opacity: 1;
    right: 0; 
}

.service.active #service-btn {
    transform: rotate(0deg);
}

.service.active #service-btn::before {
    transform: translate(-40%, -50%) rotate(140deg);
}

.service-title {
    font-weight: 600 ;
    font-size: 1.2rem;
}

.service-desc {
    text-align: center;
    max-width: 80%;
    margin: auto;
}


/* notario */ 

.notario-section {
    overflow: hidden;
    width: 100%;
    height: 60vh;
    background-image: url('../images/notarioBackground.webp');
    opacity: 1;
    background-size: cover;
    background-position: calc(0, 20px);
    background-repeat: no-repeat;

    position: relative;
}

.background-notario {
    position: absolute;
    z-index: 9;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(194, 189, 184, .5) 0%, rgba(194, 189, 184, .8) 10%, rgba(194, 189, 184, 1) 50%);

}

.notario-profile {
    z-index: 9;
    position: absolute;
    top: 80px;
    left: 200px;
    width: 30%;

}

.notario-text {
    position: absolute;
    width: 70%;
    top: 160px;
    right: 0;
    z-index: 10;
}

.notario-desc {
    position: absolute;
    left: 120px;
    color: white;
    width: 70%;
    line-height: 30px;
}

.notario-title {
    position: absolute;
    width: 70%;
    top: 200px;
}


/* footer */
footer {
    width: 100vw;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
	color: white;
    display: flex;
    align-items: end;
    background-image: url('../images/footerBackground.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat ;

}

.footerCont {
    padding-top: 80px;
    padding-bottom: 40px;
    width: 80%;
    background-position: center;
    background-size: cover;
    margin: auto;
    display: flex;
    justify-content: space-around;
    align-items: center;

}

.footerIcons {
    
    padding-left: 100px;
    width: 50%;
    margin: auto;
    display: flex;
    justify-content: start;
    align-items: end;

}

.footerIcons::before {
    content: '';
    position: relative;
    width: 1px;
    height: 70px; /* Altura de la línea blanca */
    background: linear-gradient(to top, transparent, rgba(255, 255, 255, 0.811) 50%, transparent), 
                linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.646) 50%, transparent);
    bottom: -40px;
    left: 125px;
    transform: translateY(-50%);
}

.logoImage img {
    width: 100px;

 
    object-fit: contain; 
}
.iconsList  {
    margin-left: 40px;
}
.iconsList img {
    width: 150px;
}

.secondRow {    
    display: flex;
    align-items: start;
}



.networksWeb { 
    width: 70%;
    align-items: end;
    justify-content: space-between;
    display: flex;  
}


.secondRow {

    width: 50%;
    display: flex;
    flex-direction: column;



}

.ubication {
 
    width: 100%;
}

.secondRow > div, .ubication {
    display: flex;
    align-items: center;

    gap: 10px;
}


.tel span, .mail span, .mail span {
    padding-left: 38px;
}


@media  (max-width : 1222px) {
    .notario-section {
        height: 60vh;
        
    }
}



 
@media  (max-width : 1024px) {

    .principal article {
        flex-direction: column;

        justify-content: center;
        align-items: center;
    }

    .principal-title {
        width: 60%;
        flex-direction: column;
        align-items: center;
        justify-content: start;
        padding: 0;
        margin: 0;
   

    }

    .principal-title p  {
    
        padding: 0;
        margin: 0;

    }

    .services-section {
  
        width: 90%; 
        padding-bottom: 100px;
    }

    .service {
        margin-top: 4%;
    }

    .service-hover {
        height: 300px;
    }

    .footerCont {
        width: 70%;
        flex-direction: column;
        align-items: center;
        justify-content: start;
    }

    .footerIcons {
        padding-left: 15px;
      
        width: 100%;

    }

    .logoImage {
        margin-left: 2px;
    }

    
    .footerIcons {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-right: -2px;
    }

    
    .footerIcons::before {
    content: '';
    position: relative;
    width: 100%;
    height: 2px; /* Altura de la línea blanca */
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.811) 50%, transparent), 
                linear-gradient(to left, transparent, rgba(255, 255, 255, 0.646) 50%, transparent);

    top: 220px;
    left: 0px;
    transform: translateY(-50%);
}

    .footerIcons .logoImage  {
       padding-bottom: 90px;
    }


    .footerIcons .iconsList {
        margin: 0;
        padding-bottom: 90px;

    }

    .logoImage a {
        margin: 0;
    }


    .footerIcons .iconsList img {
        width: 210px;

    }

    .logoImage img {
        width: 150px;
    }

    .firstRow {
        width: 100%;


    }

    .secondRow {
        width: 100%;
    }

    .networksWeb {
        display: flex;
        flex-direction: column ;
        padding-top: 30px;
        align-self: center;
        width: 90%;
        margin: 0;
        padding: 0;
    }
    .ubication, .tel, .mail {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;

        margin: auto;
    }

    .networks {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding-top: 20px;
        flex-wrap: wrap;
        width: 60%;
        margin: auto;
    }

    .networks span {    
        display: flex;
        align-items: center;
        justify-content: center;


        padding: 0;
        width: 40%;

    }

    .networks p {
        width: 100%;
    }
 
    

    .ubication span, .tel span, .mail span {
        padding-top: 20px;
        padding-left: 10px;
    }
    
    .notario-section {
        height: 80vh;
     }


     .notario-text {
        width: 90%;
        margin: auto;
        top: 280px;
        text-align: start;
        padding: 0%;
     }

     .notario-desc {
        padding: 0;
        top: 200px;
        left: 0;

        
     }

     .notario-profile {
        width: 50%;
        top: 30px;
        left: 0;
     }

     .notario-title {
        width: 90%;
        top: 00px;
     }

     .principal > article {
        width: 90%;
     }

     .principal-title {
        width: 30%;
     }

  
 }




 @media  (max-width : 903px) {

    
    .notario-text > .notario-desc {
        width: 100%;
        padding-right: 30px;
    }
    .notario-name {
        right: 100px;
    }
 }

 @media (max-width: 768px) {
    .mobileIcon {
        display: inline-block;
        position: absolute;
        top: 0px;
    }

    .hero h1 {
        padding-top: 20px;
    }

    .mobileIcon img {
        width: 40%;
    }

    .slider .navWeb {
        display: none;
    }

    .navMobile {
        display: flex;
        justify-content: space-between;
        z-index: 21;
        background-color: transparent;
        height: 65px;
        width: 100%;
    }

    #menuToggle {
        display: flex;
        flex-direction: column;
        position: relative;
        top: 25px;
        left: 25px;
        z-index: 1;
        -webkit-user-select: none;
        user-select: none;
        width: 40px;
        height: 32px;
    }

    #menuToggle input {
        display: flex;
        width: 40px;
        height: 32px;
        position: absolute;
        cursor: pointer;
        opacity: 0;
        z-index: 2;
    }

    #menuToggle span {
        display: flex;
        width: 29px;
        height: 2px;
        margin-bottom: 5px;
        position: relative;
        background: #ffffff;
        border-radius: 3px;
        z-index: 1;
        transform-origin: 5px 0px;
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0), background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0), opacity 0.55s ease;
    }

    #menuToggle span:first-child {
        transform-origin: 0% 0%;
    }

    #menuToggle span:nth-last-child(2) {
        transform-origin: 0% 100%;
    }

    #menuToggle input:checked ~ span {
        opacity: 1;
        transform: rotate(45deg) translate(-3px, -1px);
        background: #36383F;
    }

    #menuToggle input:checked ~ span:nth-last-child(3) {
        opacity: 0;
        transform: rotate(0deg) scale(0.2, 0.2);
    }

    #menuToggle input:checked ~ span:nth-last-child(2) {
        transform: rotate(-45deg) translate(0, -1px);
    }

    #menuToggle input:checked ~ body {
        overflow-y: hidden;
        height: 100%;
    }

    #menu {
        position: fixed;
        width: 100vw;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-shadow: 0 0 10px #85888C;
        margin: -50px 0 0 -50px;
        padding: 50px;
        padding-top: 80px;
        background-color: #F5F6FA;
        -webkit-font-smoothing: antialiased;
        transform-origin: 0% 0%;
        transform: translate(-100%, 0);
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    }

    .secondMenu {
        display: flex;
        flex-direction: row;
        width: 50%;
        padding-top: 30px;
        align-items: center;
        justify-content: space-between;
    }

    .networkMenu {
        display: inline-block;
        width: 30px;
        height: 30px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    #facebook {
        background-image: url('../images/icons/blackFacebook.svg');
    }

    #mail {
        background-image: url('../images/icons/blackMail.svg');
    }

    #phone {
        background-image: url('../images/icons/blackPhone.svg');
    }

    #menu li {
        padding: 10px 0;
        transition-delay: 2s;
        list-style: none;
    }

    #menu li a {
        color: black;
        font-size: 3rem;
        padding-bottom: 10px;
    }

    #menuToggle input:checked ~ #menu {
        transform: none;
    }

    body.menu-open {
        overflow: hidden;
    }

    .hero {
        margin-top: 10px;
    }

    .services-cont {
        width: 100%;
        flex-direction: column;
    }

    .service {
        width: 90%;
        margin-top: 70px;
        font-size: 1.5rem;
    }

    .service-title {
        font-size: 1.5rem;
    }

    .service-border {
        top: 140px;
    }

    .service-hover {
        top: 140px;
        height: 350px;
    }

    .service-hover ul li {
        font-size: 1.3rem;
    }

    .services-section h1 {
        font-size: 2rem;
    }

    .notario-section {
        height: 85vh;
    }

    .notario-desc {
        left: 0;
        margin: 0;
        padding: 0;
        right: 0;
        text-align: center;
    }
}

 @media (max-width: 610px) {
    .service-hover {
        height: 380px;
    }


 }

 @media  (max-width : 468px)  {
    .services-section h3 {
        max-width: 80%;
    }
    .service-hover {
        height: 450px;
    }

    .notario-section {
        height: 80vh;
     
    }

    .secondMenu {

        width: 50%;

    }



    .notario-profile {
        top: 10px;
        width: 60%;
    }

    .notario-text {
        position: relative;
        flex-direction: column-reverse;
        top: 0;
        left: 0;
        width: 80%;
        margin: auto;
    }

    .notario-title {
        top: 180px;
        width: 100%;

    }

    .notario-desc {
        position: absolute;
        padding: 0;
        margin: 0;
        top: 300px;
        left: 0;
        width: 100%;
    }




  
 }

 @media (max-width: 421px) {

    #menu li a {
        font-size: 2.5rem;
    }
    .hero h2  {
        font-size: 2rem;
    }
    .hero  h1{
        font-size: 3rem;
    }

    .principal article {
        width: 80%;
        text-align: center;
    
    }

    .principal-description {
        width: 100%;
        text-align: center;
    }

    .principal-title {
        width: 70%;
    }
    .service-hover {
        height: 450px;
    }
    .notario-section {
        height: 100vh;
    }

    .notario-profile {
        width: 220px;
    }

    .notario-title {
        width: 100%;
    }

    .notario-desc {
        text-align: center;
        margin: auto;
        left:10px;
        right: 0;
        padding: 0;
        
    }


    .service-hover ul li {
        font-size: 1.3rem;
    }
    


    .services-section {
        width: 100%;
    }

    .services-cont {
        width: 100%;
        text-align: center;
    }

    .services-section {
        width: 100%;
        text-align: center;
    }
 }

 @media (max-width : 329px) {

    #menu {

        padding: 80px 20px;
    

    }

    #menu ul li a {
        font-size: 2rem;
    }

    .secondMenu {
        width: 50%;

    }

    .service {
        margin-top: 100px;
    }

    .service-hover {
        height: 500px;
    }
    .service-inmobiliario .service-border, .service-inmobiliario .service-hover {
        top: 180px;
    }
   
 }