/* ══════════════════════════════════════
   S7 — FOOTER LANDING — styles.css
   Depende de: core.css (variables, reset, .lt-section)
   Namespace: .lt-s7, .ft-*
   NO redefine @font-face ni variables CSS globales.
══════════════════════════════════════ */

/* ── Tokens locales ── */
.lt-s7 {
    --pad-x: clamp(2.5rem, 5vw, 7rem);
    --s7-line: linear-gradient(90deg,
        transparent 0%,
        rgba(57, 181, 74, 0.50) 35%,
        rgba(2, 87, 210, 0.50) 65%,
        transparent 100%
    );
    --s7-line-v: linear-gradient(180deg,
        transparent 0%,
        rgba(57, 181, 74, 0.35) 35%,
        rgba(2, 87, 210, 0.35) 65%,
        transparent 100%
    );
}

/* ── Video de fondo ── */
.lt-s7 .ft-video {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 0;
}

/* ── Overlay ── */
.lt-s7 .ft-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 16, 0.62);
    pointer-events: none;
    z-index: 1;
}

/* ── Línea superior ── */
.lt-s7 .ft-top-line {
    position: absolute;
    top: 0; left: var(--pad-x); right: var(--pad-x);
    height: 1px;
    background: var(--s7-line);
    z-index: 3;
    pointer-events: none;
}

/* ══════════════════════════════════════
   FOOTER — flex column, ocupa el inner
══════════════════════════════════════ */
.lt-s7 .ft-footer {
    position: relative;
    z-index: 2;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0; margin: 0; border: none;
    background: transparent;
}

/* ══════════════════════════════════════
   4 COLUMNAS
══════════════════════════════════════ */
.lt-s7 .ft-cols {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    flex-shrink: 0;
    padding: clamp(2rem, 3.5vh, 4rem) var(--pad-x);
    position: relative;
}

/* ── Línea divisora entre cols y logo ── */
.lt-s7 .ft-cols-line {
    height: 1px;
    background: var(--s7-line);
    flex-shrink: 0;
    margin: 0 var(--pad-x);
}

.lt-s7 .ft-col {
    padding: 0 clamp(1.6rem, 2.5vw, 3rem);
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    position: relative;
}
.lt-s7 .ft-col:first-child { padding-left: 0; }
.lt-s7 .ft-col:last-child  { padding-right: 0; }

/* Separadores verticales entre columnas */
.lt-s7 .ft-col + .ft-col::before {
    content: '';
    position: absolute;
    left: 0; top: 8%; bottom: 8%;
    width: 1px;
    background: var(--s7-line-v);
}

/* ── Eyebrow verde ── */
.lt-s7 .ft-label {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--color-green);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.lt-s7 .ft-label::before {
    content: '';
    width: 18px; height: 1px;
    background: var(--color-green);
    flex-shrink: 0;
}

/* ══════════════════════════════════════
   COL 1 — NAV
══════════════════════════════════════ */
.lt-s7 .ft-nav {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.lt-s7 .ft-nav-link {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 3.2vw, 4.4rem);
    line-height: 0.97;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.58);
    transition: color 240ms ease, padding-left 240ms ease;
    display: block;
}
.lt-s7 .ft-nav-link:hover {
    color: var(--color-white);
    padding-left: 0.45rem;
}

/* ══════════════════════════════════════
   COL 2 — CONTACTO
══════════════════════════════════════ */
.lt-s7 .ft-city {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 2.4vw, 3.2rem);
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1;
}

.lt-s7 .ft-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.lt-s7 .ft-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.72rem;
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 0.95vw, 0.98rem);
    color: rgba(255, 255, 255, 0.60);
    line-height: 1.5;
    transition: color 220ms ease;
}
.lt-s7 .ft-contact-item i {
    font-size: 0.72rem;
    color: var(--color-green);
    margin-top: 0.24rem;
    flex-shrink: 0;
    width: 13px;
}
.lt-s7 a.ft-contact-item:hover { color: rgba(255, 255, 255, 0.95); }

/* ══════════════════════════════════════
   COL 3 — REDES
══════════════════════════════════════ */
.lt-s7 .ft-socials {
    display: flex;
    flex-direction: column;
}

.lt-s7 .ft-social-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 0.95vw, 0.98rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.60);
    padding: 0.52rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: color 220ms ease;
}
.lt-s7 .ft-social-link:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.lt-s7 .ft-social-link i {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.28);
    width: 15px;
    text-align: center;
    flex-shrink: 0;
    transition: color 220ms ease;
}
.lt-s7 .ft-social-link:hover       { color: rgba(255, 255, 255, 0.98); }
.lt-s7 .ft-social-link:hover i     { color: var(--color-green); }

/* ══════════════════════════════════════
   COL 4 — CLAIM / HABLEMOS
══════════════════════════════════════ */
.lt-s7 .ft-claim {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 2.4vw, 3.2rem);
    letter-spacing: 0.05em;
    line-height: 1.05;
    color: rgba(255, 255, 255, 0.80);
}
.lt-s7 .ft-claim em {
    font-style: normal;
    color: var(--color-green);
}

.lt-s7 .ft-claim-sub {
    font-family: var(--font-body);
    font-size: clamp(0.82rem, 0.92vw, 0.95rem);
    color: rgba(255, 255, 255, 0.40);
    line-height: 1.75;
}

.lt-s7 .ft-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.70rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-green);
    border: 1px solid rgba(57, 181, 74, 0.42);
    border-radius: 4px;
    padding: 0.65rem 1.3rem;
    align-self: flex-start;
    background: transparent;
    cursor: pointer;
    transition: background 240ms ease, border-color 240ms ease;
    min-height: 44px;
}
.lt-s7 .ft-cta i { font-size: 0.58rem; transition: transform 240ms ease; }
.lt-s7 .ft-cta:hover {
    background: rgba(57, 181, 74, 0.10);
    border-color: rgba(57, 181, 74, 0.75);
}
.lt-s7 .ft-cta:hover i { transform: translate(2px, -2px); }

/* ══════════════════════════════════════
   ZONA LOGO
══════════════════════════════════════ */
.lt-s7 .ft-logo-zone {
    flex: 1;
    min-height: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Canvas WebGL — desktop por defecto */
.lt-s7 #ft-particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
}

/* Logo estático — oculto por defecto
   Se activa por clase JS (.lt-s7--touch) O por breakpoint CSS */
.lt-s7 .ft-logo-static  { display: none; }
.lt-s7 .ft-logo-footer  {
    width: auto;
    height: clamp(60px, 12vh, 110px);
    max-width: 70%;
    object-fit: contain;
    opacity: 0.85;
    position: relative;
    z-index: 1;
}
.lt-s7 .ft-logo-main {
    width: clamp(160px, 45vw, 420px);
    height: auto;
    max-width: 75%;
    object-fit: contain;
    opacity: 0.85;
    position: relative;
    z-index: 1;
}

/* ── Clase JS: dispositivo touch detectado (cualquier ancho) ──
   Cubre iPad Pro landscape (1366px) y cualquier otro touch */
.lt-s7--touch #ft-particle-canvas { display: none; }

/* Touch pequeño ≤820px — logo footer compacto */
.lt-s7--touch.lt-s7 .ft-logo-footer { display: block; }
.lt-s7--touch.lt-s7 .ft-logo-main   { display: none; }
.lt-s7--touch .ft-logo-zone         { flex: none; min-height: 80px; }

/* Touch grande ≥821px (iPad Pro portrait/landscape) — logo principal */
@media (min-width: 821px) {
    .lt-s7--touch .ft-logo-footer { display: none !important; }
    .lt-s7--touch .ft-logo-main   { display: block !important; }
    .lt-s7--touch .ft-logo-zone   { flex: 1; min-height: 100px; }
}

/* ══════════════════════════════════════
   BARRA LEGAL
══════════════════════════════════════ */
.lt-s7 .ft-legal-line {
    height: 1px;
    background: var(--s7-line);
    margin: 0 var(--pad-x);
    flex-shrink: 0;
}

.lt-s7 .ft-legal {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.9rem var(--pad-x) 1.2rem;
}

.lt-s7 .ft-legal-copy {
    font-family: var(--font-body);
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.38);
    letter-spacing: 0.03em;
}

.lt-s7 .ft-legal-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.lt-s7 .ft-legal-links a {
    font-family: var(--font-body);
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.34);
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: color 220ms ease;
}
.lt-s7 .ft-legal-links a:hover { color: var(--color-green); }

/* ══════════════════════════════════════
   RESPONSIVE — nuevo sistema de 3 criterios
   Desktop: ≥1200px + landscape + ≥500px alto
   Mobile/tablet portrait: todo lo demás

   S7 es scroll libre en mobile/portrait —
   override de core.css (height:100svh,
   overflow:hidden) necesario en esos casos.
══════════════════════════════════════ */

/* ── Mobile / tablet portrait — scroll libre, 1 columna ──
   Cubre: móviles portrait, tablets portrait (iPad Mini/Air/Pro),
   móviles landscape (≤500px alto — excluidos por min-height:500px) */
@media not all and (min-width: 1200px) and (orientation: landscape) and (min-height: 500px) {

    /* Override core.css — scroll libre */
    .lt-s7 {
        height: auto !important;
        min-height: 100svh;
        overflow: visible !important;
    }
    .lt-s7 .lt-section__inner {
        position: relative !important;
        height: auto !important;
        min-height: 100svh;
        overflow: visible !important;
        inset: unset;
        width: 100%;
    }
    .lt-s7 .ft-footer { height: auto; min-height: 100svh; }

    /* Video oculto en mobile — fondo oscuro definido al final del archivo */
    .lt-s7 .ft-video   { display: none; }
    .lt-s7 .ft-overlay { display: none; }

    .lt-s7 { --pad-x: 1.6rem; }

    /* Canvas oculto — logo footer compacto visible */
    .lt-s7 #ft-particle-canvas { display: none; }
    .lt-s7 .ft-logo-footer     { display: block; }
    .lt-s7 .ft-logo-main       { display: none; }
    .lt-s7 .ft-logo-zone       { flex: none; height: clamp(80px, 14vw, 110px); }

    /* 1 columna */
    .lt-s7 .ft-cols {
        grid-template-columns: 1fr;
        padding: 2.5rem var(--pad-x) 1.5rem;
    }
    .lt-s7 .ft-col + .ft-col::before { display: none; }
    .lt-s7 .ft-col {
        padding: 1.6rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        gap: 1.1rem;
    }
    .lt-s7 .ft-col:last-child { border-bottom: none; }

    .lt-s7 .ft-nav-link { font-size: clamp(1.4rem, 5.5vw, 2.4rem); }
    .lt-s7 .ft-city     { font-size: clamp(1.05rem, 3.8vw, 1.6rem); }
    .lt-s7 .ft-claim    { font-size: clamp(1.05rem, 3.8vw, 1.8rem); }

    /* Redes — íconos en fila sin texto */
    .lt-s7 .ft-socials              { flex-direction: row; flex-wrap: wrap; gap: 0; }
    .lt-s7 .ft-social-link span     { display: none; }
    .lt-s7 .ft-social-link {
        padding: 0.6rem 0.9rem;
        border-bottom: none;
        border-top: none;
        min-height: 44px;
        min-width: 44px;
        justify-content: center;
    }
    .lt-s7 .ft-social-link:first-child { border-top: none; }
    .lt-s7 .ft-social-link i { font-size: 1.1rem; width: auto; }

    .lt-s7 .ft-legal       { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
    .lt-s7 .ft-legal-links { gap: 0.8rem; }
}

/* ── Tablets portrait con ancho ≥768px (iPad Mini/Air/Pro landscape excluido por orientation) ──
   Logo principal en lugar del compacto — más espacio vertical */
@media not all and (min-width: 1200px) and (orientation: landscape) and (min-height: 500px) {
    @media (min-width: 768px) {
        .lt-s7 .ft-logo-footer { display: none !important; }
        .lt-s7 .ft-logo-main   { display: block !important; }
        .lt-s7 .ft-logo-zone   { flex: 1; min-height: 100px; }
        .lt-s7 .ft-cols        { grid-template-columns: 1fr 1fr; }
        .lt-s7 .ft-col         { padding: 1.5rem 1.5rem; }
        .lt-s7 .ft-col:first-child { padding-left: 0; }
        .lt-s7 .ft-col:last-child  { padding-right: 0; }
        .lt-s7 .ft-col:nth-child(2)::before { display: none; }
        .lt-s7 .ft-col:nth-child(3)::before { display: none; }
        .lt-s7 .ft-legal-links { gap: 1rem; flex-wrap: wrap; }
        .lt-s7 .ft-socials          { flex-direction: column; }
        .lt-s7 .ft-social-link span { display: inline; }
        .lt-s7 .ft-social-link {
            padding: 0.45rem 0;
            border-bottom: 1px solid rgba(255,255,255,0.07);
            min-height: unset; min-width: unset;
            justify-content: flex-start;
        }
        .lt-s7 .ft-social-link:first-child { border-top: 1px solid rgba(255,255,255,0.07); }
        .lt-s7 .ft-social-link i { width: 15px; font-size: 0.82rem; }
    }
}

/* ── Mobile pequeño — ≤479px ── */
@media (max-width: 479px) {
    .lt-s7 .ft-cols      { padding: 2rem var(--pad-x) 1rem; }
    .lt-s7 .ft-col       { gap: 0.9rem; }
    .lt-s7 .ft-logo-zone { height: clamp(44px, 12vw, 70px); }
    .lt-s7 .ft-legal     { padding: 0.7rem var(--pad-x) 1rem; }
    .lt-s7 .ft-legal-links { gap: 0.5rem; flex-direction: column; }
    .lt-s7 .ft-legal-links a { white-space: normal; }
}

/* ── Mobile landscape (≤499px alto) — 2 columnas compactas, scroll libre ──
   El sistema de 3 criterios lo excluye de desktop (min-height:500px falla).
   Necesita override de core.css igual que mobile portrait. */
@media (orientation: landscape) and (max-height: 499px) {
    .lt-s7 {
        height: auto !important;
        min-height: auto;
        overflow: visible !important;
    }
    .lt-s7 .lt-section__inner {
        position: relative !important;
        height: auto !important;
        overflow: visible !important;
        inset: unset;
        width: 100%;
    }
    .lt-s7 .ft-footer { height: auto; }

    .lt-s7 .ft-video   { display: none; }
    .lt-s7 .ft-overlay { display: none; }

    .lt-s7 #ft-particle-canvas { display: none; }
    .lt-s7 .ft-logo-footer     { display: block !important; }
    .lt-s7 .ft-logo-main       { display: none !important; }

    .lt-s7 .ft-cols {
        grid-template-columns: 1fr 1fr;
        padding: 1.5rem var(--pad-x);
    }
    .lt-s7 .ft-col               { padding: 0 1rem; gap: 0.7rem; }
    .lt-s7 .ft-col:first-child   { padding-left: 0; }
    .lt-s7 .ft-col:last-child    { padding-right: 0; }
    .lt-s7 .ft-col:nth-child(3)  { padding-left: 0; padding-top: 1rem; }
    .lt-s7 .ft-col:nth-child(4)  { padding-top: 1rem; }
    .lt-s7 .ft-col:nth-child(3)::before { display: none; }

    .lt-s7 .ft-nav-link  { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
    .lt-s7 .ft-city      { font-size: clamp(1.2rem, 3vw, 1.8rem); }
    .lt-s7 .ft-claim     { font-size: clamp(1.2rem, 3vw, 1.8rem); }
    .lt-s7 .ft-claim-sub { font-size: 0.75rem; line-height: 1.5; }

    .lt-s7 .ft-socials              { flex-direction: row; flex-wrap: wrap; gap: 0; }
    .lt-s7 .ft-social-link span     { display: none; }
    .lt-s7 .ft-social-link {
        padding: 0.4rem 0.6rem;
        border: none;
        min-height: 44px;
        min-width: 44px;
        justify-content: center;
    }
    .lt-s7 .ft-social-link:first-child { border-top: none; }
    .lt-s7 .ft-social-link i { font-size: 1rem; width: auto; }

    .lt-s7 .ft-logo-zone { flex: none; height: clamp(60px, 15vh, 90px); }
    .lt-s7 .ft-legal     { padding: 0.5rem var(--pad-x) 0.8rem; flex-wrap: wrap; gap: 0.4rem; }
    .lt-s7 .ft-legal-links { gap: 0.6rem; }
    .lt-s7 .ft-legal-links a { font-size: 0.68rem; }
}

/* ── Desktop laptop corta — ≥1024px + landscape + 500–780px alto ── */
@media (min-width: 1200px) and (orientation: landscape) and (min-height: 500px) and (max-height: 780px) {
    .lt-s7 .ft-cols      { padding: clamp(1.2rem, 2.2vh, 2.5rem) var(--pad-x); }
    .lt-s7 .ft-col       { gap: 1rem; }
    .lt-s7 .ft-nav-link  { font-size: clamp(1.8rem, 2.5vw, 3.2rem); }
    .lt-s7 .ft-claim     { font-size: clamp(1.4rem, 2vw, 2.6rem); }
    .lt-s7 .ft-legal     { padding: 0.6rem var(--pad-x) 0.8rem; }
    .lt-s7 .ft-logo-zone { min-height: 0; }
}