/* ============================================
   ONA Club · Vlog (app v2, img 15)
   Cabecera «Historias que inspiran», chips de categorías, DESTACADO, últimos
   artículos, tarjetas pequeñas (Inspiración ONA en Comunidad) y detalle.
   ============================================ */

.vlog { display: flex; flex-direction: column; gap: 14px; }
.vlog--embedded { gap: 12px; }

/* Tarjeta base de la app v2 */
.vlog-row, .vlog-mini, .vlog-detail__card, .vlog-empty {
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(94, 79, 63, .07), 0 1px 3px rgba(94, 79, 63, .05);
}

/* ── Cabecera con la foto fundida a la derecha ── */
.vlog-hero { position: relative; margin: -6px -16px 0; padding: 6px 16px 2px; min-height: 280px; display: flex; align-items: center; overflow: hidden; }
.vlog-hero__photo {
    position: absolute; top: 0; right: 0; bottom: 0; width: 64%; pointer-events: none;
    background: radial-gradient(70% 60% at 70% 42%, rgba(186, 166, 142, .30), rgba(186, 166, 142, 0) 72%);
}
/* Fundida a la izquierda y abajo (dos máscaras que se cruzan) */
.vlog-hero__photo span {
    position: absolute; inset: 0; background: center 30% / cover no-repeat;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .6) 30%, #000 62%), linear-gradient(to top, transparent 0%, #000 34%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .6) 30%, #000 62%), linear-gradient(to top, transparent 0%, #000 34%);
    mask-composite: intersect;
}
.vlog-hero__text { position: relative; z-index: 1; padding: 16px 0 8px; min-width: 0; }
.vlog-eyebrow { font-size: 11px; letter-spacing: .3em; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; }
.vlog-hero__title {
    margin: 10px 0 0; font-family: var(--font-display); font-weight: 400;
    font-size: clamp(34px, 10.4vw, 48px); line-height: 1.02; letter-spacing: -.015em; color: var(--text-heading);
}
.vlog-hero__title em { font-style: italic; font-weight: 500; color: var(--brown-ink); }
.vlog-hero:has(.vlog-hero__photo:empty) { min-height: 0; }
.vlog-hero__sub { margin: 14px 0 0; max-width: 62%; font-size: 14.5px; line-height: 1.5; color: var(--text-secondary); text-shadow: 0 0 12px rgba(247, 241, 234, .9); }
@media (max-width: 400px) { .vlog-hero__sub { max-width: 70%; font-size: 14px; } }

/* ── Chips de categorías (carrusel) ── */
.vlog-chips {
    display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 8px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.vlog-chips::-webkit-scrollbar { display: none; }
.vlog-chips:empty { display: none; }
.vlog-chip {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 18px;
    border-radius: 999px; border: 1px solid rgba(255, 255, 255, .95); background: rgba(255, 255, 255, .86);
    font: inherit; font-size: 15px; color: var(--text-heading); cursor: pointer; white-space: nowrap;
    box-shadow: 0 4px 12px rgba(94, 79, 63, .07); transition: background .2s ease, color .2s ease;
}
.vlog-chip svg { color: #8a7762; }
.vlog-chip.is-on { color: #fff; border-color: transparent; background: linear-gradient(160deg, #8a7762, #6e5d4b); box-shadow: 0 6px 14px rgba(94, 79, 63, .25); }
.vlog-chip.is-on svg { color: #fff; }
.vlog-chip:focus-visible { outline: 2px solid #5e4f3f; outline-offset: 2px; }

/* ── Piezas comunes de las tarjetas ── */
.vlog-kicker { max-width: 100%; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vlog-kicker--light { margin-top: 6px; color: rgba(255, 255, 255, .82); }
.vlog-kicker--xs { font-size: 9.5px; letter-spacing: .14em; }
.vlog-link { color: inherit; text-decoration: none; }
/* Toda la tarjeta es el enlace (el marcador queda por encima) */
.vlog-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.vlog-link:focus-visible { outline: none; }
.vlog-link:focus-visible::after { outline: 2px solid #5e4f3f; outline-offset: -3px; border-radius: 22px; }
.vlog-author { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.vlog-author__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.vlog-author__txt b { font-weight: 600; font-size: 14.5px; }
.vlog-author__txt small { font-size: 12.5px; font-style: italic; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vlog-author__name { min-width: 0; font-size: 13px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vlog-avatar {
    flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: #e9ddd0; color: #5e4f3f; font-family: var(--font-display); font-weight: 600; overflow: hidden;
}
.vlog-avatar--ona { background: linear-gradient(160deg, #c9b8a4, #a38d76); }
.vlog-avatar--ona img { width: 74%; height: auto; }
.vlog-author--sm { gap: 6px; }
.vlog-author--sm .vlog-avatar { width: 24px; height: 24px; font-size: 11px; }
.vlog-views { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }

/* Marcador */
.vlog-save {
    position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; background: #f5eee6; color: #5e4f3f; cursor: pointer;
    transition: transform .15s ease, background .2s ease;
}
.vlog-save:active { transform: scale(.9); }
.vlog-save.is-saved svg { fill: currentColor; }
.vlog-save:focus-visible { outline: 2px solid #5e4f3f; outline-offset: 2px; }
.vlog-save--dark { background: rgba(255, 255, 255, .16); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vlog-save--dark:focus-visible { outline-color: #fff; }
.vlog-save--sm { top: 8px; right: 8px; width: 32px; height: 32px; }
.vlog-save--sm svg { width: 15px; height: 15px; }

/* ── DESTACADO (oscuro, con la imagen a la derecha) ── */
.vlog-feat {
    position: relative; display: flex; min-height: 236px; border-radius: 26px; overflow: hidden; color: #fff;
    background: radial-gradient(120% 90% at 85% 30%, #5a4a3c 0%, #3b3027 55%, #2b2219 100%);
    box-shadow: 0 16px 34px rgba(43, 33, 24, .24);
}
.vlog-feat__img {
    position: absolute; top: 0; right: 0; width: 72%; height: 100%; object-fit: cover;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%);
    mask-image: linear-gradient(to right, transparent 0%, #000 45%);
}
.vlog-feat__shade {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(43, 33, 24, .9) 0%, rgba(43, 33, 24, .55) 50%, rgba(43, 33, 24, .12) 100%),
                linear-gradient(0deg, rgba(43, 33, 24, .55), rgba(43, 33, 24, 0) 55%);
}
.vlog-feat__body { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 18px 16px; }
.vlog-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px;
    background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
}
.vlog-badge svg { color: #f0c46c; fill: #f0c46c; }
.vlog-feat__title { margin: 0; max-width: 86%; color: #fff; font-family: var(--font-display); font-weight: 500; font-size: clamp(23px, 6.6vw, 30px); line-height: 1.12; overflow-wrap: anywhere; }
.vlog-feat__foot { width: 100%; margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ── Últimos artículos ── */
.vlog-latest { display: flex; flex-direction: column; }
.vlog-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 4px 10px; }
.vlog-sec__title { margin: 0; font-size: 12px; letter-spacing: .3em; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; }
.vlog-sec__more { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--text-heading); cursor: pointer; }
.vlog-sec__more:focus-visible { outline: 2px solid #5e4f3f; outline-offset: 2px; border-radius: 6px; }
.vlog-rows { display: flex; flex-direction: column; gap: 10px; }
.vlog-row { position: relative; display: flex; gap: 14px; padding: 10px; }
.vlog-row__thumb, .vlog-mini__thumb {
    position: relative; flex: 0 0 auto; overflow: hidden; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #efe5d8, #e2d4c2); color: #a38d76;
}
.vlog-row__thumb { width: 118px; height: 96px; border-radius: 16px; }
.vlog-row__img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.vlog-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 4px 38px 2px 0; }
.vlog-row__title {
    margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 17px; line-height: 1.2; color: var(--text-heading);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.vlog-row__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; color: var(--text-secondary); }
.vlog-row .vlog-views, .vlog-mini .vlog-views { font-size: 12.5px; color: var(--text-secondary); }
.vlog-row .vlog-save { top: 10px; right: 10px; width: 36px; height: 36px; }
@media (max-width: 400px) {
    .vlog-row { gap: 12px; }
    .vlog-row__thumb { width: 100px; height: 90px; }
    .vlog-row__title { font-size: 16px; }
    .vlog-row__body { padding-right: 34px; }
}
.vlog-loadmore {
    align-self: center; margin-top: 12px; height: 42px; padding: 0 22px; border-radius: 999px;
    border: 1px solid rgba(138, 119, 98, .35); background: rgba(255, 255, 255, .75); color: #5e4f3f;
    font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.vlog-loadmore:focus-visible { outline: 2px solid #5e4f3f; outline-offset: 2px; }
.vlog-empty { padding: 28px 16px; }

/* ── Tarjeta pequeña (Inspiración ONA) ── */
.vlog-mini { position: relative; display: flex; gap: 10px; padding: 8px; border-radius: 20px; min-width: 0; }
.vlog-mini__thumb { width: 74px; min-height: 86px; border-radius: 14px; }
.vlog-mini__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 2px 24px 0 0; }
.vlog-mini__title {
    margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 14px; line-height: 1.2; color: var(--text-heading);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.vlog-mini .vlog-author__name { font-size: 11.5px; }
.vlog-mini .vlog-views { font-size: 11px; gap: 3px; }
.vlog-mini .vlog-views svg { width: 12px; height: 12px; }
/* En el móvil estrecho la miniatura va arriba (dos columnas de ~165 px) */
@media (max-width: 420px) {
    .vlog-mini { flex-direction: column; }
    .vlog-mini__thumb { width: 100%; height: 92px; min-height: 0; }
    .vlog-mini__body { padding: 0 2px 2px; }
    .vlog-mini .vlog-save--sm { top: 14px; right: 14px; background: rgba(255, 255, 255, .92); }
}

/* ── Detalle del artículo ── */
.vlog-detail { display: flex; flex-direction: column; gap: 14px; }
.vlog-detail__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vlog-detail__bar .vlog-save { position: static; background: rgba(255, 255, 255, .8); box-shadow: 0 4px 12px rgba(94, 79, 63, .08); }
.vlog-back {
    display: inline-flex; align-items: center; gap: 4px; height: 42px; padding: 0 18px 0 10px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .95); background: rgba(255, 255, 255, .8); box-shadow: 0 4px 12px rgba(94, 79, 63, .08);
    font: inherit; font-size: 14.5px; font-weight: 500; color: var(--text-heading); cursor: pointer;
}
.vlog-back:focus-visible { outline: 2px solid #5e4f3f; outline-offset: 2px; }
.vlog-detail__hero { border-radius: 26px; overflow: hidden; aspect-ratio: 16 / 10; max-height: 420px; background: #efe5d8; box-shadow: 0 14px 30px rgba(43, 33, 24, .14); }
.vlog-detail__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vlog-detail__card { padding: 22px 18px 18px; border-radius: 26px; min-width: 0; }
.vlog-detail__head { margin-bottom: 20px; }
.vlog-detail__title {
    margin: 8px 0 14px; font-family: var(--font-display); font-weight: 500;
    font-size: clamp(28px, 8vw, 38px); line-height: 1.08; letter-spacing: -.015em; color: var(--text-heading); overflow-wrap: anywhere;
}
.vlog-detail__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(94, 79, 63, .1); color: var(--text-secondary); }
.vlog-detail__meta .vlog-author__txt b { color: var(--text-heading); }
.vlog-detail__meta .vlog-author__txt small { font-style: normal; color: var(--text-muted); }
.vlog-detail .blog-content { overflow-wrap: anywhere; }
.vlog-detail .blog-content img, .vlog-detail .blog-content video, .vlog-detail .blog-content iframe { max-width: 100%; height: auto; }
.vlog-detail .blog-content table, .vlog-detail .blog-content pre { display: block; max-width: 100%; overflow-x: auto; }
.vlog-detail .blog-like-section { margin: var(--space-xl, 32px) 0; }
.vlog-comment-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.vlog-nocomments { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 18px 0; font-size: 14px; color: var(--text-muted); }

/* Escritorio: columna centrada */
@media (min-width: 768px) {
    .page.vlog, .page.vlog-detail { max-width: 760px; }
}
