* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@view-transition {
    navigation: auto;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #d2d2d2;
    color: #333;
}

.social_media {
    width: auto;
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 8px;
    margin-right: 20px;
    display: flex;
    gap: 1rem;
    background: #ffffffc9;
    border-radius: 10px 10px 0 0;
    z-index: 1000;

    a {
        transition: transform 0.3s ease;
        &:hover {
            transform: translateY(-3px);
        }
    }
}

header {
    width: 100%;
    background-image: linear-gradient(90deg, #23222287, #241f1871),url('/img/banners_mgConsultoria3.png');
    background-size: cover;
    background-repeat: no-repeat;
    height: 100dvh;
    mask-image: linear-gradient(black 80%, transparent);

    .hero_container {
        height: 92vh;
        display: flex;
        max-width: 1200px;
        margin: auto;
        align-items: center;
        gap: 5rem;
        .hero {
            padding: 2rem;
            background: #f2f2f20d;
            border-radius: 30px;
            backdrop-filter: blur(8px);
            h1 {
                font-size: 40px;
                background: linear-gradient(158deg, #c99e66, #b5b5b5);
                background-clip: text;
                color: transparent;
                margin-bottom: 20px;
            }

            p {
                color: #bababa;
                font-size: 16px;
                margin-bottom: 20px;
            }

            a {
            padding: 6px 8px;
            background: #c99e66;
            color: #1e1e1e;
            border-radius: 5px;
            transition: background 0.3s ease, 
            color 0.3s ease, 
            transform 0.3s ease, font-size 0.3s ease;
            width: 15rem;
            text-align: center;

            &:hover {
                background: #a2764a;
                color: #fff;
                transform: scale(1.05);
            }
            }
        }

        .hero_image {
            width: 100%;
            height: 100%;
            max-width: 400px;
            max-height: 400px;
            border-radius: 50%;
            padding: 0.4rem;
            overflow: hidden;
            background: linear-gradient(158deg, #c1b5b5, #948423);
            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: transform 0.3s ease;
                border-radius: 50%;
                &:hover {
                    transform: scale(1.05);
                }
            }
        }
    }
    
}

.navbar {
    padding: 0.5rem 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    animation: nav_animation linear both;
    animation-timeline: scroll(root);
    animation-range: 0 200px;
    margin: auto;

    .container_logo {
        .logo {
            view-transition-name: logo;
            .icon_logo {
                width: 50px;
                height: 50px;
                object-fit: contain
            };
        }
    }

    .nav_links {
        display: flex;
        gap: 2.5rem;
        list-style: none;
        color: #b5b5b5;  
        animation: animation_color_links linear both;
        animation-timeline: scroll(root);
        animation-range: 0 50px;
        .nav_items {
            transition: color 0.3s ease;
            &:hover {
                color: #f2f2f2  ;
            }
        }
    }

    .cta_header {
        transition: color 0.3s ease, transform 0.3s ease;;
        visibility: hidden;
        animation: visibleNow linear both;
        animation-timeline: scroll(root);
        animation-range: 0 200px;
        color: #f2f2f2;
        &:hover {
            color: #000;
        }
        &:active {
            transform: scale(0.95);
        }

    }        
    
}

.sevicios_container {
    max-width: 1100px;
    margin: auto;
    padding: 4rem 0;

    h2 {
        text-align: left;
        font-size: 35px;
        padding-bottom: 50px;
        color: #a2764a;
    }

    .servicios_list {
        display: grid;
        background: #fff;
        /* grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); */
        list-style: none;
        padding: 1rem;
        border-radius: 20px;
        gap: 1.5rem;

        .servicio_item {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            padding: 2rem;
            transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
            border-radius: 10px;
            cursor: crosshair;
            background: #7474740c;
            /* justify-content: space-between; */

            h3 {
                font-size: 60px;
                background: linear-gradient(158deg, #c99e66, #b5b5b5);
                background-clip: text;
                color: transparent;
                margin-bottom: 20px;
            }

            p {
                color: #666;
                text-wrap: balance;
                font-size: 18px;
            };

            a {
                padding: 6px 8px;
                background: #c99e66;
                color: #1e1e1e;
                border-radius: 5px;
                text-align: center;
                width: fit-content;
                transition: background 0.3s ease,
                color 0.3s ease;
                &:hover {
                    background: #a2764a;
                    color: #fff;
                }
            };
            &:hover {
                background: #333;
                transform: translateY(-5px);
                color: #d2d2d2;
            }
        }
    }

}

@keyframes nav_animation {
    to {
        background: #656565be;
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        color: #333;
        border-radius: 0 0 10px 10px;

    }
}

@keyframes visibleNow {
    to {
        padding: 8px;
        background: #c99e66;
        border-radius: 30px;
        visibility: visible;
    }
}

.modal{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #111111bd;
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: opacity .6s .9s;
    --transform: translateY(-100vh);
    --transition: transform .8s;
}

.modal--show{
    opacity: 1;
    pointer-events: unset;
    transition: opacity .6s;
    --transform: translateY(0);
    --transition: transform .8s .8s;
}

.modal__container{
    margin: auto;
    width: 90%;
    max-width: 600px;
    max-height: 90%;
    background-color: #ffffffc9;
    backdrop-filter: blur(8px);
    border-radius: 30px;
    padding: 2rem;
    display: grid;
    gap: 1em;
    place-items: center;
    grid-auto-columns: 100%;
    transform: var(--transform);
    transition:var(--transition);
}

.modal__title{
    font-size: 1.6rem;
}

.modal__paragraph{
    margin-bottom: 10px;
}

.modal__img{
    width: 90%;
    max-width: 200px;
}

.modal__close{
    text-decoration: none;
    color: #fff;
    background-color: #F26250;
    padding: 8px;
    border: 1px solid ;
    border-radius: 6px;
    font-size: 12px;
    display: inline-block;
    font-weight: 300;
    transition: background-color .3s;
}

.modal__whatsapp {
    text-decoration: none;
    color: #fff;
    background-color: #a2764a;
    padding: 0.5em 1em;
    border: 1px solid ;
    border-radius: 6px;
    display: inline-block;
    font-weight: 300;
    transition: background-color .3s;

    &:hover {
        background-color: #c99e66;
    }
}

.modal__close:hover{
    color: #F26250;
    background-color: #fff;
}

.testimonios_container {
    margin: auto;
    padding: 6rem 5rem;
    background: linear-gradient(180deg, #d2d2d2, #505050);
    position: relative;

    h2 {
        font-size: 35px;
        padding-bottom: 50px;
        text-align: center;
        color: #a2764a;
    }
    img {
        width: 200px;
        height: 200;
        border-radius: 50%;
        margin-bottom: 25px;
    }

    .testimonios_list {
        display: flex;
        overflow-x: scroll;
        padding: 1rem;
        max-width: 1150px;
        margin: auto;
        gap: 2.5rem;
        scrollbar-width: thin;
        scrollbar-color: #a2764a transparent;

        .testimonio_item {
            min-width: 350px;
            width: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            align-items: center;
            padding: 2rem;
            border-radius: 10px;
            background: #ffffffc2;
            backdrop-filter: blur(8px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

            h3 {
                font-size: 22px;
                font-weight: 700;
                margin-bottom: 8px;
            }

            p {
                font-size: 16px;
                text-align: center;
                color: #5b5b5b;
            }
        }
    }
}

.about_container {
    margin: auto;
    padding: 6rem 1rem;
    background: linear-gradient(180deg,#ffffff, #a1a1a1 );
    .about_container_info { 
        max-width: 1100px;
        margin: auto;
        display: flex;

        .about_img_container {
            max-width: 400px;
            margin-right: 80px;
            height: 400px;
            padding: 1rem;
            background: linear-gradient(158deg, #c99e66, #b5b5b5);
            border-radius: 30px;
            img {
                width: 100%;
                object-fit: cover;
                border-radius: 20px;
                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            }
        }

        .about_text_container {
            h2 {
            font-size: 22px;
            margin-bottom: 12px;
            font-weight: 300;
            color: darkgoldenrod;
            text-decoration: underline;
            text-decoration-color: #d2d2d2;
            text-decoration-thickness: 5px;
            }

            .about_mg {
                font-size: 20px;
                font-weight: 500;
                margin-bottom: 5px;
                letter-spacing: 2px;
            }

            .about_mg.p_mg {
                margin-bottom: 20px;
            }

            .about_text {
                font-size: 16px;
                line-height: 25px;
                color: #555555;
                margin-bottom: 12px;
                strong {
                    color: #a2764a;
                }
            }

            .cta {
                display: inline-block;
                text-decoration: none;
                color: #fff;
                border-radius: 30px;
                padding: 10px 20px;
                margin-top: 30px;
                transition: .5s;
                background: #a2764a;
                &:hover {
                    background: #c99e66;
                    color: #000;
                }
            }
        }
    }
    
}

.linkInteres_container {
    margin: auto;
    padding: 6rem 1rem;
    background: linear-gradient(180deg,#ffffff, #a1a1a1 );
    h2 {
        font-size: 35px;
        padding-bottom: 50px;
        text-align: center;
        color: #a2764a;
    }

    .container_links {
        max-width: 1100px;
        margin: auto;
        display: flex;
        justify-content: space-between;
        padding-top: 2rem;

        a {
            img {
                width: 200px;
                height: 200px;
                object-fit: contain;
                transition: transform .3s ease, filter .3s ease;
                filter: grayscale(100%);
                &:hover {
                    transform: translateY(-5px);
                    filter: grayscale(0);
                }
            }
        }
    }
}

.formulario_container {
    margin: auto;
    padding: 8rem 1rem;

    .fomulario_container_info {
        max-width: 1100px;
        margin: auto;
        display: flex;

        .formulario_info {
            margin-right: 50px;
            background: #e0e0e0b3;
            padding: 1rem;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
            h2 {
                font-size: 30px;
                margin-bottom: 30px;
                font-weight: 500;
                background: linear-gradient(158deg, #c99e66, #b5b5b5);
                background-clip: text;
                color: transparent;
            }

            a {
                display: inline-block;
                background: linear-gradient(158deg, #c99e66, #b5b5b5);
                color: #f2f2f2;
                padding: 5px 10px;
                border-radius: 30px;
                margin-bottom: 10px;
            }

            p {
                font-size: 16px;
                line-height: 25px;
                color: #555555;
                margin-bottom: 12px;
            }

            .img_form_container {
                position: absolute;
                bottom: 0;;
                right: 50px;
                width: 300px;
                height: 300px;
                z-index: -1;
                img {
                    width: 300px;
                    height: 300px;
                }
            }
        }

        form {
            display: flex;
            flex-direction: column;
            padding: 2rem;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            background: #ffffffbd;
            border-radius: 10px;
            gap: 1rem;
            width: 35%;
            margin: auto;

            input {
                padding: 1rem 0.5rem;
                text-align: left;
                border-radius: 10px;
                border: none;
                font-size: 15px;
                color: #505050;
                &:focus {
                    outline: none;
                    box-shadow: 0 0 5px rgba(162, 118, 74, 0.5);
                }
                &::placeholder {
                    color: #a1a1a1;
                }
            }

            textarea {
                padding: 1rem 0.5rem;
                text-align: left;
                border-radius: 10px;
                border: none;
                font-size: 15px;
                resize: none;
                font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
                color: #505050;
                
                font-weight: 500;
                &:focus {
                    outline: none;
                    box-shadow: 0 0 5px rgba(162, 118, 74, 0.5);
                }
                &::placeholder {
                    color: #a1a1a1;
                }
            }

            button {
                padding: 0.4rem 0.5rem;
                text-align: center;
                border-radius: 10px;
                border: none;
                font-size: 15px;
                background: linear-gradient(158deg, #c99e66, #b5b5b5);
                color: #fff;
                cursor: pointer;
                transition: background 0.3s ease, color 0.3s ease;

                &:hover {
                    background: linear-gradient(158deg, #a2764a, #b5b5b5);
                    color: #000;
                }
            }
        }
    }
}

.footer {
    margin: auto;
    padding: 2rem 1rem;
    background: #000000e4;
    .footer__container {
        max-width: 1100px;
        margin: auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #fff;
        flex-direction: column;

        .footer__logo {
            img {
                max-width: 200px;
                max-height: 200px;
            }
            margin-bottom: 20px;
        }

        .footer__info {
            display: flex;
            flex-direction: column;
            gap: 10px;
            text-align: center;

            .footer_creador {
                font-size: 14px;
                color: #c6c6c6;
            }
            margin-bottom: 25px;
        }
        
        .footer__social {
            display: flex;
            gap: 1rem;
            flex-direction: column;
            align-items: center;
            p {
                font-size: 14px;
                color: #c6c6c6;
            }

            .container_social_media {
                padding: 0.5rem;
                background: #ffffffc9;
                border-radius: 30px;
                display: flex;
                gap: 0.5rem;
                a {
                    color: #c6c6c6;
                    transition: color 0.3s ease;
                    &:hover {
                        color: #fff;
                    }
                }
            }
            
        }
    }
}

@media (width <= 768px) {
    
    .hero_container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;

        .hero {
            text-align: center;
            h1 {
                font-size: 30px;
            }
            p {
                font-size: 14px;
            }
            a {
                width: 100%;
            }
        }

        .hero_image {
            max-width: 300px;
            max-height: 300px;
        }
    }

    .navbar {
        padding: 0.5rem 2rem;
        .nav_links {
            gap: 1.5rem;
        }
    }

    .formulario_container {
        form {
            width: 100%;
        }
    }

    .servicios_list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (width <= 425px) {
    .social_media {
        display: none;
    }
    
    .navbar {
        padding: 0.5rem 1rem;
        .nav_links {
            display: none;
        }
    }

    header {
        .hero_container {
            height: 100vh;
            padding-top: 8rem;

            .hero {
                width: 90%;
                h1 {
                    font-size: 28px;
                }
                p {
                    font-size: 14px;
                }
            }

            .hero_image {
                max-width: 200px;
                max-height: 200px;
                margin-top: -50px;
            }
        }
    }

    .sevicios_container {
        padding-top: 9rem;
        h2 {
            text-align: center;
            font-size: 28px;
        }
        .servicios_list {
            background: transparent;
            .servicio_item {
                background: #ffffffc2;
                h3 {
                    font-size: 40px;
                }
                p {
                    font-size: 16px;
                }
            
            }
        }
    }
        
    .testimonios_container {
        padding: 1rem 1rem;
        h2 {
            font-size: 28px;
            padding-bottom: 10px;
        }
        .testimonios_list {
            
            gap: 2rem;

            .testimonio_item {
                width: 100%;
                min-width: 340px;
                padding: 1.5rem;
                transition: box-shadow 0.3s ease;
                &:hover {
                    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
                }
                h3 {
                    font-size: 20px;
                }
                p {
                    font-size: 14px;
                }
            }
        }
    }

    .about_container {
        padding: 1.5rem;
    }
    .about_container_info {
        flex-direction: column;
        align-items: center;

        .about_img_container {
            display: none;
        }

        .about_text_container {
            padding: 1rem 1rem;
            h2 {
                font-size: 28px !important;
                text-align: center;
                padding-bottom: 10px;
            }

            .about_mg {
                font-size: 18px;
                font-weight: 500;
            }

            .about_text {
                font-size: 14px;
            }
        }
    }

    .linkInteres_container {
        h2 {
            font-size: 22px;
            text-align: center;
        }

        .container_links {
            flex-direction: column;
            gap: 1.5rem;
            align-items: center;
            padding-top: 0;
        } 
    }

    .formulario_container {
        padding: 5rem 1rem;
        .fomulario_container_info {
            flex-direction: column;
            align-items: center;
            gap: 2rem;

            .formulario_info {
                margin-right: 0;
                text-align: left;
                h2 {text-align: center;}
                p {
                    font-size: 14px;
                    text-align: left;
                }

                a {
                    display: inline-block;
                    background: linear-gradient(158deg, #c99e66, #b5b5b5);
                    color: #f2f2f2;
                    padding: 5px 10px;
                    border-radius: 30px;
                    margin-bottom: 10px;
                }

                .last_text {
                    font-weight: 600;
                }
            }

            form {
                width: 100%;
            }
        }
    }

    .modal__title {
        text-align: center;
        font-size: 18px;
    }

    .modal__paragraph {
        text-align: center;
    }
}
