/* ============================================================
   Proyecto Slider Hotspot — Frontend
   ============================================================ */

/* ── Slider wrapper ─────────────────────────────────────────── */
.psh-slider-wrapper {
    position: relative;
    width: 100%;
}

.psh-slider {
    position: relative;
    width: 100%;
}

/* ── Slide — padding-top mantém proporção 16:9 sem depender da altura do pai ── */
.psh-slider .swiper-slide {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    height: 0;
}

.psh-slider .proyecto-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* ── Hotspots overlay ───────────────────────────────────────── */
.psh-hotspots {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* ── Individual hotspot item ────────────────────────────────── */
.psh-hotspot-item {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: all;
    z-index: 20;
}

/* ── Pin button ─────────────────────────────────────────────── */
.psh-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.45);
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.psh-pin:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 14px rgba(0,0,0,0.45);
}

/* ── SVG icon inside pin ────────────────────────────────────── */
.psh-pin svg {
    width: 44%;
    height: 44%;
    display: block;
    pointer-events: none;
    flex-shrink: 0;
}

/* Icon tone: the SVG "currentColor" inherits from these */
.psh-icon-light svg { color: #ffffff; fill: #ffffff; }
.psh-icon-dark  svg { color: #1d2327; fill: #1d2327; }

/* ── Tooltip content (hidden — used by Tooltipster) ─────────── */
.psh-tooltip-content { display: none; }

/* ── Preset background colors ───────────────────────────────── */
.psh-pin.grapefruit  { background-color: #ED5565; }
.psh-pin.bittersweet { background-color: #FC6E51; }
.psh-pin.sunflower   { background-color: #FFCE54; }
.psh-pin.grass       { background-color: #A0D468; }
.psh-pin.aqua        { background-color: #4FC1E9; }
.psh-pin.bluejeans   { background-color: #5D9CEC; }
.psh-pin.lavender    { background-color: #AC92EC; }
.psh-pin.pinkrose    { background-color: #EC87C0; }
.psh-pin.mint        { background-color: #48CFAD; }
.psh-pin.white       { background-color: #FFFFFF; }
.psh-pin.lightgray   { background-color: #E6E9ED; }
.psh-pin.mediumgray  { background-color: #AAB2BD; }
.psh-pin.darkgray    { background-color: #434A54; }

/* ── Pulse animations ───────────────────────────────────────── */
@keyframes psh-pulse-white  {
    0%   { box-shadow: 0 0 0 0    rgba(255,255,255,.75); }
    70%  { box-shadow: 0 0 0 12px rgba(255,255,255,0);   }
    100% { box-shadow: 0 0 0 0    rgba(255,255,255,0);   }
}
@keyframes psh-pulse-gray   {
    0%   { box-shadow: 0 0 0 0    rgba(170,178,189,.75); }
    70%  { box-shadow: 0 0 0 12px rgba(170,178,189,0);   }
    100% { box-shadow: 0 0 0 0    rgba(170,178,189,0);   }
}
@keyframes psh-pulse-red    {
    0%   { box-shadow: 0 0 0 0    rgba(237,85,101,.75);  }
    70%  { box-shadow: 0 0 0 12px rgba(237,85,101,0);    }
    100% { box-shadow: 0 0 0 0    rgba(237,85,101,0);    }
}
@keyframes psh-pulse-green  {
    0%   { box-shadow: 0 0 0 0    rgba(160,212,104,.75); }
    70%  { box-shadow: 0 0 0 12px rgba(160,212,104,0);   }
    100% { box-shadow: 0 0 0 0    rgba(160,212,104,0);   }
}
@keyframes psh-pulse-yellow {
    0%   { box-shadow: 0 0 0 0    rgba(255,206,84,.75);  }
    70%  { box-shadow: 0 0 0 12px rgba(255,206,84,0);    }
    100% { box-shadow: 0 0 0 0    rgba(255,206,84,0);    }
}
@keyframes psh-pulse-blue   {
    0%   { box-shadow: 0 0 0 0    rgba(93,156,236,.75);  }
    70%  { box-shadow: 0 0 0 12px rgba(93,156,236,0);    }
    100% { box-shadow: 0 0 0 0    rgba(93,156,236,0);    }
}
@keyframes psh-pulse-purple {
    0%   { box-shadow: 0 0 0 0    rgba(172,146,236,.75); }
    70%  { box-shadow: 0 0 0 12px rgba(172,146,236,0);   }
    100% { box-shadow: 0 0 0 0    rgba(172,146,236,0);   }
}

.psh-hotspot-item.pulse-white  .psh-pin { animation: psh-pulse-white  2s infinite; }
.psh-hotspot-item.pulse-gray   .psh-pin { animation: psh-pulse-gray   2s infinite; }
.psh-hotspot-item.pulse-red    .psh-pin { animation: psh-pulse-red    2s infinite; }
.psh-hotspot-item.pulse-green  .psh-pin { animation: psh-pulse-green  2s infinite; }
.psh-hotspot-item.pulse-yellow .psh-pin { animation: psh-pulse-yellow 2s infinite; }
.psh-hotspot-item.pulse-blue   .psh-pin { animation: psh-pulse-blue   2s infinite; }
.psh-hotspot-item.pulse-purple .psh-pin { animation: psh-pulse-purple 2s infinite; }

/* ── Swiper nav above hotspots ──────────────────────────────── */
.psh-slider {
    --swiper-navigation-color: #ffffff;
    --swiper-navigation-size:  28px;
}
.psh-slider .swiper-button-next,
.psh-slider .swiper-button-prev {
    z-index: 30;
    text-shadow: 0 1px 4px rgba(0,0,0,.45);
}

/* ── Tooltipster link styling ───────────────────────────────── */
.tooltipster-base .tooltipster-content a {
    color: inherit;
    text-decoration: underline;
}
