/* ================================================
   LEVEL TECH — FOOTER GLOBAL — footer.css
   .lt-footer-dark  → fondos oscuros (Conócenos)
   .lt-footer-white → fondos claros (Portafolio, Blog)
   Namespace: .lt-footer-*
================================================ */

/* ══════════════════════════════════════════════
   OUTER + CARD
══════════════════════════════════════════════ */
.lt-footer-outer {
    position: relative;
    z-index: 2;
    padding: 0 clamp(1rem, 2vw, 2rem) clamp(1rem, 2vw, 2rem);
}

.lt-footer {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

/* Highlight superior verde → azul */
.lt-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 8%; right: 8%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--color-green) 40%,
        var(--color-blue) 65%,
        transparent 100%
    );
    opacity: 0.75;
    z-index: 1;
    pointer-events: none;
}

/* ══════════════════════════════════════════════
   VARIANTE DARK
   Uso: <div class="lt-footer-outer lt-footer-dark">
══════════════════════════════════════════════ */
.lt-footer-dark .lt-footer {
    background: rgba(8, 10, 18, 0.75);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255,255,255,0.09);
}

.lt-footer-dark .lt-footer-col-title     { color: var(--color-white); }
.lt-footer-dark .lt-footer-col-title::after { background: var(--color-green); }

.lt-footer-dark .lt-footer-link          { color: rgba(255,255,255,0.65); }
.lt-footer-dark .lt-footer-link:hover    { color: var(--color-white); }
.lt-footer-dark .lt-footer-link::before  { color: var(--color-green); }

.lt-footer-dark .lt-footer-contact-item          { color: rgba(255,255,255,0.65); }
.lt-footer-dark .lt-footer-contact-item i        { color: var(--color-green); }
.lt-footer-dark .lt-footer-contact-item a:hover  { color: var(--color-white); }

.lt-footer-dark .lt-footer-social {
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.55);
}
.lt-footer-dark .lt-footer-social:hover {
    border-color: var(--color-green);
    color: var(--color-green);
    background: rgba(57,181,74,0.1);
}

.lt-footer-dark .lt-footer-top     { border-bottom: 1px solid rgba(255,255,255,0.07); }
.lt-footer-dark .lt-footer-divider {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.22) 25%,
        rgba(255,255,255,0.22) 75%,
        transparent 100%
    );
}
.lt-footer-dark .lt-footer-copy       { color: rgba(255,255,255,0.55); }
.lt-footer-dark .lt-footer-legal a    { color: rgba(255,255,255,0.55); }
.lt-footer-dark .lt-footer-legal a:hover { color: rgba(255,255,255,0.9); }

/* ══════════════════════════════════════════════
   VARIANTE WHITE
   Uso: <div class="lt-footer-outer lt-footer-white">
══════════════════════════════════════════════ */
.lt-footer-white .lt-footer {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    /* Borde más grueso para profundidad */
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow:
        0 8px 40px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

/* Textos más visibles en white */
.lt-footer-white .lt-footer-col-title     { color: var(--color-navy); }
.lt-footer-white .lt-footer-col-title::after { background: var(--color-green); }

.lt-footer-white .lt-footer-link          { color: rgba(13,30,56,0.75); }
.lt-footer-white .lt-footer-link:hover    { color: var(--color-navy); }
.lt-footer-white .lt-footer-link::before  { color: var(--color-green); }

.lt-footer-white .lt-footer-contact-item         { color: rgba(13,30,56,0.75); }
.lt-footer-white .lt-footer-contact-item i       { color: var(--color-green); }
.lt-footer-white .lt-footer-contact-item a:hover { color: var(--color-navy); }

.lt-footer-white .lt-footer-social {
    border: 1.5px solid rgba(13,30,56,0.22);
    color: rgba(13,30,56,0.65);
}
.lt-footer-white .lt-footer-social:hover {
    border-color: var(--color-green);
    color: var(--color-green);
    background: rgba(57,181,74,0.08);
}

.lt-footer-white .lt-footer-top     { border-bottom: 1.5px solid rgba(0,0,0,0.08); }
.lt-footer-white .lt-footer-divider {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0,0,0,0.15) 25%,
        rgba(0,0,0,0.15) 75%,
        transparent 100%
    );
}
.lt-footer-white .lt-footer-copy       { color: rgba(13,30,56,0.55); }
.lt-footer-white .lt-footer-legal a    { color: rgba(13,30,56,0.55); }
.lt-footer-white .lt-footer-legal a:hover { color: var(--color-navy); }

/* ══════════════════════════════════════════════
   ESTRUCTURA COMPARTIDA
══════════════════════════════════════════════ */

/* ── 3 columnas ── */
.lt-footer-top {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 6rem);
    padding: clamp(3.5rem, 5vh, 5rem) clamp(3rem, 6vw, 6rem) clamp(2.5rem, 4vh, 4rem);
}

/* ── Títulos ── */
.lt-footer-col-title {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 2.4vw, 2.2rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    margin-bottom: 1.8rem;
    padding-bottom: 0.9rem;
    position: relative;
}
.lt-footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 28px; height: 2px;
    border-radius: 2px;
}

/* ── Links ── */
.lt-footer-links { display: flex; flex-direction: column; gap: 1rem; }

.lt-footer-link {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    font-weight: 400;
    transition: color 0.22s, padding-left 0.22s;
    display: flex;
    align-items: center;
}
.lt-footer-link::before {
    content: '›';
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0;
    margin-right: 0.35rem;
    transition: opacity 0.22s;
}
.lt-footer-link:hover         { padding-left: 0.4rem; }
.lt-footer-link:hover::before { opacity: 1; }

/* ── Contacto ── */
.lt-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.1vw, 1.08rem);
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 1.1rem;
}
.lt-footer-contact-item i     { font-size: 0.9rem; margin-top: 0.25rem; flex-shrink: 0; }
.lt-footer-contact-item a     { color: inherit; transition: color 0.22s; }

/* ── Redes ── */
.lt-footer-socials { display: flex; gap: 1.3rem; flex-wrap: wrap; margin-top: 0.4rem; }

.lt-footer-social {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.25s;
}
.lt-footer-social:hover { transform: translateY(-2px); }

/* ── Divisor ── */
.lt-footer-divider {
    height: 1px;
    margin: 0 clamp(3rem, 6vw, 6rem);
}

/* ── Barra legal ── */
.lt-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.6rem clamp(3rem, 6vw, 6rem);
}
.lt-footer-copy {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.03em;
}
.lt-footer-legal { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.lt-footer-legal a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    transition: color 0.22s;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

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

/* ── Mobile / tablet portrait — 2 columnas comprimidas ── */
@media not all and (min-width: 1200px) and (orientation: landscape) and (min-height: 500px) {
    .lt-footer-outer  { padding: 0 1rem 1rem; }
    .lt-footer        { border-radius: 12px; }

    .lt-footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 2.5rem 1.8rem 2rem;
    }

    /* Acceso Rápido — ocupa todo el ancho */
    .lt-footer-top > *:first-child { grid-column: 1 / -1; }

    /* Síguenos — columna derecha, centrado verticalmente */
    .lt-footer-top > *:last-child { align-self: center; }

    .lt-footer-divider { margin: 0 1.8rem; }

    .lt-footer-bottom {
        padding: 1.2rem 1.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    .lt-footer-legal { gap: 1rem; }
}

/* ── Mobile portrait muy estrecho — 1 columna ── */
@media (max-width: 479px) and (orientation: portrait) {
    .lt-footer-top { grid-template-columns: 1fr; }
    .lt-footer-top > *:first-child { grid-column: auto; }
    .lt-footer-top > *:last-child  { align-self: auto; margin-top: 0; }
    .lt-footer-legal { gap: 0.8rem; }
}

/* ── Tablet portrait + landscape mobile — reordenar columnas ──
   (≥480px de ancho pero NO cumple los 3 criterios desktop) */
@media not all and (min-width: 1200px) and (orientation: landscape) and (min-height: 500px) {
    @media (min-width: 480px) {
        /* Acceso Rápido — fila 1, col 1 */
        .lt-footer-top > *:first-child {
            grid-column: 1;
            grid-row: 1;
        }
        /* Síguenos — fila 1, col 2 (sube junto a Acceso Rápido) */
        .lt-footer-top > *:last-child {
            grid-column: 2;
            grid-row: 1;
            align-self: start;
            margin-top: 0;
        }
        /* Contacto — fila 2, col 1-2 */
        .lt-footer-top > *:nth-child(2) {
            grid-column: 1 / -1;
            grid-row: 2;
        }
    }
}