*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;

}
html{
    scroll-behavior: smooth;
}

body{
    margin: 0;
    height: 100vh;
    background-size: cover;
    background-position: center;
}


.logo img {
    width: 180px;
    margin: auto;
}
li{
    list-style: none;

}
a{
    text-decoration: none;
    color: #000000;
    font-size: 0.9rem;
}
.navbar a:not(.active):hover {
    color: #038036; /* Cambia el color del texto en hover */
}

.active {
    color: #fff;
    background-color: #038036; /* Color del borde */
    padding: 11px;
    border-radius: 7px; /* Bordes redondeados */
}

header{
    width: 100%;
    background-color: #ffffff;
    position: fixed;
    z-index: 10000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.navbar{
    position: relative;
    width: 80%;
    max-width: 1350px;
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    

}
.navbar .links{
    display: flex;
    gap: 2rem;
}
.navbar .toggle{
    color: #038036;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}
.redes-sociales{
    display: flex;
    gap: 30px;

}
.redes-sociales a{
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
}

.menu_desplegable.open + .toggle .redes-sociales {
    display: none;
}

/*MENU DESPLEGABLE*/
.menu_desplegable{
    display: none;
    position: fixed;
    right: 2.5rem;
    top: 80px;
    height: 0;
    width: 300px;
    background: #ffffff;
    backdrop-filter: blur(15px);
    border-radius: 14px;
    overflow: hidden;
    transition: height 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 8px rgba(0, 0, 0, 0.4);
}
.menu_desplegable.open{
    height: 242PX;
}

.menu_desplegable li{
    padding: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu_desplegable li:last-child{
    display: flex;
    gap: 30px;
}

/*DISEÑO RESPONNSIVE*/
@media (max-width: 970px) {
    .navbar .links,
    .navbar .redes-sociales {
        display: none;
}
.navbar .toggle {
    display: block;
}
.menu_desplegable {
    display: block;
}
}
@media (max-width: 576px) {
    .menu_desplegable{
        left: 2.5rem;
        width: unset;
    }
}


/*EMCABEZADO*/

.encabezado {
    display: flex;
    width: 100%;
    height: 86%;
    margin: auto;
    position: relative;
    overflow: hidden;
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed; 
}

.titulo_animado {
    z-index: 1000;
    font-size: 32px;
    max-width: 1350px;
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    animation: entrada 1.3s forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}
.titulo_animado img{
    width: 55%;
    padding: 3%;
}

.sumita{

    margin: auto;
    width: 100%;
    font-family: montserrat;
}
.parraf p{
    margin: auto;
    text-align: center;
}
.myv {
    margin: auto;
    width: 65%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10%;
    margin-top: 3%;
    margin-bottom: -3%;
    position: relative;
    max-width: 1350px;
}


.mision,.vision{
    height: 100px;
    font-size: 1.2rem;
    text-align: center;
    text-align: justify;
    height: 300px;
    border-radius: 30px;
    color: #00170A;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1s ease-out, transform 0.8s ease-out;
}
.mision.visible, .vision.visible {
    opacity: 1;
    transform: translateY(0);
}
.ilg{
    width: 100%;
    overflow: hidden;
    text-align: center;
}
.ilg img{
    height: 500PX;
    width: 100%;
    border-radius: 7PX;
    object-fit: cover;
}


.sevc h2{
    text-align: center;
    color: #00170A;
    padding-top: 2% ;
    font-size: 2rem;
}
h3{
    font-family: MONTSERRAT_BOLD;
    font-size: 1.9rem;
    text-align: center;
    margin-bottom: 27px;

}
.sevc{
    width: 100%;
}

.histoty{
    padding-top: 4%;
    padding-bottom: 4%;
    margin: auto;
    width: 100%;
    max-width: 1350px;
    text-align: center;
    text-align: justify;
    font-size: 1.2rem;
    color:#00170A;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1s ease-out, transform 0.8s ease-out;
}

.histoty.visible {
    opacity: 1;
    transform: translateY(0);
}
.histoty p{
    width: 65%;
    padding-bottom: 1.1%;
    margin: auto;
}
.hosting {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.hosting img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%; 
}

.VALOR{
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
}
.VALOR img{
    width: 100%;
    object-fit: cover;

}

.fortalez {
    padding: 3% 0 7%;
    width: 80%;
    max-width: 1350px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    color: #fff;
    font-family: montserrat_bold;
    font-size: 1.6rem;
    justify-content: center;
    align-items: center;
}

.fortalez .confia, .efica, .eficie {
    justify-content: center;
    text-align: center;
    padding: 6%;
    filter: invert();
    opacity: 0;
    transform: translateY(90px);
    transition: opacity 1s ease-out, transform 0.8s ease-out;
}

.confia.visible, .efica.visible, .eficie.visible {
    opacity: 1;
    transform: translateY(0);
}

.confia,.efica,.eficie, img :not(.target){
    height: 80%;
}

h4{
    margin-bottom: 10%;
}
.grid-container{
    padding: 4%;
    color: #00170A;
    border-radius: 20px 20px 0 0;
}
.grid {
    width: 100%;
    height: 100%;
    max-width: 1350px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-gap: 10px;
}

.box p{
    font-family: montserrat;
    font-weight: 600;
}

.grid-item {
    position: relative;
    overflow: hidden;
    height: 317px;
    transition: transform 0.2s ease;
    border-radius: 7px;
}
.grid-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.grid-item img.visible {
    opacity: 1;
    transform: scale(1);
}
.grid-item:hover {
    transform: scale(1.06);
}


.modal-container {
    z-index: 10000;
    display: none;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    backdrop-filter: blur(6px); 
}

.modal {
    position: absolute;
    pointer-events: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    object-fit: contain;
    
}

.containe img{
    height: 80vh;
    border-radius: 10px;
    overflow: hidden;
}

.close-modal {
    z-index: 10001; 
    position: absolute; 
    top:20px;
    right: 20px; 
    border: none;
    font-size: 28px;
    background-color: transparent; 
    color: #fff;
    cursor: pointer;
}

@media screen and (max-width: 1050px){
    .myv{
        padding: 6%;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2,1fr);
        grid-gap: 5%;
        overflow: hidden;
    }
    .histoty{
        width: 100%;
    }
    .histoty p{
        padding:  0 6% 0; 
        width: 100%;
    }
}

@media screen and (max-width: 870px){
    .encabezado{
        height: 87%;
    }
    h1{
        margin: auto;
        width: 70%;
    }
    .titulo_animado {
        top: 27%;
        width: 85%;
    }
    .myv{
        padding: 7%;
        width: 100%;
        display: grid;
        grid-gap: 4%;
    }
    .sumita{
        width: 100%;
    }
    .fortalez{
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2,1fr);
        grid-gap: none;
    }

    .grid{
        grid-template-columns: repeat(3,1fr);
    }
}

@media screen and (max-width: 540px) {
    .titulo_animado {
        font-size: 4vw;
    }
    .fortalez{
        width: 100%;
        display: grid;
        grid-template-columns: repeat(1,1fr);
        grid-gap: none;
    }
    .sumita{
        width: 100%;
    }
    
    H2{
        padding-top: 7%;
    }
    .ilg img{
        height: 550PX;

    }
    .myv{
        padding: 6%;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(1,1fr);
        grid-gap: 0;
        margin-bottom: -15%;
        overflow: hidden;
    }
    .histoty{
        width: 100%;
    }
    .histoty p{
        padding:  0 6% 0; 
        width: 100%;
    }
    .hosting img{
        object-position:32%; 
        transform: scale(1.2);
    }
    .grid{
        grid-template-columns: repeat(2,1fr);
    }
    .containe img{
        height: 0%;
        width: 90vw;
    }
    
}

@keyframes entrada {
    0% {
        opacity: 0;
        transform: translate(-50%, 10%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -37%);
    }
}

/* Estilos iniciales para ocultar la tarjeta */
.tarjeta-personal {
    opacity: 0;
    width: 100%;
    position: fixed;
    bottom: 0;
    z-index: 1001;
    pointer-events: auto;
    transition: opacity 0.4s ease-in-out, transform 0.3s ease-in-out;
    transform: translateY(100%);
    padding-bottom: 60px;
}


/* Mostrar la tarjeta con animación */
.tarjeta-personal.show {
    opacity: 1;
    pointer-events: none;
    transform: translateY(0); /* Deslizar hacia arriba */
}

/* Fondo oscuro para el modo modal */
#modalBackground {
    display: none; /* Oculta el fondo por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

/* Estilos específicos de la tarjeta */
.target {
    pointer-events: all;
    margin-bottom: 0;
    position: relative;
    margin: auto;
    width: 355px;
    height: 300px;
    color: #e9e8e8;
    background: linear-gradient(to top,#09863b 0%,#003515 66%);
    text-align: center;
    border-radius: 30px 30px 0 0;
    padding-top: 80px;
    z-index: 1002;
    

}
.target::before {
    content: "";
    display: flex;
    pointer-events: all;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 12px;
    width: 95%;
    height: 90px;
    z-index: -10;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.13);
    transform-origin: bottom;
    transition: transform 0.5s, height 0.5s;
}



.target:hover::before {
    height: 181px;
    border-radius: 20px;
    animation: none; /* Deshabilita la animación al hacer hover */
}



.target img{
    pointer-events: none;
    width: 140px;
    border-radius: 100%;
    position: absolute;
    top: -66px;
    left: 50%;
    transform: translateX(-50%);

}

.ame {
    margin: 38px 0 15px;
    transition: margin 0.5s; /
}
.target:hover .ame {
    margin: 30px 0 29px; 
}
.marcando{
    top: 125px;
    left: 50%;
    position: absolute; 
    
}
.marcando img{
    width: 40px;
    height: auto;
    border: none;
}
.ame h5 {
    margin: 10px 0 5px;
    font-size: 20px;
    letter-spacing: 0.4px;
    font-family: montserrat_regular;
    font-weight: 900;
}

.ame h6 {
    margin: 5px 0 px;
    font-size: 16px;
    color: #ccc;
    font-weight: 100;
    font-family: montserrat_regular;
}

.morkus {
    display: flex;
    gap: 28px;
    justify-content: center;
    align-items: center;
}

.morkus {
    display: flex;
    gap: 28px;
    justify-content: center;
    align-items: center;
}

.morkus a {
    z-index: 1001;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    color: #e9e8e8;
    font-size: 2.2rem;
    transition: color 0.3s;
    background-color: #111010;
    border-radius: 100px;
    pointer-events: all;
    transition: transform 0.27s ease-in-out;
}

.morkus a:hover {
    background-color: #000000;
    transform: scale(1.15);
    box-shadow: 0 9px 8px rgba(0, 0, 0, 0.7);
}

/* PIE DE PAGINA */

.ultim{
    margin: auto;
    width: 100%;
    background-image: url(../Imagenes/font.png);
    background-attachment: fixed; 
    overflow: hidden;
    box-sizing: border-box;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    flex-direction: column;
    padding: 2%;
    }
    
    .ultim .tifu{
        color: #fff;
        width: 82%;
        max-width: 1350px;
        margin: auto;
        display: grid;
        grid-template-columns: repeat(2,1fr);
        grid-gap: 40px;
        padding: 45px 0px;
    }
    
    .sptun{
        font-family: montserrat_bold;
        margin: auto;
        width: 100%;
        padding: 20px;
        text-align: center;
        font-size:22px;
        color:#f0ebeb;
        background-color: #038036;
        border-radius: 50px;
        transition: all 300ms ease;
    }
    
    .sptun:hover{
        background-color: #6A952F;
    }
    .conta_tos {
        font-family: montserrat_bold;
        font-size: 18px;
        color: #fff;
        margin: auto;
        width: 250PX;
        justify-content: center;
        align-items: center;
        background-color: #038036; 
        border: none; 
        border-radius: 50px; 
        text-decoration: none;
        transition: all 300ms ease;
        padding: 20PX;
        text-align: center;
    }
    .tifu button a{
        color: #fff;
    }
    .conta_tos:hover {
        background-color: #5c7f28; 
    }
    .pie-pagina{
        position: relative;
        width: 100%;
        background-color: #00170A;
        text-align: center;
    }
    
    .pie-pagina .grupo-1{
        width: 100%;
        max-width: 1200px;
        margin: auto;
        display: grid;
        grid-template-columns: repeat(3,1fr);
        grid-gap: 50px;
        padding: 45px 0px;
    
    }
    .pie-pagina .grupo-1 .box figure{
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .box{
        margin: 20px;
        display: flex; 
        justify-content: center; 
        align-items: center; 
        flex-direction: column;
    }
    .box img{
        width:250PX;
        height: 90%;
    }
    .grid p{
        font-family: montserrat_bold;
    }
    .box p{
        font-family: montserrat;
        font-weight: 600;
    }
    .pie-pagina .grupo-1 .box p{
        color: #fff;
        margin-bottom: 10PX;
    }
    .re-social a {
        display: inline-flex; 
        justify-content: center; 
        align-items: center; 
        width : 70px;
        height: 70px; 
        font-size: 1.7rem;
        background-color: #038036; 
        color: #ffffff; 
        border-radius: 50%;
        margin: 7px; 
        text-decoration: none; 
        transition: all 300ms ease;
    }
    .re-social a:hover{
        background-color: #6A952F;
    
    }
    .pie-pagina .all-derechos{
        background-color: #038036;
        color: #fff;
        text-align: center;
        padding: 20PX 10PX;
    }
    .pie-pagina .all-derechos{
        font-size: 1.1rem;
    }

    .all-derechos img{
        height: 0.85rem;

    }
    .hc{
        z-index: 10000;
    }
    .scroll-btn {
        width: 45px;
        height: 45px;
        font-size: 15px;
        border-radius: 50px;
        border: none;
        background-color: #038036;
        color: #f0ebeb;
        margin: 7px;
        position: fixed;
        bottom: 4px;
        right: 25px;
        opacity: 0;
        visibility: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 1000; /* Asegura que el botón esté en la parte superior */
        transition: opacity 0.5s, visibility 0.8s; /* Transición suave */
    }
    .scroll-btn.show {
        opacity: 1;
        visibility: visible;
    }
    #scroll-btn:hover{
        background-color: #6A952F;
    }
    
    
    .whatsapp-button {
        width: 80px;
        height: 80px;
        position: fixed;
        bottom: 65px;
        right: 15px;
        background-color: #25D366;
        color: white;
        border-radius: 50px;
        font-size: 50px;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
        transition: transform 0.2s ease;
        animation-delay: 0.6s; 
    }
    .whatsapp-button :hover{
        transform: scale(1.1);
    }

    .whatsapp-button{
        opacity: 0;
        transform: translatex(20px); /* Empiezan desplazados hacia abajo */
        animation: entradaDesdeDerechaS 0.8s forwards;
        animation-delay: 0.8s;
    }
    
    @keyframes entradaDesdeDerechaS {
        from {
            opacity: 0;
            transform: translateX(20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @media screen and (max-width: 870px) {
    
        .pie-pagina .grupo-1{
            width: 80%;
            grid-template-columns: repeat(1,1fr);
            grid-gap: 40px;
            padding: 45px 0px;
        }
        .grupo-1 a img{
            width: 150PX;
        }
        .box{
            margin: 3px;
        }
        .ultim .tifu{
            grid-template-columns: repeat(1,1fr);
            width: 80%;
        }
        .sptun{
            font-size: 1.9rem;
        }

        .conta_tos{
            width: 60%;
        }
    }
    @media screen and (max-width: 470px) {
    
        .pie-pagina .grupo-1{
            width: 80%;
            grid-template-columns: repeat(1,1fr);
            grid-gap: 40px;
            padding: 45px 0px;
        }
        .grupo-1 a img{
            width: 70%;
            height: auto;
        }
        .box{
            margin: 3px;
        }
        .ultim .tifu{
            grid-template-columns: repeat(1,1fr);
            width: 80%;
        }
        .sptun{
            border-radius: 20px;
            font-size: 1.5rem;
        }
        .conta_tos{
            width: 82%;
        }
    }
    