/* =========================================================================
   D3 — Acciones del perfil (Listing\ProfileActions)
   Tarjeta en la columna derecha (escritorio) + barra fija inferior
   (celular) + menú de compartir de respaldo.
   ========================================================================= */

/* ---------- Íconos comunes ---------- */
.bindy-pa__ico { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }

/* ---------- Tarjeta (escritorio) ---------- */
.bindy-pa {
    display: block;
    background: #ffffff;
    border: 1px solid #e6ebf3;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(8, 58, 132, .05);
    /* 1-oct (Benjamín: «los horarios se ocultan cuando haces scroll»): la tarjeta
       iba pegada (sticky) y, como el horario y las reseñas viven en su misma
       columna, pasaban por debajo y quedaban tapados. Ahora baja con la página. */
    position: relative;
    text-transform: none !important;
}
.bindy-pa[hidden] { display: none; }
.bindy-pa * { text-transform: none !important; }
.bindy-pa__head {
    font-size: 14px;
    color: #4a5a72;
    margin: 0 0 12px;
    line-height: 1.35;
}
.bindy-pa__head strong { color: #0b1f3f; font-weight: 700; }
.bindy-pa__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 46px;
    margin: 0 0 8px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none !important;
    transition: background .15s, transform .12s;
}
.bindy-pa__btn:active { transform: translateY(1px); }
.bindy-pa__btn--wa { background: #25D366; color: #0b3d1e !important; border: 1px solid #25D366; }
.bindy-pa__btn--wa:hover { background: #1fbe5b; color: #0b3d1e !important; }
.bindy-pa__btn--tel { background: #083A84; color: #ffffff !important; border: 1px solid #083A84; }
.bindy-pa__btn--tel:hover { background: #0a4aa8; color: #ffffff !important; }
.bindy-pa__btn--map { background: #f2f7fd; color: #083A84 !important; border: 1px solid #cfe0f6; }
.bindy-pa__btn--map:hover { background: #e6f0fb; color: #083A84 !important; }

.bindy-pa__row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.bindy-pa__save,
.bindy-pa__share {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 10px;
    background: #ffffff;
    border: 1px solid #cfdcf0;
    border-radius: 10px;
    color: #083A84;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.bindy-pa__share:hover, .bindy-pa__save:hover { background: #f5f8fd; }
/* El corazón de Favorites dentro de la tarjeta: sin su caja propia */
.bindy-pa__save .bindy-fav-btn {
    width: 26px; height: 26px; border: 0; background: transparent; box-shadow: none; padding: 0;
}
.bindy-pa__save .bindy-fav-btn.is-saved { background: transparent; }
.bindy-pa__save .bindy-fav-btn svg { width: 22px; height: 22px; }
.bindy-pa__save { cursor: default; }
.bindy-pa__save-txt { cursor: default; }

.bindy-pa__links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}
.bindy-pa__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #4a5a72 !important;
    text-decoration: none !important;
}
.bindy-pa__link .bindy-pa__ico { width: 15px; height: 15px; }
.bindy-pa__link:hover { color: #083A84 !important; text-decoration: underline !important; }

/* ---------- Barra (celular) ---------- */
.bindy-pab {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 975; /* debajo del header pegado (980), arriba de Volver arriba (970) */
    display: flex;
    align-items: stretch;
    gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    background: #ffffff;
    border-top: 1px solid #e2e8f2;
    box-shadow: 0 -6px 18px rgba(8, 58, 132, .10);
    transform: translateY(110%);
    transition: transform .22s ease;
    text-transform: none !important;
}
.bindy-pab[hidden] { display: none; }
.bindy-pab.is-on { transform: translateY(0); }
.bindy-pab * { text-transform: none !important; }
.bindy-pab__wa,
.bindy-pab__btn {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 50px;
    padding: 4px 2px;
    border-radius: 10px;
    border: 0;
    background: transparent;
    color: #083A84 !important;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
}
.bindy-pab__btn .bindy-pa__ico { width: 22px; height: 22px; }
.bindy-pab__wa {
    /* 25-sep (Benjamín: «botón incompleto»): ícono y texto EN FILA a 14px no
       cabían en celulares de 360px o con letra grande y se cortaba. Mismo
       formato que los demás (ícono arriba, texto abajo), verde para destacar. */
    flex: 1.25 1 0;
    background: #25D366;
    color: #0b3d1e !important;
    font-size: 12px;
}
.bindy-pab__wa .bindy-pa__ico { width: 22px; height: 22px; }
.bindy-pab__save .bindy-fav-btn {
    width: 26px; height: 26px; border: 0; background: transparent; box-shadow: none; padding: 0;
}
.bindy-pab__save .bindy-fav-btn.is-saved { background: transparent; }
.bindy-pab__save .bindy-fav-btn svg { width: 22px; height: 22px; }

/* Cuando hay barra, la página deja aire abajo y «Volver arriba» sube */
body.bindy-pab-on { padding-bottom: 74px; }
body.bindy-pab-on .bindy-top { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

/* ---------- Escritorio vs. celular ---------- */
.bindy-pa-movil { display: none; }
@media (max-width: 991px) {
    .bindy-pa { display: none !important; }
    .bindy-pa-movil:not([hidden]) { display: block; text-align: center; margin: 18px 0 8px; }
    .bindy-pa-movil .bindy-pa__link { font-size: 14px; padding: 8px 12px; }
}
@media (min-width: 992px) {
    .bindy-pab { display: none !important; }
    body.bindy-pab-on { padding-bottom: 0; }
    /* El tema pone overflow hidden/auto en la sección del perfil; visible para
       que no recorte sombras ni menús de las tarjetas. */
    .listing-second-view { overflow: visible !important; }
}
@media print { .bindy-pa, .bindy-pab, .bindy-share { display: none !important; } }

/* ---------- Menú de compartir (respaldo) ---------- */
.bindy-share {
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: rgba(11, 31, 63, .55);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
.bindy-share[hidden] { display: none; }
.bindy-share__box {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 18px 18px 0 0;
    padding: 16px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 30px rgba(8, 58, 132, .2);
    text-transform: none !important;
}
@media (min-width: 992px) {
    .bindy-share { align-items: center; padding: 20px; }
    .bindy-share__box { border-radius: 16px; padding-bottom: 14px; }
}
.bindy-share__title { font-size: 16px; font-weight: 700; color: #0b1f3f; margin: 0 0 10px; }
.bindy-share__opt {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    margin: 0 0 6px;
    background: #f7f9fc;
    border: 1px solid #e6ebf3;
    border-radius: 10px;
    color: #0b1f3f;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.bindy-share__opt:hover { background: #eef3fa; }
.bindy-share__opt.is-ok { background: #e7f8ee; border-color: #b8e6c9; color: #12663a; }
.bindy-share__opt .bindy-pa__ico { color: #083A84; }
.bindy-share__opt[data-share="wa"] .bindy-pa__ico { color: #1fa855; }
.bindy-share__close {
    display: block;
    width: 100%;
    min-height: 42px;
    margin-top: 4px;
    background: transparent;
    border: 0;
    color: #4a5a72;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

/* ---------- B (22-sep-2026): cotización, correo, verificado, modal ---------- */
.bindy-pa__btn--cot { background: #083A84; color: #fff !important; border: 1px solid #083A84; cursor: pointer; font-family: inherit; }
.bindy-pa__btn--cot:hover { background: #0a4aa8; }
.bindy-pa__btn--cot + .bindy-pa__btn--tel { background: #fff; color: #083A84 !important; border: 1.5px solid #083A84; }
.bindy-pa__btn--cot + .bindy-pa__btn--tel:hover { background: #eaf2ff; }
.bindy-pa__meta { display: flex; align-items: center; gap: 16px; margin: 4px 0 10px; font-size: 14px; }
.bindy-pa__mail { display: inline-flex; align-items: center; gap: 6px; color: #083A84 !important; text-decoration: none !important; font-weight: 600; }
.bindy-pa__mail:hover { text-decoration: underline !important; }
.bindy-pa__mail .bindy-pa__ico { width: 18px; height: 18px; }
.bindy-pa__ver { display: inline-flex; align-items: center; gap: 6px; color: #0B6B7C; font-weight: 700; }
.bindy-pa__ver .bindy-pa__ico { width: 18px; height: 18px; color: #02CCE2; }
.bindy-pab__btn[data-bindy-cotizar] { background: transparent; border: 0; font-family: inherit; cursor: pointer; }

.bindy-cot { position: fixed; inset: 0; z-index: 10050; background: rgba(8, 20, 45, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.bindy-cot[hidden] { display: none; }
body.bindy-cot-open { overflow: hidden; }
.bindy-cot__box { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 18px; padding: 24px 22px 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); text-transform: none !important; }
.bindy-cot__x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f0f3f8; color: #46556f; font-size: 22px; line-height: 1; cursor: pointer; }
.bindy-cot__title { font-size: 20px; font-weight: 800; color: #083A84; margin: 0 30px 6px 0; }
.bindy-cot__sub { font-size: 14px; color: #46556f; margin: 0 0 14px; line-height: 1.4; }
.bindy-cot__l { display: block; font-size: 13px; font-weight: 600; color: #0b1f3f; margin: 0 0 12px; }
.bindy-cot__l small { font-weight: 400; color: #8a8a8a; }
.bindy-cot__l input, .bindy-cot__l textarea { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1.5px solid #d9e2ef; border-radius: 10px; font-size: 15px; font-family: inherit; color: #0f2350; background: #fff; box-shadow: none; }
.bindy-cot__l input:focus, .bindy-cot__l textarea:focus { outline: 0; border-color: #02CCE2; box-shadow: 0 0 0 3px rgba(2, 204, 226, .18); }
.bindy-cot__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bindy-cot__send { display: block; width: 100%; padding: 13px; border: 0; border-radius: 12px; background: #083A84; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; }
.bindy-cot__send:hover { background: #0a4aa8; }
.bindy-cot__send:disabled { background: #b9c3d6; cursor: wait; }
.bindy-cot__msg { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; line-height: 1.4; }
.bindy-cot__msg[hidden] { display: none; }
/* 1-oct (Jorge: «quedó pensando y ya no volvió»): al enviar, el JS oculta los
   campos y el botón con [hidden], pero su display:block le ganaba y «Enviando…»
   se quedaba a la vista debajo de «Cerrar». */
.bindy-cot__l[hidden], .bindy-cot__send[hidden], .bindy-cot__fine[hidden] { display: none !important; }
.bindy-cot__msg.is-ok { background: #e7f8ee; color: #12663a; }
.bindy-cot__msg.is-err { background: #fdecec; color: #9b1c1c; }
.bindy-cot__fine { font-size: 12px; color: #8a8a8a; margin: 12px 0 0; line-height: 1.4; }

/* 23-sep-2026 (ronda 3): el tema pinta gris los <span> dentro de botones → color
   heredado a la fuerza. WhatsApp y cotización en blanco, Llamar en azul, Email
   como botón de contorno (antes era un enlace suelto que se veía roto). */
.bindy-pa__btn span, .bindy-pa__btn .bindy-pa__ico, .bindy-pab__wa span, .bindy-pab__btn span { color: inherit !important; }
.bindy-pa__btn--wa, .bindy-pa__btn--wa:hover { color: #ffffff !important; }
.bindy-pa__btn--cot, .bindy-pa__btn--cot:hover { color: #ffffff !important; }
.bindy-pa__btn--tel, .bindy-pa__btn--cot + .bindy-pa__btn--tel { background: #fff; color: #083A84 !important; border: 1.5px solid #083A84; }
.bindy-pa__btn--tel:hover, .bindy-pa__btn--cot + .bindy-pa__btn--tel:hover { background: #eaf2ff; color: #083A84 !important; }
.bindy-pa__btn--mail { background: #fff; color: #083A84 !important; border: 1.5px solid #cfe0f6; }
.bindy-pa__btn--mail:hover { background: #f2f7fd; color: #083A84 !important; }
.bindy-pab__wa, .bindy-pab__wa span { color: #ffffff !important; }
