/* =========================================================================
   33. Blog — Archive (listado de entradas)
   ========================================================================= */

/* Hero del archive */
.hp-blog-archive__hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: #fff;
    padding: 5rem var(--hp-container-pad) 4rem;
    overflow: hidden;
    text-align: center;
}

.hp-blog-archive__hero-deco { position: absolute; inset: 0; pointer-events: none; }
.hp-blog-archive__hero-circle--1 {
    position: absolute; width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,.15) 0%, transparent 70%);
    top: -200px; right: -100px;
}
.hp-blog-archive__hero-circle--2 {
    position: absolute; width: 300px; height: 300px; border-radius: 50%;
    background: radial-gradient(circle, rgba(16,185,129,.1) 0%, transparent 70%);
    bottom: -100px; left: -50px;
}

.hp-blog-archive__hero-content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }

.hp-blog-archive__eyebrow {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: var(--hp-fs-xs); font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: #93c5fd;
    background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.25);
    padding: .35rem 1rem; border-radius: 999px; margin-bottom: 1rem;
}

.hp-blog-archive__title {
    font-size: clamp(2rem, 4vw, 3rem); color: #fff;
    letter-spacing: -.03em; margin: 0 0 .75rem; font-weight: 800;
}

.hp-blog-archive__subtitle { color: rgba(255,255,255,.75); font-size: var(--hp-fs-lg); margin: 0; }
.hp-blog-archive__sep { opacity: .4; margin: 0 .25rem; }

/* Contenedor */
.hp-blog-archive__container {
    max-width: var(--hp-container-max);
    margin: 0 auto;
    padding: 3rem var(--hp-container-pad) 5rem;
}

/* Post destacado */
.hp-blog-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--hp-radius-lg);
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--hp-shadow-lg);
    min-height: 400px;
}

.hp-blog-featured__thumb-link { display: block; }
.hp-blog-featured__thumb { position: relative; height: 100%; min-height: 380px; overflow: hidden; }
.hp-blog-featured__img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--hp-trans-base); }
.hp-blog-featured:hover .hp-blog-featured__img { transform: scale(1.04); }
.hp-blog-featured__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, transparent 60%, rgba(10,22,40,.3) 100%);
}

.hp-blog-featured__content {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    padding: 3rem;
    display: flex; flex-direction: column; justify-content: center; gap: 1rem;
}

.hp-blog-featured__cats { display: flex; gap: .5rem; flex-wrap: wrap; }
.hp-blog-featured__badge {
    background: #f59e0b; color: #fff;
    font-size: var(--hp-fs-xs); font-weight: 700;
    padding: .2rem .75rem; border-radius: 999px;
}

.hp-blog-featured__title { font-size: clamp(1.5rem, 2.5vw, 2.25rem); color: #fff; margin: 0; line-height: 1.2; }
.hp-blog-featured__title a { color: #fff; text-decoration: none; }
.hp-blog-featured__title a:hover { color: #93c5fd; }
.hp-blog-featured__excerpt { color: rgba(255,255,255,.75); margin: 0; line-height: 1.65; }

.hp-blog-featured__meta { display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.65); font-size: var(--hp-fs-sm); }
.hp-blog-featured__avatar { border-radius: 50%; width: 32px; height: 32px; object-fit: cover; }

.hp-blog-featured__cta {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .75rem 1.5rem; background: var(--hp-color-primary);
    color: #fff; border-radius: var(--hp-radius-md);
    font-weight: 700; text-decoration: none; align-self: flex-start;
    transition: background var(--hp-trans-fast), transform var(--hp-trans-fast);
}
.hp-blog-featured__cta:hover { background: var(--hp-color-primary-dark); transform: translateY(-2px); color: #fff; text-decoration: none; }

/* Grid de cards */
.hp-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-bottom: 3rem;
}

.hp-blog-card {
    background: #fff;
    border: 1px solid var(--hp-color-border);
    border-radius: var(--hp-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--hp-trans-base), box-shadow var(--hp-trans-base);
}

.hp-blog-card:hover { transform: translateY(-4px); box-shadow: var(--hp-shadow-lg); }

.hp-blog-card__thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #f1f5f9; }
.hp-blog-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--hp-trans-base); }
.hp-blog-card:hover .hp-blog-card__img { transform: scale(1.05); }
.hp-blog-card__thumb-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1); color: #94a3b8; font-size: 2.5rem;
}
.hp-blog-card__video-badge {
    position: absolute; bottom: .6rem; left: .6rem;
    background: rgba(255,0,0,.9); color: #fff;
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: .9rem;
}

.hp-blog-card__body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; gap: .6rem; }
.hp-blog-card__cats { display: flex; gap: .4rem; flex-wrap: wrap; }
.hp-blog-card__title { font-size: var(--hp-fs-lg); font-weight: 700; margin: 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp-blog-card__title a { color: var(--hp-color-text); text-decoration: none; }
.hp-blog-card__title a:hover { color: var(--hp-color-primary); }
.hp-blog-card__excerpt { font-size: var(--hp-fs-sm); color: var(--hp-color-text-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.hp-blog-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--hp-color-border); }
.hp-blog-card__meta { display: flex; align-items: center; gap: .4rem; font-size: var(--hp-fs-xs); color: var(--hp-color-text-soft); }
.hp-blog-card__avatar { border-radius: 50%; width: 24px; height: 24px; object-fit: cover; }
.hp-blog-card__date { font-size: var(--hp-fs-xs); color: var(--hp-color-text-soft); }

/* Categoría badge */
.hp-blog-single__cat {
    display: inline-block;
    padding: .2rem .75rem;
    background: rgba(59,130,246,.1); color: var(--hp-color-primary);
    border-radius: 999px; font-size: var(--hp-fs-xs); font-weight: 700;
    text-decoration: none; transition: background var(--hp-trans-fast);
}
.hp-blog-single__cat:hover { background: var(--hp-color-primary); color: #fff; text-decoration: none; }
.hp-blog-single__cat--video { background: rgba(255,0,0,.1); color: #dc2626; }
.hp-blog-single__cat--video:hover { background: #dc2626; color: #fff; }

/* Paginación del blog */
.hp-blog-pagination { display: flex; justify-content: center; }
.hp-blog-pagination .page-numbers { list-style: none; margin: 0; padding: 0; display: flex; gap: .4rem; flex-wrap: wrap; }
.hp-blog-pagination .page-numbers li a,
.hp-blog-pagination .page-numbers li span {
    display: flex; align-items: center; gap: .4rem;
    padding: .5rem .9rem; border: 1px solid var(--hp-color-border);
    border-radius: var(--hp-radius-sm); color: var(--hp-color-text);
    text-decoration: none; font-size: var(--hp-fs-sm);
    transition: background var(--hp-trans-fast), border-color var(--hp-trans-fast);
}
.hp-blog-pagination .page-numbers li a:hover { background: var(--hp-color-primary); border-color: var(--hp-color-primary); color: #fff; }
.hp-blog-pagination .page-numbers li span.current { background: var(--hp-color-primary); border-color: var(--hp-color-primary); color: #fff; }

/* Estado vacío */
.hp-blog-archive__empty { text-align: center; padding: 4rem 0; }
.hp-blog-archive__empty i { font-size: 3rem; display: block; margin-bottom: 1rem; opacity: .3; }
.hp-blog-archive__empty p { font-size: var(--hp-fs-lg); color: var(--hp-color-text-muted); margin-bottom: 1.5rem; }

/* Responsive archive */
@media (max-width: 960px) {
    .hp-blog-featured { grid-template-columns: 1fr; }
    .hp-blog-featured__thumb { min-height: 260px; }
    .hp-blog-featured__content { padding: 2rem; }
    .hp-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .hp-blog-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   34. Blog — Single post moderno
   ========================================================================= */

.hp-blog-single { background: #f8fafc; }

/* Hero */
.hp-blog-single__hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    color: #fff;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hp-blog-single__hero--has-image { min-height: 520px; }

.hp-blog-single__hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform 8s ease;
}
.hp-blog-single__hero:hover .hp-blog-single__hero-bg { transform: scale(1.03); }

.hp-blog-single__hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(5,12,26,.9) 0%, rgba(5,12,26,.5) 50%, rgba(5,12,26,.2) 100%);
}

.hp-blog-single__hero-content {
    position: relative; z-index: 2;
    max-width: var(--hp-container-max);
    margin: 0 auto;
    padding: 3rem var(--hp-container-pad);
    width: 100%;
}

.hp-blog-single__breadcrumb {
    display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
    font-size: var(--hp-fs-sm); color: rgba(255,255,255,.6);
    margin-bottom: 1.25rem;
}
.hp-blog-single__breadcrumb a { color: rgba(255,255,255,.6); }
.hp-blog-single__breadcrumb a:hover { color: #fff; }

.hp-blog-single__cats { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .875rem; }

.hp-blog-single__title {
    font-size: clamp(1.75rem, 3.5vw, 3rem); color: #fff;
    letter-spacing: -.03em; font-weight: 800; margin: 0 0 1rem;
    line-height: 1.15; max-width: 800px;
}

.hp-blog-single__excerpt { color: rgba(255,255,255,.8); font-size: var(--hp-fs-lg); margin: 0 0 1.25rem; max-width: 680px; }

.hp-blog-single__meta { display: flex; align-items: center; gap: .75rem; }
.hp-blog-single__avatar { border-radius: 50%; width: 40px; height: 40px; object-fit: cover; flex-shrink: 0; }
.hp-blog-single__meta-text { display: flex; flex-direction: column; gap: .15rem; font-size: var(--hp-fs-sm); color: rgba(255,255,255,.8); }
.hp-blog-single__meta-text strong { color: #fff; }
.hp-blog-single__meta-text span { color: rgba(255,255,255,.65); display: flex; align-items: center; gap: .35rem; }

/* Barra de progreso */
.hp-blog-single__progress {
    position: sticky; top: 0; z-index: 150;
    height: 3px; background: var(--hp-color-border);
}
.hp-blog-single__progress-fill {
    height: 100%; width: 0%; background: var(--hp-color-primary);
    transition: width .1s linear;
}

/* Body layout */
.hp-blog-single__body { padding: 3.5rem 0 5rem; }
.hp-blog-single__container { max-width: var(--hp-container-max); margin: 0 auto; padding: 0 var(--hp-container-pad); }
.hp-blog-single__layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }

/* Artículo */
.hp-blog-single__article { background: #fff; border-radius: var(--hp-radius-lg); box-shadow: var(--hp-shadow-sm); overflow: hidden; }

.hp-blog-single__content {
    padding: 2.5rem 2.5rem 2rem;
    font-size: var(--hp-fs-base);
    line-height: 1.8;
    color: var(--hp-color-text);
}

/* Estilos de contenido enriquecido */
.hp-blog-single__content h2 { font-size: var(--hp-fs-2xl); margin: 2rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--hp-color-border); }
.hp-blog-single__content h3 { font-size: var(--hp-fs-xl); margin: 1.75rem 0 .75rem; }
.hp-blog-single__content img { border-radius: var(--hp-radius-md); margin: 1.5rem 0; box-shadow: var(--hp-shadow-md); }
.hp-blog-single__content blockquote {
    margin: 2rem 0; padding: 1.25rem 1.5rem;
    background: #f0f7ff; border-left: 4px solid var(--hp-color-primary);
    border-radius: 0 var(--hp-radius-md) var(--hp-radius-md) 0;
    font-style: italic; color: var(--hp-color-text-muted);
}
.hp-blog-single__content a { color: var(--hp-color-primary); font-weight: 500; }
.hp-blog-single__content ul, .hp-blog-single__content ol { padding-left: 1.5rem; margin: 1rem 0; }
.hp-blog-single__content li { margin-bottom: .4rem; }
.hp-blog-single__content code { background: #f1f5f9; padding: .15rem .4rem; border-radius: 4px; font-size: .875em; }
.hp-blog-single__content pre { background: #0f172a; color: #f1f5f9; padding: 1.5rem; border-radius: var(--hp-radius-md); overflow-x: auto; margin: 1.5rem 0; }

/* Tags */
.hp-blog-single__tags {
    display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
    padding: 1.5rem 2.5rem; border-top: 1px solid var(--hp-color-border);
    background: #f8fafc;
}
.hp-blog-single__tags i { color: var(--hp-color-text-soft); }
.hp-blog-single__tag {
    display: inline-block; padding: .25rem .75rem;
    background: #fff; border: 1px solid var(--hp-color-border);
    border-radius: 999px; font-size: var(--hp-fs-xs); color: var(--hp-color-text-soft);
    text-decoration: none; transition: background var(--hp-trans-fast), color var(--hp-trans-fast), border-color var(--hp-trans-fast);
}
.hp-blog-single__tag:hover { background: var(--hp-color-primary); color: #fff; border-color: var(--hp-color-primary); text-decoration: none; }

/* Compartir */
.hp-blog-single__share {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    padding: 1.25rem 2.5rem; border-top: 1px solid var(--hp-color-border);
}
.hp-blog-single__share-label { font-size: var(--hp-fs-sm); font-weight: 600; color: var(--hp-color-text-soft); display: flex; align-items: center; gap: .4rem; }
.hp-blog-single__share-btns { display: flex; gap: .5rem; }

.hp-share-btn {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none; font-size: .875rem;
    transition: transform var(--hp-trans-fast), opacity var(--hp-trans-fast);
}
.hp-share-btn:hover { transform: translateY(-2px); opacity: .85; text-decoration: none; color: #fff; }
.hp-share-btn--x  { background: #000; }
.hp-share-btn--fb { background: #1877f2; }
.hp-share-btn--wa { background: #25d366; }
.hp-share-btn--li { background: #0a66c2; }

/* Bio del autor */
.hp-blog-single__author-bio {
    display: flex; gap: 1.25rem; align-items: flex-start;
    padding: 2rem 2.5rem; border-top: 1px solid var(--hp-color-border);
    background: #f8fafc;
}
.hp-blog-single__bio-avatar { border-radius: 50%; width: 72px; height: 72px; object-fit: cover; flex-shrink: 0; }
.hp-blog-single__bio-label { font-size: var(--hp-fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--hp-color-text-soft); display: block; margin-bottom: .2rem; }
.hp-blog-single__bio-name { font-size: var(--hp-fs-lg); font-weight: 700; color: var(--hp-color-text); display: block; margin-bottom: .4rem; text-decoration: none; }
.hp-blog-single__bio-name:hover { color: var(--hp-color-primary); }
.hp-blog-single__bio-text { font-size: var(--hp-fs-sm); color: var(--hp-color-text-muted); margin: 0; }

/* Nav entre posts */
.hp-blog-single__post-nav {
    display: flex; gap: 1rem;
    padding: 1.5rem 2.5rem; border-top: 1px solid var(--hp-color-border);
}
.hp-blog-single__nav-item {
    display: flex; align-items: center; gap: .75rem;
    flex: 1; padding: .875rem 1rem; border: 1px solid var(--hp-color-border);
    border-radius: var(--hp-radius-md); text-decoration: none; color: var(--hp-color-text);
    font-size: var(--hp-fs-sm); font-weight: 600;
    transition: border-color var(--hp-trans-fast), box-shadow var(--hp-trans-fast);
}
.hp-blog-single__nav-next { justify-content: flex-end; text-align: right; }
.hp-blog-single__nav-item:hover { border-color: var(--hp-color-primary); box-shadow: var(--hp-shadow-sm); text-decoration: none; color: var(--hp-color-primary); }
.hp-blog-single__nav-item span { display: flex; flex-direction: column; gap: .1rem; }
.hp-blog-single__nav-item small { font-size: var(--hp-fs-xs); font-weight: 400; color: var(--hp-color-text-soft); }

/* Comentarios */
.hp-blog-single__comments { padding: 2.5rem; border-top: 1px solid var(--hp-color-border); }

/* Sidebar */
.hp-blog-single__sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 1.5rem; }

.hp-blog-sidebar__widget { background: #fff; border: 1px solid var(--hp-color-border); border-radius: var(--hp-radius-lg); padding: 1.5rem; }
.hp-blog-sidebar__title { font-size: var(--hp-fs-base); font-weight: 700; margin: 0 0 1.25rem; padding-bottom: .75rem; border-bottom: 2px solid var(--hp-color-primary); }
.hp-blog-sidebar__related { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.hp-blog-sidebar__item { display: flex; gap: .75rem; align-items: flex-start; }
.hp-blog-sidebar__thumb { flex-shrink: 0; width: 64px; height: 64px; border-radius: var(--hp-radius-sm); overflow: hidden; display: block; }
.hp-blog-sidebar__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hp-blog-sidebar__item-title { display: block; font-size: var(--hp-fs-sm); font-weight: 600; color: var(--hp-color-text); text-decoration: none; line-height: 1.35; margin-bottom: .2rem; }
.hp-blog-sidebar__item-title:hover { color: var(--hp-color-primary); }
.hp-blog-sidebar__item-date { font-size: var(--hp-fs-xs); color: var(--hp-color-text-soft); }

/* CTA sidebar */
.hp-blog-sidebar__cta {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    border-radius: var(--hp-radius-lg); padding: 1.75rem 1.5rem;
    text-align: center; color: #fff;
}
.hp-blog-sidebar__cta-icon { font-size: 2rem; color: #93c5fd; margin-bottom: .75rem; display: block; }
.hp-blog-sidebar__cta-title { font-size: var(--hp-fs-lg); font-weight: 700; color: #fff; margin: 0 0 .5rem; }
.hp-blog-sidebar__cta-desc { font-size: var(--hp-fs-sm); color: rgba(255,255,255,.7); margin: 0 0 1.25rem; }
.hp-blog-sidebar__cta-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .75rem 1.25rem; background: var(--hp-color-primary);
    color: #fff; border-radius: var(--hp-radius-md);
    font-size: var(--hp-fs-sm); font-weight: 700; text-decoration: none;
    transition: background var(--hp-trans-fast);
}
.hp-blog-sidebar__cta-btn:hover { background: var(--hp-color-primary-dark); color: #fff; text-decoration: none; }

/* Responsive single */
@media (max-width: 960px) {
    .hp-blog-single__layout { grid-template-columns: 1fr; }
    .hp-blog-single__sidebar { position: static; }
    .hp-blog-single__content { padding: 2rem 1.5rem; }
    .hp-blog-single__tags,
    .hp-blog-single__share,
    .hp-blog-single__author-bio,
    .hp-blog-single__post-nav,
    .hp-blog-single__comments { padding-left: 1.5rem; padding-right: 1.5rem; }
    .hp-blog-single__post-nav { flex-direction: column; }
}
@media (max-width: 480px) {
    .hp-blog-single__content { padding: 1.5rem 1rem; }
    .hp-blog-single__tags,
    .hp-blog-single__share,
    .hp-blog-single__author-bio,
    .hp-blog-single__post-nav,
    .hp-blog-single__comments { padding-left: 1rem; padding-right: 1rem; }
    .hp-blog-single__author-bio { flex-direction: column; }
    .hp-blog-single__share { flex-direction: column; align-items: flex-start; }
}


/* ── Breadcrumb del archive ─────────────────────────────────────────── */

.hp-blog-archive__breadcrumb {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
    font-size: var(--hp-fs-sm);
    color: rgba(255,255,255,.55);
    margin-bottom: 1rem;
    justify-content: center;
}

.hp-blog-archive__breadcrumb a {
    color: rgba(255,255,255,.6);
    text-decoration: none;
    transition: color .2s;
}

.hp-blog-archive__breadcrumb a:hover { color: #fff; }

.hp-blog-archive__breadcrumb span[aria-hidden] {
    opacity: .4;
}

/* ── Autor en card ──────────────────────────────────────────────────── */

.hp-blog-card__author-name {
    font-size: var(--hp-fs-xs);
    color: var(--hp-color-text-soft);
}

/* ── Placeholder SVG en cards (reemplaza Font Awesome) ─────────────── */

.hp-blog-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #94a3b8;
}

/* ── Author page en archive.php ─────────────────────────────────────── */

/* Cuando is_author() usa archive.php — avatar grande en el hero */
.hp-blog-archive__author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,.3);
    margin: 0 auto 1rem;
    display: block;
}

/* ── Paginación: SVG arrows ─────────────────────────────────────────── */

.hp-blog-pagination .page-numbers li a,
.hp-blog-pagination .page-numbers li span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

/* ── Estado vacío: SVG ──────────────────────────────────────────────── */

.hp-blog-archive__empty {
    text-align: center;
    padding: 5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--hp-color-text-muted);
}

.hp-blog-archive__empty svg {
    opacity: .2;
}

.hp-blog-archive__empty p {
    font-size: var(--hp-fs-lg);
    color: var(--hp-color-text-muted);
    margin: 0;
}

/* ── Author page: cards placeholder con gradiente blog ─────────────── */

.hp-author-card__placeholder--blog {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 60%, #6366f1 100%);
    color: rgba(255,255,255,.45);
}

/* ── Featured post: placeholder sin imagen ──────────────────────────── */

.hp-blog-featured__thumb-placeholder {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 60%, #6366f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.3);
    min-height: 380px;
}

/* ── Featured post: meta mejorado ───────────────────────────────────── */

.hp-blog-featured__meta-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hp-blog-featured__author-link {
    color: #fff;
    text-decoration: none;
    font-size: var(--hp-fs-sm);
    transition: color .2s;
}

.hp-blog-featured__author-link:hover { color: #93c5fd; text-decoration: none; }

.hp-blog-featured__meta-sub {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: var(--hp-fs-xs);
    color: rgba(255,255,255,.6);
}

.hp-blog-featured__meta-sub svg { flex-shrink: 0; }

/* ── Card: tiempo de lectura ─────────────────────────────────────────── */

.hp-blog-card__readtime {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: var(--hp-fs-xs);
    color: var(--hp-color-text-soft);
}

/* ── Botón genérico para estado vacío ───────────────────────────────── */

.hp-btn--primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--hp-color-primary);
    color: #fff;
    font-size: var(--hp-fs-sm);
    font-weight: 700;
    padding: .7rem 1.5rem;
    border-radius: 99px;
    text-decoration: none;
    transition: background .2s, transform .15s;
    box-shadow: 0 4px 14px rgba(59,130,246,.25);
}

.hp-btn--primary:hover {
    background: var(--hp-color-primary-dark, #1d4ed8);
    transform: translateY(-1px);
    text-decoration: none;
    color: #fff;
}

/* ── Responsive home.php ─────────────────────────────────────────────── */

@media (max-width: 768px) {
    .hp-blog-featured__meta-sub { flex-wrap: wrap; }
}

/* =========================================================================
   COMENTARIOS — Diseño moderno
   ========================================================================= */

.hp-comments {
	margin-top: 3rem;
	padding-top: 2.5rem;
	border-top: 2px solid #f1f5f9;
}

/* ── Cabecera ───────────────────────────────────────────────────── */
.hp-comments__header { margin-bottom: 2rem; }

.hp-comments__title-wrap {
	display: flex;
	align-items: center;
	gap: .65rem;
	color: #1e293b;
}

.hp-comments__title-wrap svg { color: #3b82f6; flex-shrink: 0; }

.hp-comments__title {
	font-family: var(--hp-font-heading);
	font-size: 1.35rem;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -.02em;
	margin: 0;
}

.hp-comments__title span { color: #3b82f6; }

/* ── Lista de comentarios ───────────────────────────────────────── */
.hp-comments__list {
	list-style: none;
	padding: 0;
	margin: 0 0 2.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

/* Comentarios hijo */
.hp-comments__list .children {
	list-style: none;
	padding: 0;
	margin: 1rem 0 0 3rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	border-left: 2px solid #e2e8f0;
	padding-left: 1.5rem;
}

/* ── Comentario individual ──────────────────────────────────────── */
.hp-comment__inner {
	display: flex;
	gap: 1rem;
	background: #f8faff;
	border: 1.5px solid #e2e8f0;
	border-radius: 14px;
	padding: 1.35rem;
	transition: border-color .2s;
}

.hp-comment__inner:hover { border-color: #bfdbfe; }

/* Avatar */
.hp-comment__avatar-wrap { flex-shrink: 0; }

.hp-comment__avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	border: 2px solid #e2e8f0;
}

/* Contenido */
.hp-comment__content { flex: 1; min-width: 0; }

.hp-comment__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: .75rem;
	flex-wrap: wrap;
}

.hp-comment__meta {
	display: flex;
	align-items: center;
	gap: .5rem;
	flex-wrap: wrap;
}

.hp-comment__author {
	font-weight: 700;
	font-size: .9rem;
	color: #0f172a;
	text-decoration: none;
}

.hp-comment__author:hover { color: #3b82f6; }

.hp-comment__date {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: .75rem;
	color: #94a3b8;
}

.hp-comment__pending {
	font-size: .72rem;
	font-weight: 600;
	color: #f59e0b;
	background: rgba(245,158,11,.1);
	border-radius: 99px;
	padding: .2rem .65rem;
}

/* Acciones */
.hp-comment__actions { display: flex; align-items: center; gap: .5rem; }

.hp-comment__reply a,
.hp-comment__reply {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: .78rem;
	font-weight: 600;
	color: #64748b;
	text-decoration: none;
	padding: .3rem .75rem;
	border: 1.5px solid #e2e8f0;
	border-radius: 99px;
	transition: background .2s, border-color .2s, color .2s;
}

.hp-comment__reply a:hover {
	background: #eff6ff;
	border-color: #93c5fd;
	color: #3b82f6;
}

.hp-comment__edit {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: .75rem;
	color: #94a3b8;
	text-decoration: none;
}

.hp-comment__edit:hover { color: #3b82f6; }

/* Texto */
.hp-comment__text p {
	font-size: .9rem;
	color: #334155;
	line-height: 1.7;
	margin: 0 0 .5rem;
}

.hp-comment__text p:last-child { margin-bottom: 0; }

.hp-comment__pingback {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: .85rem;
	color: #64748b;
	font-style: italic;
	margin: 0;
}

/* ── Paginación ─────────────────────────────────────────────────── */
.hp-comments__nav,
.comment-navigation {
	display: flex;
	justify-content: space-between;
	margin-bottom: 2rem;
	font-size: .875rem;
	font-weight: 600;
}

.hp-comments__nav a,
.comment-navigation a {
	color: #3b82f6;
	text-decoration: none;
	padding: .5rem 1rem;
	border: 1.5px solid #dbeafe;
	border-radius: 99px;
	transition: background .2s;
}

.hp-comments__nav a:hover,
.comment-navigation a:hover { background: #eff6ff; }

/* Sin comentarios */
.hp-comments__closed {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: .875rem;
	color: #94a3b8;
	background: #f1f5f9;
	border-radius: 10px;
	padding: .85rem 1.1rem;
	margin-bottom: 1.5rem;
}

/* ── Formulario ─────────────────────────────────────────────────── */
.hp-comments__form-wrap {
	background: #fff;
	border: 1.5px solid #e2e8f0;
	border-radius: 16px;
	padding: 2rem;
	margin-top: 2.5rem;
}

.hp-comments__form-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
}

.hp-comments__form-title-wrap {
	display: flex;
	align-items: center;
	gap: .65rem;
}

.hp-comments__form-title-wrap svg { color: #3b82f6; }

.hp-comments__form-title {
	font-family: var(--hp-font-heading);
	font-size: 1.15rem;
	font-weight: 800;
	color: #0f172a;
	margin: 0;
}

/* Cancelar respuesta */
#cancel-comment-reply-link {
	font-size: .78rem;
	color: #ef4444;
	text-decoration: none;
	padding: .3rem .85rem;
	border: 1.5px solid #fca5a5;
	border-radius: 99px;
	transition: background .2s;
}

#cancel-comment-reply-link:hover { background: #fef2f2; }

/* Usuario logueado */
.hp-comments__logged-in {
	display: flex;
	align-items: center;
	gap: .5rem;
	font-size: .85rem;
	color: #64748b;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 10px;
	padding: .65rem 1rem;
	margin-bottom: 1.25rem;
}

.hp-comments__user-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
}

.hp-comments__logged-in a { color: #16a34a; font-weight: 600; }

/* Filas del formulario */
.hp-comments__form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 1rem;
}

.hp-comments__form-field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.hp-comments__form-field:last-child { margin-bottom: 0; }

.hp-comments__label {
	font-size: .82rem;
	font-weight: 700;
	color: #374151;
	display: flex;
	align-items: center;
	gap: .3rem;
}

.hp-comments__required { color: #ef4444; font-size: .85em; }

/* Input con ícono */
.hp-comments__input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.hp-comments__input-wrap svg {
	position: absolute;
	left: .85rem;
	color: #94a3b8;
	pointer-events: none;
	flex-shrink: 0;
}

.hp-comments__input {
	width: 100%;
	padding: .7rem .85rem .7rem 2.5rem;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	font-size: .875rem;
	color: #0f172a;
	font-family: inherit;
	transition: border-color .2s, box-shadow .2s;
	background: #fff;
	box-sizing: border-box;
}

.hp-comments__input:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59,130,246,.1);
	outline: none;
}

.hp-comments__textarea {
	width: 100%;
	padding: .85rem 1rem;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	font-size: .875rem;
	color: #0f172a;
	font-family: inherit;
	resize: vertical;
	min-height: 140px;
	transition: border-color .2s, box-shadow .2s;
	background: #fff;
	box-sizing: border-box;
	line-height: 1.6;
}

.hp-comments__textarea:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59,130,246,.1);
	outline: none;
}

.hp-comments__field-note {
	font-size: .72rem;
	color: #94a3b8;
	margin: .2rem 0 0;
}

/* Checkbox */
.hp-comments__save-label {
	display: flex;
	align-items: flex-start;
	gap: .65rem;
	font-size: .82rem;
	color: #64748b;
	cursor: pointer;
	margin-bottom: 1.25rem;
	line-height: 1.5;
}

.hp-comments__checkbox {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	margin-top: 2px;
	accent-color: #3b82f6;
	cursor: pointer;
}

/* Submit */
.hp-comments__submit-wrap { margin-top: 1.25rem; }

.hp-comments__submit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #3b82f6;
	color: #fff;
	font-size: .95rem;
	font-weight: 700;
	font-family: inherit;
	border: none;
	border-radius: 12px;
	padding: .85rem 1.75rem;
	cursor: pointer;
	transition: background .2s, transform .15s, box-shadow .2s;
	box-shadow: 0 4px 14px rgba(59,130,246,.35);
}

.hp-comments__submit:hover {
	background: #1d4ed8;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(59,130,246,.4);
}

.hp-comments__submit:active { transform: translateY(0); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
	.hp-comments__form-row  { grid-template-columns: 1fr; }
	.hp-comments__form-wrap { padding: 1.5rem 1.1rem; }
	.hp-comment__inner      { flex-direction: column; gap: .75rem; }
	.hp-comments__list .children { margin-left: 1rem; padding-left: 1rem; }
}