/* ============================================================
   SIGUEME.NET - Extras del template de artículo
   Requiere --section-color, --section-color-dark y
   --section-color-soft definidas en el <head>.
   ============================================================ */

/* Accesibilidad */
.sg-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.sg-skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 1000;
    background: #fff;
    color: var(--brand-primary);
    font-weight: 800;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}
.sg-skip:focus { top: 12px; }

/* Imagen destacada (dentro del artículo) */
.sg-article-featured-image { margin: 0 0 28px; }
.sg-article-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* Fecha en el hero */
.sg-article-meta time { white-space: nowrap; }

/* YouTube (facade: no carga el iframe hasta hacer clic) */
.sg-article-youtube {
    position: relative;
    aspect-ratio: 16 / 9;
    margin: 32px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #000;
}
.sg-article-youtube iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.sg-yt-facade {
    position: absolute;
    inset: 0;
    display: block;
    cursor: pointer;
}
.sg-yt-facade img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}
.sg-yt-facade:hover img,
.sg-yt-facade:focus-visible img { opacity: 1; }
.sg-yt-facade .play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    padding-left: 4px;
    transition: background var(--transition-fast);
}
.sg-yt-facade:hover .play,
.sg-yt-facade:focus-visible .play { background: #f00; }

/* Tags / categorías */
.sg-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
}
.sg-article-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--section-color-soft);
    color: var(--section-color);
    font-size: 12px;
    font-weight: 800;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all var(--transition-fast);
}
a.sg-article-tag:hover {
    background: var(--section-color);
    color: #fff;
}

/* Segunda imagen */
.sg-article-secondary-image {
    margin: 32px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.sg-article-secondary-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Blockquote destacado */
.sg-article-blockquote {
    border-left: 5px solid var(--section-color);
    background: linear-gradient(135deg, var(--section-color-soft) 0%, #fff 100%);
    padding: 24px 28px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 32px 0;
    font-size: 19px;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
}
.sg-article-blockquote::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 12px;
    font-size: 60px;
    line-height: 1;
    font-family: Georgia, serif;
    color: var(--section-color);
    opacity: 0.3;
}
.sg-article-blockquote p { margin: 0; }

/* Cita bíblica (texto base) */
.sg-article-bible-cita {
    background: linear-gradient(135deg, var(--section-color-soft) 0%, #fff 100%);
    border-radius: var(--radius-md);
    border-left: 5px solid var(--section-color);
    margin: 32px 0;
    overflow: hidden;
}
.sg-article-bible-cita-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}
.sg-article-bible-cita-header .icon { font-size: 18px; }
.sg-article-bible-cita-header .label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}
.sg-article-bible-cita-header .ref {
    font-size: 15px;
    font-weight: 800;
    color: var(--section-color);
    text-decoration: none;
    padding: 4px 12px;
    background: #fff;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}
.sg-article-bible-cita-header a.ref:hover {
    background: var(--section-color);
    color: #fff;
}
.sg-article-bible-cita-texto {
    margin: 0;
    padding: 22px 28px;
    font-size: 18px;
    line-height: 1.7;
    font-style: italic;
    color: var(--text-primary);
    background: #fff;
}
.sg-article-bible-cita-texto p { margin: 0; }
.sg-article-bible-cita-texto sup {
    font-size: 12px;
    font-weight: 800;
    color: var(--section-color);
    margin-right: 6px;
    font-style: normal;
    vertical-align: super;
}

/* Navegación anterior / siguiente */
.sg-article-nav-item.is-next { text-align: right; }