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

/* BASE */
body {
    background-color: white;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    text-decoration: none;
    color: rgb(6, 28, 118);
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    position: sticky;
    top: 0;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 0.063rem solid rgba(4, 10, 85, 0.15);
}
#dih{
    opacity: 100%;
}

/* LOGO */
#logo {
    margin-left: 2rem;
    width: 14rem;
    height: auto;
    transition: transform 0.3s ease;
}

#logo:hover {
    transform: scale(1.03);
}

/* MENU */
nav {
    position: relative;
    margin-right: 3rem;
}

#menu {
    list-style: none;
    font-size: 1.05rem;
    font-weight: bold;
    letter-spacing: 0.05rem;
    display: flex;
    justify-content: flex-end;
    gap: 1.25rem;
    color: rgb(6, 28, 118);
}
#menu a {
    position: relative;
}

#menu a {
    position: relative;

    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: text-decoration-color 0.25s ease;
}

#menu a:hover {
    text-decoration-color: rgb(6, 28, 118);
}


/* SUBMENU */
.hiddenmenu {
    display: none;
}

#submenu {
    position: absolute;
    background-color: white;
    backdrop-filter: blur(8px);
    border-radius: 0.45rem;
    padding: 0.4rem 0.6rem;
    overflow: clip;
    border: 0.063rem solid rgba(6, 28, 118, 0.15);
    animation: expand 0.2s ease-in-out;
}

@keyframes expand {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

#submenu p {
    padding: 10%;
    margin-bottom: 0.2rem;
    position: relative;
}

#submenu a {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.25s ease;
}

#submenu a:hover {
    text-decoration-color: rgb(6, 28, 118);
}

.hiddenmenu {
    display: none;
}

/* FOOTER */
footer {
    background: rgba(6, 28, 118, 0.04);
    border-top: 0.063rem solid rgba(6, 28, 118, 0.15);
    margin-top: 3rem;
    padding: 3rem 2rem 1.5rem 2rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    width: 10rem;
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.9rem;
    color: rgba(6, 28, 118, 0.8);
    line-height: 1.5;
}

footer h3{
    color: rgb(6, 28, 118);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: text-decoration-color 0.25s ease;
    color: rgba(6, 28, 118, 0.85);
}

.footer-links a:hover {
    text-decoration-color: rgb(6, 28, 118);
}

/* REDES */
.social-section {
    margin-bottom: 1rem;
}

.social-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: rgba(6, 28, 118, 0.85);
    font-weight: bold;
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.icons {
    width: 2rem;
    opacity: 0.8;
    transition: opacity 0.01s ease, transform 0.2s ease;
}

.icons:hover {
    opacity: 1;
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(6, 28, 118, 0.1);
    font-size: 0.85rem;
    color: rgba(6, 28, 118, 0.75);
}

#phoneBtn{
    display: none;
}

/* RESPONSIVO */
@media (max-width: 700px) {
    #logo{
        width: 45%;
    }
    #menu{
        position: absolute;
        display: grid;
        align-content: space-evenly;
        grid-template-columns: 1fr;
        text-align: left;
        width: 100%;
        height: 100%;
        font-size: 0.9rem;
    }
    #menu p{
        padding: 0 10px;
    }
    #dih{
        position:absolute;
        display: inline-block;
        height: 40vh;
        width: 30vw;
        top: 2.5vh;
        right: -45vw;
        background-color: rgba(255, 255, 255, 0.85);
        border: 0.063rem solid rgba(6, 28, 118, 0.15);
        border-radius: 10px;
        transition: right 1s, opacity 1s, width 1s, color 0.1s;
        opacity: 0%;
    }
    #phoneBtn{
        display: flow;
        font-size: 1rem;
        font-weight: bold;
        text-transform: uppercase;
        background: transparent;
        color: rgb(6, 28, 118);
        padding: 0.4rem 0.9rem;
        border: none;
        /*border-radius: 30px;*/
        height: 100%;
    }
    .small{
        position: relative;
        left: 5%;
        font-weight: lighter;

    }
    .par{
        margin-bottom: -1rem;
    }

    #submenu{
        position: relative;
        right: 100%;
        background-color: rgba(255, 255, 255, 0.85);
    }
    /* FOOTER */
    footer {
        padding: 1.5rem 1rem 1rem 1rem;
        text-align: center;
    }

    .footer-container {
        flex-direction: column;
        gap: 1.2rem;
    }

    .footer-col {
        min-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-logo {
        width: 6rem;
        margin-bottom: 0.5rem;
    }

    .footer-description {
        font-size: 0.75rem;
        line-height: 1.3;
        max-width: 250px;
    }

    footer h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .footer-links li {
        margin-bottom: 0.4rem;
    }

    .footer-links a {
        font-size: 0.8rem;
    }

    .social-section {
        margin-bottom: 0.8rem;
    }

    .social-title {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }

    .socials {
        justify-content: center;
        gap: 0.8rem;
    }

    .icons {
        width: 1.5rem;
    }

    .footer-bottom {
        margin-top: 1rem;
        padding-top: 0.8rem;
        font-size: 0.65rem;
    }
}