/**
 * FOOTER PREMIUM - Samsung Minimalist Design 2026
 * Prefijo: ftr-
 * Tecnologico, minimalista, lujoso
 */

/* ================================================================== */
/* VARIABLES                                                          */
/* ================================================================== */
.ftr-footer {
    --ftr-bg: #001a33;
    --ftr-bg-dark: #001225;
    --ftr-bg-subtle: #002040;
    --ftr-border: rgba(255, 255, 255, 0.1);
    --ftr-text: rgba(255, 255, 255, 0.7);
    --ftr-text-muted: rgba(255, 255, 255, 0.5);
    --ftr-text-bright: rgba(255, 255, 255, 0.95);
    --ftr-accent: #00a3ff;
    --ftr-accent-glow: rgba(0, 163, 255, 0.2);
    --ftr-white: #fff;
    --ftr-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ftr-radius: 8px;
}

/* ================================================================== */
/* MAIN FOOTER                                                        */
/* ================================================================== */
.ftr-footer {
    background: linear-gradient(165deg, #002B45 0%, #001a33 40%, #001225 100%);
    color: var(--ftr-text);
    font-size: 0.9375rem;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
}

/* Gradient accent line at top */
.ftr-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--ftr-accent) 30%,
        var(--ftr-accent) 70%,
        transparent 100%
    );
    opacity: 0.6;
}

/* ================================================================== */
/* MAIN CONTENT AREA                                                  */
/* ================================================================== */
.ftr-main {
    padding: 5rem 0 4rem;
}

.ftr-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 1fr;
    gap: 3.5rem;
}

/* ================================================================== */
/* BRAND COLUMN                                                       */
/* ================================================================== */
.ftr-brand {
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ftr-logo {
    display: block;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.ftr-logo img {
    height: 44px;
    width: auto;
    transition: var(--ftr-transition);
}

.ftr-logo:hover img {
    opacity: 0.8;
}

.ftr-tagline {
    font-size: 0.875rem;
    color: var(--ftr-text-muted);
    margin: 0 0 1.5rem;
    line-height: 1.7;
    max-width: 280px;
}

/* Social Links */
.ftr-social {
    display: flex;
    gap: 0.75rem;
}

.ftr-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--ftr-white);
    text-decoration: none;
    transition: var(--ftr-transition);
}

.ftr-social__link:hover {
    background: var(--ftr-accent);
    border-color: var(--ftr-accent);
    color: var(--ftr-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--ftr-accent-glow);
}

.ftr-social__link i {
    font-size: 20px;
    line-height: 1;
}

/* ================================================================== */
/* NAVIGATION COLUMNS                                                 */
/* ================================================================== */
.ftr-nav {
    display: flex;
    flex-direction: column;
}

.ftr-nav__title {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ftr-text-bright);
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--ftr-border);
}

.ftr-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ftr-nav__link {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--ftr-text);
    text-decoration: none;
    transition: var(--ftr-transition);
    position: relative;
}

.ftr-nav__link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--ftr-accent);
    transition: var(--ftr-transition);
}

.ftr-nav__link:hover {
    color: var(--ftr-accent);
}

.ftr-nav__link:hover::before {
    width: 100%;
}

/* ================================================================== */
/* CONTACT SECTION                                                    */
/* ================================================================== */
.ftr-contact {
    display: flex;
    flex-direction: column;
}

.ftr-contact__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ftr-contact__item:last-child {
    margin-bottom: 0;
}

.ftr-contact__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--ftr-accent);
    margin-top: 2px;
}

.ftr-contact__icon svg {
    width: 100%;
    height: 100%;
}

.ftr-contact__text {
    font-size: 0.875rem;
    color: var(--ftr-text);
    line-height: 1.5;
}

.ftr-contact__text a {
    color: var(--ftr-text);
    text-decoration: none;
    transition: var(--ftr-transition);
}

.ftr-contact__text a:hover {
    color: var(--ftr-white);
}

/* ================================================================== */
/* SUBFOOTER                                                          */
/* ================================================================== */
.ftr-sub {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 10, 20, 0.5);
}

.ftr-sub__grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.ftr-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.ftr-legal {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.ftr-legal__link {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: var(--ftr-transition);
}

.ftr-legal__link:hover {
    color: var(--ftr-accent);
}

.ftr-credit {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.ftr-credit a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--ftr-transition);
}

.ftr-credit a:hover {
    color: var(--ftr-accent);
}

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

/* Tablet landscape */
@media (max-width: 1024px) {
    .ftr-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 2rem;
    }

    .ftr-brand {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid var(--ftr-border);
        margin-bottom: 0.5rem;
    }

    .ftr-social {
        justify-content: center;
    }

    /* Contact spans full width on tablet landscape */
    .ftr-nav:last-child {
        grid-column: 1 / -1;
        padding-top: 1.5rem;
        border-top: 1px solid var(--ftr-border);
    }

    .ftr-contact {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .ftr-contact__item {
        margin-bottom: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .ftr-contact__icon {
        margin-top: 0;
    }
}

/* Reset card styles for tablet landscape (only apply below 768px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .ftr-nav {
        background: transparent;
        border: none;
        padding: 0;
        border-radius: 0;
    }

    .ftr-nav:last-child {
        background: transparent;
        border: none;
        border-top: 1px solid var(--ftr-border);
    }

    .ftr-nav__title {
        border-bottom: 1px solid var(--ftr-border);
        padding-bottom: 0.75rem;
    }
}

/* Tablet portrait & large phones */
@media (max-width: 768px) {
    .ftr-main {
        padding: 2.5rem 0 2rem;
    }

    .ftr-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem 1rem;
    }

    .ftr-brand {
        padding-bottom: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .ftr-logo img {
        height: 38px;
    }

    .ftr-tagline {
        font-size: 0.8125rem;
        margin-bottom: 1.25rem;
    }

    /* Nav columns with subtle card effect */
    .ftr-nav {
        background: rgba(255, 255, 255, 0.02);
        border-radius: var(--ftr-radius);
        padding: 1.25rem;
        border: 1px solid rgba(255, 255, 255, 0.04);
    }

    .ftr-nav__title {
        font-size: 0.625rem;
        margin-bottom: 1rem;
        padding-bottom: 0;
        border-bottom: none;
    }

    .ftr-nav__list {
        gap: 0.5rem;
    }

    .ftr-nav__link {
        font-size: 0.8125rem;
    }

    .ftr-nav__link::before {
        display: none;
    }

    /* Contact column - full width with accent style */
    .ftr-nav:last-child {
        grid-column: 1 / -1;
        background: linear-gradient(135deg, rgba(0, 163, 255, 0.05) 0%, rgba(0, 163, 255, 0.02) 100%);
        border-color: rgba(0, 163, 255, 0.1);
    }

    .ftr-contact {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1rem;
    }

    .ftr-contact__item {
        margin-bottom: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .ftr-contact__text {
        font-size: 0.8125rem;
    }

    /* Subfooter */
    .ftr-sub {
        padding: 1.25rem 0;
    }

    .ftr-sub__grid {
        flex-direction: column;
        text-align: center;
        gap: 0.875rem;
    }

    .ftr-copyright {
        font-size: 0.8125rem;
        order: 2;
    }

    .ftr-legal {
        justify-content: center;
        gap: 0.875rem;
        order: 1;
    }

    .ftr-legal__link {
        font-size: 0.8125rem;
    }

    .ftr-credit {
        font-size: 0.75rem;
        order: 3;
    }
}

/* Mobile phones */
@media (max-width: 540px) {
    .ftr-main {
        padding: 2rem 0 1.75rem;
    }

    .ftr-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem 1rem;
    }

    .ftr-brand {
        padding-bottom: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .ftr-logo img {
        height: 34px;
    }

    .ftr-tagline {
        font-size: 0.75rem;
        max-width: 260px;
        margin-bottom: 1rem;
    }

    .ftr-social__link {
        width: 40px;
        height: 40px;
    }

    .ftr-social__link i {
        font-size: 18px;
    }

    /* Nav columns with subtle card effect */
    .ftr-nav {
        background: rgba(255, 255, 255, 0.02);
        border-radius: var(--ftr-radius);
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.04);
    }

    .ftr-nav__title {
        font-size: 0.5625rem;
        letter-spacing: 0.12em;
        margin-bottom: 0.75rem;
        padding-bottom: 0;
        border-bottom: none;
    }

    .ftr-nav__list {
        gap: 0.375rem;
    }

    .ftr-nav__link {
        font-size: 0.75rem;
    }

    /* Contact column - full width with different style */
    .ftr-nav:last-child {
        background: linear-gradient(135deg, rgba(0, 163, 255, 0.05) 0%, rgba(0, 163, 255, 0.02) 100%);
        border-color: rgba(0, 163, 255, 0.1);
    }

    /* Contact: stack address on top, phone/email side by side */
    .ftr-contact {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .ftr-contact__item:first-child {
        grid-column: 1 / -1;
    }

    .ftr-contact__text {
        font-size: 0.75rem;
    }

    .ftr-contact__icon {
        width: 18px;
        height: 18px;
    }

    /* Subfooter */
    .ftr-sub {
        padding: 1rem 0;
    }

    .ftr-sub__grid {
        gap: 0.75rem;
    }

    .ftr-copyright {
        font-size: 0.75rem;
    }

    .ftr-legal {
        gap: 0.625rem;
        flex-wrap: wrap;
    }

    .ftr-legal__link {
        font-size: 0.75rem;
    }

    .ftr-credit {
        font-size: 0.6875rem;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .ftr-grid {
        gap: 1.5rem 0.75rem;
    }

    .ftr-nav__link {
        font-size: 0.6875rem;
    }

    .ftr-contact__text {
        font-size: 0.6875rem;
    }

    .ftr-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ================================================================== */
/* REDUCED MOTION                                                     */
/* ================================================================== */
@media (prefers-reduced-motion: reduce) {
    .ftr-footer *,
    .ftr-footer *::before,
    .ftr-footer *::after {
        transition: none !important;
    }
}
