*{
    box-sizing: border-box;
}
body {
    box-sizing: border-box;
    animation: body-animation 0.4s ease-out both;
    overflow-x: hidden;
}

@keyframes body-animation {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body > * {
    animation: body-child-animation 0.5s ease-out both;
}

@keyframes body-child-animation {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


body{
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-color: #EAEAEA;
    color: #FAF9F6;
}

body, div, ul, nav, header, footer, a, li, label{
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}



/* NAV SECTION */

body{
    transition: overflow 0.2s;
}

header{
    background: linear-gradient(#3d3126 -30%, #745e49 130%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
    text-align: center;
    font-size: 25px;
    color: #FAF9F6;
    box-shadow: 0px 0px 10px #000;
    gap: 0px;
}

.header__checkbox{
    display: none;
}

.header__logo{
    box-sizing: border-box;
    max-width: 100%;
    width: 100px;
    margin: 10px 10px;
}

.header__open-nav-menu{
    color: #FAF9F6;
    font-size: 4rem;
    font-weight: 600;
    position: absolute;
    left: 80%; 
}

.header__checkbox:checked ~ .header__nav{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    height: 100vh;
}

.header__nav-item{
    overflow: hidden;
    background-color: transparent;
    transition: background-color 0.3s, border-radius 0.2s;
    width: 80%;
    text-align: center;
    border-bottom: 1px solid rgba(212, 176, 140, 0.2); /* Línea dorada sutil */
    padding: 10px 5px;
    width: auto;
    overflow: visible;
}

.header__nav-item:last-child {
    border-bottom: none;
}

.header__nav-item a {
    letter-spacing: 1.5px;
    font-weight: 300;
    color: #FAF9F6;
    transition: color 0.3s;
    text-decoration: none;
}

.header__nav-item a:hover {
    color: #D4B08C;
}

.header__nav-item:hover{
    background-color: #70573d66;
    outline: 3px solid #44352455;
    border-radius: 10px;
}

.header__nav{
    background: radial-gradient(circle at center, #2c241c 0%, #1a1510 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0vh;
    z-index: 50;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none; 
    transform: translateY(-10px);
    transition: all 0.8s ease;
}

.header__nav-list{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    gap: 0;
    font-size: 30px;
    height: 100%;
    padding-top: 40px;
    padding-bottom: 90px;
    list-style: none;
    backdrop-filter: blur(2px);
    width: 100%;
}

.header__logo-name-container{
    font-family: 'Times New Roman', Times, serif;
    color: #FAF9F6;
    margin: 0;
    padding: 0;
    text-align: left;
    line-height: 0.2;
}

#header__nav-item-contact{
    padding: 5px;
    background-color: #1B4332aa;
    border-radius: 5px;
    outline-offset: -2px;
    transition: background-color 0.3s, border-radius 0.2s;
}
#header__nav-item-contact:hover{
    outline: 2px solid #25D366;
    background-color: #1B4332;
}

#header__nav-item-contact a::before{
    content: "";
    display: inline-block; 
    width: 50px; 
    height: 50px; 
    background-image: url(../images/header__wsplogo.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

.header__brand{
    display: flex;
    align-items: center;
}

/* NAV QUERIES */

@media screen and (min-width:1300px){

    .header__logo{
        display: inline-block;
    }

    #header__nav-item-contact{
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .header__open-nav-menu{
        display: none;
    }

    .header__logo-name-container{
        margin: 10px;
    }

    .header{
        padding: 10px 0;
        position: sticky;
        top: 0;
        animation: nav-movement both linear;
        animation-timeline: scroll();
        animation-range: 0 150px;
        z-index: 2;
    }

    .header__nav{
        display: block;
        opacity: 1 !important;
        visibility: visible !important; 
        pointer-events: auto;
        transform: none;
        position: static;
        height: auto;
        width: auto;
        z-index: auto;
        background-image: none;
        transition: none;
        }

    .header__nav-list{
        flex-direction: row;
        height: auto;
        padding: 0px 20px;
        justify-content: flex-end;
        gap: 15px;
        margin-top: 0;
        font-size: 15px;
        height: 100%;
        backdrop-filter: none;
        }
    
    .header__nav-item{
        background: transparent;
        border-top: none;
        border-bottom: none;
        margin: 0px 5px;
        white-space: nowrap;
    }

}
/* NAV ANIMATIONS*/

@keyframes nav-movement{
    from{
        padding: 20px 0;
        background: linear-gradient(#3d3126 -30%, #745e49 130%);
    }

    to{
        padding: 8px 0;
        backdrop-filter: blur(8px);
        background: rgba(105, 87, 72, 0.8);
    }
}

/* NAV END */

/* START SECTION */

.start__wrapper{
    margin-top: 30px;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    background: linear-gradient(#FAFAFA -30%,#BABABA 130%);
    box-shadow: 0 0 15px #1116;
    justify-content: center;
}

.start__tittle h1{
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
    font-size: 35px;
    color: #333333;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.4;
}

.start__tittle h1 span {
    color: #745e49;
    font-weight: bolder;
}

.start__container-description{
    font-size: 18px;
    text-align: center;
    color: #2b2b2b;
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    padding: 20px;
}

.start__container-description-item{
    list-style:none;
    margin-bottom: 15px;
}

.starts__imagen{
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 0 10px 0 #1116;
    display: block;
}

/* START QUERIES */

@media screen and (min-width:1100px){
    .start__wrapper{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content:space-evenly;
        width: 100%;
        padding: 0;
    }

    .start__container-description{
        width: 50%;
        max-width: none;
        box-sizing: border-box;
        font-size: 20px;
    }

    .start__container-imagen{
        width: 50%;
    }

    .start__tittle h1{
        font-size: 45px;
    }

    .starts__imagen{
        width: 100%;
        max-width: none;
        height: auto;
        display: block;
        margin: 0;
        border-top-left-radius: 10px;
    }
}

/* START ENDS*/

/* WHO ARE START*/

.whoare{
    margin: 0;
    background-image:linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5)), url(../images/whoare__wrapper.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    margin-bottom: 50px;
    box-shadow: 0 15px 15px #1119;
}

.whoare__wrapper{
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    backdrop-filter: blur(2px);
    align-items: center;
    padding: 60px 20px;

}

.whoare__container-title, .whoare__container-description{
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    margin: 10px 20px;
    font-size: 20px;
    color: #EEEEEE;
    line-height: 1.5;
    padding: 10px 20px;
}

.whoare__container-title{
    color: #D4B08C;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.whoare__container-description{
    text-align: justify;
    max-width: 900px;
    line-height: 1.8;
}

.whoare span {
    color: #D4B08C; 
    font-weight: bolder;
}
/* WHO ARE QUERIES*/

@media screen and (min-width:900px){
    .whoare__container-title, .whoare__container-description{
        font-size: 25px;
    }
}
/* WHO ARE ENDS*/

/* SPECIALTIES START*/

.specialties__title-container{
    display: flex;
    justify-content: center;
    color: #EEEEEE;
    font-size: 20PX;
    width: 100%;
    padding: 20px 20PX;
    text-align: center;
    font-family:Arial, Helvetica, sans-serif;
    background: linear-gradient(#3d3126 -30%, #745e49 130%);
}

.specialties__skill-container{
    background-color: #745e49;
    outline: 2px solid #2b2b2b;
    text-align: justify;
    margin: 30px;
    border-radius: 10px;
    font-size: 20px;
    box-shadow: 0 0 15px #000;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    hyphens: auto;
    line-height: 1.6;
    transition: transform 0.4s ease, box-shadow 0.4s ease, outline 0.4s ease;
}

.specialties__skill-description{
    padding: 10px 40px;
}

.specialties__skill-container:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px #111;
    outline: 2px solid #D4B08C;
    z-index: 1;
}

.specialties__skill-title{
    text-align: center;
}

#specialties__criminal-law{
    background-image:linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(../images/specialties__criminal-law.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.specialties__skill-container-box{
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(2px);
}

#specialties__youth-criminal-law{
    background-image:linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(../images/specialties__youth-criminal-law.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#specialties__federal-law{
    background-image:linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(../images/specialties__federal-law.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#specialties__alternative-ways{
    background-image:linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/specialties__alternatives-ways.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#specialties__resources{
    background-image:linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(../images/specialties__resources.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#specialties__family-law{
    background-image:linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(../images/specialties__family-law.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#specialties__child-lawyer{
    background-image:linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(../images/specialties__child-lawyer.jpeg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* SPECIALTIES QUERIES*/

@media screen and (min-width:900px){
    .specialties__wrapper{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .specialties__skill-container{
        width: 100%;
        max-width: 700px;
    }
}

/* SPECIALTIES ENDS*/

/* CONTACT START*/

.contact{
    margin: 80px 0;
    box-shadow: 0px 0px 10px #000;
    padding: 40px 0;
}

.contact__wrapper{
    display:flex;
    flex-direction: column;
    align-items: center;
    background-color: #3d3126;
    padding: 40px 0;
}

.contact__in{
    margin: 20px 0;
    border-radius: 50px;
    padding: 20px;
    font-size: 25px;
    color: #2b2b2b;
    display: flex;
    transition: background-color 0.1s, border 0.1s;
}

.contact__in a{
    color: inherit;
    text-decoration: none;
}

.contact__container--links{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact__container--contact--qr{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact__in::before{
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 15px;
}

.contact__title{
    font-size: 50px;
    font-family:Georgia, 'Times New Roman', Times, serif;
    color: #FAF9F6;
}

.contact__contact--qr{
    width: 50%;
    margin: 20px 0;
    list-style: none;
}

#contact__qr--whatsapp{
    border: 5px solid #128C7E;
}

#contact__qr--instagram{
    border: 5px solid transparent;
    border-image: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) 1;
}

#contact__telefono{
    list-style:inside;
    background-color: #E3F2FD;
    border: 3px solid #007BFF;
    color: #00438A;
    list-style: none;
}

#contact__whatsapp{
    list-style:inside;
    background-color: #E8FBF0;
    border: 3px solid #25D366;
    color: #126A32;
    list-style: none;
}

#contact__telefono::before{
    background-image: url(../images/contact__telefono.png);
}

#contact__whatsapp::before{
    background-image: url(../images/contact__whatsapp.png);
}

#contact__instagram::before{
    background-image: url(../images/contact__instagram.png);
}

#contact__email::before{
    background-image: url(../images/contact__email.png);
}

#contact__instagram{
    list-style:inside;
    background-color: #FCEEF3;
    border: 3px solid #E1306C;
    color: #8C183F;
    list-style: none;
}

#contact__email{
    list-style:inside;
    background-color: #FDEDED;
    border: 3px solid #EA4335;
    color: #A62319;
    list-style: none;
}

/* CONTACT QUERIES*/

@media screen and (min-width: 950px) {
    
    .contact__wrapper {
        width: 100%;
    }

    .contact__container--links {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 150px; 
        width: 100%;
        margin-top: 10px;
    }

    #contact__email:hover, #contact__instagram:hover, #contact__whatsapp:hover, #contact__telefono:hover{
        background-color: #c7a77b;
        border: 3px solid #6b4c3a;
        color: #3A2818;;
    }

    #contact__email:hover::before, #contact__instagram:hover::before, #contact__whatsapp:hover::before, #contact__telefono:hover::before{
        filter: grayscale(100%) sepia(100%) hue-rotate(340deg) brightness(0.6) contrast(1.1);
    }


    .contact__contact--qr {
        width: 300px;
    }

    .contact__wrapper{
        padding-bottom: 100px;
    }

    .contact__container--contact--in{
        width: 500px;
    }

    .contact__in{
        margin: 30px;
    }

}

/* CONTACT ENDS*/

/*TESTIMONY START*/

.testimony{
    margin: 100px 0px;
}

.testimony__title{
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 50px;
    text-align: center;
    color: #745e49;
}

.testimony__wrapper{
    display: flex;
    flex-direction: column;
}

.testimony__container{
    margin: 20px auto;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid #745e49;
    box-shadow: 0 10px 25px #0004;
    color: #FAF9F6;
    background-color: #745e4966;
    width: 90%;
    max-width: 300px;
    text-align: left;
}

.testimony__description--title{
    font-weight: bolder;
    font-size: 23px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    margin: 0;
    align-items: center;
    color: #2b2b2b;
}

.testimony__description--title::before{
    content: "";
    display: block;
    background-image: url(../images/testimony__anonymous.png);
    width: 60px;
    height: 60px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.testimony__stars{
    display: block;
    background-position: center;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-image: url(../images/testimony__five--stars.png);
    width: 170px;
    height: 40px;
    align-self: center;
    margin: 10px 0 20px 0;
}

.testimony__description{
    font-size: 20px;
    font-style: italic;
    color: #2b2b2b;
    line-height: 1.5;
    font-weight: 500;
}

/*TESTIMONY QUERIES*/

@media screen and (min-width: 600px){
    .testimony__wrapper{
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    }

    .testimony__container{
        margin: 20px 20px;
    }

    .testimony__container{
        transition: transform 0.5s, box-shadow 0.5s, border 0.5s, z-index 0.5s;
    }

    .testimony__container:hover{
    transform: scale(1.03);
    box-shadow: 0 10px 30px #111;
    border: 3px solid #745e49;
    z-index: 1;
}
}

/* TESTIMONY ENDS*/

/* FOOTER START*/

.footer{
    padding-top: 10px;
    background-color: #1a1510;
}

.footer__line{
    margin: 30px auto;
    width: 80%;
    height: 1px;
    border-radius: 5px;
    background-color: #fff;
}

.footer__wrapper{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.footer__copyright{
    font-size: 15px;
}

.footer__container-contact{
    display: flex;
    flex-direction: column;
    line-height: 2;
    list-style: none;
}

.footer__contact{
    margin: auto;
    display: flex;
    flex-direction: row;
    font-size: 20px;
    align-items: center;
}

#footer__wsplogo::before{
    content: "";
    display: block;
    background-image: url(../images/header__wsplogo.png);
    width: 50px;
    height: 50px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

#footer__iglogo::before{
    content: "";
    display: block;
    background-image: url(../images/footer__iglogo.png);
    width: 50px;
    height: 50px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

#footer__maillogo::before{
    content: "";
    display: block;
    background-image: url(../images/footer__maillogo.png);
    width: 30px;
    height: 30px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 10px;
}

.footer__images{
    width: 100px;
    filter: brightness(0) invert(1);
    width: 200px;
}

.footer__copyright {
    font-size: 14px;
    text-align: center;
    width: 100%;
    padding-bottom: 20px;
    color: #b3b3b3;
}

/* FOOTER QUERIES*/

@media screen and (min-width: 1200px){
    .footer__line{
        margin-bottom: 0;
    }

    .footer__wrapper{
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        width: 100%;
        padding: 0 50px;
    }

    .footer__copyright{
        margin-top: 50px;
    }

    .footer__container--footer--contact{
        justify-self: center;
    }

    .footer__container--images{
        justify-self: end;
    }
}