/* ==========================================================================
   Yogagenda — Ficha de retiro (single-retiro.php)
   Carga solo en is_singular('retiro'). Reutiliza las variables de :root.
   Contiene: lightbox de galería + botón "Enviar email".
   ========================================================================== */

/* ---- Botón secundario "Enviar email" (outline sage) ---- */
.yg-retiro a.yg-btn.yg-btn--email {
    background: #fff;
    color: var(--yg-primary);
    border: 1.5px solid var(--yg-primary);
    margin-top: 0.75rem;
}
.yg-retiro a.yg-btn.yg-btn--email svg { color: var(--yg-primary); }
.yg-retiro a.yg-btn.yg-btn--email:hover,
.yg-retiro a.yg-btn.yg-btn--email:focus-visible {
    background: var(--yg-primary);
    color: #fff;
}
.yg-retiro a.yg-btn.yg-btn--email:hover svg,
.yg-retiro a.yg-btn.yg-btn--email:focus-visible svg { color: #fff; }

/* ---- Galería: indicar que se puede ampliar ---- */
.yg-gallery a { cursor: zoom-in; }

/* ---- CTA "Reclama tu ficha" (ficha de estudio) ---- */
.yg-claim { background: rgba(122, 155, 94, 0.1); border-color: transparent; }
.yg-claim__title {
    font-family: var(--yg-font-title);
    color: var(--yg-title);
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0 0 0.4rem;
}
.yg-claim__text {
    font-family: var(--yg-font-body);
    color: var(--yg-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.1rem;
}
/* El CTA usa .yg-btn (mismo componente que Llamar/Enviar email): hereda
   .yg-retiro a.yg-btn { color:#fff } → texto blanco legible sobre el verde. */

/* ==========================================================================
   Lightbox (propio, sin dependencias)
   ========================================================================== */
.yg-lb {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 4vh 4vw;
    background: rgba(26, 26, 26, 0.92);
}
.yg-lb.is-open { display: flex; }

.yg-lb__fig {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.yg-lb__img {
    display: block;
    max-width: 100%;
    max-height: 82vh;
    width: auto;
    height: auto;
    border-radius: var(--yg-radius);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.45);
    background: #e9e4d8;
}
.yg-lb__cap {
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--yg-font-body);
    font-size: 0.92rem;
    text-align: center;
    max-width: 60ch;
}

/* Controles */
.yg-lb__close,
.yg-lb__nav {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.2s ease;
}
.yg-lb__close:hover,
.yg-lb__nav:hover { background: var(--yg-primary); }
.yg-lb__close:focus-visible,
.yg-lb__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.yg-lb__close {
    top: 1.1rem;
    right: 1.1rem;
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
    line-height: 1;
}
.yg-lb__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 2rem;
    line-height: 1;
}
.yg-lb__nav:hover { transform: translateY(-50%); }
.yg-lb__prev { left: 1.1rem; }
.yg-lb__next { right: 1.1rem; }

.yg-lb__counter {
    position: absolute;
    bottom: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--yg-font-body);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

/* Una sola imagen: sin flechas ni contador */
.yg-lb--single .yg-lb__nav,
.yg-lb--single .yg-lb__counter { display: none; }

@media (max-width: 600px) {
    .yg-lb__nav { width: 44px; height: 44px; font-size: 1.6rem; }
    .yg-lb__prev { left: 0.5rem; }
    .yg-lb__next { right: 0.5rem; }
}
