/* Sección de beneficios */
.benefits-section {
    background: white;
    padding: 50px 20px;
    border-top: 1px solid #e8e9ea;
}

.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: center;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.benefit-icon {
    flex-shrink: 0;
    color: #4dd0e1;
}

.benefit-icon svg {
    width: 50px;
    height: 50px;
}

.benefit-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

/* Footer */
.footer {
    background: #000;
    color: white;
    padding: 60px 20px 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    height: 60px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    text-decoration: none;
}

.footer-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.footer-description {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
    padding: 2px 0;
}

.footer-links a:hover {
    color: white;
}

.newsletter-section {
    display: flex;
    flex-direction: column;
}

.newsletter-description {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    gap: 0;
    margin-bottom: 15px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
    background: white;
    color: #333;
}

.newsletter-input::placeholder {
    color: #999;
}

.newsletter-input:focus {
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

.newsletter-button {
    background: #666;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.newsletter-button:hover {
    background: #555;
}

.newsletter-button:disabled {
    background: #999;
    cursor: not-allowed;
}

.newsletter-message {
    font-size: 14px;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

.newsletter-message.success {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.newsletter-message.error {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: #ccc;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    color: #ccc;
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.social-link:hover {
    color: white;
    transform: translateY(-2px);
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Estilos específicos para cada red social */
.social-facebook:hover {
    color: #1877F2;
}

.social-instagram:hover {
    color: #E4405F;
}

.social-linkedin:hover {
    color: #0A66C2;
}

.social-tiktok:hover {
    color: #000;
    background: white;
    border-radius: 50%;
}

.social-youtube:hover {
    color: #FF0000;
}

.social-twitter:hover {
    color: #1DA1F2;
}

/* Responsive */
@media (max-width: 968px) {
    .benefits-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .newsletter-section {
        grid-column: 1 / -1;
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .benefits-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefit-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-brand,
    .newsletter-section {
        grid-column: 1;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-input {
        border-radius: 4px;
    }
    
    .newsletter-button {
        border-radius: 4px;
        padding: 14px 20px;
    }
    
    .social-links {
        justify-content: center;
        gap: 15px;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section {
    animation: fadeInUp 0.6s ease forwards;
}

.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; }

/* Efectos hover adicionales */
.benefit-item:hover .benefit-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.footer-section h3 {
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

.footer-section:hover h3::after {
    width: 50px;
}

/* Loading state para newsletter */
.newsletter-button.loading {
    position: relative;
    color: transparent;
}

.newsletter-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}