/* ================================================
   CWF.CSS - Contact, WhatsApp, Footer Components
   Componentes comunes para todas las páginas
   ================================================ */

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

.fade-in-section {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-section.visible {
    animation-play-state: running;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 0;
    margin-top: 5rem;
    margin-bottom: 10rem;
}

.contact-container {
    display: flex;
    min-height: 80vh;
    max-width: 1400px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    background: white;
}

.contact-image {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.contact-form-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 3rem;
    background: white;
    border-radius: 0 1.5rem 1.5rem 0;
}

.contact-form-content {
    width: 100%;
    max-width: 500px;
}

.contact-form-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.contact-form-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #007bff;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
}

.submit-btn i {
    font-size: 1rem;
}

/* ===== WHATSAPP SECTION ===== */
.whatsapp-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #007bff 0%, #2587ef 100%);
    text-align: center;
    color: white;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
}

.whatsapp-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
}

.whatsapp-section p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.7s;
}

.whatsapp-btn {
    background: white;
    color: #007bff;
    border: 2px solid white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideInScale 1s ease forwards;
    animation-delay: 0.9s;
}

.whatsapp-btn:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* ===== FOOTER ===== */
.footer {
    background: #1a1a2e;
    color: white;
    position: relative;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
}

.footer-main {
    padding: 4rem 2rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
    opacity: 0;
    animation: fadeInUp 1.2s ease forwards;
    animation-delay: 0.4s;
}

/* Footer Brand Section */
.footer-brand {
    max-width: 350px;
    opacity: 0;
    animation: fadeInLeft 1s ease forwards;
    animation-delay: 0.6s;
}

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

.footer-logo-img {
    height: 100px;
    width: auto;
}

.footer-description {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #b8b8b8;
    margin-bottom: 2rem;
}

.footer-stats {
    display: flex;
    gap: 2rem;
}

.footer-stat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
}

.stat-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: #888;
}

/* Footer Sections */
.footer-section {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.footer-section:nth-child(2) {
    animation-delay: 0.7s;
}

.footer-section:nth-child(3) {
    animation-delay: 0.8s;
}

.footer-section:nth-child(4) {
    animation-delay: 0.9s;
}

.footer-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: white;
}

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

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

.footer-links a {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #b8b8b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(3px);
}

/* Footer Contact */
.footer-contact {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #b8b8b8;
}

.contact-item i {
    color: white;
    width: 16px;
}

.footer-social h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    margin-bottom: 1rem;
}

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

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8b8b8;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-icon:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
    background: #1a1a2e;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1s;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #888;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #b8b8b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #007bff;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets grandes */
@media (max-width: 1400px) {
    .contact-section {
        margin-top: 3rem;
        margin: 3rem;
    }
}

@media (max-width: 1200px) {
    .contact-container {
        max-width: 95%;
        margin: 3rem auto;
    }
    
    .contact-form-wrapper {
        padding: 2.5rem;
    }
    
    .contact-form-content h2 {
        font-size: 2.2rem;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .contact-section {
        padding: 2rem 1rem;
    }
    
    .contact-container {
        min-height: auto;
        max-width: 90%;
        margin: 0 auto;
        justify-content: center;
        border-radius: 1rem;
    }
    
    .contact-image {
        display: none;
    }
    
    .contact-form-wrapper {
        border-radius: 0 0 1rem 1rem;
        padding: 2rem;
    }
    
    .contact-form-content h2 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .whatsapp-section h2 {
        font-size: 2rem;
    }
    
    .footer-main {
        padding: 3rem 1.5rem 2rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .footer-stats {
        justify-content: center;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .contact-section {
        padding: 0.1rem;
        margin-bottom: 5rem;
    }
    
    .contact-container {
        margin: 1rem auto;
        border-radius: 0.5rem;
    }
    
    .contact-image {
        display: none; /* Ocultar imagen en móviles */
    }
    
    .contact-form-wrapper {
        border-radius: 0.5rem;
        padding: 1.5rem;
    }
    
    .contact-form-content h2 {
        font-size: 1.8rem;
    }
    
    .contact-form-content p {
        font-size: 1rem;
    }
    
    .whatsapp-section {
        padding: 3rem 1rem;
    }
    
    .whatsapp-section h2 {
        font-size: 1.8rem;
    }
    
    .whatsapp-section p {
        font-size: 1rem;
    }
    
    .submit-btn,
    .whatsapp-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .footer-main {
        padding: 3rem 1rem 2rem 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        max-width: none;
    }
    
    .footer-stats {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .contact-section{
        margin-bottom: 2rem;
    }
    .contact-form-wrapper {
        padding: 1rem;
    }
    
    .contact-form-content h2 {
        font-size: 1.5rem;
    }
    
    .contact-form-content p {
        font-size: 0.9rem;
    }
    
    .whatsapp-section h2 {
        font-size: 1.5rem;
    }
    
    .whatsapp-section p {
        font-size: 0.9rem;
    }
    
    .submit-btn,
    .whatsapp-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
} 