footer {
    background: linear-gradient(180deg, #01579b 0%, #03396c 100%);
    color: white;
    position: relative;
    padding: 80px 20px 40px;
    overflow: hidden;
}

/* Wave decorative element at top of footer */
footer::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 50px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 100"><path fill="white" d="M0,32L60,37.3C120,43,240,53,360,58.7C480,64,600,64,720,58.7C840,53,960,43,1080,42.7C1200,43,1320,53,1380,58.7L1440,64L1440,0L1380,0C1320,0,1200,0,1080,0C960,0,840,0,720,0C600,0,480,0,360,0C240,0,120,0,60,0L0,0Z"></path></svg>');
    background-size: cover;
    background-position: center;
}

/* Background pattern */
footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="rgba(255,255,255,0.05)" d="M25,25 L75,25 L75,75 L25,75 Z"></path></svg>');
    background-repeat: repeat;
    opacity: 0.3;
    z-index: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
}

.footer-info {
    grid-column: span 1;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    display: flex;
    align-items: center;
    position: relative;
}

.footer-logo::before {
    content: '☀️';
    margin-right: 10px;
    font-size: 2rem;
}

.footer-tagline {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.6;
}

.footer-links {
    grid-column: span 1;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ffab00;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #ffab00;
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.8;
    display: flex;
    align-items: center;
}

.footer-links ul li a:hover {
    opacity: 1;
    transform: translateX(5px);
    color: #ffab00;
}

.footer-links ul li a i {
    margin-right: 10px;
    font-size: 0.9rem;
}

.footer-contact {
    grid-column: span 1;
}

.contact-info {
    margin-bottom: 20px;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    opacity: 0.9;
}

.contact-info p i {
    margin-right: 15px;
    font-size: 1.2rem;
    width: 20px;
    color: #ffab00;
}

.social-links {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #ffab00;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255,171,0,0.3);
}

.social-links a.facebook:hover {
    background: #3b5998;
}

.social-links a.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-links a.twitter:hover {
    background: #1da1f2;
}

.social-links a.youtube:hover {
    background: #ff0000;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
    grid-column: span 3;
}

.footer-bottom p {
    margin: 10px 0;
}

.footer-decoration {
    position: absolute;
    opacity: 0.1;
    z-index: 1;
}

.footer-decoration.camp {
    bottom: 30px;
    right: 5%;
    font-size: 5rem;
}

.footer-decoration.sun {
    top: 100px;
    left: 5%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,171,0,0.5) 0%, rgba(255,171,0,0) 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.2); opacity: 0.2; }
}

/* Newsletter subscribe form */
.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    font-size: 0.9rem;
}

.newsletter-form button {
    background: #ffab00;
    color: #01579b;
    border: none;
    padding: 0 20px;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #ffc107;
}

/* Estilos para el enlace de WhatsApp */
.whatsapp-link {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.whatsapp-link:hover {
    color: white;
    text-shadow: 0 0 10px rgba(37, 211, 102, 0.5);
}

.whatsapp-link::after {
    content: "Chatea con nosotros";
    position: absolute;
    background-color: #25D366;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.whatsapp-link:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
}

.contact-info p i.fa-whatsapp {
    color: #25D366;
}

/* Responsive para enlace de WhatsApp */
@media (max-width: 480px) {
    .whatsapp-link::after {
        display: none;
    }
    
    .whatsapp-link {
        padding: 5px 10px;
        background-color: #25D366;
        color: white;
        border-radius: 20px;
        margin-left: 5px;
    }
    
    .whatsapp-link:hover {
        background-color: #20c25e;
        color: white;
        text-shadow: none;
    }
}

/* Responsive styles */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-info {
        grid-column: span 2;
    }
    
    .footer-bottom {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    footer {
        padding: 60px 20px 30px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-info, 
    .footer-links, 
    .footer-contact,
    .footer-bottom {
        grid-column: span 1;
    }
    
    .footer-logo {
        font-size: 1.5rem;
        justify-content: center;
    }
    
    .footer-tagline {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links h4 {
        text-align: center;
    }
    
    .footer-links h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links ul li a {
        justify-content: center;
    }
    
    .footer-contact h4 {
        text-align: center;
    }
    
    .contact-info p {
        justify-content: center;
    }
    
    .social-links a {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        margin: 0 5px;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 50px 15px 20px;
    }
    
    .social-links {
        flex-wrap: wrap;
    }
    
    .footer-links ul li a {
        padding: 8px 0;
    }
    
    .footer-links ul li a:hover {
        transform: translateX(0);
    }
}
