/* ============================================
   TENNERY® — Ofertas por producto (prueba)
   ============================================ */
.offer-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--accent-line);
    font-size: 12px;
    color: var(--ink-soft);
}

.offer-row svg {
    flex: none;
    color: var(--rose);
}

.offer-link {
    border: none;
    background: none;
    padding: 4px 0;
    color: var(--rose);
    font-family: var(--body);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.offer-link.start {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card-solid);
}

.offer-row.has-offer {
    color: var(--ink);
}

.offer-row.has-offer > span {
    flex: 1;
}

.offer-label {
    width: 100%;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
}

.offer-edit {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.offer-currency {
    font-weight: 700;
    color: var(--ink-soft);
}

.offer-input {
    flex: 1;
    min-width: 0;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--card-solid);
    color: var(--ink);
    padding: 0 12px;
    font-family: var(--body);
    font-size: 15px;
    outline: none;
}

.offer-input:focus {
    border-color: var(--rose-2);
    box-shadow: 0 0 0 4px rgba(232, 49, 126, 0.12);
}

.offer-apply {
    height: 38px;
    padding: 0 14px;
    border: none;
    border-radius: 999px;
    background: var(--grad);
    color: #FFFFFF;
    font-family: var(--body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.offer-cancel {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: var(--line-soft);
    color: var(--ink-soft);
    font-size: 18px;
    cursor: pointer;
}

.line-total s,
.offer-summary s {
    display: block;
    font-size: 11px;
    color: var(--muted);
}

.offer-total {
    color: var(--rose);
}

.offer-summary {
    margin-top: 8px;
    border-radius: 14px;
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    padding: 10px 12px;
    font-size: 12px;
    color: var(--ink-soft);
}

.offer-summary[hidden] {
    display: none;
}

.offer-summary div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
}

.offer-summary div s {
    display: inline;
    font-size: 13px;
}

.offer-summary p {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    margin-top: 6px;
}

.offer-summary p svg {
    flex: none;
    margin-top: 2px;
    color: var(--rose);
}

/* Botón "Hacer una oferta" en la tarjeta */
.info .card-offer {
    width: 100%;
    height: 38px;
    margin-top: -2px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card-solid);
    color: var(--rose);
    font-family: var(--body);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.info .card-offer:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.info .card-offer svg {
    color: var(--rose);
}

/* ---------- Oferta dentro de la tarjeta ---------- */
:root {
    --offer-green: #16946A;
    --offer-green-soft: #E3F7EF;
}

body.dark-mode {
    --offer-green: #6EE7B7;
    --offer-green-soft: rgba(110, 231, 183, 0.12);
}

.price-row.offered {
    align-items: center;
}

.offer-tag {
    flex-basis: 100%;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--offer-green);
}

.offer-tag svg {
    color: var(--offer-green);
}

.offer-price {
    color: var(--offer-green);
}

.product-card.has-offer.glass {
    border-color: var(--offer-green);
}

.card-offer-box {
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--card-solid);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-offer-box label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
}

.card-offer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    margin-top: -4px;
}

/* Nota: oferta real en revisión */
.pending-note {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 0;
    padding: 8px 12px;
    border-radius: 14px;
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink-soft);
}

.offer-apply:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Insignia de SALDO (la misma imagen del catálogo anterior: insignia.png) */
.saldo-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    width: 59px;
    height: 59px;
    background: url('insignia.png') no-repeat center / contain;
    pointer-events: none;
}

/* ============================================
   Pulido para celular (solo la página de ofertas)
   ============================================ */

/* Botones de la tarjeta: "Agregar" y "Hacer una oferta" */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info .card-actions .card-offer {
    margin-top: 0;
}

.offer-error {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #C62828;
}

body.dark-mode .offer-error {
    color: #FF8A80;
}

/* Al escribir la oferta, la caja no queda escondida debajo de la barra de arriba */
.product-card,
.card-offer-box {
    scroll-margin-top: 96px;
}

/* Barra de búsqueda semitransparente al bajar (se ven los productos detrás) */
.topbar-wrap.compact .topbar {
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
}

.topbar-wrap.compact .search {
    background: rgba(255, 255, 255, 0.5);
}

body.dark-mode .topbar-wrap.compact .topbar {
    background: rgba(38, 18, 34, 0.6);
}

body.dark-mode .topbar-wrap.compact .search {
    background: rgba(255, 255, 255, 0.08);
}

/* Al escribir en la búsqueda, la barra vuelve a ser sólida para leer bien */
.topbar-wrap.compact .topbar:focus-within {
    background: rgba(255, 255, 255, 0.94);
}

body.dark-mode .topbar-wrap.compact .topbar:focus-within {
    background: rgba(38, 18, 34, 0.95);
}

@media (max-width: 599px) {
    /* Tarjeta más compacta: cabe completa en la pantalla */
    .photo {
        aspect-ratio: 1 / 0.62;
    }

    .info {
        padding: 10px 4px 2px;
        gap: 6px;
    }

    .price {
        font-size: 24px;
    }

    .pay {
        padding: 6px;
    }

    .pay-title {
        padding-bottom: 4px;
    }

    .plan-tab {
        height: 32px;
        font-size: 12px;
    }

    .plan-show {
        padding: 6px 2px 2px;
    }

    .plan-amount strong {
        font-size: 24px;
    }

    .btn-main {
        height: 44px;
    }

    /* "Agregar a mi bolsa" y "Hacer una oferta" en la misma fila */
    .card-actions.split {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px;
    }

    .card-actions.split .btn-main,
    .info .card-actions.split .card-offer {
        white-space: nowrap;
    }

    .card-actions.split svg {
        flex: none;
        width: 18px;
        height: 18px;
    }

    .card-actions.split .btn-main {
        font-size: 13px;
        padding: 0 10px;
        gap: 6px;
    }

    .info .card-actions.split .card-offer {
        height: 44px;
        font-size: 13px;
        padding: 0 8px;
    }

    /* Caja para escribir la oferta: botones fáciles de tocar y sin zoom del iPhone (16px) */
    .card-offer-box {
        padding: 8px;
    }

    .card-offer-box .offer-input {
        height: 44px;
    }

    /* El iPhone hace zoom (y mueve la pantalla) si el texto de un campo es menor a 16px */
    .offer-input,
    .search input {
        font-size: 16px;
    }

    .card-offer-box .offer-apply {
        height: 44px;
        padding: 0 16px;
        font-size: 14px;
    }

    .card-offer-box .offer-cancel {
        width: 40px;
        height: 40px;
        flex: none;
    }

    .pending-note {
        font-size: 12px;
    }
}

/* Etiquetas cortas cuando hay varias tarjetas por fila */
.lbl-short { display: none; }

@media (min-width: 600px) {
    .card-actions.split .lbl-long { display: none; }
    .card-actions.split .lbl-short { display: inline; }

    /* Mismo formato compacto que en el celular */
    .card-actions.split {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        gap: 8px;
    }

    .card-actions.split .btn-main,
    .info .card-actions.split .card-offer {
        height: 44px;
        white-space: nowrap;
        font-size: 13.5px;
        padding: 0 10px;
        gap: 6px;
    }

    .card-actions.split svg {
        flex: none;
        width: 18px;
        height: 18px;
    }

    .photo {
        aspect-ratio: 1 / 0.7;
    }

    .info .btn-main {
        height: 44px;
    }

    .info {
        gap: 6px;
        padding-top: 10px;
    }

    .pay {
        padding: 6px;
    }

    .pay-title {
        padding-bottom: 4px;
    }

    .plan-tab {
        height: 32px;
    }

    .plan-show {
        padding: 6px 2px 2px;
    }

    .plan-amount strong {
        font-size: 26px;
    }

    .price {
        font-size: 26px;
    }
}

/* Caja de oferta en el mismo lugar que los botones (la tarjeta no crece) */
.card-offer-box.inline {
    border: 0;
    background: transparent;
    padding: 0;
    gap: 4px;
}

.card-offer-box.inline .offer-edit {
    height: 44px;
    gap: 6px;
}

.card-offer-box.inline .offer-input {
    height: 44px;
    border-radius: 999px;
    padding: 0 14px;
    border: 1.5px solid var(--rose-2);
    font-size: 16px;
}

.card-offer-box.inline .offer-apply {
    height: 44px;
    padding: 0 16px;
    font-size: 14px;
    flex: none;
}

.card-offer-box.inline .offer-cancel {
    width: 38px;
    height: 38px;
    flex: none;
}

.card-offer-box.inline .offer-error {
    padding: 0 6px;
}

/* La página no mueve sola el scroll al cambiar una tarjeta (lo controlamos nosotros) */
.products-grid {
    overflow-anchor: none;
}

/* Sin el recuadro azul al tocar en Android */
.product-card button,
.product-card a,
.product-card input {
    -webkit-tap-highlight-color: transparent;
}

/* Celulares angostos: etiquetas cortas para que no se corten */
@media (max-width: 400px) {
    .card-actions.split .lbl-long { display: none; }
    .card-actions.split .lbl-short { display: inline; }
}

/* ============================================
   v4: la tarjeta mide lo mismo en todo momento
   ============================================ */
/* Logos de tarjetas en el lugar de la etiqueta amarilla (mismo alto) */
.card-logos.inline {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 0;
    height: 22px;
    overflow: hidden;
}

.card-logos.inline img {
    height: 22px;
    width: auto;
    border-radius: 4px;
}

/* Con oferta: "Con tu oferta" + "Quitar oferta" en la misma línea del título */
.pay-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-height: 22px;
}

.pay-title > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--offer-green);
}

.pay-title > span svg {
    width: 13px;
    height: 13px;
    color: var(--offer-green);
}

.offer-remove {
    border: 0;
    background: none;
    padding: 2px 4px;
    font-family: var(--body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    white-space: nowrap;
}

.offer-remove:hover {
    color: var(--rose);
}

/* Aviso arriba (debajo de la barra), así no tapa los botones de la tarjeta */
.toast {
    top: calc(env(safe-area-inset-top, 0px) + 84px);
    bottom: auto;
    transform: translate(-50%, -24px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-align: center;
}

.toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

@media (max-width: 720px) {
    .toast {
        top: calc(env(safe-area-inset-top, 0px) + 70px);
        font-size: 13px;
        padding: 11px 18px;
    }
}

@media (max-width: 599px) {
    .product-card.has-offer .card-actions.split .lbl-long { display: none; }
    .product-card.has-offer .card-actions.split .lbl-short { display: inline; }
}

/* Altos fijos para que nada brinque al cambiar de opción o al ofertar */
.pay-title { height: 22px; min-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 4px; }
.plan-tag { height: 22px; line-height: 14px; vertical-align: top; }
.plan-show { display: flex; flex-direction: column; align-items: center; }
.plan-detail { min-height: 18px; }

/* "En tu bolsa" (la oferta ya se agregó sola) */
.btn-main.in-bag {
    background: var(--offer-green);
    box-shadow: 0 12px 24px -14px rgba(22, 148, 106, 0.8);
}

body.dark-mode .btn-main.in-bag {
    color: #0B2A1F;
}

/* La bolsa salta un poquito cuando se agrega algo */
@keyframes bag-bump {
    0% { transform: scale(1); }
    30% { transform: scale(1.14); }
    60% { transform: scale(0.96); }
    100% { transform: scale(1); }
}

.bag-btn.bump {
    animation: bag-bump 0.6s ease;
}

/* Nota: las ofertas no se combinan con 2x1 */
.offer-summary p.no-2x1 {
    color: var(--ink);
    font-weight: 600;
}

.offer-summary p.no-2x1 span {
    flex: none;
}


/* ============================================
   🛒 TIENDA EN LÍNEA: 2x1, cupones y pagar ahora
   ============================================ */
.x2-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 3;
    font-family: var(--display);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.02em;
    color: #FFFFFF;
    background: var(--grad);
    padding: 4px 11px;
    border-radius: 999px;
    box-shadow: 0 8px 18px -8px rgba(194, 24, 91, 0.8);
    pointer-events: none;
}

.x2-mini {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    color: #FFFFFF;
    background: var(--grad);
    border-radius: 999px;
    padding: 1px 7px;
    margin-left: 4px;
    vertical-align: 1px;
}

.x2-box {
    margin-top: 12px;
    border-radius: 16px;
    border: 1.5px solid var(--line);
    background: var(--panel);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.x2-box[hidden] { display: none; }

.x2-head { display: flex; flex-direction: column; gap: 1px; }
.x2-head strong { font-family: var(--display); font-size: 16px; color: var(--ink); }
.x2-head span { font-size: 12px; color: var(--muted); }

.x2-pair {
    background: var(--card-solid);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 9px 11px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.x2-names { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12.5px; color: var(--ink); font-weight: 600; line-height: 1.3; }
.x2-names b { color: var(--rose); }
.x2-money { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-soft); }
.x2-money strong { color: var(--ink); }
.x2-money em { font-style: normal; font-weight: 700; color: var(--green); background: var(--green-bg); border-radius: 999px; padding: 1px 8px; }
.x2-undo { margin-left: auto; border: none; background: none; color: var(--muted); font-family: var(--body); font-size: 12px; text-decoration: underline; cursor: pointer; padding: 2px 0; }

.x2-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.x2-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    border: 1.5px dashed var(--rose-3);
    background: var(--card-solid);
    color: var(--ink);
    border-radius: 999px;
    padding: 6px 12px;
    font-family: var(--body);
    font-size: 12px;
    cursor: pointer;
}
.x2-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 190px; }
.x2-chip b { color: var(--rose); flex: none; }
.x2-chip.sel { border-style: solid; border-color: var(--rose); background: var(--line-soft); box-shadow: 0 0 0 3px var(--line-soft); }
.x2-hint { font-size: 11.5px; color: var(--muted); }
.x2-auto {
    align-self: flex-start;
    border: none;
    border-radius: 999px;
    background: var(--grad);
    color: #FFFFFF;
    font-family: var(--body);
    font-weight: 700;
    font-size: 12.5px;
    padding: 8px 14px;
    cursor: pointer;
}

.summary .summary-lines { display: flex; flex-direction: column; gap: 4px; justify-content: flex-start; }
.summary .summary-lines:empty { display: none; }
.summary .summary-lines s { color: var(--muted); }
.summary .summary-lines .save span:last-child { color: var(--green); font-weight: 700; }
#cartTotal.pending { opacity: 0.45; transition: opacity 0.2s; }

.cupon { margin-top: 12px; }
.cupon-form { display: flex; gap: 6px; }
.cupon-form[hidden] { display: none; }
.cupon-form input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 1.5px dashed var(--line);
    border-radius: 12px;
    padding: 0 12px;
    background: var(--card-solid);
    color: var(--ink);
    font-family: var(--body);
    font-size: 14px;
    text-transform: uppercase;
    outline: none;
}
.cupon-form input::placeholder { text-transform: none; }
.cupon-form input:focus { border-style: solid; border-color: var(--rose-2); }
.cupon-form button {
    height: 44px;
    border: none;
    border-radius: 12px;
    padding: 0 16px;
    background: var(--plum);
    color: #FFFFFF;
    font-family: var(--body);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}
.cupon-form button:disabled { opacity: 0.6; cursor: wait; }
.cupon-error { margin-top: 6px; font-size: 12px; color: #C62828; }
.cupon-error[hidden] { display: none; }
.cupon-ok {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    background: var(--green-bg);
    border: 1px solid #A9E5C9;
    padding: 9px 12px;
}
.cupon-ok[hidden] { display: none; }
.cupon-ok .cup-ico { font-size: 20px; }
.cupon-ok div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cupon-ok b { font-size: 13px; color: var(--green); letter-spacing: 0.04em; }
.cupon-ok small { font-size: 11px; color: var(--ink-soft); }
.cupon-ok strong { color: var(--green); font-size: 14px; }
.cupon-ok button { border: none; background: none; color: var(--muted); font-family: var(--body); font-size: 12px; text-decoration: underline; cursor: pointer; }

.btn-paynow {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 999px;
    background: #009EE3;
    color: #FFFFFF;
    font-family: var(--body);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 14px 28px -14px rgba(0, 158, 227, 0.9);
}
.btn-paynow[hidden], .hint[hidden] { display: none; }
.btn-paynow:disabled {
    background: var(--chip);
    color: var(--muted);
    border: 1px dashed var(--line);
    box-shadow: none;
    cursor: not-allowed;
}

.pay-result {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(31, 16, 35, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.pay-result[hidden] { display: none; }
.pay-card {
    width: min(420px, 100%);
    border-radius: 24px;
    background: var(--card-solid);
    padding: 26px 22px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow);
}
.pay-ico { font-size: 44px; line-height: 1; }
.pay-card h2 { font-family: var(--display); font-size: 22px; color: var(--ink); }
.pay-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.45; }
.pay-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.pay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    border: none;
    font-family: var(--body);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}
.pay-btn.main { background: #009EE3; color: #FFFFFF; }
.pay-btn.wa { background: #128C4A; color: #FFFFFF; }
.pay-btn.ghost { background: none; color: var(--muted); text-decoration: underline; font-weight: 600; }

/* ⭐ Descuento de clienta (nivel) */
.nivel-box { margin-top: 12px; }
.nivel-open { width: 100%; border: 1.5px dashed var(--rose-3); background: var(--card-solid); color: var(--ink-soft); border-radius: 14px; padding: 11px 12px; font-family: var(--body); font-size: 13px; text-align: left; cursor: pointer; }
.nivel-open b { color: var(--rose); }
.nivel-open[hidden], .nivel-form[hidden], .nivel-ok[hidden] { display: none; }
.nivel-form { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); padding: 12px; }
.nivel-form p { font-size: 12px; color: var(--ink-soft); }
.nivel-row { display: flex; gap: 6px; flex-wrap: wrap; }
.nivel-row input { flex: 1; min-width: 130px; height: 44px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--card-solid); color: var(--ink); font-family: var(--body); font-size: 14px; outline: none; }
.nivel-row input:focus { border-color: var(--rose-2); }
#nivelId { text-transform: uppercase; }
#nivelId::placeholder { text-transform: none; }
.nivel-form button[type=submit] { height: 44px; border: none; border-radius: 12px; background: var(--grad); color: #FFFFFF; font-family: var(--body); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.nivel-form button:disabled { opacity: 0.6; cursor: wait; }
.nivel-ok { display: flex; align-items: center; gap: 10px; border-radius: 14px; background: linear-gradient(120deg, #FFF4D6, #FFE9F3); border: 1px solid #F8D57E; padding: 10px 12px; }
.nivel-ok.pausa { background: #FFF1F1; border-color: #F3B4B4; }
.nivel-ok .nv-ico { font-size: 22px; }
.nivel-ok div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nivel-ok b { font-size: 13px; color: var(--ink); }
.nivel-ok small { font-size: 11.5px; color: var(--ink-soft); }
.nivel-ok small b { font-size: 11.5px; color: var(--rose); }
.nivel-ok button { border: none; background: none; color: var(--muted); font-family: var(--body); font-size: 11.5px; text-decoration: underline; cursor: pointer; }
.x2-badge + .x2-badge { display: none; }
.remate-tag { display: inline-block; align-self: flex-start; margin: 2px 0 4px; font-size: 11.5px; font-weight: 700; color: #9A3412; background: #FFE8D6; border: 1px solid #FDBA74; border-radius: 999px; padding: 2px 10px; }

/* 🔒 Catálogo exclusivo */
.lock-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-radius: 18px; padding: 12px 16px; margin: 0 0 16px; font-size: 13.5px; color: var(--ink-soft); }
.lock-bar[hidden] { display: none; }
.lock-bar b { color: var(--ink); }
.lock-bar button { border: none; border-radius: 999px; background: var(--grad); color: #FFFFFF; font-family: var(--body); font-weight: 700; font-size: 13px; padding: 9px 20px; cursor: pointer; }
.locked-card .lock-price { display: flex; align-items: center; gap: 10px; border-radius: 14px; background: var(--panel); border: 1px dashed var(--rose-3); padding: 10px 12px; margin: 6px 0 10px; }
.locked-card .lock-price span { font-size: 22px; }
.locked-card .lock-price b { display: block; font-size: 13px; color: var(--ink); }
.locked-card .lock-price small { display: block; font-size: 11.5px; color: var(--muted); }
.gate-card { position: relative; text-align: left; }
.gate-card .pay-ico, .gate-card h2 { text-align: center; }
.gate-card > p { text-align: center; }
.gate-x { position: absolute; top: 10px; right: 12px; border: none; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; }
.gate-form { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.gate-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.gate-form label em { font-style: normal; font-weight: 400; color: var(--muted); }
.gate-form input { height: 46px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--card-solid); color: var(--ink); font-family: var(--body); font-size: 15px; outline: none; }
.gate-form input:focus { border-color: var(--rose-2); }
#gateId { text-transform: uppercase; }
#gateId::placeholder { text-transform: none; }
.gate-form .pay-btn { width: 100%; }
.gate-form .pay-btn:disabled { opacity: 0.6; cursor: wait; }
.gate-reg { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.gate-reg p { text-align: center; font-size: 12.5px; color: var(--rose); font-weight: 700; }
.gate-reg p[hidden] { display: none; }
.gate-note { font-size: 11px !important; color: var(--muted) !important; text-align: center; }
body.locked .bag-count { display: none; }

/* 🎁 2x1 en cada producto de la bolsa */
.x2-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.x2-row:empty { display: none; }
.x2t { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px; border: 1px solid transparent; font-family: var(--body); }
.x2t.ok { background: var(--green-bg); color: var(--green); }
.x2t.si { background: var(--line-soft); color: var(--rose); border-color: var(--rose-3); cursor: pointer; }
.x2t.warn { background: #FFF4D6; color: #7A5200; }
.x2t.no { background: var(--chip); color: var(--muted); border-color: var(--line); font-weight: 600; }
.x2-tip { width: 100%; font-size: 12px; line-height: 1.4; color: var(--ink-soft); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.x2-tip.mejor { border-color: var(--rose-3); background: var(--line-soft); }
.x2-tip b { color: var(--ink); }
.x2-tip button { display: block; margin-top: 6px; border: none; border-radius: 999px; background: var(--grad); color: #FFFFFF; font-family: var(--body); font-weight: 700; font-size: 12px; padding: 6px 14px; cursor: pointer; }

/* ID de clienta: "CT-" fijo, ella escribe el resto */
.ctid { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card-solid); overflow: hidden; min-width: 0; flex: 1; }
.ctid:focus-within { border-color: var(--rose-2); }
.ctid b { display: flex; align-items: center; padding: 0 4px 0 12px; font-weight: 800; color: var(--rose); font-size: 15px; letter-spacing: 0.02em; background: var(--line-soft); padding-right: 8px; }
.ctid input, .gate-form .ctid input, .nivel-row .ctid input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; flex: 1; min-width: 0; height: 44px; padding: 0 10px; background: transparent; outline: none; font-size: 15px; text-transform: uppercase; }
.nivel-row .ctid { min-width: 150px; }

/* Oferta aprobada: lista con precios */
.pay-items { margin: 12px 0 0; border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; text-align: left; font-size: 13.5px; }
.pay-items div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.pay-items .tot { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 8px; font-size: 15px; }

#x2Consejo:empty { display: none; }
#x2Consejo { margin-top: 12px; }
.x2-tip.consejo { font-size: 13px; padding: 12px 14px; }
.x2-tip.consejo button { width: 100%; margin-top: 10px; padding: 10px 14px; font-size: 13.5px; }
#totalLabel .tl-sub { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0; text-transform: none; }

/* 🎬 Reseñas en video (TikTok) */
.tk-btn { position: absolute; right: 12px; bottom: 34px; z-index: 3; width: 38px; height: 38px; border: 2px solid #fff; border-radius: 50%; padding: 0; background: #111; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.55); }
.tk-btn { overflow: hidden; }
.tk-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tk-ov { position: fixed; inset: 0; z-index: 1200; background: rgba(15, 8, 18, 0.72); display: flex; align-items: flex-end; justify-content: center; }
.tk-ov[hidden] { display: none; }
body.tk-abierto { overflow: hidden; }
.tk-sheet { width: 100%; max-width: 430px; max-height: 96vh; overflow-y: auto; background: var(--card-solid, #fff); border-radius: 26px 26px 0 0; padding: 12px 14px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.35); }
.tk-bar { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 14px; color: var(--ink); padding: 2px 4px 10px; font-family: var(--body); }
.tk-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--line-soft); color: var(--rose); font-size: 20px; font-weight: 700; cursor: pointer; }
.tk-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tk-tabs button { flex: 1; border-radius: 999px; padding: 7px 0; font: 600 12px var(--body); border: 1.5px solid var(--line); background: transparent; color: var(--ink-soft); cursor: pointer; }
.tk-tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tk-vid { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 62vh; border-radius: 18px; overflow: hidden; background: #000; margin: 0 auto; }
.tk-vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Comprar sin salir del video */
.tk-prod { position: sticky; bottom: 0; background: var(--card-solid, #fff); padding: 10px 0 2px; border-radius: 14px; }
.tk-add { height: 50px; font-size: 15px; padding: 0 20px; box-shadow: 0 10px 22px -12px rgba(194, 24, 91, 0.9); }
.tk-ok { flex-basis: 100%; text-align: center; font-weight: 800; font-size: 14px; color: var(--green, #04754C); }
#tkProd:has(.tk-ok) { flex-wrap: wrap; justify-content: center; }
#tkProd:has(.tk-ok) .tk-add { flex: 1; }
.tk-seguir { border: 1.5px solid var(--line); background: transparent; border-radius: 14px; height: 50px; padding: 0 12px; font: 600 13px var(--body); color: var(--ink-soft); cursor: pointer; white-space: nowrap; }
.tk-fin { text-align: center; margin-top: 10px; font-weight: 800; font-size: 14px; color: var(--rose); }
.tk-prod.pulso .tk-add { animation: tkPulso 1.2s ease-in-out 3; }
@keyframes tkPulso { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .tk-prod.pulso .tk-add { animation: none; } }
.tk-prod { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.tk-prod img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; background: var(--line-soft); flex: none; }
.tk-prod div { flex: 1; min-width: 0; font: 600 13px var(--body); color: var(--ink); }
.tk-prod small { display: block; color: var(--rose); font-weight: 800; font-size: 15px; }
.tk-add { border: 0; border-radius: 14px; padding: 0 16px; height: 46px; background: var(--grad); color: #fff; font: 700 14px var(--body); white-space: nowrap; cursor: pointer; }
.tk-agotado { font-size: 13px; font-weight: 700; color: var(--muted); }
@media (min-width: 700px) { .tk-ov { align-items: center; } .tk-sheet { border-radius: 26px; } }
.field-hint { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
#tkProd .tk-ok { flex: 0 0 100%; color: #04754C; }

/* 📱 iPhone: con letra menor a 16 px, el iPhone hace zoom al escribir y la página queda "más grande que la pantalla" */
@media (hover: none) and (pointer: coarse) { input, select, textarea { font-size: 16px !important; } }
/* clip (no hidden): así la barra de búsqueda sigue fija al bajar */
html, body { max-width: 100%; overflow-x: clip; }

/* ✍️ Grabado personalizado */
.gr-tag { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 700; color: #6A35C9; background: #F1E9FF; border-radius: 999px; padding: 2px 8px; margin-left: 4px; font-family: var(--body); letter-spacing: 0; }
.gr-box { margin-top: 8px; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--line-soft); }
.gr-chk { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--ink); cursor: pointer; }
.gr-chk input { width: 18px; height: 18px; accent-color: var(--rose-2); }
.gr-precio { margin-left: auto; color: var(--rose); font-weight: 800; }
.gr-in { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.gr-in input { flex: 1; min-width: 0; height: 42px; border: 1.5px solid var(--rose-2); border-radius: 11px; padding: 0 12px; font: 600 16px var(--body); letter-spacing: 0.03em; background: var(--card-solid); color: var(--ink); outline: none; }
.gr-n { width: 22px; height: 22px; border-radius: 50%; background: var(--rose-2); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; }
.gr-cnt { font-size: 11.5px; font-weight: 700; color: var(--muted); flex: none; }
.gr-nota { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); line-height: 1.45; }
.gr-plan { margin-bottom: 8px; font-size: 12px; color: #7A5300; background: #FFF4D6; border-radius: 12px; padding: 9px 12px; line-height: 1.45; }

/* 🎟️ Rifa */
#rifaBanner:empty { display: none; }
/* 🎟️ Rifa: un boleto rosa TENNERY® con talón y muescas */
#rifaBanner { filter: drop-shadow(0 14px 22px rgba(194, 24, 91, 0.22)); margin: 0 0 16px; }
.rf-banner { --stub: 82px; width: 100%; display: flex; align-items: stretch; min-height: 78px; padding: 0; border: 0; border-radius: 18px; cursor: pointer; text-align: left;
    background: radial-gradient(circle at 70% 0, var(--line-soft), transparent 70%), var(--card-solid); color: var(--ink); font-family: var(--body); overflow: hidden;
    -webkit-mask: radial-gradient(circle 10px at var(--stub) 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 10px at var(--stub) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
    mask: radial-gradient(circle 10px at var(--stub) 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 10px at var(--stub) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
    transition: transform 0.2s; }
.rf-banner:hover { transform: translateY(-2px); }
.rf-banner:active { transform: scale(0.99); }
.rf-stub { flex: none; width: var(--stub); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--grad); color: #fff;
    border-right: 2px dashed rgba(255, 255, 255, 0.85); }
.rf-stub b { font-family: var(--display); font-size: 12px; letter-spacing: 0.22em; padding-left: 0.22em; }
.rf-ico { display: block; transform: rotate(-12deg); filter: drop-shadow(0 2px 3px rgba(74, 18, 56, 0.3)); }
.rf-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 10px 12px 16px;
}
.rf-eyebrow { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rose); }
.rf-eyebrow.poco { color: #B4400B; }
body.dark-mode .rf-eyebrow { color: var(--rose-3); }
body.dark-mode .rf-eyebrow.poco { color: #FDBA74; }
.rf-txt b { font-family: var(--display); font-size: 15.5px; font-weight: 700; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rf-txt small { font-size: 12px; color: var(--ink-soft); }
.rf-txt small strong { color: var(--ink); }
.rf-cta { flex: none; align-self: center; margin-right: 14px; background: var(--grad); color: #fff; border-radius: 999px; padding: 10px 14px; font-weight: 700; font-size: 12.5px; white-space: nowrap;
    box-shadow: 0 8px 16px -10px rgba(194, 24, 91, 0.9); }
@media (max-width: 560px) {
    .rf-banner { --stub: 66px; }
    .rf-ico { width: 26px; height: 26px; }
    .rf-stub b { font-size: 10.5px; }
    .rf-txt { padding: 11px 6px 11px 13px; }
    .rf-txt b { font-size: 14px; }
    .rf-cta { font-size: 0; width: 42px; height: 42px; padding: 0; display: grid; place-items: center; margin-right: 10px; }
    .rf-cta span { font-size: 16px; }
}
.rf-info { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; margin: 0 4px 10px; }
.rf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; max-height: 38vh; overflow-y: auto; padding: 2px; }
.rf-grid button { height: 42px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card-solid); color: var(--ink); font: 700 14px var(--body); cursor: pointer; }
.rf-grid button.on { background: var(--grad); border-color: transparent; color: #fff; }
.rf-grid button:disabled { background: var(--line-soft); color: var(--muted); opacity: 0.45; text-decoration: line-through; cursor: not-allowed; }
.rf-res { display: flex; align-items: center; gap: 8px; margin: 12px 4px 8px; font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; }
.rf-res strong { margin-left: auto; font-size: 18px; color: var(--ink); }
.rf-datos { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; }
.rf-datos input { height: 46px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; font: 500 16px var(--body); background: var(--card-solid); color: var(--ink); outline: none; }
.rf-datos input:focus { border-color: var(--rose-2); }
.rf-pagar { display: flex; gap: 8px; flex-wrap: wrap; }
.rf-pagar button { flex: 1 1 160px; }
.rf-pagar button:disabled { opacity: 0.5; cursor: not-allowed; }
.rf-nota { display: block; margin-top: 8px; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.rf-wa { display: flex; align-items: center; justify-content: center; text-decoration: none; background: #25D366; margin-top: 8px; }

/* 💖 Hola, Ana — arriba de "Mi bolsa" */
.cart-titulo { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cart-hola { font-size: 14px; font-weight: 600; color: var(--rose); letter-spacing: 0.01em; }
body.dark-mode .cart-hola { color: var(--rose-3); }

/* ✍️ Producto personalizable */
.grab-tag { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; margin: 2px 0 4px; font-size: 11.5px; font-weight: 700; color: #6D28D9; background: #F3EEFF; border: 1px solid #C4B5FD; border-radius: 999px; padding: 2px 10px; }
body.dark-mode .grab-tag { color: #DDD6FE; background: rgba(139, 92, 246, 0.16); border-color: rgba(196, 181, 253, 0.4); }

/* 🏦 Transferencia */
.plan-option[data-plan="spei"]:not(.selected) .po-sub { color: var(--green); font-weight: 600; }
.plan-option[data-plan="spei"].selected .po-sub { font-weight: 600; }
.btn-paynow.spei { background: linear-gradient(120deg, #04754C, #16946A 60%, #34B58A); }

.cart-cuenta { font-size: 12.5px; font-weight: 600; color: var(--rose); text-decoration: none; margin-top: 2px; }
.cart-cuenta:hover { text-decoration: underline; }
.gate-alt { background: none; border: 0; color: var(--rose); font: 600 13px var(--body); text-decoration: underline; cursor: pointer; padding: 2px 0; align-self: center; }
.gate-form label[hidden] { display: none; }

/* Insignia de SALDO también en la bolsa */
.cart-thumb-box { position: relative; flex-shrink: 0; align-self: flex-start; }
.cart-thumb-box > .cart-thumb { display: block; }
.saldo-badge.saldo-mini { top: -8px; left: -8px; width: 34px; height: 34px; }
.saldo-tag { display: inline-block; font-size: 10px; font-weight: 800; color: #FFFFFF; background: #1E9E5A; border-radius: 999px; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; letter-spacing: 0; }

/* 🎉 "¡Obtuviste el mejor precio!" */
.mejor-bg { position: fixed; inset: 0; z-index: 9999; background: rgba(31, 16, 35, 0.5); display: grid; place-items: center; padding: 16px; }
.mejor-card { width: min(380px, 100%); background: #FFFFFF; border-radius: 24px; padding: 24px 20px 18px; text-align: center; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.4); }
.mejor-emoji { font-size: 44px; line-height: 1; }
.mejor-card h3 { margin: 10px 0 6px; font-size: 21px; color: #C2185B; }
.mejor-card p { margin: 6px 0; font-size: 14.5px; color: #4A3343; }
.mejor-btn { width: 100%; margin-top: 14px; height: 48px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #E8317E, #C2185B); color: #FFFFFF; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.mejor-link { display: block; width: 100%; margin-top: 8px; background: none; border: 0; color: #7A5568; font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 6px; }
.gr-precio.gratis { color: #1E9E5A; font-weight: 800; }

/* 💰 Saldo a favor en la bolsa */
.saldo-favor { margin-top: 12px; border-radius: 16px; padding: 12px 14px; background: linear-gradient(120deg, #E9FBF2, #fff 80%); border: 1.5px solid #9BE3BF; font-size: 14px; }
.saldo-favor .sf-chk { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.saldo-favor .sf-chk input { width: 18px; height: 18px; accent-color: #11784A; }
.saldo-favor .sf-res { display: flex; justify-content: space-between; margin-top: 8px; color: #0B5E39; }
.saldo-favor .sf-res.fin { font-size: 15px; }
.saldo-favor .sf-nota { margin: 6px 0 0; font-size: 12px; color: #4b5563; }

/* 🚚 Envío gratis (como Mercado Libre) */
.envio-bar { margin: 10px 0 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.75); border: 1px solid rgba(232, 62, 140, .18); font-size: 14px; }
.envio-bar p { margin: 0 0 6px; }
.envio-bar .ev-ok { color: #0a7a3f; margin: 0; }
.envio-bar .ev-track { height: 8px; border-radius: 99px; background: rgba(232, 62, 140, .12); overflow: hidden; }
.envio-bar .ev-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ff6fa8, #e83e8c); transition: width .4s ease; }
.envio-bar .ev-ok + .ev-track i { background: linear-gradient(90deg, #2ecc71, #0a7a3f); }
.envio-bar small { display: block; margin-top: 6px; color: #7a5d6b; font-size: 12px; }
.gate-regalo { background: rgba(46, 204, 113, .12); border: 1px solid rgba(10, 122, 63, .25); color: #0a6b38; border-radius: 12px; padding: 8px 12px; font-size: 14px; }

/* 🏷️ Precio outlet: pareja 2x1 que sale más cara que sueltas */
.x2-money em.x2-caro { color: #b45309; font-style: normal; }
.save.warn, div.warn > span:last-child { color: #b45309; }
