@import url(variables.css);

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

/*

    BODY, HEADER, MAIN
    
    Se da las propiedades a los elementos más generales de la página.
    Se utiliza grid para dividir los espacios que el header y el main consumiran.
    Se le da configuraciones generales al body.
  
*/

.header_nav ul li {
    width: 100px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

header {

    width: 100%;
    height: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px;

    background-color: #fff;
    z-index: 1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {

    height: auto;
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 4%;

    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    background-color: #f4f4f9;
    line-height: 1.6;
    user-select: none; 
}

main {

    width: 100%;
    height: auto;

    padding: 4%;
    
    background-color: #f4f4f9;
    text-align: center;
}

.elemento {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease-in-out;
}

.elemento.visible {
    opacity: 1;
    transform: translateY(0);
}








/*

    ELEMENTOS DEL HEADER

*/

.header_logo {
    margin-left: 4%;
    height: 8vh;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    z-index: 1;
}

.header_logo img {
    width: 120px;
    height: 100px;
    object-fit: contain;
}

.header_nav {
    width: 60%;
}

.header_nav ul {
    display: flex;
    width: 100%;
    justify-content: end;
    justify-content: space-evenly;
    padding-right: 4%;
    list-style: none;
}

.menu-toggle {
    display: none;
}

.header_nav ul li a {
    text-decoration: none;
    color: var(--color-black);
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.header_nav ul li a:hover {
    color: var(--color-pinker);
}

.header_nav ul .focus {
    border-radius: 8px;
    border: 2px solid var(--color-pinker);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


.header_nav ul li {
    width: 105px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 1600px) {
    .header_nav {
        width: 65%;
    }
}

/* Media Queries for Mobile */
@media screen and (max-width: 1024px) {

    .header_logo img {
        width: 80px;
        height: 60px;
        object-fit: contain;
        object-position: bottom;
    }

    .header_nav {
        width: 100%;
    }

    header {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .header_nav ul {
        display: none; /* Initially hidden */
        flex-direction: column; /* Stack menu items */
        position: absolute;
        top: 8vh; /* Below the header */
        right: 0;
        width: 100%;
        background-color: #fff;
        padding-right: 0;
        padding-left: 0;
    }

    .header_nav ul .focus {
        width: 30%;
        color: var(--color-pinker);
    }

    .header_nav ul li {
        width: 100%;
        text-align: center;
    }

    .header_nav ul.show { /* Class to show the menu */
        display: flex;
        gap: 30px;
        padding-bottom: 20px;
        padding-top: 20px;

    }

    /* Show the menu toggle button on mobile screens */
    .menu-toggle {
        display: block;
        cursor: pointer;
        right: 5%;
        top: 3vh;
    }

    .menu-toggle span {
        display: block;
        width: 30px;
        height: 3px;
        background-color: var(--color-black);
        margin: 6px 0;
        transition: 0.3s;
    }

    /* Menu toggle animation when active */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}








/*

    ELEMENTOS DEL SECTION #1, THE HOUSE

*/

.the_house_section {

    width: 100%;
    height: auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    gap: 50px;
    margin-bottom: 40px;

    padding-inline: 4%;
    z-index: -1;
}

.abogado_1 {
    width: 100%;
    height: 700px;
    background-color: transparent;

    
    display: flex;
    opacity: .9;
    flex-direction: row-reverse;

    border-radius: 15px;

}

.abogado_1 {
    display: flex;
    align-items: center;
    gap: 2rem;
    opacity: 0; /* Oculto al principio */
    transform: translateY(50px); /* Baja toda la sección un poco */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.abogado_1.visible {
    opacity: 1; /* Aparece */
    transform: translateY(0); /* Vuelve a su posición original */
}

.img {
    transform: translateX(-100%); /* Imagen inicia fuera de la pantalla (izquierda) */
    transition: transform 1s ease-out;
}

.abogado_info {
    transform: translateX(100%); /* Información inicia fuera de la pantalla (derecha) */
    transition: transform 1s ease-out;
}

.abogado_1.visible .img {
    transform: translateX(0); /* Imagen vuelve a su posición original */
}

.abogado_1.visible .abogado_info {
    transform: translateX(0); /* Información vuelve a su posición original */
}

/* Animación escalonada de los elementos dentro de .abogado_info */
.abogado_info > * {
    transform: translateY(-20px); /* Suben desde arriba */
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Añade retraso para cada elemento dentro de .abogado_info */
.abogado_1.visible .abogado_info h2 {
    transition-delay: 0.4s;
    transform: translateY(0);
    opacity: 1;
}

.abogado_1.visible .abogado_info .areas {
    transition-delay: 0.8s;
    transform: translateY(0);
    opacity: 1;
}

.abogado_1.visible .abogado_info span {
    transition-delay: 1.2s;
    transform: translateY(0);
    opacity: 1;
}

.abogado_1.visible .abogado_info p {
    transition-delay: 1.5s;
    transform: translateY(0);
    opacity: 1;
}


.img {

    width: 85%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
}

.img img {

    width: 100%;
    height: 100%;

    border-radius: 10px;
    object-fit: cover;

}

.abogado_info {

    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 4%;

    padding: 0;
    padding: 8%;

    text-align: left;
}

.abogado_info p {

    color: rgb(0, 0, 0);
    font-size: 1.2em;
    text-align: justify;

}

.abogado_info h2 {
    
    font-size: 40px;
    margin-bottom: 24px;
    text-align: left;
    color: rgb(0, 0, 0);
    font-weight: 600;
}

.areas {
    
    font-size: 16px;
    margin-bottom: 24px;
    text-align: left;
    color: rgb(0, 0, 0);
}



@media (max-width: 1200px) {


    .the_house_section {
        opacity: 1;
    }
    
    .abogado_info p {

        font-size: .95em;
    }

    .abogado_info h2 {
        font-size: 36px;
    }

    .areas {
        font-size: 20px;
    }
}

@media (max-width: 900px) {

    @keyframes flip {

        0% {
            transform: rotateY(0);
        }
        100% {
            transform: rotateY(180deg);
        }
        
    }
    .footer-links {
        margin-bottom: 30px;
    }
    .legal {
        font-size: 10px;
    }

    .abogado_1 {

        flex-direction: column;
        justify-content: end;
        position: relative;
        width: 60%;
        height: 90vh;
        
        box-shadow: 0px 0px 0px 0px black;
        z-index: 1;
        background-color: white;
        transition:  background-color 0.6s ease 0.3s;

    }

    .abogado_1::before {

        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        background-image: url(../storage/img/abogada.jpg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        z-index: 0;
        opacity: 1;
        border-radius: 15px;
        z-index: 2;
        transition: 0.6s ease;

    }

    .abogado_1:hover::before {
        transform: rotateY(180deg);
        opacity: .05;
    }

    .abogado_1:hover {
        background-color: black;
    }

    .abogado_1:hover .abogado_info{
         
        flex-direction: column-reverse;
        gap: 4%;
        opacity: 1;
        background-color: transparent;
        height: 100%;

    }

    .abogado_1:hover .abogado_info p {

        display: block;
        margin-bottom: 0;
        width: 95%;
        text-align: center;
        color: white;
        font-size: 1.1em;

    }

    .abogado_1:hover .abogado_info .areas{
        display: block;
    }

    .abogado_1:hover .abogado_info h2 {
        font-size: 42px;
        width: 95%;
        text-align: center;
    }


    .img {
        display: none;
        
    }

    .img img {
        display: none;
        
    }

    main {
        background-color: #f0f0f0;
    }

    .abogado_info {
        padding: 0;
        height: 24%;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: var(--color-black);
        opacity: .9;
        border-radius: 15px;
        z-index: 3;
        transition: 0.6s ease;
    }

    .areas {
        display: none;

    }

    .abogado_info h2 {
        color: white;
        font-size: 30px;
        margin-bottom: 0;
        text-align: center;
    }
    .abogado_info span {

        color: white;
    }
    
    .abogado_info p {
        color: black;
        display: none;
    }
}

@media (max-width: 650px) {

    .abogado_1 {
        width: 100%;
        height: 80vh;
    }

    .abogado_1:hover .abogado_info p {

        display: block;
        margin-bottom: 0;
        width: 95%;
        text-align: center;
        color: white;
        font-size: .8em;

    }

    .abogado_1:hover .abogado_info .areas{
        display: block;
    }

    .abogado_1:hover .abogado_info h2 {
        font-size: 28px;
        width: 95%;
        text-align: center;
    }

    
    
}









/*

    FOOTER

*/

.footer {

    height: 40vh auto;
    max-width: 100vw;
    min-width: 100%;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4%;

    padding: 4%;
    text-align: center;

    background-color: black;
    color: white; 
    list-style: none;

    box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.1);
}

.footer_container {
    width: 100%;
    display: flex;

}

.footer-row {

    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    padding-inline: 4%;

    flex-wrap: wrap;
    

}

.footer-links {

    width: 25%;
    min-width: 235px;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    

}

.footer-links h4 {

    width: 60%;
    min-width: 182px;
    display: inline;
    font-size: 20px;
    text-align: left;
    color: white;
    margin-bottom: 25px;
    font-weight: 500;
    border-bottom: 2px solid var(--color-pinker);
    padding-bottom: 10px;

}

.footer-links ul li  {

    list-style: none;

}

.footer-links ul {
    width: 60%;
    min-width: 182px;
}


.footer-links ul li a {

    text-align: left;
    font-size: 18px;
    text-decoration: none;
    color: #bbbbbb;
    display: block;
    margin-bottom: 15px;
    transition: all .3 ease;

}

.footer-links ul li a:hover {
    color: white;
    padding-left: 6px;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;

}

.social-links a{
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    min-height: 44px;
    width: 44px;
    border-radius: 50%;
    margin-inline: 10px;
    font-size: 24px;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all .5s ease;
    color: white;
}

.gmail:hover {
    color: rgb(175, 32, 32);
    font-size: 28px;
    background-color: white;
    box-shadow: 0px 0px 5px 0px white;

}

.instagram:hover {
    background: radial-gradient(circle at 33% 100%, #fed373 4%, #f15245 30%, #d92e7f 62%, #9b36b7 85%, #515ecf);
    font-size: 28px;
    box-shadow: 0px 0px 5px 0px #d92e7f;
}

.tiktok:hover{

    font-size: 28px;
    background-color: black;
    box-shadow: 0px 0px 5px 0px white;
    text-shadow: 1.2px 1.2px 0 #fe2d52, -1.2px -1.2px 0 #28ffff;
    
}

.linkedin:hover{

    font-size: 28px;
    background-color: white;
    box-shadow: 0px 0px 5px 0px white;
    color: #0a66c2;
    
}

.legal {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: rgba(255, 255, 255, 0.705);
}