/* ==========================================================
   FOOTER
   ========================================================== */

.site-footer {
    --footer-primary: #173f6b;
    --footer-primary-dark: #0d2b4b;
    --footer-accent: #6ea7cf;
    --footer-text: #dce8f2;
    --footer-muted: #b8cad8;
    --footer-border: rgba(255, 255, 255, 0.14);

    margin-top: 0;
    color: var(--footer-text);
    background: var(--footer-primary-dark);
}

/* ==========================================================
   CINTILLO DE REDES SOCIALES
   ========================================================== */

.site-footer{

    position:relative;
    overflow:hidden;
    background:#143760;
}

.site-footer::before{

    content:"";

    position:absolute;

    width:500px;
    height:500px;

    left:-120px;
    top:-120px;

    background:radial-gradient(
        circle,
        rgba(0,180,255,.12),
        transparent 70%
    );

    pointer-events:none;
}

.site-footer::after{

    content:"";

    position:absolute;

    width:420px;
    height:420px;

    right:-140px;
    bottom:-140px;

    background:radial-gradient(
        circle,
        rgba(255,140,70,.08),
        transparent 70%
    );

    pointer-events:none;
}

.footer-gradient{
    width:100%;
    height:20px;

    background:linear-gradient(
        90deg,
        #7A5410 0%,
        #B8860B 15%,
        #D4AF37 35%,
        #FFD700 50%,
        #D4AF37 65%,
        #B8860B 85%,
        #7A5410 100%
    );
}

.site-header::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-1px;

    width:100%;
    height:1px;

    background:linear-gradient(
        90deg,
        transparent,
        #B8860B 15%,
        #F4D35E 50%,
        #B8860B 85%,
        transparent
    );
}

.footer-social-strip {
    position: relative;
    z-index: 2;
    padding: 22px 20px;
    background: #ffffff;
    border-top: 1px solid #e6edf3;
    border-bottom: 1px solid #e6edf3;
}

.footer-social-strip__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

.footer-social-strip__title {
    color: #173f6b;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.footer-social-strip__links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-social-strip__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    color: #173f6b;
    background: #ffffff;

    border: 1px solid #d5e0e9;
    border-radius: 13px;

    box-shadow: 0 4px 12px rgba(20, 55, 87, 0.06);

    transition:
        transform 0.22s ease,
        color 0.22s ease,
        background-color 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.footer-social-strip__link svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-social-strip__link svg rect,
.footer-social-strip__link svg circle {
    fill: none;
}

.footer-social-strip__link svg .social-play {
    fill: #ffffff;
    stroke: none;
}

.footer-social-strip__link:hover,
.footer-social-strip__link:focus-visible {
    color: #ffffff;
    background: #173f6b;
    border-color: #173f6b;

    transform: scale(1.2);

    box-shadow: 0 10px 24px rgba(20, 55, 87, 0.2);
}

.footer-social-strip__link:focus-visible {
    outline: 3px solid rgba(110, 167, 207, 0.45);
    outline-offset: 4px;
}

/* ==========================================================
   ÁREA PRINCIPAL
   ========================================================== */

.footer-main {
    position: relative;
    overflow: hidden;
    padding: 66px 20px 58px;

    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(110, 167, 207, 0.18),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #173f6b 0%,
            #102f52 55%,
            #0d2947 100%
        );
}

.footer-main::after {
    content: "";
    position: absolute;
    right: -130px;
    bottom: -180px;

    width: 420px;
    height: 420px;

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

    pointer-events: none;
}

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

    display: grid;
    grid-template-columns: minmax(250px, 1.25fr) minmax(180px, 0.7fr) minmax(280px, 1.2fr);
    gap: 56px;
}

/* ==========================================================
   MARCA
   ========================================================== */

.footer-brand__logo-link {
    display: inline-block;
    margin-bottom: 22px;
}

.footer-brand__logo {
    display: block;
    width: min(240px, 100%);
    height: auto;
    object-fit: contain;
}

.footer-brand__description {
    max-width: 430px;
    margin: 0 0 28px;

    color: var(--footer-muted);

    font-size: 0.98rem;
    line-height: 1.8;
}

.footer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    min-height: 46px;
    padding: 11px 20px;

    color: #173f6b;
    background: #ffffff;

    border: 1px solid #ffffff;
    border-radius: 9px;

    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;

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

.footer-button span {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.footer-button:hover {
    color: #ffffff;
    background: transparent;

    transform: translateY(-2px);

    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.16);
}

.footer-button:hover span {
    transform: translateX(4px);
}

/* ==========================================================
   TÍTULOS Y NAVEGACIÓN
   ========================================================== */

.footer-title {
    position: relative;

    margin: 0 0 27px;
    padding-bottom: 13px;

    color: #ffffff;

    font-size: 1.04rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 38px;
    height: 2px;

    background: var(--footer-accent);
    border-radius: 10px;
}

.footer-navigation {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.footer-navigation a {
    position: relative;
    display: inline-flex;
    align-items: center;

    padding: 7px 0 7px 17px;

    color: var(--footer-muted);

    font-size: 0.94rem;
    line-height: 1.5;
    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-navigation a::before {
    content: "";
    position: absolute;
    left: 0;

    width: 6px;
    height: 6px;

    background: var(--footer-accent);
    border-radius: 50%;

    transition: transform 0.2s ease;
}

.footer-navigation a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-navigation a:hover::before {
    transform: scale(1.4);
}

/* ==========================================================
   CONTACTO
   ========================================================== */

.footer-contact {
    min-width: 0;
}

.footer-contact__item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: flex-start;

    padding: 13px 0;

    border-bottom: 1px solid var(--footer-border);
}

.footer-contact__item:first-of-type {
    padding-top: 0;
}

.footer-contact__item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.footer-contact__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 11px;
}

.footer-contact__icon svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-contact__item strong {
    display: block;
    margin-bottom: 4px;

    color: #ffffff;

    font-size: 0.83rem;
    font-weight: 700;
}

.footer-contact__item p,
.footer-contact__item a {
    margin: 0;

    color: var(--footer-muted);

    font-size: 0.91rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.footer-contact__item a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact__item a:hover {
    color: #ffffff;
}

/* ==========================================================
   PARTE INFERIOR
   ========================================================== */

.footer-bottom {
    padding: 20px;

    background: #09243f;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-bottom p {
    margin: 0;

    color: #aebfce;

    font-size: 0.83rem;
    line-height: 1.5;
}

.footer-bottom a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 980px) {
    .footer-main__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 48px 38px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand__description {
        max-width: 600px;
    }
}

@media (max-width: 680px) {
    .footer-social-strip {
        padding: 19px 15px;
    }

    .footer-social-strip__title {
        font-size: 0.75rem;
    }

    .footer-social-strip__links {
        gap: 10px;
    }

    .footer-social-strip__link {
        width: 43px;
        height: 43px;
        border-radius: 12px;
    }

    .footer-main {
        padding: 48px 20px 42px;
    }

    .footer-main__grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-title {
        margin-bottom: 22px;
    }

    .footer-bottom__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
    }
}

@media (max-width: 420px) {
    .footer-social-strip__link {
        width: 40px;
        height: 40px;
    }

    .footer-social-strip__link svg {
        width: 19px;
        height: 19px;
    }

    .footer-social-strip__link:hover,
    .footer-social-strip__link:focus-visible {
        transform: scale(1.12);
    }

    .footer-main {
        padding-right: 17px;
        padding-left: 17px;
    }

    .footer-contact__item {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 12px;
    }

    .footer-contact__icon {
        width: 38px;
        height: 38px;
    }
}

/* Reduce movimientos si el usuario lo solicita en su dispositivo */

@media (prefers-reduced-motion: reduce) {
    .footer-social-strip__link,
    .footer-button,
    .footer-button span,
    .footer-navigation a,
    .footer-navigation a::before {
        transition: none;
    }

    .footer-social-strip__link:hover,
    .footer-social-strip__link:focus-visible,
    .footer-button:hover,
    .footer-navigation a:hover {
        transform: none;
    }
}

