/* ════════════════════════════════════════════════════════════
   GP Tienda — Frontend ultramoderno
   Usa CSS variables inyectadas desde el constructor (#gpt-store)
═══════════════════════════════════════════════════════════════ */
#gpt-store, #gpt-portal {
    --gpt-primary: #e07020;
    --gpt-secondary: #1e293b;
    --gpt-bg: #f8fafc;
    --gpt-text: #0f172a;
    --gpt-radius: 18px;
    --gpt-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --gpt-card: #ffffff;
    --gpt-muted: #64748b;
    --gpt-border: #e2e8f0;
    --gpt-space: 40px;
    --gpt-gap: 20px;
    --gpt-pad: 16px;
    --gpt-card-pad: 16px;
    --gpt-hero-pad: 64px;
    font-family: var(--gpt-font);
    color: var(--gpt-text);
    background: var(--gpt-bg);
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 var(--gpt-pad) 80px;
    box-sizing: border-box;
}
#gpt-store.gpt-dark, #gpt-portal.gpt-dark {
    --gpt-bg: #0b1220;
    --gpt-text: #e2e8f0;
    --gpt-card: #131c2e;
    --gpt-muted: #94a3b8;
    --gpt-border: #1e293b;
}
#gpt-store *, #gpt-store *::before, #gpt-store *::after,
#gpt-portal *, #gpt-portal *::before, #gpt-portal *::after { box-sizing: border-box; }
#gpt-store h1, #gpt-store h2, #gpt-store h3, #gpt-portal h1, #gpt-portal h2, #gpt-portal h3 { margin: 0; }
/* El portal solo aporta variables y tipografía: no ocupa lugar en la página. */
#gpt-portal { padding: 0 !important; margin: 0 !important; max-width: none !important; height: 0; background: none !important; }

/* ─────────── Hero ─────────── */
.gpt-hero {
    position: relative;
    border-radius: var(--gpt-radius);
    padding: var(--gpt-hero-pad) 32px;
    margin: 24px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--gpt-primary), var(--gpt-secondary));
    color: #fff;
    overflow: hidden;
}
.gpt-hero-inner { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.gpt-hero h1 { font-size: clamp(28px, 5vw, 46px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.gpt-hero p { font-size: clamp(15px, 2.5vw, 20px); opacity: .95; margin: 14px 0 26px; }

/* ─────────── Botones ─────────── */
.gpt-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: none; cursor: pointer; font-weight: 700; font-size: 14px;
    padding: 11px 20px; border-radius: calc(var(--gpt-radius) * .6);
    background: #e2e8f0; color: #1e293b; text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
    font-family: inherit;
}
.gpt-btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.gpt-btn:active { transform: translateY(0); }
.gpt-btn-primary { background: var(--gpt-primary); color: #fff; box-shadow: 0 6px 18px -6px var(--gpt-primary); }
.gpt-btn-ghost { background: transparent; border: 1px solid var(--gpt-border); color: var(--gpt-text); }
.gpt-btn-mp { background: #009ee3; color: #fff; }
.gpt-btn-lg { padding: 14px 30px; font-size: 16px; }
.gpt-btn-block { width: 100%; }

/* ─────────── Secciones ─────────── */
.gpt-section { margin: var(--gpt-space) 0; }
.gpt-sec-title { font-size: 24px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 18px; }
.gpt-empty { color: var(--gpt-muted); text-align: center; padding: 40px; grid-column: 1/-1; }

/* ─────────── Filtros ─────────── */
.gpt-filterbar { display: flex; flex-direction: column; gap: 14px; }
.gpt-search {
    width: 100%; padding: 13px 16px; border-radius: calc(var(--gpt-radius) * .6);
    border: 1px solid var(--gpt-border); font-size: 15px; background: var(--gpt-card); color: var(--gpt-text);
}
.gpt-search:focus { outline: 2px solid var(--gpt-primary); border-color: transparent; }
.gpt-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.gpt-chip {
    border: 1px solid var(--gpt-border); background: var(--gpt-card); color: var(--gpt-text);
    padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 13px;
    transition: all .15s ease;
}
.gpt-chip:hover { border-color: var(--gpt-primary); }
.gpt-chip.active { background: var(--gpt-primary); color: #fff; border-color: var(--gpt-primary); }

/* ─────────── Grilla de tarjetas ─────────── */
.gpt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--gpt-gap); }
.gpt-card {
    background: var(--gpt-card); border: 1px solid var(--gpt-border);
    border-radius: var(--gpt-radius); overflow: hidden; display: flex; flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}
.gpt-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(15,23,42,.4); }
.gpt-card-media {
    position: relative; aspect-ratio: 4/3; background: #f1f5f9 center/cover no-repeat;
    display: flex; align-items: center; justify-content: center;
}
.gpt-dark .gpt-card-media { background-color: #0f1828; }
.gpt-card-ico { font-size: 54px; opacity: .5; }
.gpt-card-badge {
    position: absolute; top: 10px; left: 10px; background: rgba(15,23,42,.78); color: #fff;
    font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
.gpt-card-body { padding: var(--gpt-card-pad); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gpt-card-name { font-size: 16px; font-weight: 700; line-height: 1.25; }
.gpt-card-desc { font-size: 13px; color: var(--gpt-muted); margin: 0; line-height: 1.45; flex: 1; }
.gpt-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.gpt-card-price { font-size: 19px; font-weight: 800; color: var(--gpt-primary); }
.gpt-card-price small { font-size: 12px; color: var(--gpt-muted); font-weight: 600; }
.gpt-card-price-na { font-size: 14px; font-weight: 700; color: var(--gpt-muted); }
.gpt-out { font-size: 12px; font-weight: 700; color: #ef4444; background: #fee2e2; padding: 4px 10px; border-radius: 8px; }
.gpt-dias { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.gpt-dias input { width: 56px; padding: 6px; border: 1px solid var(--gpt-border); border-radius: 8px; background: var(--gpt-card); color: var(--gpt-text); }
.gpt-add { padding: 8px 14px; font-size: 13px; }

/* ─────────── Banner / texto / contacto ─────────── */
.gpt-banner { border-radius: var(--gpt-radius); padding: 48px 24px; background: var(--gpt-secondary) center/cover; color: #fff; text-align: center; }
.gpt-banner-inner { font-size: 22px; font-weight: 700; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.gpt-contacto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.gpt-contacto-item { background: var(--gpt-card); border: 1px solid var(--gpt-border); border-radius: var(--gpt-radius); padding: 18px; font-weight: 600; }
.gpt-contacto-item a { color: var(--gpt-primary); text-decoration: none; }

/* ─────────── Carrito FAB + drawer ─────────── */
.gpt-cart-fab {
    position: fixed; bottom: 24px; right: 24px; z-index: 9000;
    background: var(--gpt-primary); color: #fff; border: none; cursor: pointer;
    padding: 14px 20px; border-radius: 999px; font-size: 16px; font-weight: 700;
    box-shadow: 0 12px 30px -8px var(--gpt-primary);
}
.gpt-cart-count {
    background: #fff; color: var(--gpt-primary); border-radius: 999px; padding: 1px 9px;
    font-size: 13px; margin-left: 4px; min-width: 22px; display: inline-block; text-align: center;
}
.gpt-cart-drawer {
    position: fixed; top: 0; right: -440px; width: 420px; max-width: 92vw; height: 100%; z-index: 9100;
    background: var(--gpt-card); box-shadow: -20px 0 50px -20px rgba(0,0,0,.4);
    display: flex; flex-direction: column; transition: right .28s cubic-bezier(.4,0,.2,1);
}
.gpt-cart-drawer.open { right: 0; }
.gpt-cart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--gpt-border); }
.gpt-cart-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--gpt-muted); }
.gpt-cart-items { flex: 1; overflow-y: auto; padding: 12px 20px; }
.gpt-cart-row { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--gpt-border); }
.gpt-cart-row-info { flex: 1; }
.gpt-cart-row-name { font-weight: 700; font-size: 14px; }
.gpt-cart-row-meta { font-size: 12px; color: var(--gpt-muted); }
.gpt-cart-row-sub { font-weight: 800; color: var(--gpt-primary); }
.gpt-cart-del { background: none; border: none; cursor: pointer; color: #ef4444; font-size: 16px; }
.gpt-cart-foot { padding: 20px; border-top: 1px solid var(--gpt-border); }
.gpt-cart-total { font-size: 18px; font-weight: 800; margin-bottom: 12px; display: flex; justify-content: space-between; }
.gpt-overlay { position: fixed; inset: 0; background: rgba(2,6,23,.55); z-index: 9050; opacity: 0; pointer-events: none; transition: opacity .25s; }
.gpt-overlay.open { opacity: 1; pointer-events: auto; }

/* ─────────── Modales ─────────── */
.gpt-modal { position: fixed; inset: 0; z-index: 9200; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(2,6,23,.6); }
.gpt-modal.open { display: flex; }
.gpt-modal-box { background: var(--gpt-card); color: var(--gpt-text); width: 100%; max-width: 520px; border-radius: var(--gpt-radius); max-height: 92vh; overflow: hidden; display: flex; flex-direction: column; animation: gpt-pop .2s ease; }
@keyframes gpt-pop { from { transform: scale(.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.gpt-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--gpt-border); }
.gpt-modal-x { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--gpt-muted); }
.gpt-modal-body { padding: 20px; overflow-y: auto; }
.gpt-modal-foot { padding: 16px 20px; border-top: 1px solid var(--gpt-border); }
.gpt-co-row { margin-bottom: 14px; display: flex; flex-direction: column; gap: 5px; }
.gpt-co-row label { font-size: 13px; font-weight: 600; color: var(--gpt-muted); }
.gpt-co-row input, .gpt-co-row select, .gpt-co-row textarea {
    padding: 11px 13px; border: 1px solid var(--gpt-border); border-radius: 10px; font-size: 15px;
    background: var(--gpt-bg); color: var(--gpt-text); font-family: inherit;
}
.gpt-co-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gpt-co-summary { background: var(--gpt-bg); border-radius: 12px; padding: 14px; font-size: 14px; }
.gpt-co-summary .gpt-co-line { display: flex; justify-content: space-between; padding: 3px 0; }
.gpt-co-summary .gpt-co-tot { font-weight: 800; border-top: 1px dashed var(--gpt-border); margin-top: 6px; padding-top: 8px; }

/* ─────────── Éxito ─────────── */
.gpt-success { text-align: center; padding: 32px 24px; max-width: 420px; }
.gpt-success-ico { font-size: 58px; }
.gpt-success h3 { font-size: 24px; margin: 10px 0; }
.gpt-success .gpt-btn { margin-top: 10px; }
.gpt-help { color: var(--gpt-muted); font-size: 13px; }

/* ─────────── WhatsApp ─────────── */
.gpt-wa-fab {
    position: fixed; bottom: 24px; left: 24px; z-index: 9000; width: 56px; height: 56px;
    background: #25d366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 28px; text-decoration: none; box-shadow: 0 12px 28px -8px rgba(37,211,102,.7);
}

/* ─────────── Seguimiento ─────────── */
.gpt-track { max-width: 760px; margin: 32px auto; }
.gpt-track h1 { font-size: 30px; font-weight: 800; }
.gpt-track-sub { color: var(--gpt-muted); margin: 6px 0 24px; }
.gpt-steps { display: flex; justify-content: space-between; position: relative; margin: 30px 0; }
.gpt-steps::before { content: ''; position: absolute; top: 18px; left: 5%; right: 5%; height: 3px; background: var(--gpt-border); z-index: 0; }
.gpt-step { position: relative; z-index: 1; text-align: center; flex: 1; font-size: 12px; color: var(--gpt-muted); }
.gpt-step-dot { width: 38px; height: 38px; border-radius: 50%; background: var(--gpt-border); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 6px; }
.gpt-step.done .gpt-step-dot { background: var(--gpt-primary); }
.gpt-step.done { color: var(--gpt-text); font-weight: 700; }
.gpt-track-cancel { background: #fee2e2; color: #b91c1c; padding: 16px; border-radius: var(--gpt-radius); font-weight: 700; text-align: center; margin: 20px 0; }
.gpt-track-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.gpt-track-card { background: var(--gpt-card); border: 1px solid var(--gpt-border); border-radius: var(--gpt-radius); padding: 18px; }
.gpt-track-card h3 { font-size: 16px; margin-bottom: 10px; }
.gpt-track-card p { margin: 4px 0; font-size: 14px; }
.gpt-track-card .gpt-btn { margin-top: 10px; }
.gpt-pago-pagado { color: #16a34a; } .gpt-pago-pendiente { color: #ea580c; }
.gpt-pago-senia { color: #ca8a04; } .gpt-pago-vencido { color: #dc2626; }
.gpt-track-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.gpt-track-table td { padding: 8px 6px; border-bottom: 1px solid var(--gpt-border); font-size: 14px; }
.gpt-track-table small { color: var(--gpt-muted); }
.gpt-track-total td { border-top: 2px solid var(--gpt-border); border-bottom: none; }
.gpt-track-err { text-align: center; padding: 60px 20px; }

/* ════════════════════════════════════════════════════════════
   VARIANTES DE ESTILO (aplicadas por plantillas / superpoderes)
═══════════════════════════════════════════════════════════════ */

/* ── Ancho del layout ── */
#gpt-store.gpt-lay-wide { max-width: 1440px; }
#gpt-store.gpt-lay-full { max-width: 100%; padding-left: 32px; padding-right: 32px; }

/* ── Estilo de tarjetas ── */
.gpt-cards-flat .gpt-card { border: none; box-shadow: none; background: var(--gpt-card); }
.gpt-cards-flat .gpt-card:hover { box-shadow: 0 10px 30px -18px rgba(15,23,42,.5); transform: none; }
.gpt-cards-border .gpt-card { box-shadow: none; border: 2px solid var(--gpt-border); }
.gpt-cards-border .gpt-card:hover { border-color: var(--gpt-primary); transform: none; }
.gpt-cards-glass .gpt-card {
    background: color-mix(in srgb, var(--gpt-card) 70%, transparent);
    backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 8px 32px -12px rgba(15,23,42,.45);
}
.gpt-cards-gradient .gpt-card {
    border: none;
    background: linear-gradient(160deg, var(--gpt-card), color-mix(in srgb, var(--gpt-primary) 14%, var(--gpt-card)));
    box-shadow: 0 12px 30px -18px var(--gpt-primary);
}
.gpt-cards-outline-top .gpt-card { box-shadow: none; border: 1px solid var(--gpt-border); border-top: 4px solid var(--gpt-primary); }
.gpt-cards-soft .gpt-card {
    border: none; background: var(--gpt-card);
    box-shadow: 0 16px 40px -24px color-mix(in srgb, var(--gpt-primary) 60%, #000);
}

/* ── Estilo de botones ── */
.gpt-btns-pill .gpt-btn { border-radius: 999px; }
.gpt-btns-outline .gpt-btn-primary { background: transparent; color: var(--gpt-primary); border: 2px solid var(--gpt-primary); box-shadow: none; }
.gpt-btns-outline .gpt-btn-primary:hover { background: var(--gpt-primary); color: #fff; }
.gpt-btns-gradient .gpt-btn-primary {
    background: linear-gradient(135deg, var(--gpt-primary), color-mix(in srgb, var(--gpt-primary) 40%, var(--gpt-secondary)));
    border: none;
}
.gpt-btns-soft .gpt-btn-primary {
    background: color-mix(in srgb, var(--gpt-primary) 16%, transparent); color: var(--gpt-primary); box-shadow: none;
}
.gpt-btns-soft .gpt-btn-primary:hover { background: var(--gpt-primary); color: #fff; }

/* ── Estilo del hero ── */
.gpt-hero-minimal .gpt-hero { background: transparent !important; color: var(--gpt-text); padding: 48px 0 24px; text-align: left; }
.gpt-hero-minimal .gpt-hero h1 { color: var(--gpt-text); }
.gpt-hero-minimal .gpt-hero p { color: var(--gpt-muted); }
.gpt-hero-minimal .gpt-hero .gpt-btn-primary { box-shadow: 0 6px 18px -6px var(--gpt-primary); }
.gpt-hero-centered .gpt-hero { background: transparent !important; color: var(--gpt-text); text-align: center; padding: 56px 20px 28px; }
.gpt-hero-centered .gpt-hero h1 { color: var(--gpt-text); font-size: clamp(32px, 6vw, 56px); }
.gpt-hero-centered .gpt-hero p { color: var(--gpt-muted); }
.gpt-hero-split .gpt-hero { text-align: left; }
.gpt-hero-split .gpt-hero-inner { margin: 0; max-width: 560px; }
.gpt-hero-wave .gpt-hero { border-radius: var(--gpt-radius) var(--gpt-radius) 60% 40% / var(--gpt-radius) var(--gpt-radius) 30px 30px; }
.gpt-hero-image .gpt-hero:not(.gpt-hero-img) { background: linear-gradient(135deg, var(--gpt-secondary), #000) !important; }

/* ─────────── Servicios / Turnos ─────────── */
#gpt-svc-extra .gpt-co-row { margin-bottom: 10px; }
.gpt-turno-step { margin-bottom: 16px; }
.gpt-turno-step > label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; color: var(--gpt-text); }
.gpt-turno-pros { display: flex; gap: 8px; flex-wrap: wrap; }
.gpt-turno-pro { border: 2px solid var(--gpt-border); background: var(--gpt-card); color: var(--gpt-text); padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 13px; }
.gpt-turno-pro.active { background: var(--gpt-primary); color: #fff; border-color: var(--gpt-primary); }
.gpt-turno-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.gpt-slot { border: 1px solid var(--gpt-border); background: var(--gpt-card); color: var(--gpt-text); padding: 9px 4px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px; }
.gpt-slot:hover { border-color: var(--gpt-primary); }
.gpt-slot.active { background: var(--gpt-primary); color: #fff; border-color: var(--gpt-primary); }

/* ─────────── Responsive ─────────── */
@media (max-width: 640px) {
    .gpt-co-2 { grid-template-columns: 1fr; }
    .gpt-track-cards { grid-template-columns: 1fr; }
    .gpt-steps { font-size: 10px; }
    .gpt-step-dot { width: 30px; height: 30px; }
}

/* ════════════════════════════════════════════════════════════
   1.3 — Ficha de producto, carrito con cantidades, filtros
═══════════════════════════════════════════════════════════════ */
html.gpt-noscroll, html.gpt-noscroll body { overflow: hidden; }

/* Filtros */
.gpt-chip small { opacity: .6; font-weight: 600; margin-left: 2px; }
.gpt-chip.active small { opacity: .85; }
.gpt-noresults { color: var(--gpt-muted); font-size: 14px; margin: 4px 0 0; }
.gpt-cats { margin-top: 20px; }

/* Tarjetas */
.gpt-card-media { border: 0; padding: 0; width: 100%; cursor: pointer; font: inherit; color: inherit; display: flex; }
.gpt-card-media:focus-visible, .gpt-card-name button:focus-visible { outline: 3px solid var(--gpt-primary); outline-offset: 2px; }
.gpt-card-name button { all: unset; cursor: pointer; }
.gpt-card-name button:hover { color: var(--gpt-primary); }
.gpt-card-cat { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gpt-muted); }
.gpt-card-nfotos { position: absolute; bottom: 10px; right: 10px; background: rgba(15,23,42,.72); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.gpt-card-flag { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.gpt-flag-low { background: #fef3c7; color: #92400e; }
.gpt-flag-out { background: #fee2e2; color: #b91c1c; }
.gpt-card--out .gpt-card-media { filter: grayscale(.6); opacity: .8; }
.gpt-card-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gpt-btn-sm { padding: 7px 12px; font-size: 13px; }

/* Botón del carrito: abajo al centro, solo con productos (no lo tapan el chat ni WhatsApp). */
.gpt-cart-fab { right: auto; left: 50%; transform: translateX(-50%); bottom: 20px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 15px; }
.gpt-cart-fab[hidden] { display: none; }
.gpt-cart-fab:hover { transform: translateX(-50%) translateY(-2px); }
.gpt-cart-fab-total { font-weight: 600; opacity: .95; }

/* Carrito */
.gpt-cart-row { align-items: flex-start; }
.gpt-cart-img { width: 56px; height: 56px; border-radius: 10px; flex-shrink: 0; background: var(--gpt-bg) center/cover no-repeat; }
.gpt-cart-row-name { line-height: 1.3; }
.gpt-cart-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.gpt-cart-del { font-size: 12px; font-weight: 600; padding: 0; }
.gpt-cart-max { font-size: 11px; color: #b45309; margin-top: 3px; }
.gpt-cart-empty { text-align: center; padding: 50px 10px; color: var(--gpt-muted); }
.gpt-cart-empty div { font-size: 44px; opacity: .5; }

/* Selector de cantidad */
.gpt-qty { display: inline-flex; align-items: center; border: 1px solid var(--gpt-border); border-radius: 999px; overflow: hidden; background: var(--gpt-card); }
.gpt-qty button { border: 0; background: transparent; color: var(--gpt-text); width: 40px; height: 44px; font-size: 20px; cursor: pointer; font-weight: 700; }
.gpt-qty button:hover:not([disabled]) { background: var(--gpt-bg); }
.gpt-qty button[disabled] { opacity: .3; cursor: default; }
.gpt-qty input { width: 46px; border: 0; text-align: center; font-size: 16px; font-weight: 700; background: transparent; color: var(--gpt-text); -moz-appearance: textfield; }
.gpt-qty input::-webkit-outer-spin-button, .gpt-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gpt-qty-sm { margin-top: 6px; }
.gpt-qty-sm button { width: 32px; height: 32px; font-size: 17px; }
.gpt-qty-sm span { min-width: 26px; text-align: center; font-weight: 700; font-size: 14px; }

/* Aviso "Agregado" */
.gpt-toast {
    position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); z-index: 9300;
    background: #0f172a; color: #fff; padding: 12px 14px 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 600;
    display: flex; align-items: center; gap: 12px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.5);
    opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px);
}
.gpt-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.gpt-toast button { background: var(--gpt-primary); color: #fff; border: 0; border-radius: 10px; padding: 7px 12px; font-weight: 700; cursor: pointer; font-size: 13px; }

/* Ficha de producto */
.gpt-ficha-box { max-width: 980px; display: grid; grid-template-columns: 1.1fr 1fr; position: relative; max-height: 92vh; overflow: auto; }
.gpt-ficha-x { position: absolute; top: 10px; right: 10px; z-index: 3; background: rgba(255,255,255,.92); border-radius: 50%; width: 40px; height: 40px; box-shadow: 0 2px 10px rgba(0,0,0,.15); color: #0f172a; }
.gpt-ficha-gal { background: var(--gpt-bg); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.gpt-ficha-main { position: relative; aspect-ratio: 1/1; border-radius: calc(var(--gpt-radius) * .7); background: #fff center/contain no-repeat; }
.gpt-ficha-nofoto::after { content: '📦'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 80px; opacity: .35; }
.gpt-ficha-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #0f172a; font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.gpt-ficha-prev { left: 10px; } .gpt-ficha-next { right: 10px; }
.gpt-ficha-nav[hidden] { display: none; }
.gpt-ficha-count { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background: rgba(15,23,42,.7); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.gpt-ficha-count:empty { display: none; }
.gpt-ficha-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.gpt-ficha-thumbs button { flex: 0 0 64px; height: 64px; border-radius: 10px; border: 2px solid transparent; background: #fff center/cover no-repeat; cursor: pointer; padding: 0; opacity: .7; }
.gpt-ficha-thumbs button.active { border-color: var(--gpt-primary); opacity: 1; }
.gpt-ficha-info { padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 12px; }
.gpt-ficha-nombre { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; line-height: 1.2; padding-right: 36px; }
.gpt-ficha-precio { font-size: 28px; font-weight: 800; color: var(--gpt-primary); }
.gpt-ficha-precio small { font-size: 14px; color: var(--gpt-muted); }
.gpt-ficha-stock { font-size: 14px; font-weight: 700; }
.gpt-ficha-stock.ok { color: #15803d; } .gpt-ficha-stock.low { color: #b45309; } .gpt-ficha-stock.out { color: #b91c1c; }
.gpt-ficha-buy { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.gpt-ficha-buy[hidden] { display: none; }
.gpt-ficha-buy .gpt-btn { flex: 1; min-width: 180px; }
.gpt-ficha-desc { border-top: 1px solid var(--gpt-border); padding-top: 14px; font-size: 15px; line-height: 1.65; color: var(--gpt-text); }
.gpt-ficha-desc p { margin: 0 0 8px; }
.gpt-ficha-desc ul { margin: 0 0 8px; padding-left: 20px; }
.gpt-ficha-desc[hidden] { display: none; }
.gpt-ficha-wa { color: #128c7e; font-weight: 700; text-decoration: none; font-size: 14px; }
.gpt-ficha-wa:hover { text-decoration: underline; }
.gpt-co-pay { margin: 0 0 10px; text-align: center; }

@media (max-width: 760px) {
    .gpt-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .gpt-chips::-webkit-scrollbar { display: none; }
    .gpt-chip { flex-shrink: 0; }
    .gpt-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .gpt-card-body { padding: 12px; gap: 6px; }
    .gpt-card-name { font-size: 14px; }
    .gpt-card-desc { display: none; }
    .gpt-card-price { font-size: 16px; }
    .gpt-card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
    .gpt-card-foot .gpt-btn { width: 100%; }
    .gpt-card-badge { display: none; }
    .gpt-modal.gpt-ficha-modal { padding: 0; align-items: flex-end; }
    .gpt-ficha-box { grid-template-columns: 1fr; max-height: 94vh; border-radius: var(--gpt-radius) var(--gpt-radius) 0 0; }
    .gpt-ficha-gal { padding: 0; }
    .gpt-ficha-main { border-radius: 0; aspect-ratio: 4/3.4; }
    .gpt-ficha-thumbs { padding: 0 12px; }
    .gpt-ficha-info { padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); }
    .gpt-cart-drawer { width: 100%; max-width: 100vw; }
}

/* 1.3 — Convivencia con el chat y WhatsApp flotantes */
html.gpt-cover #emp-clippy-wrap, html.gpt-cover .gpt-wa-fab, html.gpt-cover .gdi-wa-float { display: none !important; }
/* El botón principal dentro del encabezado de la tienda: siempre contrastado sobre el fondo de color. */
.gpt-hero:not(.gpt-hero-img) .gpt-btn-primary { background: #fff; color: var(--gpt-primary); box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); }
.gpt-hero-minimal .gpt-hero .gpt-btn-primary, .gpt-hero-centered .gpt-hero .gpt-btn-primary { background: var(--gpt-primary); color: #fff; }
@media (max-width: 760px) {
    .gpt-hero { padding: 36px 20px; margin: 16px 0; }
    .gpt-hero p { margin: 10px 0 18px; }
    .gpt-cart-fab { left: 12px; right: 12px; transform: none; justify-content: center; bottom: 12px; padding: 14px 16px; }
    .gpt-cart-fab:hover { transform: none; }
    .gpt-toast { bottom: 78px; }
    html.gpt-has-cart #emp-clippy-wrap { bottom: 78px !important; }
    html.gpt-has-cart .gpt-wa-fab { bottom: 78px; }
    #gpt-store { padding-bottom: 96px; }
}

/* 1.3.2 — Carrusel de fotos en la ficha */
.gpt-ficha-main { background: #fff; overflow: hidden; }
.gpt-car-track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.gpt-car-track::-webkit-scrollbar { display: none; }
.gpt-car-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; }
.gpt-car-slide img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.gpt-ficha-nav, .gpt-ficha-count { z-index: 2; }
.gpt-ficha-count { bottom: auto; top: 10px; left: 10px; transform: none; }
.gpt-car-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; z-index: 2; pointer-events: none; }
.gpt-car-dots button { pointer-events: auto; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(15,23,42,.28); cursor: pointer; transition: width .2s, background .2s; }
.gpt-car-dots button.active { width: 22px; background: var(--gpt-primary); }
@media (hover: none) { .gpt-ficha-nav { display: none !important; } }

/* 1.3.2 — Cerrar la compra por WhatsApp */
.gpt-btn-wa, .gpt-btns-outline .gpt-btn-wa, .gpt-btns-soft .gpt-btn-wa { background: #25d366; color: #fff; border: 0; box-shadow: 0 8px 20px -8px rgba(37,211,102,.7); }
.gpt-btn-wa:hover { background: #1ebe5b; color: #fff; }

/* 1.3.2 — ajustes finos */
.gpt-toast { z-index: 9150; } /* debajo de los modales (9200): no tapa el botón de enviar */
html.gpt-cover .gpt-toast { opacity: 0 !important; pointer-events: none !important; }
.gpt-co-summary .gpt-co-line { gap: 12px; }
.gpt-co-summary .gpt-co-line span:last-child { white-space: nowrap; font-weight: 700; }
.gpt-car-dots { bottom: 12px; }
.gpt-car-dots:not(:empty) { left: 50%; right: auto; transform: translateX(-50%); padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.85); box-shadow: 0 2px 8px rgba(0,0,0,.15); }

/* 1.3.3 — Foto en grande y botón del carrito más visible */
.gpt-car-slide { cursor: zoom-in; }
.gpt-zoom { position: fixed; inset: 0; z-index: 10000000; background: rgba(2,6,23,.94); display: none; align-items: center; justify-content: center; cursor: zoom-out; }
.gpt-zoom.open { display: flex; }
.gpt-zoom img { max-width: 96vw; max-height: 92vh; object-fit: contain; user-select: none; }
.gpt-zoom-x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 22px; cursor: pointer; }
.gpt-zoom-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.gpt-zoom-nav[hidden] { display: none; }
.gpt-zoom-prev { left: 14px; } .gpt-zoom-next { right: 14px; }
.gpt-zoom-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700; font-size: 14px; }
@keyframes gpt-bump { 0% { transform: translateX(-50%) scale(1); } 40% { transform: translateX(-50%) scale(1.12); } 100% { transform: translateX(-50%) scale(1); } }
@keyframes gpt-bump-m { 0% { transform: scale(1); } 40% { transform: scale(1.05); } 100% { transform: scale(1); } }
.gpt-cart-fab.gpt-bump { animation: gpt-bump .45s ease; }
@media (max-width: 760px) { .gpt-cart-fab.gpt-bump { animation-name: gpt-bump-m; } }
