
/* =========================================================
   GALAPAGOS POINT TRAVEL
   Blog y detalle de artículos
   Encabezado, navegación, WhatsApp y footer: style.css
   ========================================================= */

.blog-page {
    --blog-ink: #0b2545;
    --blog-blue: #134074;
    --blog-teal: #00897b;
    --blog-text: #334155;
    --blog-muted: #64748b;
    --blog-border: #e2e8f0;
    --blog-surface: #ffffff;
    --blog-background: #f8fafc;

    margin: 0;
    background: var(--blog-background);
    color: var(--blog-text);
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

.blog-page *,
.blog-page *::before,
.blog-page *::after {
    box-sizing: border-box;
}

.blog-page img {
    display: block;
    max-width: 100%;
}

.blog-page a {
    color: inherit;
}

.blog-page button,
.blog-page input {
    font: inherit;
}

.blog-page a:focus-visible,
.blog-page button:focus-visible {
    outline: 3px solid #14b8a6;
    outline-offset: 4px;
}

.blog-page header {
    padding: 14px clamp(18px, 4vw, 56px);
}

.blog-page header nav ul {
    margin: 0;
    padding: 0;
}

.blog-page header nav ul li {
    list-style: none;
}

.blog-page .logo-container {
    flex-shrink: 0;
}

.blog-page .logo-container h1 {
    line-height: 1.2;
}

.blog-page .blog-nav-active {
    color: var(--blog-teal);
    font-weight: 800;
}

.blog-page .language-selector {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.blog-page .language-selector a {
    text-decoration: none;
}

.blog-page .language-selector a.active {
    color: var(--blog-teal);
    font-weight: 800;
}

/* =========================================================
   HERO DEL BLOG
   ========================================================= */

.blog-hero {
    position: relative;
    isolation: isolate;
    min-height: 390px;
    display: flex;
    align-items: center;
    padding: clamp(64px, 8vw, 100px) 24px;
    overflow: hidden;
    color: #fff;
    background-color: var(--blog-ink);
    background-image:
        linear-gradient(
            100deg,
            rgba(11, 37, 69, .94) 0%,
            rgba(11, 37, 69, .78) 48%,
            rgba(11, 37, 69, .28) 100%
        ),
        url('../img/hero-galapagos.jpg');
    background-size: cover;
    background-position: center 48%;
}

.blog-hero-content {
    position: relative;
    width: min(1120px, 100%);
    margin: 0 auto;
}

.blog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--blog-teal);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .15em;
    line-height: 1.5;
    text-transform: uppercase;
}

.blog-eyebrow::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 2px;
    background: currentColor;
}

.blog-hero .blog-eyebrow {
    color: #a7f3e8;
}

.blog-hero h2 {
    max-width: 820px;
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(2.5rem, 5.6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.blog-hero-content > p:last-child {
    max-width: 680px;
    margin: 0;
    color: #e2e8f0;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.8;
}

/* =========================================================
   LISTADO DE ARTÍCULOS
   ========================================================= */

.blog-listing.container {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: clamp(48px, 7vw, 82px) 24px;
}

.blog-intro {
    max-width: 760px;
    margin: 0 0 36px;
}

.blog-intro h2 {
    margin: 0 0 14px;
    color: var(--blog-ink);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.blog-intro > p:last-child {
    margin: 0;
    color: var(--blog-muted);
    font-size: 1.05rem;
}

.blog-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 28px;
}

.blog-list-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--blog-border);
    border-radius: 16px;
    background: var(--blog-surface);
    box-shadow: 0 5px 22px rgba(11, 37, 69, .045);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.blog-list-card:hover {
    transform: translateY(-5px);
    border-color: #cbdedb;
    box-shadow: 0 18px 36px rgba(11, 37, 69, .11);
}

.blog-card-image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #e2e8f0;
    text-decoration: none;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.blog-list-card:hover .blog-card-image img {
    transform: scale(1.055);
}

.blog-no-image {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 200px;
    place-items: center;
    padding: 20px;
    background:
        radial-gradient(circle at 85% 15%, rgba(255,255,255,.18), transparent 35%),
        linear-gradient(135deg, var(--blog-ink), var(--blog-teal));
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    text-align: center;
}

.blog-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px;
}

.blog-card-body time,
.blog-article-heading time {
    color: var(--blog-muted);
    font-size: .83rem;
    font-weight: 600;
    letter-spacing: .015em;
}

.blog-card-body h3 {
    margin: 12px 0 12px;
    color: var(--blog-ink);
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}

.blog-card-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.blog-card-body h3 a:hover {
    color: var(--blog-teal);
}

.blog-card-body > p {
    flex: 1;
    margin: 0 0 22px;
    color: #526273;
    font-size: .96rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.blog-read-more,
.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--blog-teal) !important;
    font-size: .94rem;
    font-weight: 800;
    text-decoration: none;
}

.blog-read-more::after {
    content: "→";
    transition: transform .2s ease;
}

.blog-read-more:hover::after {
    transform: translateX(4px);
}

.blog-read-more:hover,
.blog-back-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.blog-empty {
    padding: clamp(28px, 5vw, 48px);
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #fff;
}

.blog-empty h3 {
    margin: 0 0 10px;
    color: var(--blog-ink);
    font-size: 1.4rem;
}

.blog-empty p {
    margin: 0;
    color: var(--blog-muted);
}

.blog-empty-message {
    padding: 32px;
    color: var(--blog-muted);
    text-align: center;
}

/* =========================================================
   LLAMADAS A LA ACCIÓN
   ========================================================= */

.blog-contact-cta,
.blog-article-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 38px max(24px, calc((100% - 1152px) / 2));
    background:
        radial-gradient(circle at 90% 10%, rgba(0, 137, 123, .22), transparent 35%),
        var(--blog-ink);
    color: #fff;
}

.blog-contact-cta h2,
.blog-article-cta h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(1.45rem, 2.7vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.blog-contact-cta p,
.blog-article-cta p {
    max-width: 700px;
    margin: 0;
    color: #dbe7f0;
    line-height: 1.75;
}

.blog-contact-cta > a,
.blog-article-cta > a {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--whatsapp-green);
    color: #073b20;
    font-size: .94rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease, filter .2s ease;
}

.blog-contact-cta > a:hover,
.blog-article-cta > a:hover {
    transform: translateY(-2px);
    filter: brightness(.96);
}

/* =========================================================
   DETALLE DEL ARTÍCULO
   ========================================================= */

.blog-article-main {
    width: min(900px, calc(100% - 40px));
    margin: 0 auto;
    padding: 38px 0 72px;
}

.blog-article {
    min-width: 0;
    overflow-wrap: anywhere;
}

.blog-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 0 0 32px;
    color: var(--blog-muted);
    font-size: .88rem;
    line-height: 1.6;
}

.blog-breadcrumb a {
    color: var(--blog-teal);
    font-weight: 700;
    text-decoration: none;
}

.blog-breadcrumb a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-article-heading {
    max-width: 820px;
    margin: 0 auto 34px;
    text-align: center;
}

.blog-article-heading time {
    display: inline-block;
    margin-bottom: 8px;
}

.blog-article-heading h2 {
    margin: 10px 0 0;
    color: var(--blog-ink);
    font-size: clamp(2.1rem, 5vw, 3.65rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.045em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.blog-article-cover {
    width: 100%;
    max-height: 560px;
    margin: 0 auto 38px;
    border: 1px solid rgba(11, 37, 69, .06);
    border-radius: 16px;
    background: #e2e8f0;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 14px 35px rgba(11, 37, 69, .09);
}

.blog-article-content {
    color: #334155;
    font-size: 1.06rem;
    line-height: 1.95;
    overflow-wrap: anywhere;
    white-space: normal;
}

.blog-article-content p {
    margin: 0 0 1.35em;
}

.blog-article-content a {
    color: var(--blog-teal);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-article-content img {
    height: auto;
    margin: 24px auto;
    border-radius: 10px;
}

.blog-article-cta {
    margin-top: 48px;
    padding: clamp(24px, 4vw, 36px);
    border-radius: 16px;
}

.blog-back {
    margin-top: 28px;
}

.blog-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blog-teal);
    font-weight: 800;
    text-decoration: none;
}

.blog-back a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* =========================================================
   ARTÍCULO NO ENCONTRADO
   ========================================================= */

.blog-not-found {
    padding: clamp(48px, 8vw, 90px) 20px;
    text-align: center;
}

.blog-not-found h2 {
    margin: 0 0 12px;
    color: var(--blog-ink);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.2;
}

.blog-not-found p {
    max-width: 580px;
    margin: 0 auto 24px;
    color: var(--blog-muted);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {
    .blog-page header {
        padding: 14px 24px;
    }

    .blog-page header nav ul {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 12px 18px;
    }

    .blog-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .blog-contact-cta,
    .blog-article-cta {
        padding-right: 28px;
        padding-left: 28px;
    }
}

@media (max-width: 760px) {
    .blog-page header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        padding: 14px 20px;
    }

    .blog-page header nav {
        width: 100%;
    }

    .blog-page header nav ul {
        justify-content: flex-start;
        gap: 10px 16px;
    }

    .blog-page .logo-container img {
        height: 40px;
    }

    .blog-page .logo-container h1 {
        font-size: 1.1rem;
    }

    .blog-hero {
        min-height: 320px;
        padding: 58px 22px;
        background-position: center;
    }

    .blog-hero h2 {
        font-size: clamp(2.2rem, 10vw, 3.4rem);
    }

    .blog-listing.container {
        padding: 48px 20px 56px;
    }

    .blog-list-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .blog-card-body {
        padding: 22px;
    }

    .blog-contact-cta,
    .blog-article-cta {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        padding: 30px 22px;
    }

    .blog-contact-cta > a,
    .blog-article-cta > a {
        width: 100%;
    }

    .blog-article-main {
        width: calc(100% - 36px);
        padding: 26px 0 48px;
    }

    .blog-breadcrumb {
        margin-bottom: 24px;
    }

    .blog-article-heading {
        margin-bottom: 26px;
        text-align: left;
    }

    .blog-article-cover {
        margin-bottom: 28px;
        border-radius: 12px;
    }

    .blog-article-content {
        font-size: 1rem;
        line-height: 1.85;
    }
}

@media (max-width: 380px) {
    .blog-page header nav ul {
        gap: 9px 12px;
    }

    .blog-hero h2 {
        font-size: 2rem;
    }

    .blog-card-body {
        padding: 18px;
    }
}

@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;
    }
}
