/**
 * Blog styles — YourBestDev Network
 *
 * Estilos específicos del blog (home, archivos, búsqueda y entradas).
 * Se carga solo en las vistas del blog, después de custom.css.
 * Paleta: dark #070b1d + gradientes azul/cian.
 *
 * @package YourBestDev
 * @since 2.1.0
 */

/* =========================================================
   Base y layout
   ========================================================= */
.ybd-blog {
    background-color: #070b1d;
    min-height: 60vh;
}

.ybd-blog-layout {
    padding-top: 3rem;
    padding-bottom: 4.5rem;
}

.ybd-blog-layout__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.ybd-blog-layout__main {
    min-width: 0;
}

.ybd-blog-sidebar {
    position: relative;
}

.ybd-blog-sidebar__inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .ybd-blog-layout {
        padding-top: 3.5rem;
        padding-bottom: 5.5rem;
    }

    .ybd-blog-layout__grid {
        grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
        gap: 3rem;
    }

    .ybd-blog-sidebar {
        position: sticky;
        top: 6.5rem;
        align-self: start;
    }
}

/* =========================================================
   Hero del blog
   ========================================================= */
.ybd-blog-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 4.25rem 0 3.75rem;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(91, 91, 247, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 20%, rgba(34, 211, 238, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #080d22 0%, #070b1d 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ybd-blog-hero--compact {
    padding: 2.5rem 0 2.5rem;
}

.ybd-blog-hero__grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(91, 91, 247, 0.065) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91, 91, 247, 0.065) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse at 30% 20%, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse at 30% 20%, #000 0%, transparent 72%);
}

.ybd-blog-hero__glow {
    position: absolute;
    z-index: 0;
    display: block;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
}

.ybd-blog-hero__glow--primary {
    top: -16rem;
    left: -8rem;
    width: 34rem;
    height: 34rem;
    background: rgba(91, 91, 247, 0.28);
}

.ybd-blog-hero__glow--cyan {
    top: -12rem;
    right: -10rem;
    width: 30rem;
    height: 30rem;
    background: rgba(34, 211, 238, 0.13);
}

.ybd-blog-hero .container {
    position: relative;
    z-index: 1;
}

.ybd-blog-hero__content {
    max-width: 52rem;
}

.ybd-blog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.25rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.06);
    color: #a5f3fc;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.ybd-blog-eyebrow i {
    color: #22d3ee;
    font-size: 0.78rem;
}

.ybd-blog-eyebrow__dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.9);
}

.ybd-blog-hero__title {
    margin: 0 0 1.15rem;
    color: #fff;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(2.9rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.ybd-blog-hero__title--archive {
    font-size: clamp(2rem, 4.4vw, 3.25rem);
    line-height: 1.08;
}

/* Si el H1 usa .text-gradient, conservamos el degradado del tema. */
.ybd-blog-hero__title.text-gradient {
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.ybd-blog-hero__lead {
    max-width: 44rem;
    margin: 0 0 1.5rem;
    color: #9aa3c2;
    font-size: 1.05rem;
    line-height: 1.8;
}

.ybd-blog-hero--compact .ybd-blog-hero__lead {
    margin-bottom: 1.25rem;
    font-size: 0.98rem;
}

.ybd-blog-hero__lead--rich p {
    margin: 0 0 0.75rem;
}

.ybd-blog-hero__lead--rich p:last-child {
    margin-bottom: 0;
}

.ybd-blog-hero__lead a {
    color: #67e8f9;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ybd-blog-hero__categories {
    margin-top: 1.5rem;
}

.ybd-blog-hero__categories-label {
    display: block;
    margin-bottom: 0.65rem;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.ybd-blog-hero__stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0 0;
    color: #64748b;
    font-size: 0.83rem;
}

.ybd-blog-hero__stats i {
    color: #22d3ee;
}

.ybd-blog-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.35rem;
}

.ybd-blog-hero__count {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #94a3b8;
    font-size: 0.84rem;
}

.ybd-blog-hero__count i {
    color: #22d3ee;
}

/* =========================================================
   Chips
   ========================================================= */
.ybd-blog-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.ybd-blog-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.06);
    color: #bae6fd;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ybd-blog-chip i {
    color: #22d3ee;
    font-size: 0.72rem;
}

.ybd-blog-chip:hover {
    border-color: rgba(34, 211, 238, 0.55);
    background: rgba(34, 211, 238, 0.14);
    color: #fff;
    transform: translateY(-1px);
}

.ybd-blog-chip--sm {
    padding: 0.3rem 0.7rem;
    font-size: 0.72rem;
}

.ybd-blog-chip--active {
    border-color: rgba(34, 211, 238, 0.42);
    background: linear-gradient(135deg, rgba(91, 91, 247, 0.22), rgba(34, 211, 238, 0.16));
    color: #e0f2fe;
}

.ybd-blog-chip__count {
    padding: 0.08rem 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 0.68rem;
    font-weight: 600;
}

/* =========================================================
   Breadcrumbs
   ========================================================= */
.ybd-blog-breadcrumbs {
    position: relative;
    z-index: 2;
    margin-bottom: 1.75rem;
    color: #8b95b5;
    font-size: 0.8rem;
}

.ybd-blog-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ybd-blog-breadcrumbs li {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.ybd-blog-breadcrumbs a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ybd-blog-breadcrumbs a:hover {
    color: #22d3ee;
}

.ybd-blog-breadcrumbs [aria-current='page'] {
    color: #f1f5f9;
    font-weight: 600;
}

.ybd-blog-breadcrumbs__sep {
    color: #475569;
    font-size: 0.55rem;
}

/* =========================================================
   Encabezado de sección
   ========================================================= */
.ybd-blog-section-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.75rem 0 1.5rem;
}

.ybd-blog-section-head__title {
    margin: 0;
    color: #fff;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.ybd-blog-section-head__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.45), rgba(34, 211, 238, 0));
}

.ybd-blog-related .ybd-blog-section-head {
    margin-top: 0;
}

/* =========================================================
   Grid y tarjetas
   ========================================================= */
.ybd-blog-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
}

@media (min-width: 768px) {
    .ybd-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .ybd-blog-grid--related {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.ybd-blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.ybd-blog-card > * {
    position: relative;
    z-index: 1;
}

.ybd-blog-card__media {
    display: block;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-decoration: none;
}

.ybd-blog-card__media .ybd-blog-thumb__media,
.ybd-blog-card__media .ybd-blog-thumb__placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 170px;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.ybd-blog-card:hover .ybd-blog-card__media .ybd-blog-thumb__media,
.ybd-blog-card:hover .ybd-blog-card__media .ybd-blog-thumb__placeholder {
    transform: scale(1.045);
}

.ybd-blog-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.5rem;
}

.ybd-blog-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.ybd-blog-card__reading {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #64748b;
    font-size: 0.72rem;
    white-space: nowrap;
}

.ybd-blog-card__reading i {
    color: #22d3ee;
}

.ybd-blog-card__title {
    margin: 0 0 0.65rem;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.36;
    letter-spacing: -0.015em;
}

.ybd-blog-card__title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ybd-blog-card__title a:hover {
    color: #67e8f9;
}

.ybd-blog-card__excerpt {
    display: -webkit-box;
    flex: 1;
    margin: 0 0 1.25rem;
    overflow: hidden;
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ybd-blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ybd-blog-card__footer time {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #64748b;
    font-size: 0.73rem;
}

.ybd-blog-card__footer time i {
    color: #22d3ee;
}

.ybd-blog-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #67e8f9;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, gap 0.2s ease;
}

.ybd-blog-card__cta i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.ybd-blog-card__cta:hover {
    color: #fff;
    gap: 0.6rem;
}

/* =========================================================
   Placeholder de imagen
   ========================================================= */
.ybd-blog-thumb__placeholder {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 25% 20%, rgba(91, 91, 247, 0.4) 0%, transparent 55%),
        radial-gradient(circle at 80% 85%, rgba(34, 211, 238, 0.2) 0%, transparent 55%),
        linear-gradient(135deg, #0d1430 0%, #101a3f 48%, #0a2836 100%);
    color: rgba(255, 255, 255, 0.78);
}

.ybd-blog-thumb__placeholder::after {
    content: '';
    position: absolute;
    right: -12%;
    bottom: -35%;
    width: 55%;
    height: 75%;
    border: 1px solid rgba(34, 211, 238, 0.16);
    border-radius: 50%;
    pointer-events: none;
}

.ybd-blog-thumb__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 78%);
    mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 78%);
    pointer-events: none;
}

.ybd-blog-thumb__placeholder > i {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.1);
    color: #22d3ee;
    font-size: 1.05rem;
    box-shadow: 0 0 26px -8px rgba(34, 211, 238, 0.65);
}

.ybd-blog-thumb__label {
    position: relative;
    z-index: 1;
    max-width: 80%;
    overflow: hidden;
    color: #94a3b8;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.ybd-blog-thumb__media {
    display: block;
    max-width: 100%;
    height: auto;
}

/* =========================================================
   Entrada destacada
   ========================================================= */
.ybd-blog-featured {
    overflow: hidden;
    padding: 0;
}

.ybd-blog-featured > * {
    position: relative;
    z-index: 1;
}

.ybd-blog-featured__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
    .ybd-blog-featured__grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    }
}

.ybd-blog-featured__media {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 240px;
    aspect-ratio: 16 / 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-decoration: none;
}

@media (min-width: 768px) {
    .ybd-blog-featured__media {
        height: 100%;
        aspect-ratio: auto;
        border-right: 1px solid rgba(255, 255, 255, 0.07);
        border-bottom: 0;
    }
}

.ybd-blog-featured__media .ybd-blog-thumb__media,
.ybd-blog-featured__media .ybd-blog-thumb__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.ybd-blog-featured:hover .ybd-blog-featured__media .ybd-blog-thumb__media,
.ybd-blog-featured:hover .ybd-blog-featured__media .ybd-blog-thumb__placeholder {
    transform: scale(1.04);
}

.ybd-blog-featured__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(34, 211, 238, 0.38);
    border-radius: 999px;
    background: rgba(7, 11, 29, 0.82);
    color: #a5f3fc;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.ybd-blog-featured__badge i {
    color: #22d3ee;
}

.ybd-blog-featured__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.6rem;
}

@media (min-width: 768px) {
    .ybd-blog-featured__body {
        padding: 2.25rem;
    }
}

.ybd-blog-featured__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.ybd-blog-featured__title {
    margin: 0 0 1rem;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.025em;
}

.ybd-blog-featured__title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ybd-blog-featured__title a:hover {
    color: #67e8f9;
}

.ybd-blog-featured .ybd-blog-meta {
    margin-bottom: 1rem;
}

.ybd-blog-featured__excerpt {
    display: -webkit-box;
    margin: 0 0 1.5rem;
    overflow: hidden;
    color: #94a3b8;
    font-size: 0.93rem;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ybd-blog-featured__cta {
    align-self: flex-start;
    padding: 0.8rem 1.35rem;
    font-size: 0.88rem;
}

/* =========================================================
   Meta de entrada
   ========================================================= */
.ybd-blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1.15rem;
    color: #8b95b5;
    font-size: 0.8rem;
}

.ybd-blog-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.ybd-blog-meta__item i {
    color: #22d3ee;
    font-size: 0.8rem;
}

.ybd-blog-meta__item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ybd-blog-meta__item a:hover {
    color: #67e8f9;
}

/* =========================================================
   Buscador del blog
   ========================================================= */
.ybd-blog-search {
    width: 100%;
}

.ybd-blog-search__field {
    display: flex;
    align-items: center;
    padding: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.85rem;
    background: rgba(7, 11, 29, 0.65);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ybd-blog-search__field:focus-within {
    border-color: rgba(34, 211, 238, 0.65);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.ybd-blog-search__field input[type='search'] {
    flex: 1;
    min-width: 0;
    padding: 0.68rem 0.85rem;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    appearance: none;
}

.ybd-blog-search__field input[type='search']::placeholder {
    color: #64748b;
}

.ybd-blog-search__field button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 2.65rem;
    height: 2.65rem;
    padding: 0 0.9rem;
    border: 0;
    border-radius: 0.62rem;
    background: linear-gradient(135deg, #5b5bf7 0%, #22d3ee 130%);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.ybd-blog-search__field button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.ybd-blog-search--hero {
    max-width: 34rem;
    margin-top: 1.75rem;
}

.ybd-blog-search--hero .ybd-blog-search__field {
    padding: 0.4rem;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(7, 11, 29, 0.72);
}

.ybd-blog-search--hero .ybd-blog-search__field input[type='search'] {
    padding: 0.78rem 0.95rem;
    font-size: 0.98rem;
}

.ybd-blog-search--hero .ybd-blog-search__field button {
    min-width: 3.1rem;
    height: 3.1rem;
    padding: 0 1.1rem;
}

@media (max-width: 480px) {
    .ybd-blog-search--hero .ybd-blog-search__field button span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .ybd-blog-search--hero .ybd-blog-search__field button {
        min-width: 2.9rem;
        height: 2.9rem;
        padding: 0;
    }
}

/* =========================================================
   Sidebar / widgets
   ========================================================= */
.ybd-blog-widget {
    padding: 1.5rem;
}

.ybd-blog-widget > * {
    position: relative;
    z-index: 1;
}

.ybd-blog-widget__title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1.15rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ybd-blog-widget__title i {
    color: #22d3ee;
    font-size: 0.88rem;
}

.ybd-blog-cat-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ybd-blog-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.62rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 0.65rem;
    color: #9aa3c2;
    font-size: 0.88rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ybd-blog-cat-link:hover {
    border-color: rgba(34, 211, 238, 0.2);
    background: rgba(34, 211, 238, 0.06);
    color: #fff;
}

.ybd-blog-cat-link.is-active {
    border-color: rgba(34, 211, 238, 0.3);
    background: linear-gradient(135deg, rgba(91, 91, 247, 0.2), rgba(34, 211, 238, 0.1));
    color: #fff;
    font-weight: 600;
}

.ybd-blog-cat-count {
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 600;
}

.ybd-blog-recent {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ybd-blog-recent__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem;
    border-radius: 0.7rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.ybd-blog-recent__item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.ybd-blog-recent__thumb {
    display: block;
    flex: 0 0 3.25rem;
    width: 3.25rem;
    height: 3.25rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.6rem;
}

.ybd-blog-recent__thumb .ybd-blog-thumb__media,
.ybd-blog-recent__thumb .ybd-blog-thumb__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.ybd-blog-recent__thumb .ybd-blog-thumb__placeholder > i {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.7rem;
}

.ybd-blog-recent__thumb .ybd-blog-thumb__label {
    display: none;
}

.ybd-blog-recent__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.ybd-blog-recent__title {
    display: -webkit-box;
    overflow: hidden;
    color: #e2e8f0;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s ease;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ybd-blog-recent__item:hover .ybd-blog-recent__title {
    color: #67e8f9;
}

.ybd-blog-recent__content time {
    color: #64748b;
    font-size: 0.7rem;
}

/* CTA de la sidebar */
.ybd-blog-cta {
    position: relative;
    overflow: hidden;
    padding: 1.75rem;
    border: 1px solid rgba(91, 91, 247, 0.38);
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.16) 0%, transparent 55%),
        linear-gradient(145deg, rgba(91, 91, 247, 0.24), rgba(10, 16, 41, 0.9));
}

.ybd-blog-cta__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 30px 30px;
    -webkit-mask-image: radial-gradient(circle at 80% 20%, #000 0%, transparent 75%);
    mask-image: radial-gradient(circle at 80% 20%, #000 0%, transparent 75%);
    pointer-events: none;
}

.ybd-blog-cta > *:not(.ybd-blog-cta__grid) {
    position: relative;
    z-index: 1;
}

.ybd-blog-cta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    margin-bottom: 0.9rem;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 0.75rem;
    background: rgba(34, 211, 238, 0.1);
    color: #22d3ee;
    font-size: 1rem;
}

.ybd-blog-cta__title {
    margin: 0 0 0.6rem;
    color: #fff;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.35;
}

.ybd-blog-cta__text {
    margin: 0 0 1.2rem;
    color: #b6c0d9;
    font-size: 0.84rem;
    line-height: 1.65;
}

.ybd-blog-cta__button {
    width: 100%;
    padding: 0.8rem 1.2rem;
    font-size: 0.84rem;
}

/* =========================================================
   Paginación
   ========================================================= */
.ybd-blog-pagination {
    margin-top: 2.75rem;
}

.ybd-blog-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.ybd-blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ybd-blog-pagination .page-numbers:hover {
    border-color: rgba(34, 211, 238, 0.4);
    background: rgba(34, 211, 238, 0.1);
    color: #fff;
    transform: translateY(-1px);
}

.ybd-blog-pagination .page-numbers.current {
    border-color: transparent;
    background: linear-gradient(135deg, #5b5bf7 0%, #22d3ee 130%);
    color: #fff;
    box-shadow: 0 10px 24px -12px rgba(34, 211, 238, 0.65);
}

.ybd-blog-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: #64748b;
}

.ybd-blog-pagination .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* =========================================================
   Estado vacío
   ========================================================= */
.ybd-blog-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.75rem 1.5rem;
    text-align: center;
}

.ybd-blog-empty > * {
    position: relative;
    z-index: 1;
}

.ybd-blog-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.08);
    color: #22d3ee;
    font-size: 1.4rem;
}

.ybd-blog-empty__title {
    margin: 0 0 0.65rem;
    color: #fff;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.35;
}

.ybd-blog-empty__text {
    max-width: 34rem;
    margin: 0 auto 1.5rem;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.7;
}

.ybd-blog-empty__search {
    max-width: 26rem;
    margin: 0 auto 0.5rem;
}

.ybd-blog-empty__chips {
    justify-content: center;
    margin-bottom: 1rem;
}

.ybd-blog-empty__button {
    margin-top: 0.75rem;
    padding: 0.8rem 1.35rem;
    font-size: 0.88rem;
}

/* =========================================================
   Entrada individual
   ========================================================= */
.ybd-blog-single__container {
    max-width: 54rem;
    margin-inline: auto;
    padding-bottom: 4.5rem;
}

.ybd-blog-single .ybd-blog-breadcrumbs {
    margin-top: 2.5rem;
    margin-bottom: 2rem;
}

.ybd-blog-single__header {
    margin-bottom: 2rem;
}

.ybd-blog-single__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
}

.ybd-blog-single__title {
    margin: 0 0 1.15rem;
    color: #fff;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(2rem, 4.3vw, 3.35rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    overflow-wrap: break-word;
}

.ybd-blog-single__media {
    margin: 2rem 0 2.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    background: #0a1029;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85);
}

.ybd-blog-single__media .ybd-blog-thumb__media,
.ybd-blog-single__media .ybd-blog-thumb__placeholder {
    display: block;
    width: 100%;
    min-height: 220px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.ybd-blog-single__media .ybd-blog-thumb__media {
    max-height: 420px;
    height: auto;
}

.ybd-blog-single__media .ybd-blog-thumb__placeholder {
    height: clamp(220px, 32vw, 340px);
    max-height: 340px;
    aspect-ratio: auto;
}

/* Prose oscuro */
.ybd-blog-prose {
    color: #c3cbe0;
    font-size: 1.04rem;
    line-height: 1.85;
    overflow-wrap: break-word;
}

.ybd-blog-prose > *:first-child {
    margin-top: 0;
}

.ybd-blog-prose h2,
.ybd-blog-prose h3,
.ybd-blog-prose h4,
.ybd-blog-prose h5 {
    color: #fff;
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    text-wrap: balance;
}

.ybd-blog-prose h2 {
    margin: 2.4rem 0 1rem;
    font-size: clamp(1.45rem, 3vw, 1.8rem);
}

.ybd-blog-prose h3 {
    margin: 2rem 0 0.85rem;
    font-size: clamp(1.25rem, 2.4vw, 1.45rem);
}

.ybd-blog-prose h4 {
    margin: 1.75rem 0 0.75rem;
    font-size: 1.12rem;
}

.ybd-blog-prose p {
    margin: 0 0 1.4rem;
}

.ybd-blog-prose a {
    color: #67e8f9;
    text-decoration: underline;
    text-decoration-color: rgba(34, 211, 238, 0.35);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.ybd-blog-prose a:hover {
    color: #fff;
    text-decoration-color: #fff;
}

.ybd-blog-prose strong {
    color: #f8fafc;
    font-weight: 700;
}

.ybd-blog-prose ul,
.ybd-blog-prose ol {
    margin: 0 0 1.4rem;
    padding-left: 1.35rem;
}

.ybd-blog-prose ul {
    list-style: disc;
}

.ybd-blog-prose ol {
    list-style: decimal;
}

.ybd-blog-prose li {
    margin-bottom: 0.45rem;
    padding-left: 0.25rem;
}

.ybd-blog-prose li::marker {
    color: #22d3ee;
}

.ybd-blog-prose blockquote {
    margin: 1.75rem 0;
    padding: 1rem 1.25rem;
    border-left: 3px solid #22d3ee;
    border-radius: 0 0.75rem 0.75rem 0;
    background: rgba(34, 211, 238, 0.06);
    color: #dbeafe;
    font-style: normal;
}

.ybd-blog-prose blockquote p:last-child {
    margin-bottom: 0;
}

.ybd-blog-prose code {
    padding: 0.16rem 0.4rem;
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.08);
    color: #a5f3fc;
    font-size: 0.9em;
}

.ybd-blog-prose pre {
    margin: 1.75rem 0;
    padding: 1.1rem 1.25rem;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.85rem;
    background: #05081a;
}

.ybd-blog-prose pre code {
    padding: 0;
    background: transparent;
    color: #cbd5e1;
    font-size: 0.86rem;
    line-height: 1.7;
}

.ybd-blog-prose img {
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.85rem;
}

.ybd-blog-prose figure {
    margin: 2rem 0;
}

.ybd-blog-prose figcaption {
    margin-top: 0.6rem;
    color: #64748b;
    font-size: 0.8rem;
    text-align: center;
}

.ybd-blog-prose hr {
    margin: 2.25rem 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ybd-blog-prose table {
    width: 100%;
    margin: 1.75rem 0;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.ybd-blog-prose th,
.ybd-blog-prose td {
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.ybd-blog-prose th {
    color: #fff;
    font-weight: 700;
}

.ybd-blog-prose__pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    color: #94a3b8;
    font-size: 0.85rem;
}

.ybd-blog-prose__pages a,
.ybd-blog-prose__pages .post-page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    color: #cbd5e1;
    text-decoration: none;
}

.ybd-blog-prose__pages a:hover {
    border-color: rgba(34, 211, 238, 0.45);
    color: #fff;
}

/* Etiquetas */
.ybd-blog-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ybd-blog-tags__label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ybd-blog-tags__label i {
    color: #22d3ee;
}

.ybd-blog-tags__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Caja de autor */
.ybd-blog-author {
    position: relative;
    display: flex;
    gap: 1.25rem;
    margin-top: 3rem;
    padding: 1.75rem;
    overflow: hidden;
    border: 1px solid rgba(91, 91, 247, 0.28);
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.1) 0%, transparent 55%),
        linear-gradient(135deg, rgba(91, 91, 247, 0.14), rgba(10, 16, 41, 0.9));
}

.ybd-blog-author::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -10%;
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    background: rgba(91, 91, 247, 0.16);
    filter: blur(70px);
    pointer-events: none;
}

.ybd-blog-author__avatar {
    position: relative;
    z-index: 1;
    flex: 0 0 5.5rem;
    width: 5.5rem;
    height: 5.5rem;
    padding: 2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5b5bf7, #22d3ee);
}

.ybd-blog-author__img {
    display: block;
    width: 100%;
    height: 100%;
    border: 2px solid #070b1d;
    border-radius: 50%;
    object-fit: cover;
}

.ybd-blog-author__body {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.ybd-blog-author__kicker {
    display: block;
    margin-bottom: 0.3rem;
    color: #67e8f9;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ybd-blog-author__name {
    margin: 0 0 0.45rem;
    color: #fff;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.ybd-blog-author__name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ybd-blog-author__name a:hover {
    color: #67e8f9;
}

.ybd-blog-author__bio {
    margin: 0 0 0.75rem;
    color: #9aa3c2;
    font-size: 0.88rem;
    line-height: 1.7;
}

.ybd-blog-author__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #67e8f9;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.ybd-blog-author__link:hover {
    gap: 0.6rem;
    color: #fff;
}

/* Relacionados */
.ybd-blog-related {
    margin-top: 3.5rem;
}

/* Navegación anterior / siguiente */
.ybd-blog-postnav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

@media (min-width: 640px) {
    .ybd-blog-postnav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ybd-blog-postnav__link {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    height: 100%;
    padding: 1.25rem 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ybd-blog-postnav__link:hover {
    border-color: rgba(34, 211, 238, 0.35);
    background: rgba(34, 211, 238, 0.05);
    transform: translateY(-2px);
}

.ybd-blog-postnav__link--next {
    text-align: right;
}

.ybd-blog-postnav__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #67e8f9;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ybd-blog-postnav__link--next .ybd-blog-postnav__kicker {
    justify-content: flex-end;
}

.ybd-blog-postnav__title {
    color: #fff;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.45;
}

/* =========================================================
   Comentarios (adaptación a la paleta oscura)
   ========================================================= */
.ybd-blog-comments {
    margin-top: 3rem;
}

.ybd-blog-comments .comments-area {
    margin-top: 0;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    background: linear-gradient(145deg, rgba(20, 28, 64, 0.85), rgba(12, 17, 40, 0.92));
    box-shadow: none;
    color: #c3cbe0;
}

.ybd-blog-comments .comments-title,
.ybd-blog-comments .comment-reply-title {
    margin-bottom: 1.5rem;
    color: #fff;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.ybd-blog-comments .comment-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ybd-blog-comments .comment {
    padding: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
}

.ybd-blog-comments .comment .children {
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none;
}

.ybd-blog-comments .fn,
.ybd-blog-comments .fn a {
    color: #fff;
}

.ybd-blog-comments .comment-metadata,
.ybd-blog-comments .comment-metadata a {
    color: #8b95b5;
}

.ybd-blog-comments .comment-metadata a:hover {
    color: #67e8f9;
}

.ybd-blog-comments .comment-content {
    margin-bottom: 0.75rem;
    color: #c3cbe0;
}

.ybd-blog-comments .comment-content a {
    color: #67e8f9;
}

.ybd-blog-comments .comment-reply-link {
    color: #67e8f9;
}

.ybd-blog-comments .comment-respond {
    margin-top: 2rem;
}

.ybd-blog-comments label {
    color: #cbd5e1;
    font-weight: 600;
}

.ybd-blog-comments input[type='text'],
.ybd-blog-comments input[type='email'],
.ybd-blog-comments input[type='url'],
.ybd-blog-comments textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.65rem;
    background: rgba(7, 11, 29, 0.55);
    color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ybd-blog-comments input[type='text']:focus,
.ybd-blog-comments input[type='email']:focus,
.ybd-blog-comments input[type='url']:focus,
.ybd-blog-comments textarea:focus {
    border-color: rgba(34, 211, 238, 0.65);
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.ybd-blog-comments input[type='checkbox'] {
    width: auto;
    accent-color: #22d3ee;
}

.ybd-blog-comments .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.ybd-blog-comments .comment-form-cookies-consent label {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 400;
}

.ybd-blog-comments .submit,
.ybd-blog-comments input[type='submit'] {
    padding: 0.85rem 1.6rem;
    border: 0;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, #5b5bf7 0%, #22d3ee 130%);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.ybd-blog-comments .submit:hover,
.ybd-blog-comments input[type='submit']:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.ybd-blog-comments .no-comments {
    color: #94a3b8;
}

/* =========================================================
   Accesibilidad y motion
   ========================================================= */
.ybd-blog a:focus-visible,
.ybd-blog button:focus-visible,
.ybd-blog input:focus-visible,
.ybd-blog textarea:focus-visible {
    outline: 2px solid #22d3ee;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .ybd-blog *,
    .ybd-blog *::before,
    .ybd-blog *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================================
   Responsive fino
   ========================================================= */
@media (max-width: 767px) {
    .ybd-blog-hero {
        padding: 3rem 0 2.75rem;
    }

    .ybd-blog-hero--compact {
        padding: 2rem 0 2rem;
    }

    .ybd-blog-hero__lead {
        font-size: 0.98rem;
        line-height: 1.72;
    }

    .ybd-blog-layout {
        padding-top: 2.25rem;
        padding-bottom: 3.5rem;
    }

    .ybd-blog-layout__grid {
        gap: 2rem;
    }

    .ybd-blog-section-head {
        margin-top: 2.25rem;
    }

    .ybd-blog-section-head__title {
        font-size: 1.25rem;
    }

    .ybd-blog-card__body {
        padding: 1.25rem;
    }

    .ybd-blog-single__container {
        padding-bottom: 3.25rem;
    }

    .ybd-blog-single .ybd-blog-breadcrumbs {
        margin-top: 1.75rem;
    }

    .ybd-blog-author {
        flex-direction: column;
        padding: 1.4rem;
    }

    .ybd-blog-author__avatar {
        flex-basis: 4.5rem;
        width: 4.5rem;
        height: 4.5rem;
    }

    .ybd-blog-postnav {
        margin-top: 2.25rem;
    }

    .ybd-blog-comments .comments-area {
        padding: 1.35rem;
    }

    .ybd-blog-empty {
        padding: 2rem 1.15rem;
    }
}
