:root {
    --foreground: rgb(1,41,112);
    --background: rgb(194,233,243);
    --link-hover: rgb(19, 81, 187);
}

* { padding: 0; margin: 0; }
html, body, #fullheight {
    min-height: 100% !important;
    height: 100%;
    background-color: var(--background);
    color: var(--foreground);

    font-family: "Afacad Flux", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "slnt" 0;
}

.loader {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 150px;
    height: 150px;
    margin: -77px 0 0 -77px;
    border: 4px solid white;
    border-radius: 50%;
    border-top: 4px solid rgb(194,233,243);
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;

    box-shadow: 0px 0px 25px 0px rgb(194,233,243);
    -webkit-box-shadow: 0px 0px 25px 0px rgb(194,233,243);
    -moz-box-shadow: 0px 0px 25px 0px rgb(194,233,243);
}

.loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -webkit-box-shadow: inset 0px 0px 25px 1px rgb(194,233,243);
    -moz-box-shadow: inset 0px 0px 25px 1px rgb(194,233,243);
    box-shadow: inset 0px 0px 25px rgb(194,233,243);
    border-radius: 50%;

    -webkit-animation: spinc 1s linear infinite;
    animation: spinc 1s linear infinite;

    background-image: url('../img/logo.png');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
}
  
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}
  
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@-webkit-keyframes spinc {
    0% { -webkit-transform: rotate(360deg); }
    100% { -webkit-transform: rotate(0deg); }
}
  
@keyframes spinc {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

.social-links a {
    color: var(--foreground);
    text-decoration: none;
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--link-hover);
}

.pageweb a {
    color: var(--foreground);
}

header {
    background-color: var(--background);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .5);
}

.nav-link {
    color: var(--foreground);
    text-align: center;
}
.nav-link:hover {
    color: var(--background);
    background-color: var(--foreground);
}
.nav-link.actual {
    color: var(--foreground);
    border-bottom: 1px solid var(--foreground);
    border-radius: 0px;
}
.nav-link.actual:hover {
    color: var(--foreground);
    background-color: var(--background);
}

/* Menú móvil */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--foreground);
    font-size: 1.5rem;
    cursor: pointer;
}
.nav-menu {
    display: flex;
    list-style: none;
}
@media (max-width: 768px) {
    header {
        height: 60px;
    }

    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 1000;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--background);
        box-shadow: 0 2px 5px rgba(0, 0, 0, .5);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        max-height: 300px;
    }

    .nav-link {
        padding: 15px;
        border-bottom: 1px solid rgba(1, 41, 112, 0.1);
    }
}

.gallery-img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.03);
}

.hero-section {
    background-color: var(--background);
}

.logo {
    width: 50px;
    height: auto;
    position: absolute;
    top: 10px;
    left: 10px;
}

.header-whatsapp {
    width: 50px;
    height: auto;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
}

@media screen and (max-width: 768px) {
    .header-whatsapp {
        right: 30px;
    }
}