/*
Theme Name: Inca Trail Explorer
Author: Hans Ccarita
Description: Travel Agency Theme - Inca Trail Explorer
Author URI: https://github.com/hanszio
version: 1.1
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: incatrailexplorer
Tags: wordpress theme, travel agency
*/

/* =============================================================
   FRONT-PAGE — Inca Trail Explorer
   CSS nativo con nesting (CSS Nesting Level 1, baseline 2024)
   Nota: nesting válido usa combinadores y pseudo-clases.
   BEM __elements van flat o con selector de espacio "& .child".
   ============================================================= */

/* ── PROMO BAR ─────────────────────────────────────────────── */
.site-promo-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 201;
    background: var(--color-dark);
    transition: transform 300ms cubic-bezier(0.22,1,0.36,1), opacity 300ms;

    & p,
    & .textwidget {
        margin: 0;
        padding: 0.8rem 2.4rem;
        text-align: center;
        font-family: var(--font-sans);
        font-size: 1.3rem;
        font-weight: 500;
        color: rgba(255,255,255,0.9);
        letter-spacing: 0.02em;
    }

    & a {
        color: var(--color-green-vivid);
        font-weight: 700;

        &:hover { text-decoration: underline; }
    }

    .admin-bar & { top: 3.2rem; }
}

.site-promo-bar--hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* ── SITE HEADER: front (landing) vs internal ─────────────── */
/* Portada: nav transparente sobre el hero (is_front_page → site-header--front) */
.site-header--front {
    position: fixed;
    inset: 0 0 auto 0;
    background: transparent;
    box-shadow: none;

    & .site-header__inner {
        padding-top: 2rem;
        padding-bottom: 2rem;
        gap: 3rem;
    }

    & .site-header__logo img {height: 5.4rem;}

    & .site-header__nav a {color: rgba(255,255,255,0.88);font-weight: 500;line-height: normal;}

    & .nav-toggle span { background: #fff; }
}

.site-header--front.site-header--scrolled {
    background: #00000078;
    backdrop-filter: blur(0.5rem);
    -webkit-backdrop-filter: blur(0.5rem);
    box-shadow: 0 0.1rem 0 rgba(32,81,78,0.1);
    backdrop-filter: blur(1.4rem);
    
    
    & .site-header__nav a {/* color: var(--color-text-primary); */}

    & .site-header__logo img { filter: none; }

    & .nav-toggle span {background: var(--color-text-inverse);}
}

/* Páginas internas: vidrio oscuro suave (misma línea que el drawer móvil) */
.site-header--internal {
    background: #00000078;
    backdrop-filter: blur(0.5rem);
    -webkit-backdrop-filter: blur(0.5rem);
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header--internal .site-header__nav a {
    color: rgba(255, 255, 255, 0.92);
}

.site-header--internal .site-header__nav a:hover {
    color: var(--color-green-vivid, #31ff99);
}

.site-header--internal .nav-toggle span {
    background: rgba(255, 255, 255, 0.95);
}

/* Agrupa nav + switch de idioma para que no queden separados */
.site-header__group {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* ── LANG SWITCH (solo banderas, solo desktop) ────────────── */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    /* margin removido: el gap del grupo controla la separación */
}

.lang-switch__item {
    display: inline-flex;
    width: 3.8rem;
    height: 3.3rem;
    border-radius: 9999px;
    overflow: hidden;
    box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.25);
    transition: transform 200ms, border-color 200ms, box-shadow 200ms;
    margin-top: 0.1rem;
}

.lang-switch__item:hover {
    transform: scale(1.08);
    border-color: var(--color-green-vivid, #31ff99);
    box-shadow: 0 0.4rem 1.4rem rgba(49, 255, 153, 0.45);
}

.lang-switch__flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Header interno: borde sutil sobre vidrio oscuro */
.site-header--internal .lang-switch__item {
    border-color: rgba(255, 255, 255, 0.25);
}

/* Oculto cuando aparece el hamburger (≤1200px) */
@media (max-width: 1200px) {
    .lang-switch { display: none; }
}

/* ── LANG MENU (dentro del drawer, solo mobile) ──────────── */
/* Contenedor inyectado vía inctra_wrap_lang_menu_items() */
.lang-menu-wrap { display: none; } /* oculto en desktop por defecto */

/* especificidad extra para ganar al ul column del drawer mobile */
.site-header__nav .lang-menu {
    list-style: none;
    display: flex;
    flex-direction: row;        /* idiomas uno al lado del otro */
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    margin: 0;
    padding: 0;
}

.lang-menu .lang-item { margin: 0; }

.lang-menu .lang-item a {
    display: inline-flex;
    flex-direction: column;     /* bandera arriba, texto abajo */
    align-items: center;
    gap: 0.6rem;
    font-size: 1.4rem;
}

.lang-menu .lang-item img {
    width: 3.8rem;
    height: 3.3rem;
    border-radius: 9999px;
    object-fit: cover;
    box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.25);
    transition: transform 200ms, box-shadow 200ms;
}

.lang-menu .lang-item a:hover img {
    transform: scale(1.08);
    box-shadow: 0 0.4rem 1.4rem rgba(49, 255, 153, 0.45);
}

/* Solo visible dentro del drawer (≤1200px) */
@media (max-width: 1200px) {
    .lang-menu-wrap { display: block; }
}

/* ── LANDING BASE ─────────────────────────────────────────── */
.landing { background: #fff; color: var(--color-text-primary); }

/* ── HERO ─────────────────────────────────────────────────── */
.landing-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding: 14rem 4.8rem 7rem;

    @media (max-width: 768px) { padding: 16rem 2.4rem 3.2rem; }
}

.landing-hero__bg {
    position: absolute;
    inset: 0;
    background: #163835 center/cover no-repeat;
    filter: brightness(0.55);
}

.landing-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
}

.landing-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,50,45,0.45), rgba(10,25,22,0.8));
}

.landing-hero__content {
    position: relative;
    z-index: 1;
    max-width: 100rem;
}

.landing-hero__title {
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(3.1rem, 6.5vw, 8rem);
    font-weight: 400;
    line-height: 0.97;
    letter-spacing: -0.025em;
    margin-bottom: 1.8rem;

    & em { font-style: italic; color: rgba(255,255,255,0.55); }
}

.landing-hero__subtitle {
    color: rgba(255,255,255,0.6);
    font-size: clamp(1.6rem, 1.5vw, 2rem);
    max-width: 100%;
    margin: 0 auto 3.2rem;
    line-height: clamp(2.1rem, 2.5vw, 3rem);
    font-weight: 300;
}

.landing-hero__actions {
    display: flex;
    gap: 1.4rem;
    justify-content: center;
    flex-wrap: wrap;

    @media (max-width: 700px) {
        & .btn { width: 100%; justify-content: center; }
    }
}

.landing-hero__stats {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 86rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 4.8rem;
    display: flex;
    gap: 4.8rem;
    justify-content: center;
    flex-wrap: wrap;

    @media (max-width: 768px) { gap: 2.8rem;margin-top: 3.6rem;padding-top: 3.6rem; }
    @media (max-width: 700px) { gap: 2rem;flex-wrap: nowrap; }
}

.landing-hero__stat { text-align: center; }

.landing-hero__stat-val {
    display: block;
    font-family: var(--font-display);
    font-size: 3.8rem;
    background: var(--color-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;

    @media (max-width: 768px) { font-size: 3rem; }
    @media (max-width: 700px) { font-size: 2.2rem; }
}

.landing-hero__stat-label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: 0.7rem;
}

.landing-eyebrow {
    color: var(--color-green-vivid);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;

    &::before, &::after {
        content: '';
        display: block;
        width: 3.6rem;
        height: 1px;
        background: rgba(49,255,153,0.4);
    }
}

/* ── BUTTONS (home overrides) ─────────────────────────────── */
.home .btn--primary {
    background: var(--color-gradient);
    color: var(--color-dark);
    border: none;
    padding: 1.6rem 3.6rem;
    border-radius: 9999px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    box-shadow: 0 0.8rem 3.2rem rgba(49,255,153,0.4);
    transition: transform 220ms, box-shadow 220ms;

    &:hover {
        transform: scale(1.04) translateY(-0.1rem);
        box-shadow: 0 1.4rem 4.8rem rgba(49,255,153,0.55);
    }
}

.home .btn--ghost {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: 1.5px solid rgba(255,255,255,0.25);
    padding: 1.5rem 3.2rem;
    border-radius: 9999px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: border-color 200ms, color 200ms;

    &:hover { border-color: rgba(255,255,255,0.65); color: #fff; }
}

.btn--outline {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-teal-deep);
    background: #fff;
    border: 1.5px solid var(--color-teal-deep);
    cursor: pointer;
    padding: 1.2rem 2.6rem;
    border-radius: var(--radius-full);
    transition: background 150ms, color 150ms;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    line-height: normal;
    

    &:hover { background: var(--color-teal-deep); color: #fff; }
}

/* ── VALUES ───────────────────────────────────────────────── */
.landing-values {
    background: var(--color-bg-subtle);
    width: 100%;
    padding: var(--space-xl) var(--container-pad);
}

.landing-values__inner {
    max-width: var(--container-max);
    margin-inline: auto;
}

.landing-values__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-top: var(--space-lg);
    box-shadow: var(--shadow-md);

    @media (max-width: 1024px) { grid-template-columns: repeat(2, 1fr); }
    @media (max-width: 700px)  { grid-template-columns: 1fr; }
}

.landing-value-card {
    padding: var(--space-10) var(--space-10) var(--space-8) var(--space-10);
    background: var(--color-white);
    transition: background var(--transition);

    & + & { border-left: 1px solid var(--color-border-subtle); }

    &:hover { background: var(--color-bg-subtle); }

    &:nth-child(3),
    &:nth-child(4) {
        @media (max-width: 1024px) { border-top: 1px solid var(--color-border-subtle); }
    }

    &:nth-child(3) {
        @media (max-width: 1024px) { border-left: none; }
    }

    @media (max-width: 700px) {
        & {border-left: none;border-top: 1px solid var(--color-border-subtle);padding: 2rem 3rem;}
        h3 {margin-top: 0;}
    }
}

.landing-value-card__icon {
    width: 5rem;
    height: 5rem;
    border-radius: 1.4rem;
    background: linear-gradient(135deg, rgba(49,255,153,0.12), rgba(49,167,163,0.10));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-teal-deep);
    margin-bottom: 2.2rem;
}

.landing-value-card__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 2.2rem;
    color: var(--color-text-primary);
    line-height: 1.3;
    margin: 4rem 0 0;
}

.landing-value-card__desc {
    font-size: 1.3rem;
    color: var(--color-text);
    line-height: var(--leading-relaxed);
}

/* ── PHOTO STRIP ──────────────────────────────────────────── */
.landing-photo-strip {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 26rem 26rem;
    gap: 0.4rem;
    overflow: hidden;

    @media (max-width: 1024px) {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 20rem 20rem 20rem;
    }
}

.landing-photo-strip__item {
    overflow: hidden;
    background: #163835;

    & img {
        width: 100%; height: 100%;
        object-fit: cover;
        transition: transform 600ms ease;
    }

    &:hover img { transform: scale(1.05); }
}

.landing-photo-strip__item--tall {
    grid-row: 1 / 3;

    @media (max-width: 1024px) { grid-row: 1 / 2; grid-column: 1 / 3; }
}

.landing-photo-strip__item {
    cursor: pointer;
    position: relative;
}

.landing-photo-strip__item--video {
    background: #0a1914;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-photo-strip__video-icon {
    pointer-events: none;
    transition: transform 300ms;
}

.landing-photo-strip__video-icon--over {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.28);
    transition: background 300ms;
}

.landing-photo-strip__item--video:hover .landing-photo-strip__video-icon--over {
    background: rgba(0,0,0,0.45);
}

.landing-photo-strip__item--video:hover .landing-photo-strip__video-icon:not(.landing-photo-strip__video-icon--over) {
    transform: scale(1.15);
}

.landing-photo-strip__item--more .landing-photo-strip__more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 22, 0.62);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: background 300ms;

    &:hover { background: rgba(10, 25, 22, 0.75); }
}

.landing-photo-strip__more-icon {
    font-size: 3.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.landing-photo-strip__more-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── LIGHTBOX ─────────────────────────────────────────────── */
.inctra-lb {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.94);
    align-items: center;
    justify-content: center;

    &.inctra-lb--open { display: flex; }
}

.inctra-lb__img-wrap {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inctra-lb__img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 48px rgba(0,0,0,0.6);
    display: block;
}

.inctra-lb__close {
    position: absolute;
    top: 1.6rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 3.2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 200ms;
    padding: 0;
    z-index: 1;

    &:hover { opacity: 1; }
}

.inctra-lb__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 3.6rem;
    line-height: 1;
    padding: 0.4rem 1.2rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 200ms;
    z-index: 1;

    &:hover { background: rgba(255,255,255,0.22); }

    &.inctra-lb__nav--prev { left: 1.6rem; }
    &.inctra-lb__nav--next { right: 1.6rem; }

    @media (max-width: 600px) {
        font-size: 2.4rem;
        padding: 0.3rem 0.8rem;
    }
}

.inctra-lb__counter {
    position: absolute;
    bottom: 1.8rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 1.3rem;
    font-family: var(--font-sans);
    letter-spacing: 0.06em;
}

/* ── HOW IT WORKS ─────────────────────────────────────────── */
.landing-process {
    background: var(--color-bg-subtle);
    width: 100%;
    padding: var(--space-xl) var(--container-pad);
}

.landing-process__inner {
    max-width: var(--container-max);
    margin-inline: auto;
}

.landing-process__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 7.2rem;
    flex-wrap: wrap;
    gap: 2.4rem;

    @media (max-width: 1024px) { flex-direction: column; align-items: flex-start; }
}

.landing-process__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);

    @media (max-width: 1024px) { grid-template-columns: 1fr; gap: 4rem; }
}

.landing-step {
    display: flex;
    flex-direction: column;
    /* gap: 1.8rem; */
}

.landing-step__num {
    width: 5.6rem;
    height: 5.6rem;
    border-radius: 50%;
    background: var(--color-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    s
    font-size: 1.7rem;
    color: var(--color-text-inverse);
    box-shadow: 0 0.4rem 2rem rgba(49,255,153,0.4);
    font-size: 2rem;
}

.landing-step__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 2.2rem;
    color: var(--color-text-primary);
    line-height: 1.3;
    margin: 4rem 0 0;
    @media (max-width: 1024px) { margin-top: 1.5rem;}
}

.landing-step__desc {
    /* font-size: 1.3rem; */
    color: var(--color-text);
    line-height: 1.75;
}

/* ── FEATURED TOURS ───────────────────────────────────────── */
.landing-tours__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 5.2rem 0;
    flex-wrap: wrap;
    gap: 2rem;
}

.tour-card--landing {
    width: auto;
    background: #fff;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 0.6rem 2.4rem rgba(0,0,0,0.10);
    transition: transform 300ms ease, box-shadow 300ms ease;

    &:hover {
        transform: translateY(-0.5rem);
        box-shadow: 0 2rem 6rem rgba(32,81,78,0.18);
    }

    & .tour-card__img { transition: transform 500ms ease; }

    &:hover .tour-card__img { transform: scale(1.06); }

    & .tour-card__img-wrap {
        display: block;
        position: relative;
        height: 34rem;
        overflow: hidden;

        @media (max-width: 768px) { height: 28rem; }
    }

    & .tour-card__img {
        width: 100%; height: 100%;
        object-fit: cover;
    }
}

.tour-card__badge {
    position: absolute;
    top: 1.4rem;
    right: 1.4rem;
    background: var(--color-gradient);
    color: var(--color-text-inverse);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    width: fit-content;
}

.tour-card__landing-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 35%, rgba(8,18,14,0.88) 100%);
}

.tour-card__landing-title {
    position: absolute;
    left: 2rem; right: 2rem; bottom: 1.8rem;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.15;
}

.tour-card__landing-strip {
    border-top: 1px solid var(--color-border-subtle);
    padding: 1.6rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.8rem;
    background: #fff;
}

.tour-card__landing-days-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 3.5rem;
}

.tour-card__landing-days-num {
    font-weight: 800;
    font-size: 3.8rem;
    color: var(--color-text-primary);
    line-height: 1;
}

.tour-card__landing-days-lbl {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 0.2rem;
}

.tour-card__landing-divider {
    width: 1px;
    height: 3.6rem;
    background: var(--color-border);
    /* margin: 0 1.4rem; */
    flex-shrink: 0;
}

.tour-card__landing-route {
    font-size: 1.4rem;
    color: var(--color-text);
    line-height: 1.2;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: calc(1.2rem * 1.5 * 2);
}

.tour-card__landing-price {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-left: auto;
    text-align: right;
}

.tour-card__landing-price-from {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1;
}

.tour-card__landing-price-amount {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-teal-deep);
    white-space: nowrap;
    line-height: 1;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
    row-gap: 4rem;
    padding-bottom: 5rem;

    @media (max-width: 1024px) { grid-template-columns: repeat(2, 1fr); }
    @media (max-width: 768px)  { grid-template-columns: 1fr; }
}

/* ── TESTIMONIALS ─────────────────────────────────────────── */
.landing-testimonials {
    background: var(--color-dark);
    color: #fff;
    width: 100%;
    padding: 11.2rem 5.6rem;

    & .container { max-width: var(--container-max); margin-inline: auto; }

    @media (max-width: 768px) { padding: 7.2rem 2.4rem; }
}

.landing-testimonials__header { text-align: center; margin-bottom: 6rem; }

.landing-testimonials__slider {
    position: relative;
    overflow: hidden;
    /* extra space so the wrap-around ghost slide doesn't clip */
    margin-inline: -0.4rem;
    padding-inline: 0.4rem;
}

.landing-testimonials__track {
    display: flex;
    gap: 2rem;
    transition: transform 420ms cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.landing-testimonial {
    flex: 0 0 calc((100% - 4rem) / 3);
    min-width: 0;
    padding: 3.2rem 2.8rem;
    border-radius: 2rem;
    background: var(--color-dark-card);
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 250ms, box-shadow 250ms;

    @media (max-width: 1024px) { flex: 0 0 calc((100% - 2rem) / 2); }
    @media (max-width: 640px)  { flex: 0 0 100%; }

    &:hover {
        border-color: rgba(49,255,153,0.2);
        box-shadow: 0 0.8rem 3.2rem rgba(0,0,0,0.2);
    }

    & p {
        color: rgba(255,255,255,0.65);
        margin-bottom: 0;
        font-size: 1.4rem;
        line-height: 1.8;
        font-style: italic;
    }
}

.landing-testimonials__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    margin-top: 4rem;
}

.landing-testimonials__btn {
    width: 4rem; height: 4rem;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 200ms, border-color 200ms;
    flex-shrink: 0;

    &:hover { background: rgba(28,178,106,0.18); border-color: var(--color-green-vivid); }
    &:disabled { opacity: 0.3; cursor: default; }
}

.landing-testimonials__dots {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.landing-testimonials__dot {
    width: 0.7rem; height: 0.7rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 200ms, transform 200ms;

    &.is-active {
        background: var(--color-green-vivid);
        transform: scale(1.4);
    }
}


.landing-testimonial__stars {
    font-size: 1.3rem;
    color: var(--color-green-vivid);
    margin-bottom: 1.8rem;
}

.landing-testimonial__author {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 2.4rem;
}

.landing-testimonial__avatar {
    width: 4rem; height: 4rem;
    border-radius: 50%;
    background: var(--color-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    color: #0d2220;
    flex-shrink: 0;
}

.landing-testimonial__avatar--photo {
    object-fit: cover;
    background: none;
}

.landing-testimonial__name {
    display: block;
    font-weight: 600;
    font-size: 1.3rem;
    color: #fff;
}

.landing-testimonial__origin {
    display: block;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.35);
    margin-top: 0.2rem;
}

/* ── CTA SECTION ──────────────────────────────────────────── */
.landing-cta {
    position: relative;
    overflow: hidden;
    padding: 12rem 5.6rem;
    text-align: center;

    @media (max-width: 768px) { padding: 8rem 2.4rem; }
}

.landing-cta__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.35) saturate(0.7);
}

.landing-cta__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(32,81,78,0.7), rgba(14,35,30,0.85));
}

.landing-cta__inner {
    position: relative;
    z-index: 1;
    max-width: 68rem;
    margin: 0 auto;
}

.landing-cta__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(3.6rem, 5.5vw, 7.2rem);
    color: #fff;
    line-height: 1.0;
    letter-spacing: -0.025em;
    margin-bottom: 2.2rem;
}

.landing-cta__sub {
    /* font-size: 1.5rem; */
    font-weight: 300;
    color: rgba(255,255,255,0.55);
    line-height: 1.75;
    margin-bottom: 4.4rem;
}

.landing-cta__btns {
    display: flex;
    gap: 1.4rem;
    justify-content: center;
    flex-wrap: wrap;

    @media (max-width: 700px) {
        & .btn { width: 100%; justify-content: center; }
    }
}

/* ── UTILITIES ────────────────────────────────────────────── */
.section__title--inverse { color: #fff; }

/* ── FOOTER — widget sidebar layout ──────────────────────── */

/*
  Estructura esperada en el sidebar "Pie de página":
  Group 1 → logo + bio (columna ancha)
  Group 2 → menús de navegación (3 columnas)
  Group 3 → menús adicionales
  Group 4 → Contacto (menú + párrafos)
  Los Groups son wp-block-group dentro de .site-footer__widgets
*/

.site-footer {
    background: var(--color-dark);
}

/* Override del grid: los Groups como columnas del layout */
.site-footer__widgets {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 5.6rem;
    max-width: var(--container-max);
    margin-inline: auto;
    padding: 7.2rem var(--container-pad) 5.6rem;
    .wp-block-separator {
        border-color: var(--color-teal-deep);
        margin-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    @media (max-width: 1024px) { gap: 4rem; padding: 5.6rem 3.2rem 4rem; }
    @media (max-width: 640px)  { flex-direction: column; gap: 3.2rem; padding: 4.8rem 2.4rem 3.2rem; }
}

/* Grupo 1 (logo + bio) — columna más ancha */
.site-footer__widgets > .footerItem:first-child,
.site-footer__widgets > .wp-block-group:first-child {
    flex: 0 0 22rem;
    min-width: 0;

    @media (max-width: 640px) { flex: 1 1 100%; }
}

/* Grupos internos de menús — distribuyen el espacio restante */
.site-footer__widgets > .footerItem:not(:first-child),
.site-footer__widgets > .wp-block-group:not(:first-child) {
    flex: 1 1 15rem;
    min-width: 14rem;

    @media (max-width: 640px) { flex: 1 1 45%; }
}

/* ── Imagen del logo en footer ── */
.site-footer__widgets .wp-block-image img,
.site-footer__widgets .wp-block-image figure {
    max-width: 15rem;
    height: auto;
    opacity: 0.92;
    margin-bottom: .5rem;
}

/* ── Párrafos de bio / contacto ── */
.site-footer__widgets p,
.site-footer__widgets .wp-block-paragraph {
    /* font-size: 1.3rem; */
    line-height: 1.75;
    color: rgba(255,255,255,0.5);
    margin: 0 0 0.6rem;

    & strong {
        color: var(--color-success);
        font-weight:300;
        margin-left: 1rem;
    }
    & a {
        color: rgba(255,255,255,0.5);
        text-decoration: none;
        transition: color 200ms;

        &:hover { color: var(--color-green-vivid); }
    }
}

/* ── Títulos de sección (heading widget o primer párrafo en bold) ── */
.site-footer__widgets h3,
.site-footer__widgets h4,
.site-footer__widgets .widget-title,
.site-footer__widgets .wp-block-heading {
    font-family: var(--font-sans);
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-green-vivid);
    margin: 0 0 2rem;
}

/* ── Navigation Menu widgets ── */
.site-footer__widgets .wp-block-navigation,
.site-footer__widgets nav.wp-block-navigation {
    --navigation-layout-justification-setting: flex-start;
}

.site-footer__widgets .wp-block-navigation__container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.site-footer__widgets .wp-block-navigation-item a,
.site-footer__widgets .wp-block-navigation-item .wp-block-navigation-item__content {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.55) !important;
    text-decoration: none !important;
    padding: 0 !important;
    transition: color 200ms;

    &:hover { color: rgba(255,255,255,0.9) !important; }
}

/* Legacy widget nav_menu */
.site-footer__widgets .widget_nav_menu .menu {
    list-style: disc;
    list-style-position: inside;   /* viñeta "dentro", alineada al texto */
    padding: 0;
    margin: 0;
    /* sin flex: rompe los marcadores de lista */
}

.site-footer__widgets .widget_nav_menu .menu li {
    display: list-item;            /* asegura el marcador */
    margin-bottom: 1.2rem;         /* separación (antes era gap) */
    line-height: 1.4;
    color: rgba(255,255,255,0.35); /* color de la viñeta */
    /* sangría colgante: la viñeta queda "dentro" y las líneas
       envueltas se alinean con el texto, no bajo la viñeta */
    padding-left: 1.8rem;
    text-indent: -1.8rem;
}

/* El enlace inline para que el texto fluya junto a la viñeta */
.site-footer__widgets .widget_nav_menu .menu li > a {
    display: inline;
}

/* Defensivo: algunos labels de menú traen un <p> pegado (bloque
   párrafo). Si queda como block, tira el texto bajo la viñeta. */
.site-footer__widgets .widget_nav_menu .menu li a p {
    display: inline;
    margin: 0;
    padding: 0;
}

.site-footer__widgets .widget_nav_menu .menu li:last-child {
    margin-bottom: 0;
}

.site-footer__widgets .widget_nav_menu .menu a {
    /* font-size: 1.4rem; */
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 200ms;
    

    &:hover { color: rgba(255,255,255,0.9); }
}

/* Widget title dentro de legacy widget */
.site-footer__widgets .widget_nav_menu .widgettitle,
.site-footer__widgets .widget_nav_menu h3 {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-green-vivid);
    margin: 0 0 2rem;
}

/* ── Iconos de contacto (imágenes inline en párrafo) ── */
.site-footer__widgets .wp-block-paragraph img,
.site-footer__widgets p img {
    width: 1.6rem;
    height: 1.6rem;
    vertical-align: middle;
    margin-right: 0.7rem;
    opacity: 0.7;
    display: inline;
    max-width: none;
}

/* ── Copyright ── */
.site-footer__copyright {
    background: var(--color-dark);
    border-top: 1px solid rgba(255,255,255,0.07);
    text-align: center;
    padding: 2.4rem var(--container-pad);
    font-size: 1.2rem;
    color: rgba(255,255,255,0.3);

    & p { margin: 0; color: inherit; font-size: inherit; }
}

/* ── MODAL BOOKING — design upgrade ─────────────────────────── */
.modal__box {
    background: #fff;
    border-radius: 2rem;
    padding: 4rem 4rem 3.2rem;
    max-width: 56rem;
    box-shadow: 0 2.4rem 8rem rgba(13,26,23,0.18), 0 0.4rem 1.6rem rgba(13,26,23,0.08);
}

.modal__close {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    background: var(--color-gray-xlight);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-text-primary);
    transition: background var(--transition), color var(--transition);

    &:hover {
        background: var(--color-teal-deep);
        color: #fff;
    }
}

.modal__title {
    font-size: var(--text-3xl);
    color: var(--color-text-primary);
    margin-bottom: 0.4rem;
    line-height: var(--leading-tight);
}

.modal__subtitle {
    font-size: var(--text-sm);
    color: var(--color-teal-deep);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--color-border);
}

/* Form field improvements inside modal */
.modal__box .form__label {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--color-text);
}

.modal__box .form__input,
.modal__box .form__textarea,
.modal__box .form__select {
    padding: 1.4rem 1.6rem;
    border-radius: var(--radius-md);
    border-color: var(--color-border);
    background: var(--color-bg-subtle);
    font-size: var(--text-base);
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);

    &:focus {
        border-color: var(--color-teal-deep);
        background: #fff;
        box-shadow: 0 0 0 0.35rem rgba(49,167,163,0.12);
    }
}

.modal__box .form__textarea {
    min-height: 10rem;
}

.modal__box .btn--primary {
    margin-top: var(--space-sm);
    padding: 1.6rem 2.4rem;
    font-size: var(--text-base);
    font-weight: 700;
    letter-spacing: var(--tracking-wide);
    border-radius: var(--radius-full);
}

.modal__box .form__response {
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
}

/* Number input — hide arrows */
.modal__box input[type="number"]::-webkit-inner-spin-button,
.modal__box input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}
.modal__box input[type="number"] { -moz-appearance: textfield; }

/* Scrollbar inside modal */
.modal__box::-webkit-scrollbar { width: 0.5rem; }
.modal__box::-webkit-scrollbar-track { background: transparent; }
.modal__box::-webkit-scrollbar-thumb { background: var(--color-gray-light); border-radius: var(--radius-full); }

/* ==========================================================================
   Tour page — content typography overrides
   ========================================================================== */

/* Section headings (H2): Programa, Inclusiones, Recomendaciones */
.tour-page__content h2.wp-block-heading {
    /* font-family:    var(--font-body, 'Mosk', sans-serif); */
    font-size:      2rem;
    font-weight:    700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color:          var(--color-primary);
    margin-top:     3.2rem;
    /* margin-bottom:  1.2rem; */
    padding-bottom: 0.6rem;
    border-bottom:  2px solid var(--color-primary);
}
.tour-page__content h2.wp-block-heading:first-child {
    margin-top: 0;
}

/* Sub-section headings (H3 non-accordion): Incluye, No Incluye, Recomendaciones para tu viaje */
.tour-page__content h3.wp-block-heading {
    font-family:    var(--font-body, 'Mosk', sans-serif);
    font-size:      1.5rem;
    font-weight:    700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color:          var(--color-primary);
    margin-top: .5rem;
    margin-bottom:  0.8rem;
}

/* Accordion headings (DÍA N: ...) — keep sans but slightly larger + accent line */
.tour-page__content .wp-block-accordion-heading,
.tour-page__content .wp-block-accordion-heading span {
    font-size:   1.55rem;
    font-weight: 700;
    color:       var(--color-primary);
    
}
.tour-page__content .wp-block-accordion-heading {
    padding: var(--space-sm) var(--space-md);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.tour-page__content .wp-block-accordion-panel {
    padding: 1rem .7rem;
}

.wp-block-accordion > div + div{
    margin-top: 1rem;
}
/* Body text in content */
.tour-page__content p {
    font-size:   1.55rem;
    line-height: 1.75;
    color:       var(--color-text);
    margin-bottom: 1.2rem;
}

/* Lists — unify bullet style, fix sub-bullets */
.tour-page__content .wp-block-list {
    padding-left: 2rem;
    margin-bottom: 1.2rem;
}
.tour-page__content .wp-block-list li {
    font-size:     1.55rem;
    line-height:   1.75;
    margin-bottom: 0.5rem;
    list-style-type: disc;
    color: var(--color-text);
}
/* Sub-bullets: force disc instead of circle */
.tour-page__content .wp-block-list li ul li,
.tour-page__content .wp-block-list li ol li {
    list-style-type: disc;
    color: var(--color-text);
}

/* Excerpt / lead paragraph */
.tour-page__content > p:first-of-type {
    font-size:   1.6rem;
    line-height: 1.8;
}

/* ── PÁGINAS / ENTRADAS (page.php, single.php) ─────────────── */
/* padding-top extra: el header es fijo y taparía el inicio del contenido */
.page-content {
    padding-top: 4rem;
    padding-bottom: 5rem;
}
@media (max-width: 700px) { .page-content { padding-top: 8rem; } }

.page-content__thumb {
    margin: 3.2rem 0;
    border-radius: 1rem;
    overflow: hidden;
}
.page-content__thumb img { width: 100%; height: auto; display: block; }

.page-content__body {
    font-size: 1.6rem;
    line-height: 1.85;
    color: var(--color-text);
}
.page-content__body > * + * { margin-top: 1.6rem; }
.page-content__body h2 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-top: 4rem;
    margin-bottom: 1.2rem;
}
.wp-block-separator {
    border-top: 1px solid;
    border-color: var(--color-gray-light);
}

.page-content__body h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 3.2rem;
    margin-bottom: 1rem;
}
.page-content__body a {
    color: var(--color-teal-deep, #1f5d4c);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.page-content__body a:hover { color: var(--color-green-vivid, #31ff99); }
.page-content__body ul,
.page-content__body ol { padding-left: 2.4rem; }
.page-content__body li { margin-bottom: .6rem; }
.page-content__body img { max-width: 100%; height: auto; border-radius: .8rem; }
.page-content__body blockquote {
    border-left: 3px solid var(--color-green-vivid, #31ff99);
    padding-left: 2rem;
    margin: 2.4rem 0;
    font-style: italic;
    color: var(--color-text-muted);
}

/* ════════════════════════════════════════════════════════════
   PÁGINA TOURS (page-tours.php)
   ════════════════════════════════════════════════════════════ */
.tours-page__hero {
    background: var(--color-dark);
    padding: 11rem 0 4.8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.tours-page__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(70rem 40rem at 70% -20%, rgba(49,255,153,.12), transparent 60%);
    pointer-events: none;
}
.tours-page__hero-inner { position: relative; z-index: 1; max-width: 72rem; }
.tours-page__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 4.5vw, 5rem);
    font-weight: 400;
    line-height: 1.05;
    color: #fff;
    margin: .8rem 0 1.4rem;
    letter-spacing: -.02em;
}
.tours-page__subtitle {
    font-size: clamp(1.5rem, 1.6vw, 1.8rem);
    color: rgba(255,255,255,.6);
    font-weight: 300;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 56rem;
}

/* ── Filtro de categorías ── */
.tours-filter {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    padding: 3.2rem 0 2.4rem;
    align-items: center;
}
.tours-filter__btn {
    font-size: 1.25rem;
    font-weight: 600;
    padding: .7rem 1.6rem;
    border-radius: 999px;
    border: 1.5px solid var(--color-border-subtle, #e0e8e5);
    background: #fff;
    color: var(--color-text-muted);
    cursor: pointer;
    text-decoration: none;
    transition: all .15s ease;
    white-space: nowrap;
}
.tours-filter__btn:hover,
.tours-filter__btn.is-active {
    background: var(--color-gradient);
    color: var(--color-dark);
    border-color: transparent;
}

/* ── Grid ── */
.tours-page__grid { padding-bottom: 7rem; }
.tour-card__img-placeholder {
    width: 100%; padding-top: 60%;
    background: var(--color-dark-card, #1a2e26);
    border-radius: .8rem .8rem 0 0;
}
.tours-page__empty {
    text-align: center;
    padding: 5rem 0;
    color: var(--color-text-muted);
    font-size: 1.6rem;
}

/* ════════════════════════════════════════════════════════════
   PÁGINA CONTÁCTANOS (page-contacto.php)
   ════════════════════════════════════════════════════════════ */
.contact-page { background: #fff; }

/* ── Hero ── */
.contact-hero {
    position: relative;
    padding: 14rem 0 6rem;
    background: var(--color-dark);
    overflow: hidden;
    text-align: center;
}
.contact-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60rem 40rem at 80% -10%, rgba(49,255,153,.16), transparent 60%),
        radial-gradient(50rem 36rem at 10% 110%, rgba(49,167,163,.14), transparent 60%),
        var(--color-dark);
}
.contact-hero__inner { position: relative; z-index: 1; max-width: 76rem; }
.contact-hero__eyebrow {
    display: inline-block;
    color: var(--color-green-vivid);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 1.6rem;
}
.contact-hero__title {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 5vw, 5.4rem);
    font-weight: 400;
    line-height: 1.02;
    color: #fff;
    margin: 0 0 1.6rem;
    letter-spacing: -0.02em;
}
.contact-hero__subtitle {
    font-size: clamp(1.5rem, 1.6vw, 1.9rem);
    line-height: 1.7;
    color: rgba(255,255,255,.62);
    margin: 0 auto;
    font-weight: 300;
    max-width: 60rem;
}

/* ── Canales directos ── */
.contact-channels { padding: 5.6rem 0 1rem; }
@media (max-width: 1280px) { .contact-channels {padding-left: 1.5rem; padding-right: 1.5rem; } }
.contact-channels__label { display: block; text-align: center; margin-bottom: 2.8rem; }
.contact-channels__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
}
@media (max-width: 980px) { .contact-channels__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .contact-channels__grid { grid-template-columns: 1fr; } }

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 2.4rem 2rem;
    background: #fff;
    border: 1px solid var(--color-border-subtle, #e6ece9);
    border-radius: 1.4rem;
    box-shadow: 0 1px 2px rgba(13,26,23,.04);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1.4rem 3.6rem -1.2rem rgba(13,26,23,.22);
    border-color: var(--color-green-vivid);
}
.contact-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 1.2rem;
    background: var(--color-gradient);
    color: var(--color-dark);
    margin-bottom: 0.8rem;
    box-shadow: 0 0.6rem 1.8rem -0.4rem rgba(49,255,153,.5);
}
.contact-card--whatsapp .contact-card__icon { background: linear-gradient(135deg,#25d366,#128c7e); color:#fff; }
.contact-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
.contact-card__value {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.3;
    word-break: break-word;
}
.contact-card__desc {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    margin-top: 0.2rem;
}
.contact-card--static { cursor: default; }
.contact-card--static:hover { transform: none; box-shadow: 0 1px 2px rgba(13,26,23,.04); border-color: var(--color-border-subtle, #e6ece9); }

/* ── Formulario ── */
.contact-form-section { padding: 4.8rem 0 8rem; max-width: 82rem; }
.contact-form-section__head { text-align: center; margin-bottom: 3.2rem; }
.contact-form-section__head .section__eyebrow { display: block; margin-bottom: 1rem; }
.contact-form-section__body {
    background: #fff;
    border: 1px solid var(--color-border-subtle, #e6ece9);
    border-radius: 1.8rem;
    padding: 3.6rem;
    box-shadow: 0 2rem 5rem -2rem rgba(13,26,23,.16);
}
@media (max-width: 600px) { .contact-form-section__body { padding: 2.2rem 1.6rem; } }
.contact-form-section__note {
    text-align: center;
    font-size: 1.3rem;
    color: var(--color-text-muted);
    margin: 1.6rem 0 0;
}

/* Form fields dentro de la sección de contacto */
.contact-form-section .form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
}
@media (max-width: 560px) { .contact-form-section .form__row { grid-template-columns: 1fr; } }
.contact-form-section .form__group { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.6rem; }
.contact-form-section .form__label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: 0.02em;
}
.contact-form-section .form__input,
.contact-form-section .form__textarea {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    color: var(--color-text-primary);
    background: var(--color-bg-soft, #f6f9f8);
    border: 1.5px solid var(--color-border-subtle, #e0e8e5);
    border-radius: 0.9rem;
    padding: 1.2rem 1.4rem;
    transition: border-color .15s, box-shadow .15s, background .15s;
    width: 100%;
}
.contact-form-section .form__input:focus,
.contact-form-section .form__textarea:focus {
    outline: none;
    border-color: var(--color-green-vivid);
    background: #fff;
    box-shadow: 0 0 0 0.4rem rgba(49,255,153,.16);
}
.contact-form-section .form__textarea { min-height: 14rem; resize: vertical; line-height: 1.6; }
.contact-form-section .btn--full { width: 100%; margin-top: 0.8rem; }

/* Respuesta del form */
.form__response {
    padding: 1.4rem 1.8rem;
    border-radius: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}
.form__response--ok {
    background: rgba(49,255,153,.12);
    color: #1f7a52;
    border: 1px solid rgba(49,255,153,.4);
}
.form__response--error {
    background: rgba(156,53,53,.08);
    color: #9c3535;
    border: 1px solid rgba(156,53,53,.3);
}

/* ════════════════════════════════════════════════════════════
   BLOG — archive.php / single.php / sidebar.php
   ════════════════════════════════════════════════════════════ */
.blog-page { background: #f8f9f7; min-height: 60vh; }

/* ── Hero ── */
.blog-hero {
    background: var(--color-dark);
    padding: 11rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.blog-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(80rem 50rem at 60% -20%, rgba(49,255,153,.1), transparent 55%);
    pointer-events: none;
}
.blog-hero__inner { position: relative; z-index: 1; }
.blog-hero__eyebrow {
    display: inline-block;
    color: var(--color-green-vivid);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}
.blog-hero__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 4vw, 5rem);
    font-weight: 400;
    letter-spacing: -.02em;
    color: #fff;
    margin: 0 0 1.2rem;
    line-height: 1.05;
}
.blog-hero__subtitle {
    font-size: 1.7rem;
    color: rgba(255,255,255,.55);
    font-weight: 300;
    margin: 0 auto;
    max-width: 52rem;
}

/* ── Layout ── */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 32rem;
    gap: 5.6rem;
    padding-top: 5rem;
    padding-bottom: 8rem;
    align-items: start;
}
@media (max-width: 1100px) { .blog-layout { grid-template-columns: 1fr 28rem; gap: 3.6rem; } }
@media (max-width: 900px)  { .blog-layout { grid-template-columns: 1fr; } }

.blog-main { min-width: 0; }

/* ── Blog card (listado) ── */
.blog-list {display: flex;flex-direction: column;gap: 1.5rem;}
.blog-card {
    display: flex;
    gap: 2.4rem;
    /* padding: 2.8rem 0; */
    border-bottom: 1px solid #dde5e1;
    align-items: stretch;   /* imagen se estira al alto del contenido */
}
.blog-card:first-child { padding-top: 0; }
.blog-card__thumb-wrap {
    flex-shrink: 0;
    width: 26rem;
    /* El alto lo dicta el texto (align-self:stretch).
       La imagen rellena la caja con object-fit:cover sin importar su orientación.
       max-height evita que imágenes muy altas estiren el article. */
    align-self: stretch;
    max-height: 36rem;
    border-radius: 1.2rem;
    overflow: hidden;
    display: block;
}
.blog-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.blog-card__thumb-wrap:hover .blog-card__thumb { transform: scale(1.04); }
.blog-card__content {
    flex: 1;display: flex;flex-direction: column;/* gap: 1rem; */min-width: 0;padding: 2rem 0;
}
@media (max-width: 640px) {
    .blog-card__content { padding: 0 1rem 1rem; }
}
.blog-card__cat {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--color-teal-deep);
    text-decoration: none;
}
.blog-card__title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -.01em;
    margin: 0;
}
.blog-card__title a { color: var(--color-text-primary); text-decoration: none; transition: color .15s; }
.blog-card__title a:hover { color: var(--color-teal-deep); }
.blog-card__excerpt {
    font-size: 1.5rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
.blog-card__meta {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: 1.3rem;
    color: var(--color-text-muted);
    /* margin-top: auto; */
    padding-top: .8rem;
    flex-wrap: wrap;
}
.blog-card__author strong { color: var(--color-text-primary); font-weight: 600; }
.blog-card__sep { opacity: .4; }
.blog-card__cta {
    align-self: flex-start;
    font-size: 1.3rem;
    padding: .6rem 1.6rem;
    margin-top: .6rem;
    border-color: var(--color-teal-deep);
    color: var(--color-teal-deep);
}
.blog-card__cta:hover { background: var(--color-teal-deep); color: #fff; }

@media (max-width: 640px) {
    .blog-card { flex-direction: column; }
    .blog-card__thumb-wrap { width: 100%; height: 22rem; }
}

/* ── Paginación ── */
.blog-pagination {
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    margin-top: 3.2rem;
    padding-top: 2rem;
    border-top: 1px solid #dde5e1;
}
.blog-pagination__btn a,
.blog-pagination__btn--prev a,
.blog-pagination__btn--next a {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border: 1.5px solid #c8d6cf;
    border-radius: 10rem;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all .15s;
}
.blog-pagination__btn a:hover { background: var(--color-teal-deep); color: #fff; border-color: var(--color-teal-deep); }
.blog-pagination__btn--next { margin-left: auto; }
.blog-empty { text-align: center; font-size: 1.6rem; color: var(--color-text-muted); padding: 5rem 0; }

/* ══════════════ SINGLE POST ══════════════ */
.single-post { min-width: 0; }

.single-post__breadcrumb {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.4rem;
    flex-wrap: wrap;
}
.single-post__breadcrumb a { color: var(--color-teal-deep); text-decoration: none; }
.single-post__breadcrumb a:hover { text-decoration: underline; }
.single-post__breadcrumb span:last-child { color: var(--color-text-primary); }

.single-post__top-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.4rem;
}
.single-post__cat {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--color-teal-deep);
    text-decoration: none;
}
.single-post__read {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    background: rgba(49,167,163,.1);
    padding: .3rem .8rem;
    border-radius: 999px;
}

.single-post__title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 4vw, 4.4rem);
    font-weight: 400;
    letter-spacing: -.02em;
    line-height: 1.08;
    color: var(--color-text-primary);
    margin: 0 0 2rem;
}

.single-post__meta {
    display: flex;
    align-items: center;
    gap: .8rem;
    font-size: 1.4rem;
    color: var(--color-text-muted);
    margin-bottom: 2.8rem;
}
.single-post__avatar { border-radius: 50%; width: 3.2rem; height: 3.2rem; object-fit: cover; }
.single-post__author { font-weight: 600; color: var(--color-text-primary); }
.single-post__meta-sep { opacity: .4; }

.single-post__hero-img {
    border-radius: 1.4rem;
    overflow: hidden;
    margin-bottom: 3.2rem;
    max-height: 52rem;
}
.single-post__hero-img-el { width: 100%; height: 100%; object-fit: cover; display: block; }

/* TOC */
.single-post__toc {
    border: 1.5px solid #c8d6cf;
    border-radius: 1.2rem;
    padding: 2rem 2.4rem;
    margin-bottom: 3.2rem;
    background: rgba(49,167,163,.04);
}
.single-post__toc-toggle {
    display: flex;
    align-items: center;
    gap: .8rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 100%;
    text-align: left;
}
.single-post__toc-chevron {
    margin-left: auto;
    transition: transform .25s ease;
}
.single-post__toc-list {
    list-style: decimal;
    margin: 1.4rem 0 0 2rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.single-post__toc-item a {
    font-size: 1.4rem;
    color: var(--color-teal-deep);
    text-decoration: none;
    line-height: 1.5;
}
.single-post__toc-item a:hover { text-decoration: underline; }
.single-post__toc-item--h3 { margin-left: 2rem; list-style-type: lower-alpha; }
.single-post__toc-item--h4 { margin-left: 4rem; list-style-type: disc; }

/* Contenido */
.single-post__body {
    font-size: 1.65rem;
    line-height: 1.85;
    color: var(--color-text-primary);
}
.single-post__body > * + * { margin-top: 1.8rem; }
.single-post__body h2 {
    font-family: var(--font-display);
    font-size: 2.6rem;
    letter-spacing: -.01em;
    line-height: 1.2;
    margin-top: 4rem;
    margin-bottom: 1.2rem;
    scroll-margin-top: 8rem;
}
.single-post__body h3 { font-size: 2rem; font-weight: 700; margin-top: 3.2rem; scroll-margin-top: 8rem; }
.single-post__body h4 { font-size: 1.8rem; font-weight: 600; margin-top: 2.4rem; }
.single-post__body a { color: var(--color-teal-deep); text-decoration: underline; text-underline-offset: 2px; }
.single-post__body ul, .single-post__body ol { padding-left: 2.4rem; }
.single-post__body li { margin-bottom: .6rem; }
.single-post__body img { max-width: 100%; height: auto; border-radius: 1rem; }
.single-post__body blockquote {
    border-left: 3px solid var(--color-green-vivid);
    padding: 1.4rem 2rem;
    background: rgba(49,255,153,.06);
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    color: var(--color-text-muted);
    margin: 2.4rem 0;
}
.single-post__body figure { margin: 2.4rem 0; }
.single-post__body figcaption { text-align: center; font-size: 1.3rem; color: var(--color-text-muted); margin-top: .6rem; }
.single-post__body table { width: 100%; border-collapse: collapse; font-size: 1.5rem; }
.single-post__body th, .single-post__body td { border: 1px solid #dde5e1; padding: 1rem 1.2rem; text-align: left; }
.single-post__body th { background: var(--color-dark-mid, #122920); color: #fff; }
.single-post__body pre { background: var(--color-dark); color: #31ff99; padding: 1.8rem; border-radius: 1rem; overflow-x: auto; font-size: 1.4rem; }

/* Share */
.single-post__share {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin: 3.6rem 0;
    padding: 2rem 2.4rem;
    background: #fff;
    border: 1px solid #dde5e1;
    border-radius: 1.2rem;
    flex-wrap: wrap;
}
.single-post__share-label {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    white-space: nowrap;
}
.single-post__share-icons { display: flex; gap: .8rem; flex-wrap: wrap; }
.single-post__share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.8rem; height: 3.8rem;
    border-radius: 50%;
    background: #f0f4f2;
    color: var(--color-text-primary);
    transition: background .15s, color .15s, transform .12s;
    text-decoration: none;
}
.single-post__share-btn:hover {
    background: var(--color-gradient);
    color: var(--color-dark);
    transform: scale(1.1);
}

/* Prev/Next */
.single-post__nav {
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    margin: 2.4rem 0;
    padding-top: 2rem;
    border-top: 1px solid #dde5e1;
    flex-wrap: wrap;
}
.single-post__nav-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text-primary);
    text-decoration: none;
    padding: .9rem 1.8rem;
    border: 1.5px solid #c8d6cf;
    border-radius: 10rem;
    transition: all .15s;
}
.single-post__nav-btn:hover { background: var(--color-teal-deep); color: #fff; border-color: var(--color-teal-deep); }
.single-post__nav-btn--next { margin-left: auto; }

/* Comentarios */
.single-post__comments { margin-top: 4rem; padding-top: 3.2rem; border-top: 1px solid #dde5e1; }
.comment-list { list-style: none; padding: 0; }
.comment { margin-bottom: 2rem; }
.comment-body { background: #fff; border: 1px solid #dde5e1; border-radius: 1.2rem; padding: 2rem; }
.comment-author { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.comment-author img { border-radius: 50%; }
.comment-author .fn { font-weight: 600; font-size: 1.5rem; }
.comment-metadata { font-size: 1.25rem; color: var(--color-text-muted); }
.comment-metadata a { color: inherit; text-decoration: none; }
.comment-content { font-size: 1.5rem; line-height: 1.7; }
.comment-reply-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 1.3rem;
    color: var(--color-teal-deep);
    text-decoration: none;
    font-weight: 600;
}
.comment-form label { display: block; font-size: 1.3rem; font-weight: 600; margin-bottom: .4rem; }
.comment-form input, .comment-form textarea {
    width: 100%; padding: 1rem 1.2rem;
    border: 1.5px solid #c8d6cf; border-radius: .8rem;
    font-size: 1.5rem; background: #f8f9f7;
    transition: border-color .15s;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--color-teal-deep); }
.comment-form textarea { min-height: 12rem; resize: vertical; }

/* ══════════════ SIDEBAR ══════════════ */
.blog-sidebar { min-width: 0; }
.blog-sidebar__sticky { position: sticky; top: 9rem; display: flex; flex-direction: column; gap: 3.2rem; }
@media (max-width: 900px) { .blog-sidebar__sticky { position: static; } }

.sidebar-widget { display: flex; flex-direction: column; gap: 1.4rem; }
.sidebar-widget__title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-teal-deep);
}

/* Recientes */
.sidebar-recent { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.sidebar-recent__item { border-bottom: 1px solid #dde5e1; }
.sidebar-recent__link {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    padding: 1.2rem 0;
    text-decoration: none;
    transition: color .15s;
}
.sidebar-recent__link:hover .sidebar-recent__text { color: var(--color-teal-deep); }
.sidebar-recent__thumb {
    flex-shrink: 0;
    width: 7rem; height: 5.6rem;
    border-radius: .7rem;
    overflow: hidden;
}
.sidebar-recent__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-recent__text { font-size: 1.4rem; font-weight: 500; color: var(--color-text-primary); line-height: 1.4; }

/* Tours sidebar */
.sidebar-tours { display: flex; flex-direction: column; gap: 1.4rem; }
.sidebar-tour {
    display: flex;
    align-items: stretch;
    gap: 1.2rem;
    background: #fff;
    border: 1px solid #dde5e1;
    border-radius: 1.1rem;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow .15s, transform .12s;
}
.sidebar-tour:hover { box-shadow: 0 6px 20px -4px rgba(13,26,23,.18); transform: translateY(-2px); }
.sidebar-tour__thumb {
    flex-shrink: 0;
    width: 10rem;
    align-self: stretch;
    max-height: 18rem;
}
.sidebar-tour__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sidebar-tour__info { flex: 1; padding: 1rem 1.2rem 1rem 0; display: flex; flex-direction: column; gap: .4rem; justify-content: center; }
.sidebar-tour__title { font-size: 1.35rem; font-weight: 600; color: var(--color-text-primary); line-height: 1.3; }
.sidebar-tour__sub { font-size: 1.2rem; color: var(--color-text-muted); }
.sidebar-tour__price { font-size: 1.3rem; color: var(--color-text-muted); }
.sidebar-tour__price strong { color: var(--color-teal-deep); font-weight: 700; }

/* Share sidebar */
.sidebar-share { gap: 1rem; }
.sidebar-share__label {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
.sidebar-share__icons { display: flex; gap: .7rem; flex-wrap: wrap; }
.sidebar-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 600;
    padding: .5rem 1rem;
    border-radius: .6rem;
    background: #f0f4f2;
    color: var(--color-text-primary);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .15s;
    white-space: nowrap;
}
.sidebar-share__btn:hover {
    background: var(--sc, var(--color-teal-deep));
    color: #fff;
}

/* ── CARRUSEL DE LOGOS (antes del footer) ────────────────────── */
.inctra-logos-section {
    background: var(--color-dark, #0d1a17); /* mismo fondo que el footer */
    border-top: 1px solid rgba(49,167,163,.15);
    padding: 3.2rem 0;
    overflow: hidden;
}
.inctra-logos-section:hover .inctra-logos-track { animation-play-state: paused; }
.inctra-logos-wrapper { overflow: hidden; width: 100%; }
.inctra-logos-track { display: flex; align-items: center; width: max-content; }
.inctra-logos-item { flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 0 5rem; }
.inctra-logos-item img {
    height: 4.8rem;
    width: auto;
    min-width: 7rem;
    max-width: 16rem;
    object-fit: contain;
    display: block;
    user-select: none;
    /* grayscale → sepia → hue-rotate lleva a tono teal (~#31a7a3) con baja saturación */
    filter: grayscale(1) sepia(.6) hue-rotate(140deg) saturate(1.4) brightness(1.5) opacity(.75);
    transition: filter .3s;
}
.inctra-logos-item img:hover {
    filter: grayscale(1) sepia(.8) hue-rotate(140deg) saturate(2) brightness(1) opacity(1);
}

/* ── SECCIÓN AMAZON TOURS (slider oscuro en home) ────────────── */
.amazon-tours-wrap {
    background: var(--color-dark-mid, #122920);
    padding-bottom: 4rem;
}
.amazon-tours-header { padding-top: 5.6rem; }
/* El slider hereda la sección dentro del template; fondo transparente */
.amazon-tours-wrap .section { background: transparent; padding-top: 0; }
.amazon-tours-wrap .rec-slider__btn { background: rgba(255,255,255,.12); color: #fff; }
.amazon-tours-wrap .rec-slider__btn:hover { background: var(--color-gradient); color: var(--color-dark); }

/* ── AMAZON TOURS: overrides para fondo oscuro ─── */
#amazon-tours .btn--outline {
    background: transparent !important;
    color: rgba(255,255,255,0.9) !important;
    border-color: rgba(255,255,255,0.35) !important;
}
#amazon-tours .btn--outline:hover {
    background: var(--color-gradient) !important;
    color: var(--color-dark) !important;
    border-color: transparent !important;
}
/* Cards sobre fondo oscuro */
#amazon-tours .tour-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}
#amazon-tours .tour-card__title a,
#amazon-tours .tour-card__title {
    color: rgba(255,255,255,0.92) !important;
}
#amazon-tours .tour-card__subtitle { color: rgba(255,255,255,0.55); }
#amazon-tours .tour-card__price-from { color: rgba(255,255,255,0.45); font-size: 1rem; }
#amazon-tours .tour-card__price-amount { color: var(--color-green-vivid); }
#amazon-tours .tour-card__cta {
    background: var(--color-gradient) !important;
    color: var(--color-dark) !important;
    border: none !important;
    font-weight: 700;
}
#amazon-tours .tour-card__cta:hover { opacity: .88; }
#amazon-tours .tour-card__footer { border-top: 1px solid rgba(255,255,255,0.08); }
/* Section__header gap */
#amazon-tours .section { padding-top: 2.4rem; }
