/*=================================== Hero blog ========================================*/

.neone-blog-hero {
    background: var(--dark);
    padding: 120px 0 90px;
    border-radius: 10px;
}

.neone-blog-hero__etiqueta {
    font-size: .9rem;
    color: var(--white);
    margin-bottom: 16px;
}

.neone-blog-hero__titulo {
    font-family: var(--font-display);
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
}

.neone-blog-hero__acento {
    color: var(--yellow);
}

.neone-blog-hero__parrafo {
    color: rgba(255,255,255,.6);
    line-height: 1.7;
    margin-bottom: 32px;
}

/*--- Buscador ---*/

.neone-blog-search {
    position: relative;
    max-width: 540px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    border: 1px solid var(--yellow);
    border-radius: 100px;
    background: transparent;
    padding: 5px 5px 5px 18px;
    gap: 8px;
}

.neone-blog-search .neone-blog-search__input::placeholder{
    color:var(--white)!important;
}

.neone-blog-search .neone-blog-search__input,
.neone-blog-search .neone-blog-search__input:focus,
.neone-blog-search .neone-blog-search__input:hover {
    width: 100%;
    background: transparent!important;
    border:none;
    border-radius: 100px;
    padding: 14px 60px 14px 26px;
    color: var(--white);
    font-family: var(--font-body);
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
}

.neone-blog-search__btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--yellow);
    color: var(--dark);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
    padding: 0px;
}

.neone-blog-search__btn:hover {
    background: var(--yellow-hover);
}

.neone-search-hero {
    padding-bottom: 60px;
}

@media (max-width: 767px) {
    .neone-blog-hero { padding: 80px 0 56px; }
}

/*=================================== Card ========================================*/

.neone-blog-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--white);
    transition: box-shadow .25s, transform .25s;
}

.neone-blog-card:hover {
    box-shadow: 0 6px 24px -8px rgba(0,0,0,.18);
    transform: translateY(-10px);
    border-color: var(--yellow);
}

.neone-blog-card__img-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
    text-decoration: none;
}

.neone-blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.neone-blog-card:hover .neone-blog-card__img {
    transform: scale(1.04);
}

.neone-blog-card__img--empty {
    background: linear-gradient(135deg, var(--bg-2) 0%, var(--border) 100%);
    width: 100%;
    height: 100%;
}

.neone-blog-card__fecha {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    background: rgba(34,38,42,.85);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 100px;
    font-weight: 500;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.neone-blog-card__body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 10px;
}

.neone-blog-card__titulo {
    font-family: var(--font-display);
    color: var(--dark);
    line-height: 1.25;
    margin: 0;
}

.neone-blog-card__titulo a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.neone-blog-card__titulo a:hover {
    color: var(--yellow);
}

.neone-blog-card__extracto {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.neone-blog-card__leer,
.neone-blog-card__leer:hover,
.neone-blog-card__leer:focus {
    color: var(--yellow);
    text-decoration: none;
    transition: color .2s;
    display: inline-block;
    margin-top: auto;
}

.neone-blog-card__leer:hover {
    color: var(--yellow-hover);
}

/*=================================== Grid / paginado ========================================*/

.neone-blog-grid {
    padding-top: 60px;
    padding-bottom: 60px;
}

.neone-blog-grid .row > div {
    display: flex;
}

.neone-blog-empty {
    color: var(--muted);
    text-align: center;
    padding: 48px 0;
}

.neone-blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.neone-blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: background .2s, color .2s, border-color .2s;
}

.neone-blog-pagination .page-numbers:hover {
    background: var(--dark);
    border-color: var(--dark);
    color: var(--white);
}

.neone-blog-pagination .page-numbers.current {
    background: var(--dark);
    border-color: var(--dark);
    color: var(--white);
}

.neone-blog-pagination .page-numbers.prev,
.neone-blog-pagination .page-numbers.next {
    width: auto;
    padding: 0 14px;
    border-radius: 100px;
}

.neone-blog-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    width: auto;
}

/*=================================== Single post ========================================*/

/* Dark header on single post and 404 pages */
body.single-post header,
body.single-post .ast-primary-header-bar,
body.error404 header,
body.error404 .ast-primary-header-bar {
    background: var(--dark) !important;
    transition: .3s;
}

body.single-post header.active,
body.single-post .active .ast-primary-header-bar,
body.error404 header.active,
body.error404 .active .ast-primary-header-bar {
    background: var(--yellow) !important;
}

body.error404 .ast-builder-menu-1 .menu-item > .menu-link {
    color: rgba(255, 255, 255, .85) !important;
}

body.error404 .ast-builder-menu-1 .menu-item > .menu-link:hover {
    color: var(--yellow) !important;
}


.neone-single {
    padding: 200px 0 48px;
}

.neone-single__volver {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 28px;
    transition: color .2s;
}

.neone-single__volver:hover {
    color: var(--dark);
}

.neone-single__titulo {
    font-family: var(--font-display);
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 24px;
}

/*--- Meta bar ---*/

.neone-single__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.neone-single__meta-info {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.neone-single__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
}

.neone-single__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.neone-single__tag {
    display: inline-block;
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 4px 14px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: background .2s, color .2s, border-color .2s;
}

.neone-single__tag:hover {
    background: var(--dark);
    border-color: var(--dark);
    color: var(--white);
}

/*--- Imagen destacada ---*/

.neone-single__img-wrap {
    margin: 0 0 36px;
}

.neone-single__img {
    width: 100%;
    border-radius: 16px;
    max-height: 500px;
    object-fit: cover;
    display: block;
    height: auto;
    margin: 0 auto;
}

/*--- Contenido ---*/

.neone-single__content {
    color: var(--muted);
    line-height: 1.75;
}

.neone-single__content h2,
.neone-single__content h3,
.neone-single__content h4 {
    font-family: var(--font-body);
    color: var(--dark);
    margin-top: 36px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.neone-single__content p {
    margin-bottom: 20px;
}

.neone-single__content strong,
.neone-single__content b {
    color: var(--dark);
}

.neone-single__content ul,
.neone-single__content ol {
    padding-left: 8px;
    margin-bottom: 20px;
}

.neone-single__content ul {
    list-style: none;
}

.neone-single__content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.neone-single__content ul li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow);
    flex-shrink: 0;
    margin-top: 6px;
    display: inline-block;
    margin-right: 10px;
}

.neone-single__content ol {
    list-style: decimal;
    padding-left: 20px;
}

.neone-single__content ol li {
    margin-bottom: 8px;
}

.neone-single__content a {
    color: var(--yellow);
    text-decoration: underline;
    transition: color .2s;
}

.neone-single__content a:hover {
    color: var(--yellow-hover);
}

.neone-single__content blockquote {
    border-left: 3px solid var(--yellow);
    padding-left: 20px;
    margin: 28px 0;
    color: var(--dark);
    font-style: italic;
}

.neone-single__content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

/*=================================== Post relacionados ========================================*/

.neone-related {
    background: var(--bg);
}

.neone-related__titulo {
    font-family: var(--font-display);
    color: var(--dark);
    margin-bottom: 40px;
}

/*=================================== CTA Final ========================================*/

.neone-cta-final {
    background: var(--dark);
}
