/* ===== MODAL VER SOLICITUD - V8 Chat Bubble (iMessage Style) =====
   Diseno conversacional: fondo gris chat, burbujas asimetricas, header blanco  */

/* Modal base */
.ver-cpt-modal {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}
.ver-cpt-dialog {
    max-width: 480px;
    margin: auto;
}

/* Header - blanco, sin bloque de color solido */
.ver-cpt-header {
    background: #ffffff;
    border-bottom: 1px solid #f3f4f6;
    padding: 16px 20px;
    align-items: flex-start;
    position: relative;
}
.ver-cpt-title {
    font-size: .95rem;
    font-weight: 700;
    color: #0284c7;
    margin-bottom: 3px;
    white-space: normal;
    line-height: 1.35;
}
.ver-cpt-subtitle {
    font-size: .8rem;
    color: #6b7280;
    margin: 0 0 8px;
}
.ver-cpt-badge {
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Body - fondo gris de chat (iMessage style) */
.ver-cpt-body {
    padding: 14px 16px 8px;
    background: #f3f4f6;
}

/* Tarjeta info - burbuja con cola abajo-izquierda */
.ver-cpt-card {
    background: #ffffff;
    border: none;
    border-radius: 16px 16px 16px 4px;
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    font-size: .875rem;
}

/* Section labels */
.ver-cpt-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
    margin-bottom: 6px;
    display: block;
}

/* Burbuja mensaje - entrante (solicitante), cola arriba-izquierda */
.ver-cpt-message {
    background: #ffffff;
    border: none;
    border-radius: 4px 16px 16px 16px;
    padding: 12px 14px;
    font-size: .875rem;
    color: #0f172a;
    white-space: pre-wrap;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    margin-bottom: 0;
}

/* Burbuja respuesta - saliente (propietario), verde, cola arriba-derecha */
.ver-cpt-message-resp {
    background: #d9fdd3;
    border-radius: 16px 4px 16px 16px;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.ver-cpt-fecha {
    font-size: .75rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* Footer */
.ver-cpt-footer {
    padding: 12px 16px 16px;
    border-top: none;
    background: #ffffff;
    gap: 8px;
    flex-wrap: nowrap;
}
.ver-cpt-footer .btn {
    flex: 1;
    white-space: nowrap;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
}
.ver-btn-bloquear-link {
    text-decoration: none;
    opacity: .65;
    transition: opacity .15s;
}
.ver-btn-bloquear-link:hover {
    opacity: 1;
    text-decoration: none;
}

/* ===== CONTACTO (solicitud aceptada) ===== */
.sol-contacto-section {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 16px 16px 4px 16px;
    padding: 16px;
    border: 1px solid rgba(16,185,129,.15);
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    margin-top: 4px;
    margin-bottom: 12px;
}
.sol-contacto-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: .9rem;
    color: #065f46;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(16,185,129,.2);
}
.sol-contacto-header i { color: #10b981; }
.sol-contacto-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sol-contacto-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(16,185,129,.15);
}
.sol-contacto-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.sol-contacto-icon-wa    { font-size: 1.4rem; color: #25d366; flex-shrink: 0; }
.sol-contacto-icon-tel   { font-size: 1.3rem; color: #3b82f6; flex-shrink: 0; }
.sol-contacto-icon-email { font-size: 1.3rem; color: #6b7280; flex-shrink: 0; }
.sol-contacto-detalles   { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sol-contacto-label      { font-size: .72rem; font-weight: 600; color: #6b7280; text-transform: uppercase; }
.sol-contacto-valor      { font-size: .9rem; font-weight: 700; color: #0f172a; word-break: break-all; }
.sol-contacto-btn-mini {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: .82rem;
    flex-shrink: 0;
    transition: opacity .15s;
}
.sol-contacto-btn-mini:hover { opacity: .85; }
.sol-btn-whatsapp  { background: #25d366; color: #fff; }
.sol-btn-whatsapp:hover { color: #fff; }
.sol-btn-telefono  { background: #3b82f6; color: #fff; }
.sol-btn-telefono:hover { color: #fff; }
.sol-btn-email     { background: #6b7280; color: #fff; }
.sol-btn-email:hover { color: #fff; }

@media (max-width: 576px) {
    .sol-contacto-item {
        flex-direction: column;
        align-items: stretch;
    }
    .sol-contacto-btn-mini {
        width: 100%;
        justify-content: center;
        padding: 9px;
    }
}

/* ===== MOBILE: Bottom Sheet ===== */
@media (max-width: 575px) {
    #modalVerSolicitud {
        display: flex !important;
        align-items: flex-end !important;
        padding: 0 !important;
    }
    #modalVerSolicitud:not(.show) {
        display: none !important;
    }
    .ver-cpt-dialog {
        max-width: 100%;
        margin: 0;
        align-self: flex-end;
    }
    .ver-cpt-modal {
        border-radius: 24px 24px 0 0;
        max-height: 88vh;
    }
    .ver-cpt-body {
        max-height: calc(88vh - 140px);
    }
    /* Handle bar visual */
    .ver-cpt-header::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: #d1d5db;
        border-radius: 999px;
        margin: 0 auto 10px;
    }
}
