*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;

}
body {
    margin: 0;
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: block;
} 

.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; 
}
.active {
        color: #ffffff;
        background-color: #038036;
        padding: 9px;
        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*/
section{
    width: 100%;
    height: 100%;
    z-index: 100;
    margin: auto;
    position: relative;
    overflow: hidden;
    background-size: cover; 
    background-position: center;
    background-attachment: fixed; 
}

form {
    position: absolute;
    top: 55%;
    left: 75%;
    transform: translate(-50%, -50%);
    background-color: #f4f3f3;
    padding: 3%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 30px;
    text-align: center;
    height: 80vh;
    width: 37vw;
    font-family: montserrat;
    animation: entrada 1s forwards;
}
.input-group{
    z-index: 1000;
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: left;
    height: 87%;
}

#message{
    height: 90%;
}
h2{
    font-family: montserrat_bold;
    font-weight: 900;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

input, textarea {

    padding: 17px 25px;
    border-radius: 20px;
    margin-bottom: 20px;
    background-color: #e9e8e8;
    border: 1px solid #f0faf1;
}
.enviar{
    width: 60%;
    margin: auto;
    background-color: #038036;
    color: #d3d3d3;
    transition: all 300ms ease;
    font-family: montserrat;
    font-weight: 900;
    cursor: pointer;
    border-radius: 30px;
}
.enviar:hover {
    background-color: #6A952F; 
    color: #fff;
}


@media screen and (max-width: 870px) {

    form{
        width: 70%;
        padding: 40px 40px;
        top: 55%;
        left: 50%;
    }
    .enviar{
        width: 60%;
    }
}
@media screen and (max-width: 470px) {

    form{
        height: 75vh;
        padding: 35px 35px;
        width: 85%;
        top: 55%;
        left: 50%;
    }
    .enviar{
        width: 100%;
    }

}
@keyframes entrada {
    0% {
        opacity: 0;
        transform: translate(-50%, 1%);
    }
}


/* MAPS */

.ultim{
    z-index: 100;
    margin: auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr;
}


.ultim .tifu{
    background-image: url(../Imagenes/font.png);
    display: flex;
    width: 100%;
    height: 500px;
        
}
.box{
    padding: 10%;
    color: #e9e8e8;
    display: flex; 
    justify-content: center; 
    align-items: left; 
    flex-direction: column;
}
.map-container {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.box h4{
    width: 250px;
    font-size: 25px;
    font-family: montserrat_bold;
    font-weight: 800;
    margin-bottom: 20px;
    }
    .box p {
        font-family: montserrat;
        font-weight: 600;          
        margin-top: 20px;
    }
    .box li{
        font-family: montserrat;
        font-weight: 600;
        margin-top: 10px;
    }

    @media screen and (max-width: 870px) {
        .ultim{
            width: 100%;
            display: grid;
            grid-template-columns: 1fr;
        }
        .tifu{
            grid-template-columns: 1fr;
            
        }
    }

    @media screen and (max-width: 470px) {
        .ultim{
            width: 100%;
            display: grid;
            grid-template-columns: 1fr;
        }
        .tifu{
            grid-template-columns: 1fr;
        }
        
    }


/* Estilos iniciales para ocultar la tarjeta */
.tarjeta-personal {
    opacity: 0;
    width: 100%;
    position: fixed;
    bottom: 0;
    z-index: 100;
    pointer-events: auto;
    transition: opacity 0.4s ease-in-out, transform 0.3s ease-in-out;
    transform: translateY(100%);
    padding-bottom: 50px;
}


/* 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: 99;
}

/* 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,#067532,#01240f);
    text-align: center;
    border-radius: 30px 30px 0 0;
    padding-top: 80px;
    z-index: 101;
    

}
.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; 
}



.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 h3 {
    margin: 10px 0 5px;
    font-size: 20px;
    letter-spacing: 0.4px;
    font-family: montserrat_regular;
    font-weight: 900;
}

.ame h4 {
    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: 77px;
    height: 77px;
    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 */

.pie-pagina{
        position: relative;
        width: 100%;
        background-color: #00170A;
        text-align: center;
    }

.pie-pagina .grupo-1{
    width: 100%;
    margin: auto;
    grid-gap: 50px;
    padding: 45px 0px;
}
    .grupo-1 .boxe{
        height: 70px;
    }

    .pie-pagina .grupo-1 .box p{
        color: #fff;
        margin-bottom: 10PX;
    }
    .re-social a {
        font-size: 29px;
        display: inline-flex;
        justify-content: center; 
        align-items: center; 
        width : 75px;
        height: 75px; 
        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: 15PX 10PX;
    }
    .pie-pagina .all-derechos{
        font-size: 1.1rem;
    }
    .all-derechos img{
        height: 0.85rem;
        cursor: auto;

    }
    @media screen and (max-width: 870px) {
    
        .pie-pagina .grupo-1{
            width: 80%;
            grid-template-columns: repeat(1,1fr);
            grid-gap: 40px;
            padding: 45px 0px;
        }

        }
    @media screen and (max-width: 470px) {
        

        .pie-pagina .grupo-1{
            width: 80%;
            grid-template-columns: repeat(1,1fr);
            grid-gap: 40px;
            padding: 45px 0px;
        }
        .box h4{
            width: 100%;
            text-align: center;
        }
    }
