
/* =========================================================
   BLOG - CAMINO INCA MACHU PICCHU
   Archivo: css/blog.css
   Diseño editorial / Natural aventurero
   Paleta azul, naranja y rojo
   ========================================================= */

.blog-page {
    --blog-primary: #14253d;
    --blog-secondary: #ff9624;
    --blog-accent: #ff9624;
    --blog-beige: #f5f7f9;
    --blog-dark: #14253d;
    --blog-white: #ffffff;
    --blog-muted: #6d7785;
    --blog-light: #f5f7f9;
    --blog-border: #dfe4e8;
    --blog-container: 1200px;

    color: var(--blog-dark);
    overflow-x: hidden;
}

.blog-page *,
.blog-page *::before,
.blog-page *::after {
    box-sizing: border-box;
}

.blog-page img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-container {
    width: min(var(--blog-container), calc(100% - 48px));
    margin-inline: auto;
}

.blog-page section {
    position: relative;
}

.blog-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--blog-secondary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.5px;
    line-height: 1.6;
}


/* =========================================================
   BOTONES
   ========================================================= */

.blog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 54px;
    padding: 0 28px;
    border: 1px solid #f02f36;
    border-radius: 4px;
    background: #f02f36;
    color: var(--blog-white);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all .3s ease;
}

.blog-btn:hover {
    background: #d91f2b;
    border-color: #d91f2b;
    color: var(--blog-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(20, 37, 61, .18);
}


/* =========================================================
   HERO
   ========================================================= */

.blog-hero {
    display: flex;
    align-items: center;
    min-height: 590px;
    padding: 100px 0;
    overflow: hidden;
    isolation: isolate;

    background:
        url("../img/excursiones/camin1.webp")
        center 45% / cover no-repeat;
}

.blog-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;

    background: linear-gradient(
        90deg,
        rgba(20, 37, 61, .91) 0%,
        rgba(20, 37, 61, .72) 45%,
        rgba(20, 37, 61, .12) 100%
    );
}

.blog-hero__content {
    position: relative;
    color: var(--blog-white);
}

.blog-hero .blog-eyebrow {
    color: var(--blog-accent);
}

.blog-hero h1 {
    max-width: 800px;
    margin: 0 0 25px;
    font-size: clamp(43px, 6vw, 74px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -2.5px;
}

.blog-hero h1 span {
    display: block;
    color: var(--blog-accent);
}

.blog-hero__content > p {
    max-width: 580px;
    margin: 0 0 35px;
    color: rgba(255, 255, 255, .88);
    font-size: 16px;
    line-height: 1.9;
}

.blog-hero .blog-btn {
    background: #f02f36;
    border-color: #f02f36;
    color: var(--blog-white);
}

.blog-hero .blog-btn:hover {
    background: #d91f2b;
    border-color: #d91f2b;
}

.blog-hero__label {
    position: absolute;
    right: 5%;
    bottom: 30px;
    color: rgba(255, 255, 255, .8);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
}


/* =========================================================
   INTRODUCCIÓN
   ========================================================= */

.blog-intro {
    padding: 65px 0;
    background: var(--blog-beige);
}

.blog-intro__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.blog-intro h2 {
    max-width: 500px;
    margin: 0;
    color: var(--blog-primary);
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.17;
    letter-spacing: -1.5px;
}

.blog-intro h2 span {
    display: block;
    color: var(--blog-secondary);
}

.blog-intro__inner > p {
    margin: 0;
    color: var(--blog-muted);
    font-size: 15px;
    line-height: 1.9;
}


/* =========================================================
   ENCABEZADOS DE SECCIÓN
   ========================================================= */

.blog-section-heading {
    margin-bottom: 40px;
}

.blog-section-heading h2 {
    margin: 0 0 14px;
    color: var(--blog-dark);
    font-size: clamp(31px, 4vw, 43px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.4px;
}

.blog-section-heading h2 span {
    color: var(--blog-secondary);
}

.blog-section-heading > p {
    max-width: 620px;
    margin: 0;
    color: var(--blog-muted);
    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   ARTÍCULO DESTACADO
   ========================================================= */

.blog-featured {
    padding: 95px 0;
    background: var(--blog-white);
}

.blog-featured__card {
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    min-height: 400px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--blog-light);
}

.blog-featured__image {
    display: block;
    min-height: 400px;
    overflow: hidden;
}

.blog-featured__image img {
    transition: transform .6s ease;
}

.blog-featured__image:hover img {
    transform: scale(1.05);
}

.blog-featured__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 48px;
}

.blog-category {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 3px;
    background: rgba(255, 150, 36, .12);
    color: var(--blog-primary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.blog-featured__content h3 {
    margin: 20px 0 18px;
    color: var(--blog-primary);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    letter-spacing: -1px;
}

.blog-featured__content > p {
    margin: 0 0 22px;
    color: var(--blog-muted);
    font-size: 14px;
    line-height: 1.85;
}

.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    color: var(--blog-muted);
    font-size: 11px;
    font-weight: 600;
}

.blog-read-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--blog-primary);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: color .25s ease;
}

.blog-read-link span {
    transition: transform .3s ease;
}

.blog-read-link:hover {
    color: #f02f36;
}

.blog-read-link:hover span {
    transform: translateX(6px);
}


/* =========================================================
   ARTÍCULOS
   ========================================================= */

.blog-articles {
    padding: 100px 0;
    background: var(--blog-light);
}

.blog-articles .blog-section-heading {
    text-align: center;
}

.blog-articles .blog-section-heading > p {
    margin-inline: auto;
}


/* =========================================================
   BUSCADOR
   ========================================================= */

.blog-search {
    max-width: 650px;
    margin: 0 auto 32px;
}

.blog-search__label {
    display: block;
    margin-bottom: 10px;
    color: var(--blog-dark);
    font-size: 12px;
    font-weight: 800;
}

.blog-search__box {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid var(--blog-border);
    border-radius: 5px;
    background: var(--blog-white);
    transition: border-color .3s ease, box-shadow .3s ease;
}

.blog-search__box:focus-within {
    border-color: var(--blog-secondary);
    box-shadow: 0 0 0 3px rgba(255, 150, 36, .12);
}

.blog-search__box > span {
    color: var(--blog-secondary);
    font-size: 27px;
    line-height: 1;
}

.blog-search__box input {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 14px 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--blog-dark);
    font-family: inherit;
    font-size: 13px;
}

.blog-search__box input::placeholder {
    color: #9ba2a5;
}

.blog-search__box button {
    display: none;
    padding: 5px;
    border: 0;
    background: transparent;
    color: var(--blog-muted);
    cursor: pointer;
    font-size: 22px;
}

.blog-search__box button.is-visible {
    display: block;
}


/* =========================================================
   FILTROS
   ========================================================= */

.blog-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 42px;
}

.blog-filter {
    min-height: 39px;
    padding: 0 17px;
    border: 1px solid var(--blog-border);
    border-radius: 30px;
    background: var(--blog-white);
    color: var(--blog-muted);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
}

.blog-filter:hover {
    border-color: var(--blog-secondary);
    color: var(--blog-primary);
}

.blog-filter.is-active {
    border-color: var(--blog-primary);
    background: var(--blog-primary);
    color: var(--blog-white);
}


/* =========================================================
   CUADRÍCULA DE ARTÍCULOS
   ========================================================= */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 24px;
}

.blog-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(20, 37, 61, .07);
    border-radius: 7px;
    background: var(--blog-white);
    transition: transform .35s ease, box-shadow .35s ease;
}

.blog-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 40px rgba(20, 37, 61, .10);
}

.blog-card.is-hidden {
    display: none;
}

.blog-card__image {
    position: relative;
    display: block;
    height: 225px;
    overflow: hidden;
    background: #dfe4e8;
}

.blog-card__image img {
    transition: transform .6s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.06);
}

.blog-card__tag {
    position: absolute;
    left: 16px;
    bottom: 15px;
    padding: 8px 11px;
    border-radius: 3px;
    background: var(--blog-primary);
    color: var(--blog-white);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.blog-card__content {
    padding: 25px 23px 27px;
}

.blog-card__reading {
    display: block;
    margin-bottom: 13px;
    color: var(--blog-secondary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.blog-card__content h3 {
    min-height: 62px;
    margin: 0 0 13px;
    color: var(--blog-primary);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -.3px;
}

.blog-card__content h3 a {
    color: var(--blog-dark);
    text-decoration: none;
    transition: color .25s ease;
}

.blog-card__content h3 a:hover {
    color: var(--blog-secondary);
}

.blog-card__content > p {
    min-height: 75px;
    margin: 0 0 20px;
    color: var(--blog-muted);
    font-size: 13px;
    line-height: 1.8;
}

.blog-card .blog-read-link {
    padding-top: 15px;
    border-top: 1px solid var(--blog-border);
}


/* =========================================================
   SIN RESULTADOS
   ========================================================= */

.blog-no-results {
    padding: 55px 20px;
    border: 1px dashed var(--blog-border);
    border-radius: 7px;
    background: var(--blog-white);
    text-align: center;
}

.blog-no-results[hidden] {
    display: none;
}

.blog-no-results > span {
    color: var(--blog-secondary);
    font-size: 38px;
}

.blog-no-results h3 {
    margin: 12px 0;
    color: var(--blog-primary);
    font-size: 22px;
}

.blog-no-results p {
    margin: 0;
    color: var(--blog-muted);
    font-size: 14px;
}

.blog-results-count {
    margin: 28px 0 0;
    color: var(--blog-muted);
    font-size: 12px;
    text-align: center;
}


/* =========================================================
   CTA FINAL
   ========================================================= */

.blog-cta {
    padding: 85px 0;
    background: var(--blog-primary);
    color: var(--blog-white);
}

.blog-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.blog-cta .blog-eyebrow {
    color: var(--blog-accent);
}

.blog-cta h2 {
    max-width: 680px;
    margin: 0 0 18px;
    color: var(--blog-white);
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.blog-cta h2 span {
    color: var(--blog-accent);
}

.blog-cta__inner > div > p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, .83);
    font-size: 14px;
    line-height: 1.85;
}

.blog-cta .blog-btn {
    flex-shrink: 0;
    background: #f02f36;
    border-color: #f02f36;
    color: var(--blog-white);
}

.blog-cta .blog-btn:hover {
    background: #d91f2b;
    border-color: #d91f2b;
}


/* =========================================================
   TABLETS
   ========================================================= */

@media (max-width: 950px) {

    .blog-intro__inner {
        gap: 40px;
    }

    .blog-featured__content {
        padding: 35px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .blog-card__content h3 {
        min-height: auto;
    }

    .blog-card__content > p {
        min-height: auto;
    }

    .blog-cta__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 30px;
    }
}


/* =========================================================
   MÓVILES
   ========================================================= */

@media (max-width: 600px) {

    .blog-container {
        width: calc(100% - 36px);
    }

    /* Hero */

    .blog-hero {
        min-height: 560px;
        padding: 85px 0;
        background-position: 58% center;
    }

    .blog-hero__overlay {
        background: linear-gradient(
            90deg,
            rgba(20, 37, 61, .9),
            rgba(20, 37, 61, .58)
        );
    }

    .blog-hero h1 {
        font-size: clamp(39px, 10vw, 50px);
        letter-spacing: -1.5px;
    }

    .blog-hero__content > p {
        font-size: 14px;
    }

    .blog-hero__label {
        right: 18px;
        bottom: 20px;
        font-size: 8px;
        letter-spacing: 2px;
    }

    /* Introducción */

    .blog-intro {
        padding: 55px 0;
    }

    .blog-intro__inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-intro h2 {
        font-size: 33px;
    }

    .blog-intro__inner > p {
        font-size: 14px;
    }

    /* Secciones */

    .blog-section-heading {
        margin-bottom: 30px;
    }

    .blog-section-heading h2 {
        font-size: 32px;
    }

    .blog-section-heading > p {
        font-size: 14px;
    }

    /* Destacado */

    .blog-featured {
        padding: 70px 0;
    }

    .blog-featured__card {
        grid-template-columns: 1fr;
    }

    .blog-featured__image {
        min-height: 250px;
        height: 250px;
    }

    .blog-featured__content {
        padding: 28px 23px 30px;
    }

    .blog-featured__content h3 {
        font-size: 27px;
    }

    /* Artículos */

    .blog-articles {
        padding: 75px 0;
    }

    .blog-search__box {
        min-height: 54px;
        padding: 0 13px;
    }

    .blog-search__box input {
        font-size: 11px;
    }

    .blog-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 4px 0 12px;
        margin-bottom: 28px;
        scrollbar-width: thin;
    }

    .blog-filter {
        flex-shrink: 0;
        padding: 0 15px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .blog-card__image {
        height: 230px;
    }

    .blog-card__content {
        padding: 23px;
    }

    .blog-card__content h3 {
        font-size: 20px;
    }

    /* CTA */

    .blog-cta {
        padding: 65px 0;
    }

    .blog-cta h2 {
        font-size: 35px;
    }

    .blog-cta__inner > div > p {
        font-size: 13px;
    }

    .blog-btn {
        min-height: 50px;
        padding: 0 20px;
        font-size: 12px;
    }
}


/* =========================================================
   MÓVILES PEQUEÑOS
   ========================================================= */

@media (max-width: 380px) {

    .blog-hero h1 {
        font-size: 36px;
    }

    .blog-featured__content h3 {
        font-size: 24px;
    }

    .blog-intro h2,
    .blog-section-heading h2 {
        font-size: 29px;
    }

    .blog-cta h2 {
        font-size: 31px;
    }
}


/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .blog-page *,
    .blog-page *::before,
    .blog-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* =========================================================
   CORRECCIÓN DE SCROLL - ARTÍCULOS DEL BLOG
   ========================================================= */

html {
    height: auto !important;
    min-height: 100%;
    overflow-y: auto !important;
    scroll-behavior: smooth;
}

body.article-page {
    display: block !important;
    position: relative !important;
    height: auto !important;
    min-height: 100vh;
    max-height: none !important;
    overflow-x: hidden;
    overflow-y: auto !important;
    overscroll-behavior-y: auto;
}

body.article-page main,
body.article-page .article-layout,
body.article-page .article-content {
    height: auto !important;
    min-height: 0;
    max-height: none !important;
    overflow: visible !important;
}

/* Evitar que los contenedores del artículo
   limiten la altura del contenido */

body.article-page .article-main,
body.article-page .article-body,
body.article-page .article-wrapper {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

