@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');


/* FOOTER COMPACTO - COLOR PLANO #1347ab */
.footer {
    background: #10209e; /* Color plano sin degradados */
    color: #ffffff;
    position: relative;
    padding: 3rem 0 1.5rem; /* Reducido significativamente */
    overflow: hidden;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
  font-family: 'Poppins', sans-serif;
    margin-top: auto; /* Para que se posicione al final */
}

/* PATRÓN DE FONDO MINIMALISTA */
.industrial-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* CONTENIDO COMPACTO */
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem; /* Reducido de 4rem */
    margin-bottom: 2rem; /* Reducido de 3rem */
}

.footer-section:first-child {
    max-width: 380px; /* Reducido */
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.2rem; /* Reducido de 1.8rem */
}

/* HEADER DE SECCIÓN COMPACTO */
.section-header {
    display: flex;
    align-items: flex-start; /* Cambiado de center a flex-start */
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.section-icon {
    width: 40px; /* Reducido de 48px */
    height: 40px;
    background: #ffffff; /* Color plano */
    border-radius: 10px; /* Reducido */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1347ab;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1); /* Reducido */
    transition: all 0.3s ease;
}

.section-icon:hover {
    transform: translateY(-1px); /* Reducido */
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.section-title {
    font-size: 1.3rem; /* Reducido de 1.5rem */
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
     margin-top: 0 !important;
}

.section-title img {
    /* Configuración base para desktop */
    height: 160px !important; /* Mantengo tu altura original */
    width: auto !important; /* Auto para mantener proporción */
    display: block !important;
    filter: brightness(1.2) !important;
    transition: all 0.3s ease !important;
    margin: 0 auto 15px auto !important; /* Centrado horizontal con margen inferior reducido */
    max-width: 100% !important; /* Para que no se desborde */
}

.section-title img:hover {
    filter: brightness(1.3);
    transform: scale(1.02);
}


.section-title img:hover {
    filter: brightness(1.3);
    transform: scale(1.01); /* Reducido */
}

/* DESCRIPCIÓN COMPACTA */
.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
    padding-top: 0; /* Asegurar que no haya padding superior */
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2px;
     margin-top: 0 !important;
}

/* REDES SOCIALES COMPACTAS */
.social-section {
    margin-top: 1rem; /* Reducido */
}

.social-icons {
    display: flex;
    gap: 1rem; /* Reducido */
}

.social-icons a {
    width: 42px; /* Reducido de 50px */
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2); /* Reducido */
    border-radius: 12px; /* Reducido */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px) scale(1.02); /* Reducido */
}

/* LISTAS COMPACTAS */
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem; /* Reducido */
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 1rem; /* Reducido */
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    padding: 0.4rem 0; /* Reducido */
    border-left: 3px solid transparent;
    padding-left: 0.8rem; /* Reducido */
    margin-left: -0.8rem;
    border-radius: 0 6px 6px 0; /* Reducido */
    position: relative;
    letter-spacing: 0.1px;
}

.footer-section ul li a:hover {
    color: #ffffff;
    border-left-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    padding-left: 1.2rem;
    transform: translateX(1px); /* Reducido */
}

.footer-section ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover::before {
    width: 3px; /* Reducido */
    height: 3px;
    left: 4px; /* Ajustado */
}

/* CONTACTO COMPACTO */
.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Reducido */
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem; /* Reducido */
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem; /* Reducido */
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    padding: 0.7rem; /* Reducido */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px; /* Reducido */
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    letter-spacing: 0.1px;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.contact-item i {
    width: 20px; /* Reducido */
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.9rem; /* Reducido */
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px; /* Reducido */
}

.contact-item span {
    line-height: 1.4;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* SEPARADOR MINIMALISTA */
.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px; /* Reducido */
    height: 1px; /* Reducido */
    background: rgba(255, 255, 255, 0.3); /* Color plano */
    border-radius: 0.5px;
}

/* RESPONSIVE OPTIMIZADO */
@media (max-width: 1024px) {
    .footer {
        padding: 2.5rem 0 1.5rem; /* Reducido */
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem; /* Reducido */
        row-gap: 2.5rem; /* Reducido */
    }
    
    .footer-section:first-child {
        max-width: none;
        grid-column: 1 / -1;
        text-align: center;
        max-width: 500px; /* Reducido */
        margin: 0 auto;
    }
    
    .section-header {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1.5rem; /* Reducido */
    }
    
    .footer-container {
        padding: 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem; /* Reducido */
        row-gap: 2rem; /* Reducido */
        text-align: left;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 0.5rem; /* Reducido */
    }
    
    .section-header {
        justify-content: flex-start;
    }
    
    .footer-section:first-child .section-header {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
        gap: 0.8rem; /* Reducido */
    }
    
    .social-icons a {
        width: 38px; /* Reducido */
        height: 38px;
    }
    
    .section-title img {
        height: 80px; /* Reducido */
    }
    
    .section-icon {
        width: 36px; /* Reducido */
        height: 36px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.2rem; /* Reducido */
    }
    
    .footer-section p {
        font-size: 0.95rem; /* Reducido */
    }
    
    .footer-section ul li a {
        font-size: 0.95rem; /* Reducido */
    }
    
    .contact-item {
        padding: 0.6rem; /* Reducido */
        font-size: 0.95rem; /* Reducido */
    }
}

@media (max-width: 640px) {
    .footer {
        padding: 2rem 0 1rem; /* Muy reducido */
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.8rem; /* Reducido */
        text-align: center;
    }
    
    .footer-section:first-child {
        grid-column: 1;
        margin-bottom: 0;
    }
    
    .section-header {
        justify-content: center;
        margin-bottom: 0.8rem; /* Reducido */
    }
    
    .contact-grid {
        max-width: 280px; /* Reducido */
        margin: 0 auto;
    }
    
    .footer-section ul {
        max-width: 220px; /* Reducido */
        margin: 0 auto;
    }
    
    .footer-section ul li a {
        text-align: center;
        border-left: none;
        border-bottom: 2px solid transparent;
        border-radius: 6px;
        margin: 0;
        padding: 0.6rem 0.8rem; /* Reducido */
        font-size: 0.9rem; /* Reducido */
    }
    
    .footer-section ul li a:hover {
        border-left: none;
        border-bottom-color: rgba(255, 255, 255, 0.8);
        padding-left: 0.8rem;
        transform: translateY(-1px); /* Reducido */
        background: rgba(255, 255, 255, 0.12);
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0 1rem; /* Muy compacto */
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem; /* Muy reducido */
        margin-bottom: 1rem; /* Reducido */
    }
    
    .section-icon {
        width: 32px; /* Muy reducido */
        height: 32px;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.1rem; /* Reducido */
    }
    
    .section-title img {
        height: 70px; /* Muy reducido */
    }
    
    .social-icons {
        gap: 0.6rem; /* Reducido */
        flex-wrap: wrap;
        max-width: 180px; /* Reducido */
        margin: 0 auto;
    }
    
    .social-icons a {
        width: 36px; /* Reducido */
        height: 36px;
        font-size: 0.9rem;
    }
    
    .contact-grid {
        max-width: 260px; /* Reducido */
    }
    
    .contact-item {
        padding: 0.5rem; /* Muy reducido */
        font-size: 0.9rem;
    }
    
    .contact-item i {
        width: 18px; /* Reducido */
        height: 18px;
        font-size: 0.8rem;
    }
    
    .footer-section ul {
        max-width: 200px;
    }
    
    .footer-section ul li a {
        font-size: 0.85rem; /* Reducido */
        padding: 0.5rem 0.6rem; /* Reducido */
    }
    
    .footer-section p {
        font-size: 0.9rem; /* Reducido */
        line-height: 1.5; /* Reducido */
        max-width: 280px; /* Reducido */
        margin: 0 auto;
    }
}

@media (max-width: 360px) {
    .footer {
        padding: 1rem 0 0.8rem; /* Ultra compacto */
    }
    
    .footer-container {
        padding: 0 0.8rem;
    }
    
    .footer-content {
        gap: 1.2rem; /* Ultra reducido */
        margin-bottom: 0.8rem;
    }
    
    .section-header {
        gap: 0.6rem; /* Reducido */
        margin-bottom: 0.6rem; /* Reducido */
    }
    
    .section-icon {
        width: 30px; /* Ultra reducido */
        height: 30px;
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1rem; /* Reducido */
    }
    
    .section-title img {
        height: 60px; /* Ultra reducido */
    }
    
    .social-icons a {
        width: 32px; /* Ultra reducido */
        height: 32px;
        font-size: 0.8rem;
    }
    
    .contact-grid {
        max-width: 240px; /* Reducido */
    }
    
    .contact-item {
        padding: 0.4rem; /* Ultra reducido */
        font-size: 0.85rem;
        gap: 0.6rem;
    }
    
    .footer-section ul {
        max-width: 160px; /* Reducido */
    }
    
    .footer-section ul li a {
        font-size: 0.8rem; /* Ultra reducido */
        padding: 0.4rem 0.5rem;
    }
    
    .footer-section p {
        font-size: 0.85rem; /* Ultra reducido */
        max-width: 240px;
    }
}

/* ANIMACIONES SUTILES */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px); /* Reducido */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section {
    animation: fadeInUp 0.4s ease-out; /* Más rápido */
}

.footer-section:nth-child(1) { animation-delay: 0.05s; }
.footer-section:nth-child(2) { animation-delay: 0.1s; }
.footer-section:nth-child(3) { animation-delay: 0.15s; }
.footer-section:nth-child(4) { animation-delay: 0.2s; }

/* ESTADOS DE FOCUS */
.social-icons a:focus,
.footer-section ul li a:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.footer-section ul li a:focus {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}