/* ===================================
   Footer Styles
   =================================== */

.footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-accent);
    position: relative;
    padding-bottom: var(--spacing-xs);
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--color-accent);
}

.footer-logo {
    height: 140px;
    width: auto;
    margin-bottom: var(--spacing-sm);
    transition: var(--transition-base);
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-description {
    color: rgba(228, 226, 221, 0.8);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

/* Footer Links */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: rgba(228, 226, 221, 0.8);
    transition: var(--transition-fast);
    display: inline-block;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 20px;
}

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

/* Footer Contact */
.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
    color: rgba(228, 226, 221, 0.8);
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact a {
    color: rgba(228, 226, 221, 0.8);
    transition: var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--color-accent);
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(228, 226, 221, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    transition: all var(--transition-base);
}

.social-btn svg {
    transition: var(--transition-base);
}

/* Hover solo amarillo - sin flash de colores */
.social-btn:hover {
    transform: translateY(-5px);
    background: var(--color-accent);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    animation: socialPulse 1.5s infinite;
}

.social-btn:hover svg {
    color: var(--color-primary);
}

@keyframes socialPulse {
    0%   { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.65);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 1.2rem;
        right: 1.2rem;
    }
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(228, 226, 221, 0.2);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-lg);
    text-align: center;
}

.footer-bottom p {
    color: rgba(228, 226, 221, 0.7);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--color-accent);
    font-weight: 600;
    transition: var(--transition-fast);
    position: relative;
}

.footer-bottom a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: var(--transition-base);
}

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

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

/* ===================================
   Footer Responsive
   =================================== */

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-logo {
        margin: 0 auto var(--spacing-sm);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
}

/* ===================================
   Floating Action Buttons
   =================================== */

.floating-contact {
    position: fixed;
    right: var(--spacing-md);
    bottom: calc(var(--spacing-md) + 70px);
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    animation: float 3s ease-in-out infinite;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.floating-btn.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.floating-btn.phone {
    background: linear-gradient(135deg, var(--color-accent), #c9a042);
}

.floating-btn:nth-child(1) {
    animation-delay: 0s;
}

.floating-btn:nth-child(2) {
    animation-delay: 0.5s;
}

/* Tooltip for Floating Buttons */
.floating-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 10px);
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    font-size: 0.9rem;
}

.floating-btn:hover::before {
    opacity: 1;
    visibility: visible;
    right: calc(100% + 15px);
}

/* ===================================
   Newsletter Section (Footer)
   =================================== */

.footer-newsletter {
    background-color: rgba(228, 226, 221, 0.05);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
}

.footer-newsletter h4 {
    margin-bottom: var(--spacing-sm);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.newsletter-input {
    flex: 1;
    padding: var(--spacing-sm);
    border: 2px solid rgba(228, 226, 221, 0.2);
    background-color: transparent;
    color: var(--color-text-light);
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.newsletter-input::placeholder {
    color: rgba(228, 226, 221, 0.5);
}

.newsletter-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--color-accent);
    color: var(--color-primary);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.newsletter-btn:hover {
    background-color: #f0c862;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
