/* Imágenes de los regalos: segunda imagen (hover / dedo) y ventana de información. */

/* ── Imagen que se puede tocar ── */
.geo-gm {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
    cursor: pointer;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}
.geo-gm img { -webkit-user-drag: none; -webkit-touch-callout: none; }
.geo-gm:focus-visible { outline: 2px solid var(--geo-orange, #FB7701); outline-offset: 2px; }
.geo-gm--fill { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.geo-gm__icon { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

/* Segunda imagen: encima de la principal, mismo tamaño y forma. */
.geo-gm .geo-gm__alt {
    position: absolute !important;
    top: 0;
    left: 0;
    margin: 0 !important;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.geo-gm--fill .geo-gm__alt { width: 100% !important; height: 100% !important; object-fit: contain; }
.geo-gm.is-alt .geo-gm__alt { opacity: 1; }
@media (hover: hover) {
    .geo-gm--alt:hover .geo-gm__alt { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .geo-gm .geo-gm__alt { transition: none; }
}

/* ── Ventana ── */
.geo-gq {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.geo-gq[hidden] { display: none !important; }
.geo-gq__backdrop { position: absolute; inset: 0; background: rgba(13, 13, 13, .62); animation: geo-gq-fade .2s ease-out; }
.geo-gq__panel {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 16px;
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
    animation: geo-gq-in .22s ease-out;
    text-align: left;
    line-height: 1.45;
}
@keyframes geo-gq-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes geo-gq-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .geo-gq__backdrop, .geo-gq__panel { animation: none; } }

.geo-gq .geo-gq__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 38px;
    height: 38px;
    min-height: 0;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(13, 13, 13, .78) !important;
    color: #fff !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    line-height: 38px !important;
    text-align: center;
    box-shadow: none !important;
    cursor: pointer;
}
.geo-gq .geo-gq__close:focus-visible { outline: 2px solid var(--geo-yellow, #F5C518); outline-offset: 2px; }

/* Galería: deslizar en el celular, puntos para cambiar de foto. */
.geo-gq__gallery { position: relative; background: #fff; border-radius: 16px 16px 0 0; overflow: hidden; }
.geo-gq__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.geo-gq__track::-webkit-scrollbar { display: none; }
.geo-gq__slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; max-height: 52vh; }
.geo-gq__slide img { width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important; object-fit: contain; border-radius: 0 !important; }
.geo-gq__slide--icon { background: var(--geo-black, #0D0D0D); color: var(--geo-yellow, #F5C518); max-height: 240px; }
.geo-gq__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.geo-gq .geo-gq__dot {
    width: 9px;
    height: 9px;
    min-height: 0;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(13, 13, 13, .25) !important;
    box-shadow: none !important;
    cursor: pointer;
}
.geo-gq .geo-gq__dot.is-active { background: var(--geo-black, #0D0D0D) !important; transform: scale(1.2); }

.geo-gq__body { padding: 16px 20px 22px; }
.geo-gq__badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--geo-black, #0D0D0D);
    color: var(--geo-yellow, #F5C518);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.geo-gq .geo-gq__name { margin: 10px 0 8px; padding: 0; font-size: 1.15em; font-weight: 800; line-height: 1.3; color: #1a1a1a; }
.geo-gq__price { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 12px; font-size: 1em; color: #555; }
.geo-gq__price del { color: #888; text-decoration-thickness: 2px; }
.geo-gq__free {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--geo-yellow, #F5C518);
    color: var(--geo-black, #0D0D0D);
    font-size: .9em;
    font-weight: 800;
}
.geo-gq__desc { font-size: .92em; color: #444; }
.geo-gq__desc p { margin: 0 0 .6em; }
.geo-gq__desc p:last-child { margin-bottom: 0; }
.geo-gq__desc ul, .geo-gq__desc ol { margin: 0 0 .6em 1.2em; }
.geo-gq__msg { margin: 0; padding: 48px 24px; text-align: center; color: #666; }
.geo-gq__spinner {
    display: block;
    width: 32px;
    height: 32px;
    margin: 0 auto;
    border: 3px solid rgba(0, 0, 0, .12);
    border-top-color: var(--geo-yellow, #F5C518);
    border-radius: 50%;
    animation: geo-gq-spin .8s linear infinite;
}
@keyframes geo-gq-spin { to { transform: rotate(360deg); } }

html.geo-gq-open, html.geo-gq-open body { overflow: hidden !important; }

@media (max-width: 480px) {
    .geo-gq { padding: 12px; }
    .geo-gq__body { padding: 14px 16px 18px; }
}
