/* ===================================================================================== */
/* SECCIÓN DE CONTACTO - DISEÑO MODERNO                                                  */
/* ===================================================================================== */

/* ---- Panel de Información ---- */
.contact-info-panel {
    background: rgba(18, 24, 33, 0.95);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.contact-info-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rse-cyan, #00d4ff), transparent);
    pointer-events: none;
}

.contact-info-header {
    margin-bottom: 2rem;
}

.contact-info-header-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--rse-cyan, #00d4ff), var(--rse-teal, #17a2b8));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.25);
}

.contact-info-header h4 {
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.contact-info-header p {
    color: var(--rse-text-secondary, #94a3b8);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

/* ---- Items de contacto ---- */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 212, 255, 0.08);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: inherit;
}

a.contact-info-item:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(4px);
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.icon-phone { background: linear-gradient(135deg, #28a745, #20c997); }
.icon-email { background: linear-gradient(135deg, #dc3545, #fd7e14); }
.icon-location { background: linear-gradient(135deg, #17a2b8, #00d4ff); }
.icon-clock { background: linear-gradient(135deg, #ffc107, #fd7e14); }

.contact-info-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.contact-info-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rse-text-secondary, #94a3b8);
    margin-bottom: 0.15rem;
}

.contact-info-value {
    color: var(--rse-text-primary, #e2e8f0);
    font-size: 0.92rem;
    font-weight: 500;
}

.contact-info-arrow {
    color: var(--rse-cyan, #00d4ff);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

a.contact-info-item:hover .contact-info-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Redes Sociales ---- */
.contact-social {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.08);
    border-radius: 14px;
    margin-bottom: 1.5rem;
}

.contact-social-label {
    color: var(--rse-text-secondary, #94a3b8);
    font-size: 0.85rem;
    font-weight: 500;
}

.contact-social-links {
    display: flex;
    gap: 0.6rem;
}

.contact-social-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-social-btn.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.contact-social-btn.instagram {
    background: linear-gradient(135deg, #E4405F, #8B3F8B, #405DE6);
}

.contact-social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: #fff;
}

/* ---- QR WhatsApp ---- */
.contact-qr {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.08);
    border-radius: 14px;
    margin-top: auto;
}

.contact-qr-box {
    background: #fff;
    border-radius: 10px;
    padding: 0.5rem;
    flex-shrink: 0;
    line-height: 0;
}

.contact-qr-box img {
    border-radius: 6px;
    width: 70px;
    height: 70px;
}

.contact-qr-text {
    display: flex;
    flex-direction: column;
}

.contact-qr-text span {
    color: var(--rse-text-primary, #e2e8f0);
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-qr-text small {
    color: var(--rse-text-secondary, #94a3b8);
    font-size: 0.8rem;
}

/* ===================================================================================== */
/* PANEL DEL FORMULARIO                                                                    */
/* ===================================================================================== */

.contact-form-panel {
    background: rgba(18, 24, 33, 0.95);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.contact-form-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rse-cyan, #00d4ff), transparent);
    pointer-events: none;
}

.contact-form-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.contact-form-header i {
    color: var(--rse-cyan, #00d4ff);
    font-size: 1.5rem;
}

.contact-form-header h4 {
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0;
}

/* ---- Campos del formulario ---- */
.contact-field {
    position: relative;
}

.contact-label {
    display: block;
    color: var(--rse-text-secondary, #94a3b8);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-label i {
    color: var(--rse-cyan, #00d4ff);
    margin-right: 0.2rem;
}

.label-optional {
    color: rgba(148, 163, 184, 0.5);
    font-weight: 400;
    font-size: 0.78rem;
}

.contact-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: var(--rse-text-primary, #e2e8f0);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.contact-input::placeholder {
    color: rgba(148, 163, 184, 0.4);
}

.contact-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--rse-cyan, #00d4ff);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.contact-field-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--rse-cyan, #00d4ff);
    border-radius: 2px;
    transition: width 0.3s ease;
    pointer-events: none;
}

.contact-input:focus ~ .contact-field-line {
    width: 100%;
}

/* Validación visual */
.contact-input.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

/* Select */
.contact-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8.5L1 3.5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.contact-select option {
    background: #1a1d23;
    color: #e2e8f0;
}

/* Textarea */
.contact-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ---- Botones ---- */
.contact-form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-btn-submit {
    flex: 1;
    min-width: 200px;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--rse-cyan, #00d4ff), var(--rse-teal, #17a2b8));
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.contact-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.45);
}

.contact-btn-submit:active {
    transform: translateY(0);
}

.contact-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.contact-btn-reset {
    padding: 0.9rem 1.5rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 14px;
    background: transparent;
    color: var(--rse-text-secondary, #94a3b8);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-btn-reset:hover {
    border-color: rgba(0, 212, 255, 0.4);
    color: var(--rse-text-primary, #e2e8f0);
    background: rgba(0, 212, 255, 0.06);
}

/* ---- Nota inferior ---- */
.contact-form-note {
    margin-top: 1.2rem;
    margin-bottom: 0;
    color: rgba(148, 163, 184, 0.5);
    font-size: 0.8rem;
}

.contact-form-note i {
    color: #28a745;
}

/* ===================================================================================== */
/* OVERLAYS DE ÉXITO Y ERROR                                                               */
/* ===================================================================================== */

.contact-success-overlay,
.contact-error-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 24, 33, 0.98);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    animation: overlayFadeIn 0.5s ease;
}

.contact-success-content,
.contact-error-content {
    text-align: center;
    padding: 2rem;
    max-width: 360px;
}

.contact-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: #fff;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.35);
}

.contact-error-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: #fff;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
    box-shadow: 0 8px 30px rgba(220, 53, 69, 0.35);
}

.contact-success-content h4,
.contact-error-content h4 {
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.contact-success-content p,
.contact-error-content p {
    color: var(--rse-text-secondary, #94a3b8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-success-btn,
.contact-error-btn {
    padding: 0.75rem 2rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    background: transparent;
    color: var(--rse-cyan, #00d4ff);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-success-btn:hover,
.contact-error-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--rse-cyan, #00d4ff);
    transform: translateY(-2px);
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

@media (max-width: 991px) {
    .contact-info-panel,
    .contact-form-panel {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-info-panel,
    .contact-form-panel {
        padding: 1.75rem;
    }

    .contact-social {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .contact-form-actions {
        flex-direction: column;
    }

    .contact-btn-submit,
    .contact-btn-reset {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .contact-info-panel,
    .contact-form-panel {
        padding: 1.5rem;
    }

    .contact-info-header-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .contact-info-icon {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .contact-qr-box img {
        width: 60px;
        height: 60px;
    }
}
