
/*** Footer ***/
.footer {
    color: rgba(255, 255, 255, 0.72);
}

.footer-title {
    color: #ffffff;
    font-weight: 600;
}

.footer-description {
    max-width: 520px;
    line-height: 1.6;
}


/*
|--------------------------------------------------------------------------
| Redes sociales
|--------------------------------------------------------------------------
*/

.footer-social {
    gap: 0.75rem;
}

.footer-social a {
    width: 44px;
    height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 50%;

    text-decoration: none;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.footer-social a i {
    color: inherit;
    font-size: 1rem;
}

@media (hover: hover) {

    .footer-social a:hover {
        color: #ffffff;

        background-color: var(--primary);
        border-color: var(--primary);

        transform: translateY(-3px);
    }
}

.footer-social a:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.65);
    outline-offset: 3px;
}


/*
|--------------------------------------------------------------------------
| Área de contacto
|--------------------------------------------------------------------------
*/

.footer-contact-wrapper {
    position: relative;

    min-height: 190px;

    display: flex;
    align-items: flex-start;

    padding-top: 0.35rem;

    overflow: hidden;
}


/*
|--------------------------------------------------------------------------
| Mapa decorativo
|--------------------------------------------------------------------------
*/

.footer-contact-map {
    position: absolute;

    top: 50%;
    right: 15%;

    width: 53%;
    height: auto;

    transform: translateY(-53%);

    /*
     * Lo convertimos visualmente en una silueta clara
     * para usarlo como marca de agua.
     */
    filter:
        grayscale(1)
        brightness(0)
        invert(1);

    opacity: 1.00;

    object-fit: contain;

    pointer-events: none;
    user-select: none;

    z-index: 0;
}


/*
|--------------------------------------------------------------------------
| Datos de contacto
|--------------------------------------------------------------------------
*/

.footer-contact {
    position: relative;

    z-index: 1;

    width: 100%;
    max-width: 520px;

    margin: 0;

    font-style: normal;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;

    gap: 0.9rem;

    margin-bottom: 1rem;

    line-height: 1.55;
}

.footer-contact-item:last-child {
    margin-bottom: 0;
}


/*
|--------------------------------------------------------------------------
| Iconos de contacto
|--------------------------------------------------------------------------
*/

.footer-contact-item > i {
    width: 22px;

    flex: 0 0 22px;

    margin-top: 0.2rem;

    color: #c377bd;

    font-size: 1rem;
    text-align: center;
}


/*
|--------------------------------------------------------------------------
| Texto y enlaces
|--------------------------------------------------------------------------
*/

.footer-contact-item span,
.footer-contact-item a {
    color: rgba(255, 255, 255, 0.78);
}

.footer-contact-item a {
    text-decoration: none;

    transition: color 0.2s ease;
}

.footer-contact-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-contact-item strong {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}


/*
|--------------------------------------------------------------------------
| Copyright
|--------------------------------------------------------------------------
*/

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.10);

    color: rgba(255, 255, 255, 0.58);

    font-size: 0.9rem;
}

.footer-copyright a {
    color: var(--secondary);

    text-decoration: none;

    transition: color 0.2s ease;
}

.footer-copyright a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-credits {
    color: rgba(255, 255, 255, 0.42);
}

.footer-credits a {
    color: rgba(255, 255, 255, 0.62);
}

/*
|--------------------------------------------------------------------------
|Pantallas chicas
|--------------------------------------------------------------------------
*/
@media (min-width: 992px) and (max-width: 1199.98px) {

    .footer-title {
        font-size: 1.1rem;
    }

    .footer-description {
        font-size: 0.95rem;
    }

    .footer-contact-wrapper {
        min-height: 205px;
        padding-right: 145px;
    }

    .footer-contact {
        max-width: 350px;
    }

    .footer-contact-map {
        top: 34%;
        width: 51%;
        right: 7%;
    }

    .footer-contact-item {
        gap: 0.75rem;
        font-size: 0.94rem;
    }
}

/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (min-width: 768px) and (max-width: 991.98px) {

    .footer-contact-wrapper {
        min-height: 210px;
        padding-right: 125px;
    }

    .footer-contact {
        max-width: 360px;
    }

    .footer-contact-map {
        top: 49%;
        right: -14%;
        width: 68%;
    }
}


/*
|--------------------------------------------------------------------------
| Móvil
|--------------------------------------------------------------------------
*/

@media (max-width: 767.98px) {

    .footer {
        text-align: center;
    }

    .footer-description {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact-wrapper {
        position: relative;

        min-height: 260px;
        max-width: 440px;

        margin-left: auto;
        margin-right: auto;

        overflow: hidden;
    }

    .footer-contact {
        position: relative;
        z-index: 1;

        max-width: 100%;
    }

    .footer-contact-item {
        justify-content: flex-start;
        text-align: left;
    }

    .footer-contact-map {
        top: 29%;
        right: 25%;
        width: 63%;
        height: auto;
        transform: translate(50%, -50%);
        z-index: 0;
    }

    .footer-copyright {
        font-size: 0.85rem;
    }
}

/*
|--------------------------------------------------------------------------
| Móviles pequeños
|--------------------------------------------------------------------------
*/

@media (max-width: 575.98px) {

    .footer-contact-wrapper {
        min-height: 255px;
    }

    .footer-contact-map {
        top: 30%;
        width: 61%;
    }

    .footer-contact-item {
        gap: 0.7rem;
        font-size: 0.92rem;
    }

    .footer-social a {
        width: 42px;
        height: 42px;
    }
}

/*
|--------------------------------------------------------------------------
| Para moviles fold o pantallas angostas
|--------------------------------------------------------------------------
*/
@media (max-width: 390px) {

    .footer-contact-wrapper {
        min-height: 245px;
    }

    .footer-contact-map {
        top: 25%;
        width: 65%;
        opacity: 0.075;
    }

    .footer-contact-item {
        gap: 0.55rem;

        font-size: 0.86rem;
        line-height: 1.45;
    }

    .footer-contact-item > i {
        width: 18px;
        flex-basis: 18px;

        font-size: 0.9rem;
    }
}

/*
|--------------------------------------------------------------------------
| Preferencia de movimiento reducido
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {

    .footer-social a,
    .footer-contact-item a,
    .footer-copyright a {
        transition: none;
    }

    .footer-social a:hover {
        transform: none;
    }
}