/**
 * Widget: Contact - Estilos Modernos
 * Diseño minimalista con formulario WhatsApp
 */

/* ==================== CARD PRINCIPAL ==================== */

.contact-widget {
    width: 100%;
}

.contact-card {
    background: white;
    border-radius: 2rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-decoration {
    position: absolute;
    top: -2.5rem;
    right: -2.5rem;
    width: 6rem;
    height: 6rem;
    background: #f9fafb;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* ==================== HEADER ==================== */

.contact-header {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
}

.contact-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #000;
    margin: 0;
}

.contact-title-muted {
    color: #d1d5db;
}

/* ==================== INFO CARDS ==================== */

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.contact-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 1rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    cursor: pointer;
}

.contact-info-item:hover {
    background: #111827;
    border-color: #111827;
    transform: translateY(-2px);
}

.contact-info-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #111827;
    transition: color 0.25s ease;
}

.contact-info-item:hover .contact-info-icon {
    color: white;
}

.contact-info-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.contact-info-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    transition: color 0.25s ease;
}

.contact-info-item:hover .contact-info-label {
    color: rgba(255, 255, 255, 0.6);
}

.contact-info-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.25s ease;
}

.contact-info-item:hover .contact-info-value {
    color: white;
}

/* ==================== FORMULARIO ==================== */

.contact-form {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.contact-form-group {
    margin-bottom: 1rem;
}

.contact-form-group label {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #111827;
    background: transparent;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder {
    color: #d1d5db;
    font-weight: 400;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    outline: none;
    border-color: #111827;
}

.contact-form-group textarea {
    resize: none;
    min-height: 4rem;
}

/* Botón WhatsApp */
.contact-whatsapp-btn {
    width: 100%;
    padding: 1rem;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 0.875rem;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px -6px rgba(37, 211, 102, 0.4);
    font-family: inherit;
}

.contact-whatsapp-btn:hover {
    background: #128C7E;
    transform: scale(1.02);
    box-shadow: 0 10px 25px -6px rgba(18, 140, 126, 0.5);
}

.contact-whatsapp-btn:active {
    transform: scale(0.98);
}

.contact-whatsapp-btn i {
    font-size: 1.25rem;
}

/* ==================== FOOTER ==================== */

.contact-footer {
    padding-top: 1.25rem;
    border-top: 1px solid #f3f4f6;
    position: relative;
    z-index: 1;
}

.contact-address {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-address-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border-radius: 50%;
    color: #111827;
    flex-shrink: 0;
}

.contact-address-icon i,
.contact-address-icon svg {
    width: 1rem;
    height: 1rem;
}

.contact-address .contact-info-value {
    white-space: normal;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Social Icons */
.contact-social {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.contact-social-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    border-radius: 50%;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 1rem;
}

.contact-social-icon:hover {
    color: #111827;
    background: #f3f4f6;
    transform: scale(1.1);
}

/* ==================== DARK MODE ==================== */

[data-theme="dark"] .contact-card {
    background: var(--card-bg, rgba(40, 40, 40, 0.85));
    border-color: var(--card-border, rgba(80, 80, 80, 0.6));
}

[data-theme="dark"] .contact-decoration {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .contact-label {
    color: #6b7280;
}

[data-theme="dark"] .contact-title {
    color: #ffffff;
}

[data-theme="dark"] .contact-title-muted {
    color: #4b5563;
}

[data-theme="dark"] .contact-info-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .contact-info-item:hover {
    background: #ffffff;
    border-color: #ffffff;
}

[data-theme="dark"] .contact-info-icon {
    color: #e5e7eb;
}

[data-theme="dark"] .contact-info-item:hover .contact-info-icon {
    color: #111827;
}

[data-theme="dark"] .contact-info-label {
    color: #6b7280;
}

[data-theme="dark"] .contact-info-item:hover .contact-info-label {
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .contact-info-value {
    color: #f3f4f6;
}

[data-theme="dark"] .contact-info-item:hover .contact-info-value {
    color: #111827;
}

[data-theme="dark"] .contact-form-group label {
    color: #6b7280;
}

[data-theme="dark"] .contact-form-group input,
[data-theme="dark"] .contact-form-group textarea {
    color: #f3f4f6;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .contact-form-group input::placeholder,
[data-theme="dark"] .contact-form-group textarea::placeholder {
    color: #4b5563;
}

[data-theme="dark"] .contact-form-group input:focus,
[data-theme="dark"] .contact-form-group textarea:focus {
    border-color: #ffffff;
}

[data-theme="dark"] .contact-footer {
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .contact-address-icon {
    background: rgba(255, 255, 255, 0.05);
    color: #e5e7eb;
}

[data-theme="dark"] .contact-social-icon {
    color: #6b7280;
}

[data-theme="dark"] .contact-social-icon:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

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

@media (max-width: 640px) {
    .contact-card {
        padding: 1.25rem;
        border-radius: 1.5rem;
    }

    .contact-title {
        font-size: 1.25rem;
    }

    .contact-info-cards {
        gap: 0.5rem;
    }

    .contact-info-item {
        padding: 0.875rem;
        border-radius: 0.875rem;
    }

    .contact-info-value {
        font-size: 0.7rem;
    }

    .contact-whatsapp-btn {
        padding: 0.875rem;
        font-size: 0.8rem;
        border-radius: 0.75rem;
    }

    .contact-social-icon {
        width: 2.25rem;
        height: 2.25rem;
    }
}

@media (max-width: 380px) {
    .contact-info-cards {
        grid-template-columns: 1fr;
    }

    .contact-info-item {
        flex-direction: row;
        align-items: center;
    }
}
