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

.site-footer {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #101010;
}


/* Línea superior naranja */

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #ff6816;
}


/* =========================================================
   PARTE PRINCIPAL
========================================================= */

.site-footer__top {
    padding: clamp(70px, 7vw, 105px) 0 clamp(60px, 6vw, 90px);

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(255, 104, 22, .09),
            transparent 27%
        ),
        linear-gradient(
            125deg,
            #0c0c0c 0%,
            #181818 58%,
            #222 100%
        );
}


.site-footer__inner {
    width: min(calc(100% - 48px), 1440px);
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.35fr .65fr 1fr 1fr;
    gap: clamp(40px, 5vw, 85px);
}


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

.site-footer__brand {
    max-width: 380px;
}


.site-footer__logo {
    display: inline-flex;
    align-items: flex-start;

    color: #000000;

    font-size: clamp(2.8rem, 4vw, 4.2rem);
    line-height: .9;
    letter-spacing: -.07em;
    font-weight: 900;
}


.site-footer__logo span {
    margin: -5px 0 0 5px;
    color: #000;
    font-size: 1rem;
}


.site-footer__brand p {
    max-width: 350px;
    margin: 28px 0 0;

    color: rgba(255,255,255,.68);

    font-size: .98rem;
    line-height: 1.7;
}


/* =========================================================
   REDES SOCIALES
========================================================= */

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 32px;
}


.site-footer__social a {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

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

    color: #fff;

    font-size: .82rem;
    font-weight: 800;

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


.site-footer__social a:hover {
    color: #fff;
    background: #ff6816;
    border-color: #ff6816;
    transform: translateY(-3px);
}


/* =========================================================
   COLUMNAS
========================================================= */

.site-footer__column h3 {
    position: relative;

    margin: 4px 0 28px;

    color: #fff;

    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}


.site-footer__column h3::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -11px;

    width: 32px;
    height: 2px;

    background: #ff6816;
}


.site-footer__links {
    display: grid;
    gap: 14px;
}


.site-footer__links a {
    width: fit-content;

    color: rgba(255,255,255,.68);

    font-size: .94rem;
    line-height: 1.45;

    transition:
        color .2s ease,
        transform .2s ease;
}


.site-footer__links a:hover {
    color: #ff6816;
    transform: translateX(4px);
}


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

.site-footer__contact-item {
    display: grid;
    gap: 4px;

    margin-bottom: 18px;
}


.site-footer__contact-label {
    color: rgba(255,255,255,.42);

    font-size: .72rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .08em;
}


.site-footer__contact-item a,
.site-footer__contact-item > span:last-child {
    color: rgba(255,255,255,.82);

    font-size: .95rem;
    line-height: 1.5;
}


.site-footer__contact-item a:hover {
    color: #ff6816;
}


/* =========================================================
   BOTÓN
========================================================= */

.site-footer__button {
    min-height: 50px;

    margin-top: 12px;
    padding: 0 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 28px;

    color: #fff;
    background: #ff6816;

    border-radius: 12px;

    font-size: .9rem;
    font-weight: 800;

    transition:
        background .25s ease,
        transform .25s ease;
}


.site-footer__button:hover {
    background: #e95709;
    transform: translateY(-2px);
}


.site-footer__button span {
    font-size: 1.25rem;
}


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

.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    background: #090909;
}


.site-footer__bottom-inner {
    width: min(calc(100% - 48px), 1440px);
    min-height: 78px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
}


.site-footer__bottom p {
    margin: 0;

    color: rgba(255,255,255,.42);

    font-size: .78rem;
}


.site-footer__legal {
    display: flex;
    justify-content: center;
    gap: 24px;
}


.site-footer__legal a,
.site-footer__credit a {
    color: rgba(255,255,255,.55);

    font-size: .78rem;

    transition: color .2s ease;
}


.site-footer__legal a:hover,
.site-footer__credit a:hover {
    color: #ff6816;
}


.site-footer__credit {
    text-align: right;
}


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

@media (max-width: 1050px) {

    .site-footer__inner {
        grid-template-columns: 1.3fr 1fr 1fr;
    }


    .site-footer__brand {
        grid-column: 1 / -1;
        max-width: 600px;
    }

}


@media (max-width: 760px) {

    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 50px 30px;
    }


    .site-footer__brand {
        grid-column: 1 / -1;
    }


    .site-footer__contact {
        grid-column: 1 / -1;
    }


    .site-footer__bottom-inner {
        padding: 25px 0;

        grid-template-columns: 1fr;

        text-align: center;
    }


    .site-footer__legal {
        flex-wrap: wrap;
    }


    .site-footer__credit {
        text-align: center;
    }

}


@media (max-width: 520px) {

    .site-footer__top {
        padding: 65px 0 55px;
    }


    .site-footer__inner {
        width: calc(100% - 36px);
        grid-template-columns: 1fr;
        gap: 42px;
    }


    .site-footer__brand,
    .site-footer__contact {
        grid-column: auto;
    }


    .site-footer__brand p {
        max-width: none;
    }


    .site-footer__bottom-inner {
        width: calc(100% - 36px);
    }


    .site-footer__legal {
        display: grid;
        gap: 10px;
    }

}
.footer__logo{
    display:inline-flex;
    align-items:center;
    text-decoration:none;
}

.footer__logo img{
    display:block;

    width:auto;
    height:clamp(70px, 7vw, 105px);

    
}
/* =========================================================
   BOTÓN FLOTANTE WHATSAPP
========================================================= */

.td-whatsapp{
    position:fixed;
    right:24px;
    bottom:24px;

    width:62px;
    height:62px;

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

    background:#25D366;
    border-radius:50%;

    box-shadow:
        0 8px 25px rgba(0,0,0,.20),
        0 3px 8px rgba(0,0,0,.12);

    z-index:9999;

    text-decoration:none;

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


/* =========================================================
   ICONO
========================================================= */

.td-whatsapp__icon{
    position:relative;
    z-index:2;

    width:34px;
    height:34px;

    display:block;
}


/* =========================================================
   HOVER
========================================================= */

.td-whatsapp:hover{
    transform:translateY(-4px) scale(1.06);

    background:#20bd5a;

    box-shadow:
        0 14px 32px rgba(0,0,0,.25),
        0 5px 12px rgba(0,0,0,.15);
}


/* =========================================================
   EFECTO PULSE
========================================================= */

.td-whatsapp__pulse{
    position:absolute;

    inset:0;

    border-radius:50%;

    background:rgba(37,211,102,.38);

    z-index:-1;

    animation:td-whatsapp-pulse 2.2s infinite;
}


@keyframes td-whatsapp-pulse{

    0%{
        transform:scale(1);
        opacity:.65;
    }

    70%{
        transform:scale(1.55);
        opacity:0;
    }

    100%{
        transform:scale(1.55);
        opacity:0;
    }

}


/* =========================================================
   TOOLTIP
========================================================= */

.td-whatsapp__tooltip{
    position:absolute;

    right:76px;
    top:50%;

    transform:translateY(-50%) translateX(8px);

    background:#151515;
    color:#fff;

    padding:9px 14px;

    border-radius:8px;

    font-size:13px;
    font-weight:600;
    line-height:1.2;

    white-space:nowrap;

    box-shadow:0 6px 18px rgba(0,0,0,.18);

    opacity:0;
    visibility:hidden;

    pointer-events:none;

    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s ease;
}


/* Flechita del tooltip */

.td-whatsapp__tooltip::after{
    content:"";

    position:absolute;

    right:-6px;
    top:50%;

    transform:translateY(-50%);

    border-width:6px 0 6px 6px;
    border-style:solid;

    border-color:
        transparent
        transparent
        transparent
        #151515;
}


/* Mostrar tooltip */

.td-whatsapp:hover .td-whatsapp__tooltip{
    opacity:1;
    visibility:visible;

    transform:translateY(-50%) translateX(0);
}


/* =========================================================
   ACCESIBILIDAD CON TECLADO
========================================================= */

.td-whatsapp:focus-visible{
    outline:3px solid rgba(37,211,102,.40);
    outline-offset:5px;
}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width:768px){

    .td-whatsapp{
        width:56px;
        height:56px;

        right:16px;
        bottom:18px;
    }

    .td-whatsapp__icon{
        width:30px;
        height:30px;
    }

    /* En móvil evitamos el tooltip porque no existe hover real */
    .td-whatsapp__tooltip{
        display:none;
    }

}


/* =========================================================
   REDUCIR ANIMACIONES SI EL USUARIO LO PREFIERE
========================================================= */

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

    .td-whatsapp,
    .td-whatsapp__tooltip{
        transition:none;
    }

    .td-whatsapp__pulse{
        animation:none;
    }

}