/* ==========================================================================
   RED LATINOAMERICANA DE POLIGRAFISTAS - BOTTOM SHEET (MOBILE)
   ========================================================================== */

.bottom-sheet-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: var(--z-modal);
}

.bottom-sheet-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    box-shadow: var(--shadow-float);
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: calc(var(--z-modal) + 1);
    max-height: 85dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bottom-sheet.active {
    transform: translateY(0);
}

.sheet-handle-bar {
    width: 100%;
    padding: 10px 0 6px 0;
    display: flex;
    justify-content: center;
    cursor: grab;
}

.sheet-handle {
    width: 44px;
    height: 5px;
    background-color: #cbd5e1;
    border-radius: var(--radius-full);
}

.sheet-header {
    padding: 0.6rem 1.25rem 0.5rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.sheet-header-info {
    flex: 1;
}

.sheet-close-btn {
    background: #f1f5f9;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: all 0.15s ease;
}

.sheet-close-btn:hover {
    background: #e2e8f0;
    color: var(--color-text-main);
}

.sheet-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.015em;
    word-break: break-word;
    font-family: 'Poppins', sans-serif !important;
}

.sheet-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 3px;
    font-family: 'Poppins', sans-serif !important;
}

.sheet-loc-text {
    font-size: 12.5px !important;
    font-weight: 400 !important;
    color: #64748b;
    line-height: 1.35;
    font-family: 'Poppins', sans-serif !important;
}

.sheet-content {
    padding: 0 1.25rem 1.25rem 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif !important;
}

.sheet-address-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 8px 11px;
    border-radius: 9px;
    font-size: 0.78rem;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.35;
    font-family: 'Poppins', sans-serif !important;
}

.sheet-address-box svg {
    width: 15px;
    height: 15px;
    color: #1d68f6;
    stroke: #1d68f6;
    flex-shrink: 0;
}

/* Botón WhatsApp Exacto al Diseño en Bottom Sheet */
.bottom-sheet .btn-card-whatsapp {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    height: 48px !important;
    background: #1d68f6 !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    margin-top: 8px !important;
    box-shadow: 0 4px 14px rgba(29, 104, 246, 0.32) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
    border: none !important;
    cursor: pointer !important;
    user-select: none !important;
}

.bottom-sheet .btn-card-whatsapp:active {
    transform: scale(0.98) !important;
}

.bottom-sheet .btn-card-whatsapp .wa-circle-icon {
    width: 26px !important;
    height: 26px !important;
    background: #25d366 !important;
    border: 2px solid #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
}

.bottom-sheet .btn-card-whatsapp .wa-circle-icon svg {
    width: 14px !important;
    height: 14px !important;
    fill: #ffffff !important;
}

.bottom-sheet .btn-card-whatsapp span {
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}

.sheet-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0.75rem 1.25rem 1.25rem 1.25rem;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.sheet-btn-wa {
    width: 100%;
    height: 40px;
    background: linear-gradient(135deg, #25d366, #1fad53) !important;
    color: #ffffff !important;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    border: none;
    transition: all 0.15s ease;
}

.sheet-btn-wa *,
.sheet-btn-wa span,
.sheet-btn-wa svg {
    color: #ffffff !important;
    fill: #ffffff !important;
}

.sheet-btn-wa:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.35);
    color: #ffffff !important;
}

.sheet-subactions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.sheet-btn-sub {
    height: 36px;
    font-size: 0.76rem;
    font-weight: 550;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.sheet-btn-call {
    background-color: #f0f9ff;
    color: #0369a1;
    border: 1px solid #e0f2fe;
}

.sheet-btn-call:hover {
    background-color: #e0f2fe;
    border-color: #bae6fd;
}

.sheet-btn-mail {
    background-color: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.sheet-btn-mail:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

/* En pantallas grandes (Desktop), ocultar el bottom sheet para usar popup de Leaflet */
@media (min-width: 768px) {
    .bottom-sheet,
    .bottom-sheet-backdrop {
        display: none !important;
    }
}
