/* ── Post Hero Widget — BepsPuroOmega ────────────────────────────────────── */

/* Wrapper: una columna por defecto, dos cuando hay imagen */
.beps-ph-wrap {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Columnas (contenido + imagen): solo cuando hay imagen */
.beps-ph-columns {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* ── Columna de contenido ─────────────────────────────────────────────────── */
.beps-ph-content {
    display: flex;
    flex-direction: column;
}

/* Enlace "← Volver al listado" */
.beps-ph-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a1a1a;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: currentColor;
    margin-bottom: 24px;
    transition: opacity .2s;
    width: fit-content;
}
.beps-ph-back:hover {
    opacity: .65;
}
.beps-ph-back svg {
    flex-shrink: 0;
    transition: transform .2s;
}
.beps-ph-back:hover svg {
    transform: translateX(-3px);
}

/* Fila de meta: badge + fecha + lectura */
.beps-ph-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Badge de categoría */
.beps-ph-badge {
    display: inline-block;
    background-color: #2b2b5b;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 50px;
    line-height: 1.6;
    white-space: nowrap;
}

/* Texto de meta (fecha · min de lectura) */
.beps-ph-meta-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}
.beps-ph-meta-sep {
    opacity: .45;
}

/* Título del post */
.beps-ph-title {
    margin: 16px 0 0;
    font-size: clamp(26px, 3.5vw, 42px);
    line-height: 1.2;
    color: #1a1a1a;
}

/* Bloque autor */
.beps-ph-author {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
}

.beps-ph-author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%!important;
    object-fit: cover;
    flex-shrink: 0;
}

.beps-ph-author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.beps-ph-author-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.beps-ph-author-line2,
.beps-ph-author-line3 {
    display: block;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* ── Columna de imagen ────────────────────────────────────────────────────── */
.beps-ph-image-col {
    width: 100%;
    height: 100%;
}

.beps-ph-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    border-radius: 16px;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .beps-ph-columns {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 767px) {
    .beps-ph-columns {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    /* Contenido primero, imagen después */
    .beps-ph-content   { order: 0; }
    .beps-ph-image-col { order: 1; }

    /* Full-bleed: la imagen rompe el padding del contenedor y ocupa el viewport completo */
    .beps-ph-image-col {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        max-width: 100vw;
    }

    .beps-ph-image {
        min-height: 260px;
        border-radius: 0 !important;
        width: 100%;
        max-width: 100%;
    }

    .beps-ph-title {
        font-size: clamp(22px, 6vw, 32px);
    }
}
