/**
 * Estilos para Página de Contacto
 * @package CV_Front
 * @since 2.5.9
 */

/* ========================================
   CONTENEDOR PRINCIPAL
======================================== */
.cv-contact-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

/* ========================================
   ENCABEZADO
======================================== */
.cv-contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.cv-contact-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cv-contact-subtitle {
    font-size: 18px;
    color: #7f8c8d;
    font-weight: 400;
}

/* ========================================
   CATEGORÍAS
======================================== */
.cv-contact-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.cv-contact-category {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cv-contact-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.cv-contact-category[data-category="plataforma"]:hover {
    border-color: #667eea;
}

.cv-contact-category[data-category="comercio"]:hover {
    border-color: #f093fb;
}

.cv-contact-category[data-category="whatsapp"]:hover {
    border-color: #25D366;
}

.cv-category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    transition: all 0.3s ease;
}

.cv-contact-category[data-category="plataforma"] .cv-category-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cv-contact-category[data-category="comercio"] .cv-category-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.cv-contact-category[data-category="whatsapp"] .cv-category-icon {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.cv-category-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.cv-category-description {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 25px;
    line-height: 1.6;
}

.cv-category-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.cv-category-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.cv-category-btn i {
    font-size: 18px;
}

.cv-contact-category[data-category="comercio"] .cv-category-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 5px 15px rgba(240, 147, 251, 0.3);
}

.cv-contact-category[data-category="comercio"] .cv-category-btn:hover {
    box-shadow: 0 8px 20px rgba(240, 147, 251, 0.4);
}

.cv-whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3) !important;
}

.cv-whatsapp-btn:hover {
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4) !important;
}

/* ========================================
   FORMULARIO DE CONTACTO
======================================== */
.cv-contact-form-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
    animation: slideUp 0.3s ease;
}

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

.cv-form-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.cv-form-back {
    background: #ecf0f1;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    color: #2c3e50;
}

.cv-form-back:hover {
    background: #667eea;
    color: white;
    transform: translateX(-5px);
}

#cv-form-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.cv-form-group {
    margin-bottom: 25px;
}

.cv-form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.cv-form-group label i {
    color: #667eea;
    font-size: 18px;
}

.cv-form-group input,
.cv-form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.cv-form-group input:focus,
.cv-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.cv-form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.cv-form-actions {
    margin-top: 30px;
}

.cv-form-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 18px 45px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    width: 100%;
    justify-content: center;
}

.cv-form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.cv-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cv-form-submit i {
    font-size: 20px;
}

.cv-form-response {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    display: none;
}

.cv-form-response.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.cv-form-response.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ========================================
   WHATSAPP FLOTANTE
======================================== */
.cv-whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.cv-whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    color: white;
    font-size: 36px;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse 2s infinite;
}

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

.cv-whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .cv-contact-container {
        padding: 15px;
        margin: 20px auto;
    }
    
    .cv-contact-title {
        font-size: 28px;
    }
    
    .cv-contact-subtitle {
        font-size: 16px;
    }
    
    .cv-contact-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cv-contact-category {
        padding: 30px 20px;
    }
    
    .cv-contact-form-container {
        padding: 25px;
    }
    
    #cv-form-title {
        font-size: 22px;
    }
    
    .cv-form-group input,
    .cv-form-group textarea {
        padding: 12px;
        font-size: 14px;
    }
    
    .cv-form-submit {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .cv-whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .cv-whatsapp-float a {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
}

