.footer {
    position: relative;
    overflow: hidden;
    background: var(--superficie);
    border-top: 1px solid var(--linea);
    padding-top: 64px;
    margin-top: 40px;
}

.footer-atmosfera { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.footer-deco { position: absolute; inset: 0; width: 100%; height: 100%; }
.fd-movil { display: none; }
.fd-marcos rect { fill: none; stroke: var(--texto); stroke-width: 1.2; opacity: .06; }
.fd-trazos polyline { fill: none; stroke: var(--texto); stroke-width: 1; opacity: .05; }
.fd-flujos polyline {
    fill: none;
    stroke: var(--acento);
    stroke-width: 1.4;
    stroke-linecap: round;
    opacity: .45;
    stroke-dasharray: 40 620;
    filter: drop-shadow(0 0 3px rgba(94, 124, 184, .6));
    animation: fd-fluir 15s linear infinite;
}
.fd-flujos polyline:nth-child(2) { animation-duration: 19s; animation-delay: -7s; }
@keyframes fd-fluir { from { stroke-dashoffset: 660; } to { stroke-dashoffset: 0; } }

.footer-inner, .footer-base { position: relative; z-index: 1; }

.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-logo { display: inline-flex; }
.footer-logo .marca-nolu { height: 26px; width: auto; color: var(--texto); }

.footer-tagline { margin-top: 1rem; color: var(--texto-suave); font-size: .96rem; max-width: 30ch; }

.footer-producto { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.5rem; max-width: 34ch; }
.footer-producto-marca { display: inline-flex; align-items: center; gap: .5rem; opacity: .65; transition: opacity .18s ease; }
.footer-producto:hover .footer-producto-marca { opacity: 1; }
.footer-producto-marca img { width: auto; filter: brightness(0) invert(1); }
.footer-producto-marca img:first-child { height: 26px; }
.footer-producto-marca img:last-child { height: 20px; }
.footer-producto-nota { color: var(--texto-tenue); font-size: .82rem; line-height: 1.5; }
.footer-producto:hover .footer-producto-nota { color: var(--texto-suave); }

.footer-nav, .footer-contacto { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.footer-nav-titulo {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--texto-tenue);
    margin-bottom: .3rem;
}
.footer-nav a { color: var(--texto-suave); font-size: .95rem; transition: color .18s ease; }
.footer-nav a:hover { color: var(--texto); }

.footer-correo { color: var(--texto); font-size: 1.02rem; font-weight: 500; border-bottom: 1px solid var(--acento); padding-bottom: 2px; }
.footer-correo:hover { color: var(--acento); }
.footer-contacto .boton { margin-top: .5rem; }

.footer-base {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-block: 24px 30px;
    border-top: 1px solid var(--linea);
    color: var(--texto-tenue);
    font-size: .84rem;
}

.footer-legal a { color: var(--texto-suave); text-decoration: underline; text-underline-offset: 2px; transition: color .18s ease; }
.footer-legal a:hover { color: var(--texto); }

@media (max-width: 767.98px) {
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-base { flex-direction: column; align-items: flex-start; gap: .4rem; }
    .fd-escritorio { display: none; }
    .fd-movil { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
    .fd-flujos polyline { animation: none; stroke-dasharray: none; opacity: .2; filter: none; }
}
