/* Estilos para el hub de contacto */

.contact-hub__header {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

#contacto.section-dark {
    padding-top: 90px;
}

.contact-hub__title {
    font-size: 2.1rem;
    font-weight: 700;
    color: #1f2a44;
    margin-bottom: 0.25rem;
}

.contact-hub__subtitle {
    color: #52607a;
    margin: 0;
}

.contact-hub__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
}

.contact-panel {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.75rem;
    border: 1px solid #dde5f0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-panel:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.contact-panel__head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-panel__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0ea5e9, #14b8a6);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-panel__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    color: #1f2a44;
}

.contact-panel__text {
    margin: 0;
    color: #5b6b85;
    font-size: 0.95rem;
}

.contact-panel__actions {
    display: grid;
    gap: 0.75rem;
}

.contact-panel__meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #5b6b85;
}

.contact-panel__meta i {
    margin-right: 0.5rem;
    color: #2c7be5;
}

.contact-panel__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.contact-chip {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #111827;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.contact-chip i {
    font-size: 0.95rem;
}

.contact-chip:hover {
    background: #111827;
    color: #fff;
    border-color: #111827;
    transform: translateY(-1px);
}

.contact-panel__qr {
    border-top: 1px dashed #e5e7eb;
    padding-top: 1rem;
}

/* Botones de redes sociales */
.btn-facebook {
    background: linear-gradient(135deg, #4267B2 0%, #3b5998 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-facebook:hover {
    background: linear-gradient(135deg, #365899 0%, #2d4373 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 103, 178, 0.4);
}

.btn-instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-instagram:hover {
    background: linear-gradient(135deg, #d67d2c 0%, #c55a32 25%, #b31f38 50%, #a81d5a 75%, #9a1575 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 48, 108, 0.4);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #1ebd59 0%, #0e7a6f 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-email {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-email:hover {
    background: linear-gradient(135deg, #5568d3 0%, #643a8e 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-phone {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-phone:hover {
    background: linear-gradient(135deg, #0d7a72 0%, #2dd368 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.4);
}

/* QR Code */
.qr-wrapper {
    display: inline-block;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#qrCode {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    min-width: 200px;
}

#qrCode img,
#qrCode canvas {
    border-radius: 10px;
    max-width: 100%;
    height: auto;
}

/* Social items */
.social-item {
    text-align: center;
}

.fb-like-wrapper {
    min-height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animaciones */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-panel {
    animation: slideInUp 0.6s ease-out;
}

.contact-panel:nth-child(2) {
    animation-delay: 0.1s;
}

.contact-panel:nth-child(3) {
    animation-delay: 0.2s;
}

/* Toast personalizado */
.toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.toast-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: transparent;
}

/* Modo oscuro */
/* Modo oscuro */
.dark-mode .contact-panel {
    background: rgba(20, 26, 36, 0.95);
    border-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .contact-hub__title,
.dark-mode .contact-panel__title {
    color: #f8fafc;
}

.dark-mode .contact-hub__subtitle,
.dark-mode .contact-panel__text,
.dark-mode .contact-panel__meta {
    color: #cbd5f5;
}

.dark-mode .contact-chip {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #f8fafc;
}

.dark-mode .contact-chip:hover {
    background: #f8fafc;
    color: #111827;
}

.dark-mode .qr-wrapper {
    background: #1f2937;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-panel {
        padding: 1.5rem;
    }

    .contact-hub__title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .contact-panel {
        padding: 1.2rem;
    }

    .contact-panel__chips {
        flex-direction: column;
    }

    .contact-chip {
        width: 100%;
        justify-content: center;
    }
}
