* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* Footer Section */
.footer-section {
    color: #ffffff;
    background: #1f264e;
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(31, 38, 78, 0.5), transparent);
}

.footer-top {
    padding: 70px 30px 50px;
    position: relative;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

/* Logo y Brand */
.footer-brand {
    max-width: 420px;
}

.footer-logo {
    margin-bottom: 20px;
    width: 200px;
    height: 65px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: translateY(-2px);
}

.footer-logo img {
    max-width: 100%;
    height: auto;
    filter: brightness(1.1);
}

.footer-description {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 30px;
    font-weight: 400;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(35, 113, 216, 0.987);
    border: 1px solid rgba(45, 100, 173, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.social-icon:hover {
    background: #2d64ad;
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(45, 100, 173, 0.4);
    border-color: #2d64ad;
}

/* Footer Columns */
.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 22px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 13px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #2d64ad, transparent);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    width: 0;
    height: 1px;
    bottom: -2px;
    background: #2d64ad;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 8px;
}

.footer-links a:hover::before {
    width: 20px;
}

/* Contact Section */
.footer-contact {
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.footer-contact:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(45, 100, 173, 0.4);
}

.contact-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-link:hover {
    color: #2d64ad;
}

.contact-icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

/* Footer Bottom */
.footer-bottom {
    background: #1b549f;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.footer-credit {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-credit a {
    color: #cddbef;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.footer-credit a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #2d64ad;
    transition: width 0.3s ease;
}

.footer-credit a:hover {
    color: #ffffff;
}

.footer-credit a:hover::after {
    width: 100%;
}

.footer-divider {
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-top {
        padding: 60px 25px 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px 25px;
        margin-bottom: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    /* Hacer que las columnas de Empresa y Productos queden lado a lado */
    .footer-column:nth-child(2),
    .footer-column:nth-child(3) {
        grid-column: span 1;
    }

    /* La columna de Contacto ocupa todo el ancho */
    .footer-column:nth-child(4) {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 25px 25px;
    }

    .footer-credit {
        flex-direction: column;
        gap: 8px;
    }

    .footer-divider {
        display: none;
    }
}

@media (max-width: 480px) {
    .footer-top {
        padding: 50px 20px 35px;
    }

    .footer-grid {
        gap: 30px 20px;
    }

    .footer-logo {
        width: 170px;
        height: 55px;
    }

    .footer-description {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .footer-title {
        font-size: 12px;
        margin-bottom: 18px;
    }

    .footer-links a {
        font-size: 14px;
    }

    .footer-links li {
        margin-bottom: 10px;
    }

    .contact-link {
        font-size: 15px;
    }

    .footer-contact {
        padding: 14px;
        margin-bottom: 20px;
    }
}