/* LCE Product Features — hotspot widget */

.lce-product-features {
    width: 100%;
    padding: 3rem 0;
}

/* Header */
.lce-pf__header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.lce-pf__title {
    margin: 0 0 .5rem;
    font-family: var(--luc-font-secondary, 'Oswald', sans-serif);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.lce-pf__subtitle {
    margin: 0;
    opacity: .7;
    font-size: .95rem;
}

/* Image wrap — contexto de posicionamiento para los hotspots */
.lce-pf__image-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.lce-pf__img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

/* ── Hotspot ──────────────────────────────────────────────────────────── */
.lce-pf__hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: pointer;
}

/* Punto pulsante */
.lce-pf__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    position: relative;
    transition: transform .2s ease;
}

/* Anillo pulsante */
.lce-pf__dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-color: inherit;
    opacity: .5;
    animation: lce-pf-pulse 2s ease-out infinite;
}

/* Segundo anillo — desfasado */
.lce-pf__dot::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    opacity: 0;
    animation: lce-pf-pulse 2s ease-out infinite .6s;
}

@keyframes lce-pf-pulse {
    0%   { transform: scale(1);   opacity: .5; }
    70%  { transform: scale(1.8); opacity: 0; }
    100% { transform: scale(1.8); opacity: 0; }
}

.lce-pf__hotspot:hover .lce-pf__dot {
    transform: scale(1.2);
}

/* ── Tooltip ──────────────────────────────────────────────────────────── */
.lce-pf__tooltip {
    position: absolute;
    min-width: 140px;
    max-width: 200px;
    padding: .6rem .9rem;
    border-radius: 4px;
    font-size: .8rem;
    line-height: 1.4;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    transform: scale(.9);
    transition: opacity .2s ease, transform .2s ease;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    z-index: 20;
}

.lce-pf__tooltip-label {
    font-weight: 700;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.lce-pf__tooltip-desc {
    opacity: .85;
    font-size: .78rem;
    white-space: normal;
}

/* Mostrar al hover */
.lce-pf__hotspot:hover .lce-pf__tooltip {
    opacity: 1;
    transform: scale(1);
}

/* ── Posiciones del tooltip ───────────────────────────────────────────── */
/* TOP */
.lce-pf__hotspot--top .lce-pf__tooltip {
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) scale(.9);
}
.lce-pf__hotspot--top:hover .lce-pf__tooltip {
    transform: translateX(-50%) scale(1);
}
.lce-pf__hotspot--top .lce-pf__tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: inherit;
}

/* BOTTOM */
.lce-pf__hotspot--bottom .lce-pf__tooltip {
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) scale(.9);
}
.lce-pf__hotspot--bottom:hover .lce-pf__tooltip {
    transform: translateX(-50%) scale(1);
}
.lce-pf__hotspot--bottom .lce-pf__tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: inherit;
}

/* LEFT */
.lce-pf__hotspot--left .lce-pf__tooltip {
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) scale(.9);
    text-align: right;
}
.lce-pf__hotspot--left:hover .lce-pf__tooltip {
    transform: translateY(-50%) scale(1);
}

/* RIGHT */
.lce-pf__hotspot--right .lce-pf__tooltip {
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) scale(.9);
}
.lce-pf__hotspot--right:hover .lce-pf__tooltip {
    transform: translateY(-50%) scale(1);
}

/* ── Editor mode — cursor drag ────────────────────────────────────────── */
.lce-pf--editor .lce-pf__hotspot {
    cursor: grab;
}
.lce-pf--editor .lce-pf__hotspot.is-dragging {
    cursor: grabbing;
    z-index: 100;
}
.lce-pf--editor .lce-pf__hotspot.is-dragging .lce-pf__dot {
    transform: scale(1.4);
}

/* ── Mobile ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .lce-pf__tooltip {
        min-width: 120px;
        font-size: .75rem;
        padding: .5rem .75rem;
    }
    .lce-pf__dot {
        width: 14px;
        height: 14px;
    }
}
