/* ========================================
   MODERN FOOTER STYLES
   ======================================== */

.modern-footer {
    background: linear-gradient(135deg, #1B4277 0%, #2c5282 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-dots)"/></svg>');
    opacity: 0.3;
}

/* Footer Top */
.footer-top {
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 2;
}

.footer-widget {
    margin-bottom: 2rem;
}

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

.logo-img {
    max-width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.widget-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #FF6B35;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a::before {
    content: '→';
    color: #FF6B35;
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #FF6B35;
    transform: translateX(5px);
}

.footer-links a:hover::before {
    opacity: 1;
}

/* Social Links */
.footer-social {
    margin-top: 2rem;
}

.footer-social h6 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-link.facebook {
    background: #3b5998;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.social-link.whatsapp {
    background: #25d366;
}

.social-link.linkedin {
    background: #0077b5;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: #FF6B35;
}

.social-link i {
    color: white;
    font-size: 1.2rem;
}

/* Contact Info */
.contact-info {
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: #FF6B35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.1rem;
}

.contact-details span {
    color: #FF6B35;
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.2rem;
}

.contact-details p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.95rem;
}

.contact-link {
    color: #FF6B35;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 0.3rem;
}

.contact-link:hover {
    color: white;
    text-decoration: none;
    transform: translateX(3px);
}

/* Business Hours */
.business-hours {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hours-title::before {
    content: '🕒';
    font-size: 1.1rem;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hour-item:last-child {
    border-bottom: none;
}

.day {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.9rem;
}

.time {
    color: #FF6B35;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Newsletter Section */
.newsletter-section {
    background: rgba(255, 107, 53, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}

.newsletter-content h4 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.95rem;
}

.newsletter-form-inner {
    position: relative;
}

.input-group {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    background: transparent;
    flex: 1;
}

.form-control:focus {
    outline: none;
    box-shadow: none;
}

.btn-newsletter {
    background: #FF6B35;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-newsletter:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* Certifications Section */
.certifications-section {
    background: rgba(255, 107, 53, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0;
    position: relative;
    z-index: 2;
}

.certifications-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.certifications-header h4 {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.certifications-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.cert-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.cert-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.2), transparent);
    transition: all 0.5s ease;
}

.cert-item:hover::before {
    left: 100%;
}

.cert-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 107, 53, 0.15);
    border-color: #FF6B35;
}

.cert-icon {
    width: 60px;
    height: 60px;
    background: #FF6B35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.cert-item:hover .cert-icon {
    transform: scale(1.1) rotate(5deg);
    background: white;
}

.cert-icon i {
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.cert-item:hover .cert-icon i {
    color: #FF6B35;
}

.cert-content h6 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.cert-content span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Footer Bottom */
.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.copyright p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #FF6B35;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.whatsapp-container {
    position: relative;
}

.whatsapp-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: #1B4277;
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    white-space: nowrap;
    margin-bottom: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border: 5px solid transparent;
    border-top-color: #1B4277;
}

.whatsapp-container:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-btn {
    background: #25d366;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    background: #20ba5a;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    text-decoration: none;
    color: white;
}

.whatsapp-btn i {
    font-size: 1.5rem;
}

.whatsapp-text {
    font-weight: 600;
    font-size: 0.9rem;
}

@keyframes pulse {
    0% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.8);
    }
    100% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 6rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-btn {
    background: #1B4277;
    color: white;
    padding: 1rem;
    border-radius: 50%;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    box-shadow: 0 5px 15px rgba(27, 66, 119, 0.4);
    transition: all 0.3s ease;
    border: 2px solid #FF6B35;
}

.scroll-btn:hover {
    background: #FF6B35;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
    text-decoration: none;
    color: white;
}

.scroll-btn i {
    font-size: 1.2rem;
}

.scroll-text {
    display: none;
}

/* Botón de Descarga de Catálogo */
.catalog-download-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1000;
}

.catalog-container {
    position: relative;
}

.catalog-tooltip {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #1B4277;
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    white-space: nowrap;
    margin-bottom: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.catalog-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20px;
    border: 5px solid transparent;
    border-top-color: #1B4277;
}

.catalog-container:hover .catalog-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.catalog-btn {
    background: #1B4277;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 5px 20px rgba(27, 66, 119, 0.4);
    transition: all 0.3s ease;
    border: 2px solid #FF6B35;
    animation: catalogPulse 3s infinite;
}

.catalog-btn:hover {
    background: #FF6B35;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
    text-decoration: none;
    color: white;
    border-color: #1B4277;
}

.catalog-btn i {
    font-size: 1.5rem;
}

.catalog-text {
    font-weight: 600;
    font-size: 0.9rem;
}

@keyframes catalogPulse {
    0% {
        box-shadow: 0 5px 20px rgba(27, 66, 119, 0.4);
    }
    50% {
        box-shadow: 0 5px 20px rgba(27, 66, 119, 0.8);
    }
    100% {
        box-shadow: 0 5px 20px rgba(27, 66, 119, 0.4);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .footer-top {
        padding: 3rem 0 0rem;
    }
    
    .newsletter-section {
        padding: 1.5rem 0;
    }
    
    .newsletter-content {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .input-group {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .btn-newsletter {
        border-radius: 0 0 15px 15px;
        justify-content: center;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
    }
    
    .whatsapp-btn {
        padding: 0.8rem 1.2rem;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .scroll-to-top {
        right: 1rem;
        bottom: 5rem;
    }
    
    .catalog-download-float {
        bottom: 1rem;
        left: 1rem;
    }
    
    .catalog-btn {
        padding: 0.8rem 1.2rem;
    }
    
    .catalog-text {
        display: none;
    }
    
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .cert-item {
        padding: 1rem;
    }
    
    .cert-icon {
        width: 50px;
        height: 50px;
    }
    
    .cert-icon i {
        font-size: 1.5rem;
    }
    
    .cert-content h6 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .footer-top {
        padding: 2rem 0 1rem;
    }
    
    .logo-img {
        max-width: 150px;
    }
    
    .widget-title {
        font-size: 1.1rem;
    }
    
    .newsletter-content h4 {
        font-size: 1.3rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}
