/* Footer Styles - Solo CSS */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #020617 100%);
    color: #ffffff;
    padding: 2.5rem 0 0;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
    }
}

.footer::before {
    display: none;
}

.footer::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(57, 121, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Sección de información de la empresa */
.company-info {
    max-width: 400px;
}

.footer-logo {
    margin-bottom: 1.5rem;
    text-align: center;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    filter: brightness(1.2);
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.1) rotate(5deg);
}

.company-description {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Información de contacto del footer - Solo texto e iconos sin bordes */
.footer-contact-info {
    margin-bottom: 2rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.5;
    transition: color 0.3s ease;
    /* Sin bordes, sin fondos, sin padding, sin sombras */
}

.footer-contact-item:hover {
    color: #ffffff;
}

.footer-contact-item i {
    color: #3979ff;
    font-size: 1rem;
    width: 16px;
    margin-top: 0.2rem;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.footer-contact-item:hover i {
    color: #60a5fa;
}

.footer-contact-item strong {
    color: #ffffff;
}

/* Títulos de secciones */
.footer-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 30px;
    height: 2px;
    background: #3979ff;
    transition: width 0.3s ease;
}

.footer-section:hover .footer-title::after {
    width: 50px;
}

/* Enlaces del footer */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
    padding: 0.2rem 0;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #3979ff;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #3979ff;
    transform: translateX(8px);
}

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

/* Contacto rápido */
.contact-quick {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(57, 121, 255, 0.2);
}

.contact-quick p {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(57, 121, 255, 0.1);
    border: 1px solid rgba(57, 121, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: rgba(57, 121, 255, 0.2);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    background: #3979ff;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(57, 121, 255, 0.4);
    border-color: #3979ff;
}

.social-icon:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.social-icon:active {
    transform: translateY(-1px) scale(1.05);
}

/* Estilos específicos para enlaces de documentos */
.document-link {
    display: flex !important;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
}

.document-link i {
    color: #3979ff;
    font-size: 0.85rem;
    width: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.document-link:hover i {
    color: #60a5fa;
    transform: scale(1.2);
}

.document-link:hover {
    color: #ffffff !important;
    transform: translateX(10px);
}

.document-link:hover i.fa-file-pdf {
    color: #ff4757;
}

.document-link:hover i.fa-file-contract {
    color: #ffa726;
}

.document-link:hover i.fa-file-shield {
    color: #26de81;
}

.document-link:hover i.fa-shield-alt {
    color: #26de81;
}

.document-link:hover i.fa-users-cog {
    color: #fd9644;
}

.document-link:hover i.fa-chart-line {
    color: #45aaf2;
}

.document-link:hover i.fa-tachometer-alt {
    color: #a55eea;
}

.document-link:hover i.fa-tags {
    color: #fc5c65;
}

.document-link:hover i.fa-file-invoice {
    color: #778ca3;
}

/* Efecto especial para enlaces de documentos importantes */
.document-link[href*="pdf"]:before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #ff4757, #ff6b7d);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.document-link[href*="pdf"]:hover:before {
    opacity: 1;
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid rgba(57, 121, 255, 0.2);
    padding: 2rem 0;
    text-align: center;
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0;
    transition: color 0.3s ease;
}

.footer-bottom:hover p {
    color: #cbd5e1;
}

/* Efectos adicionales */
.footer-section {
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .company-info {
        max-width: none;
    }
    
    .footer-contact-item {
        font-size: 0.85rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer {
        padding: 3rem 0 0;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    .footer-contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .social-icons {
        gap: 0.8rem;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

/* Media queries para pantallas muy pequeñas (250px - 360px) */
@media (max-width: 360px) {
    .footer {
        padding: 2rem 0 0;
    }
    
    .footer-container {
        padding: 0 0.75rem;
    }
    
    .footer-content {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .company-info {
        text-align: center;
    }
    
    .footer-logo img {
        width: 40px;
        height: 40px;
    }
    
    .company-description {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .footer-title {
        font-size: 1rem;
        margin-bottom: 1.25rem;
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact-info {
        margin-bottom: 1.5rem;
    }
    
    .footer-contact-item {
        font-size: 0.8rem;
        gap: 0.6rem;
        margin-bottom: 0.85rem;
    }
    
    .footer-contact-item i {
        font-size: 0.9rem;
        width: 14px;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links li {
        margin-bottom: 0.7rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
        padding: 0.15rem 0;
    }
    
    .footer-links a::before {
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .footer-links a:hover {
        transform: translateX(0);
    }
    
    .contact-quick {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        text-align: center;
    }
    
    .contact-quick p {
        font-size: 0.85rem;
        margin-bottom: 0.85rem;
    }
    
    .social-icons {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .footer-bottom {
        padding: 1.5rem 0;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
        line-height: 1.4;
        padding: 0 0.5rem;
    }
    
    .document-link {
        gap: 0.6rem;
    }
    
    .document-link i {
        font-size: 0.8rem;
        width: 14px;
    }
    
    .document-link:hover {
        transform: translateX(0);
    }
}

/* Media queries ultra compactas (250px - 320px) */
@media (max-width: 320px) {
    .footer {
        padding: 1.5rem 0 0;
    }
    
    .footer-container {
        padding: 0 0.5rem;
    }
    
    .footer-content {
        gap: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-logo img {
        width: 35px;
        height: 35px;
    }
    
    .company-description {
        font-size: 0.8rem;
        margin-bottom: 1.25rem;
    }
    
    .footer-title {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .footer-contact-item {
        font-size: 0.75rem;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-contact-item i {
        font-size: 0.85rem;
        width: 12px;
    }
    
    .footer-links a {
        font-size: 0.8rem;
    }
    
    .footer-links li {
        margin-bottom: 0.6rem;
    }
    
    .contact-quick {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
    }
    
    .contact-quick p {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
    
    .social-icons {
        gap: 0.6rem;
    }
    
    .social-icon {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
    
    .footer-bottom {
        padding: 1.25rem 0;
    }
    
    .footer-bottom p {
        font-size: 0.7rem;
        padding: 0 0.25rem;
    }
    
    .document-link {
        gap: 0.5rem;
    }
    
    .document-link i {
        font-size: 0.75rem;
        width: 12px;
    }
}

/* Media queries mínimas (250px - 280px) */
@media (max-width: 280px) {
    .footer-container {
        padding: 0 0.4rem;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .footer-logo img {
        width: 32px;
        height: 32px;
    }
    
    .company-description {
        font-size: 0.75rem;
    }
    
    .footer-title {
        font-size: 0.9rem;
        margin-bottom: 0.85rem;
    }
    
    .footer-contact-item {
        font-size: 0.7rem;
    }
    
    .footer-links a {
        font-size: 0.75rem;
    }
    
    .contact-quick p {
        font-size: 0.75rem;
    }
    
    .social-icon {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }
    
    .footer-bottom p {
        font-size: 0.65rem;
    }
}