:root {
    --brand: #053D38;
    --accent: #f16700;
    --text-color: #042120;
    --slogan-color: #666666;
    --color-foo: #042120;
    --darked: #042220;

    --width: 95%;
    --max-width: 1400px;

    /* Escala tipográfica de titulares (normalizada y responsive) */
    --fs-section-title: clamp(1.9rem, 4vw, 2.6rem); /* h2 de sección */
    --fs-card-title: clamp(1.3rem, 2.4vw, 1.5rem); /* h3 de tarjeta */
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.4;
    color: var(--darked);
}

/* Tamaños base normalizados (el h1 del hero se mantiene aparte) */
h1 {
    font-size: clamp(2.4rem, 5vw, 3rem);
}

h2 {
    font-size: var(--fs-section-title);
}

h3 {
    font-size: var(--fs-card-title);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}


/* Desplazamiento suave al navegar por anclas (#seccion) */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

/*
 * El header es fijo (~115px de alto), así que al saltar a un ancla la sección
 * quedaba tapada. scroll-margin-top reserva ese espacio arriba del destino.
 */
section[id],
[id].anchor-offset {
    scroll-margin-top: 125px;
}

/* Con la barra de admin de WordPress hay 32px extra arriba */
.admin-bar section[id],
.admin-bar [id].anchor-offset {
    scroll-margin-top: 157px;
}

/* === UTILITARIOS === */
.container {
    width: var(--width);
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

/* === ./UTILITARIOS === */


/* === SITE HEADER === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color .3s ease, box-shadow .3s ease;

    .site-header__promo {
        background-color: #043733;
        color: #fff;
        text-align: center;
        padding: 6px 0;
        cursor: default;

        &:hover {
            text-decoration: underline;

        }

        p {
            margin: 0;
            font-weight: 700;
            font-size: .85rem;
            letter-spacing: .3px;
        }
    }

    .site-header__bar {
        transition: background-color .3s ease;
        border-bottom: 1px solid #ffffff6e;
    }

    .site-header__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }

    .site-nav__list {
        list-style: none;
        display: flex;
        align-items: stretch;
        margin: 0;
        padding: 0;

        li {
            display: flex;
        }

        a {
            display: flex;
            align-items: center;
            padding: 28px 20px;
            color: #fff;
            text-decoration: none;
            text-transform: uppercase;
            font-weight: 600;
            font-size: .95rem;
            letter-spacing: .5px;
            transition: background-color .2s ease;
        }

        a:hover {
            background-color: #34695c;
        }

        .current-menu-item > a,
        .current-menu-ancestor > a {
            background-color: var(--brand);
        }
    }

    .site-header__logo {
        display: flex;
        align-items: center;
        flex-shrink: 0;

        img {
            display: block;
            height: 55px;
            width: auto;
        }
    }

    .site-header__logo-text {
        color: #fff;
        font-weight: 800;
        text-transform: uppercase;
        line-height: 1.05;
        letter-spacing: .5px;
    }

    .site-header__toggle {
        display: none;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        padding: 8px;
        background: transparent;
        border: 0;
        cursor: pointer;

        span {
            display: block;
            height: 2px;
            width: 100%;
            background: #fff;
            transition: transform .3s ease, opacity .3s ease;
        }
    }
}

/* Estado pegajoso al hacer scroll: solo se solidifica el fondo del menú */
.site-header.is-stuck {
    box-shadow: 0 2px 12px rgba(0, 0, 0, .25);

    .site-header__bar {
        background-color: var(--brand);
        border-bottom: 1px solid transparent;
    }

    .site-nav__list .current-menu-item > a,
    .site-nav__list .current-menu-ancestor > a {
        background-color: rgba(0, 0, 0, .25);
    }
}

/* Compensa la barra de administración de WordPress */
.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 900px) {
    .site-header .site-header__toggle {
        display: flex;
        order: -1;
    }

    .site-header .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--brand);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }

    .site-header .site-nav.is-open {
        max-height: 80vh;
    }

    .site-header .site-nav__list {
        flex-direction: column;
        align-items: stretch;

        li {
            display: block;
        }

        a {
            padding: 16px 20px;
        }
    }

    .site-header .site-header__toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header .site-header__toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .site-header .site-header__toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* === ./SITE HEADER === */

/* === HERO === */
.section-hero {
    position: relative;
    height: 90vh;
    width: 100%;

    .fd-hero-image {
        position: absolute;
        width: 100%;
        height: 100%;
        display: block;

        &::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.2);
            z-index: 1;
        }

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    .fd-hero-content {
        z-index: 2;
        position: relative;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        color: white;
    }

    .aux-content {
        width: 45%;
    }

    h1 {
        font-size: 5rem;
        color: white;
    }

    .fd-hero-content__body {
        margin-top: 20px;
        margin-bottom: 30px;
    }

    .fd-hero-content__button {
        padding: 15px 25px;
        border-radius: 25px;
        background: transparent;
        border: 0;
        color: white;
        text-transform: uppercase;
        display: flex;
        align-items: center;
        font-weight: 700;
    }

    .fd-hero-content__actions {
        display: flex;
        gap: 10px;
    }

    .fd-hero-content__button--1 {
        background-color: var(--accent);
    }

    .fd-hero-content__button--2 {
        border: 1px solid white;
    }
}

/* === ./HERO === */

/* === AGENCIA AUTORIZADA === */
.agen-autorizadas {
    background: #fff;
}

.fd-agen {
    display: flex;
    align-items: stretch;
    gap: 20px;
    justify-content: space-between;
    position: relative;
}

.fd-agen__text {
    max-width: 340px;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--darked);
}

/* Palabras resaltadas (envueltas en <strong>/<b> desde el editor) en naranja */
.fd-agen__text strong,
.fd-agen__text b {
    color: var(--accent);
}

.fd-agen__text p {
    margin: 0;
}

.fd-agen__logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 45px;
    padding-left: 35px;
    border-left: 2px solid var(--accent);
}

.fd-agen__logo-img {
    display: block;
    height: auto;
    width: 110px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .fd-agen {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .fd-agen__text {
        max-width: none;

    }

    .fd-agen__logos {
        justify-content: center;
        gap: 30px;
        padding-left: 0;
        border-left: 0;
    }

    .fd-agen__logo-img {
        height: 30px;
    }
}

/* === ./AGENCIA AUTORIZADA === */

/* === ENJOY === */
.fd-enjoy {
    border: 2px solid var(--accent);
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
}

.mdf-enjoy-title {
    width: 45%;
    margin-bottom: 20px;

    h2 {
        font-size: var(--fs-section-title);
    }
}

.fd-enjoy__items {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.fd-enjoy__item-image {
    width: 100%;
    height: 280px;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
    }
}

.fd-enjoy__item-group {
    display: flex;
    align-items: end;
    margin-top: -20px;
    padding-left: 15px;
    padding-right: 15px;
    gap: 5px;
}

.fd-enjoy__item-count {
    height: 50px;
    width: 25px;
    background-color: var(--accent);
    display: flex;
    align-items: end;
    justify-content: center;
    border-radius: 5px;
    color: white;
    font-weight: 700;
    padding: 4px;
}

.fd-enjoy__item-title {

    text-transform: uppercase;
    color: var(--brand);

    h3 {
        font-size: 14px;
    }
}

.fd-enjoy__item-body {
    margin-top: 10px;
    font-weight: 700;
}

/* === ./ENJOY === */


/* === EXPLORE PLACES === */
.fd-places {
    margin-top: 60px;
}

.mdf-places-title {
    margin-bottom: 35px;
    text-align: center;

    .fd-places-title__slogan {
        color: var(--slogan-color);
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 8px;
        position: relative;

        &::after {
            content: "";
            position: absolute;
            left: 50%;
            top: 20px;
            bottom: 0;
            width: 26px;
            height: 13px;
            background-color: var(--accent);
            border-radius: 0 0 26px 26px;
        }
    }

    h2 {
        font-size: var(--fs-section-title);
        color: var(--brand);
        max-width: 900px;
        margin: 0 auto;
        line-height: 1.15;
    }
}

.fd-places__items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.fd-places__item {
    position: relative;
    border-radius: 16px;
    aspect-ratio: 3 / 4;
    color: white;
    isolation: isolate;
}

/* --- Media (image / carousel) fills the whole card --- */
.fd-places__item-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 16px;
    overflow: hidden;

    > .fd-places__item-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.fd-places__item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dark gradient so overlaid text stays readable */
.fd-places__item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 16px;
    background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.25) 40%,
            rgba(0, 0, 0, 0) 65%
    );
    pointer-events: none;
}

.fd-places__item-badge {
    position: absolute;
    top: 14px;
    left: -8px;
    z-index: 3;
    background-color: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-top-left-radius: 15px;
}

.fd-places__item-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 18px;
}

.fd-places__item-title {
    line-height: 1.2;
    margin-bottom: 12px;
    font-size: 18px;
    color: white;
}

.fd-places__item-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.fd-places__item-price {
    display: flex;
    flex-direction: column;
    line-height: 1.1;

    .fd-places__item-price-label {
        font-size: 11px;
        text-transform: uppercase;
        opacity: 0.85;
    }

    .fd-places__item-price-amount {
        font-size: 1.9rem;
        font-weight: 800;
    }

    .fd-places__item-price-old {
        font-size: 11px;
        opacity: 0.85;
    }

    .fd-places__item-price-old-amount {
        text-decoration: line-through;
        text-decoration-color: red;
    }
}

.fd-places__item-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 25px;
    background-color: var(--brand);
    border: 0;
    color: white;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: filter .2s ease;

    &:hover {
        filter: brightness(1.08);
    }
}

/* --- Embla carousel --- */
.embla {
    position: absolute;
    inset: 0;
}

.embla__viewport {
    overflow: hidden;
    height: 100%;
}

.embla__container {
    display: flex;
    height: 100%;
}

.embla__slide {
    flex: 0 0 100%;
    min-width: 0;
    height: 100%;
}

.embla__button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--brand);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity .2s ease, background-color .2s ease;

    &:hover {
        background-color: white;
    }
}

.fd-places__item:hover .embla__button {
    opacity: 1;
}

.embla__button--prev {
    left: 10px;
}

.embla__button--next {
    right: 10px;
}

/* === ./EXPLORE PLACES === */


/* === INCLUSIONS === */
.section-inclusions {
    background-color: var(--brand);
    color: white;
    padding: 60px 0;
    margin-top: 60px;
}

.mdf-inclu-title {
    text-align: center;
    margin-bottom: 35px;

    .fd-inclu-title__slogan {
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 8px;
        position: relative;

        &::after {
            content: "";
            position: absolute;
            left: 50%;
            top: 22px;
            bottom: 0;
            width: 28px;
            height: 13px;
            background-color: var(--accent);
            border-radius: 0 0 26px 26px;
        }
    }

    .fd-inclu-title__title {
        font-size: var(--fs-section-title);
        line-height: 1.15;
        max-width: 800px;
        margin: 0 auto 12px;
        color: white;
    }

    .fd-inclu-title__body {
        max-width: 620px;
        margin: 0 auto;
        opacity: 0.9;
    }
}

.fd-inclu__content {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

/* Images stacked; only the active one is visible */
.fd-inclu__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.fd-inclu__image {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .35s ease;

    &.is-active {
        opacity: 1;
    }

    .fd-inclu__img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Item list overlaid on the left */
.fd-inclu__list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 30px;
    padding-left: 5%;
    width: 100%;
    max-width: 450px;
}

button {
    font-family: 'Poppins', sans-serif;
}

.fd-inclu__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    background-color: white;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.fd-inclu__item-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #2e9e5b;
    color: white;
    transition: background-color .2s ease;
}

.fd-inclu__item.is-active {
    background-color: var(--accent);
    color: white;
    transform: translateX(30px);
    border-bottom-left-radius: 27px;
    border-top-right-radius: 27px;

    .fd-inclu__item-icon {
        background-color: white;
        color: var(--accent);
    }
}

/* Wrapper only matters on mobile; on desktop it is transparent */
.fd-inclu__controls {
    display: contents;
}

.fd-inclu__nav-icon--mobile {
    display: none;
}

/* Prev / next navigation buttons */
.fd-inclu__nav {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fd-inclu__nav-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background-color: white;
    color: var(--accent);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: background-color .2s ease, transform .2s ease;

    &:hover {
        transform: scale(1.08);
    }
}

/* === ./INCLUSIONS === */


/* === CUSTOM TOURS === */
.section-custom-tours {
    margin-top: 60px;
}

.cus-title-main {
    text-align: center;
    margin-bottom: 30px;
    position: relative;


    &::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 40px;
        bottom: 0;
        width: 26px;
        height: 13px;
        background-color: var(--accent);
        border-radius: 0 0 26px 26px;
    }

    h2 {
        font-size: 2.0rem;
    }
}

.mdf-ctours-title {
    text-align: center;
    margin-bottom: 30px;

    .fd-ctours-title__slogan {
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--brand);
        font-weight: 700;
    }
}

.fd-ctours__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Intro (text) card */
.fd-ctours__intro {
    border: 2px solid var(--accent);
    border-top-left-radius: 25px;
    border-bottom-right-radius: 25px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fd-ctours__intro-title {
    font-size: var(--fs-section-title);
    line-height: 1.15;
    color: var(--brand);
    margin-bottom: 14px;
}

.fd-ctours__intro-body {
    color: var(--text-color);
    margin-bottom: 24px;
    max-width: 340px;
}

.fd-ctours__intro-button {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 25px;
    background-color: var(--accent);
    border: 0;
    color: white;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: filter .2s ease;

    &:hover {
        filter: brightness(1.08);
    }
}

/* Image cards */
.fd-ctours__item {
    position: relative;
    border-top-right-radius: 25px;
    border-bottom-left-radius: 25px;
    overflow: hidden;
    min-height: 320px;
    color: white;
    isolation: isolate;

    &:last-child {
        border-radius: 20px 0 20px 0;
    }
}

.fd-ctours__item-media {
    position: absolute;
    inset: 0;
    z-index: 0;

    .fd-ctours__item-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.fd-ctours__item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.65) 0%,
            rgba(0, 0, 0, 0.15) 45%,
            rgba(0, 0, 0, 0) 70%
    );
    pointer-events: none;
}

.fd-ctours__item-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fd-ctours__item-title {
    font-size: var(--fs-card-title);
    line-height: 1.15;
    color: white;
}

.fd-ctours__item-button {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background-color: var(--accent);
    color: white;
    cursor: pointer;
    transition: filter .2s ease, transform .2s ease;

    &:hover {
        filter: brightness(1.08);
        transform: scale(1.06);
    }
}

/* === ./CUSTOM TOURS === */


/* === ABOUT US === */
.section-about {
    margin-top: 80px;
    margin-bottom: 80px;
}

.fd-about {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 60px;
    align-items: center;
}

/* --- Media (image + badge) --- */
.fd-about__media {
    position: relative;
}

.fd-about__image {
    border-radius: 18px;
    overflow: hidden;

    .fd-about__img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}

.fd-about__badge {
    position: absolute;
    left: 8%;
    bottom: -6%;
    z-index: 2;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: var(--brand);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    box-shadow: 0 10px 25px rgba(5, 61, 56, 0.35);
}

.fd-about__badge-percent {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
}

.fd-about__badge-text {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* --- Content (text + feature grid) --- */
.fd-about__slogan {
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--slogan-color);
    font-weight: 600;
    padding-bottom: 14px;
    margin-bottom: 22px;
}

/* Orange half-circle accent under the slogan */
.fd-about__slogan::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 26px;
    height: 13px;
    background-color: var(--accent);
    border-radius: 0 0 26px 26px;
}

.fd-about__title {
    font-size: var(--fs-section-title);
    line-height: 1.12;
    color: var(--brand);
    margin-bottom: 20px;
}

.fd-about__description {
    color: var(--text-color);
    line-height: 1.65;
    margin-bottom: 32px;
    max-width: 640px;
}

.fd-about__items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.fd-about__item {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 16px;
    border: 1px solid #a5ccab;
    border-top-left-radius: 25px;
    border-bottom-right-radius: 25px;
    background-color: white;
}

.fd-about__item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-top-left-radius: 15px;
    border-bottom-right-radius: 15px;
    background-color: var(--accent);
    color: white;
    flex-shrink: 0;
}

.fd-about__item-title {
    font-size: 14px;
    line-height: 1.3;
    color: var(--text-color);
    font-weight: 500;
}

@media (max-width: 992px) {
    .fd-about {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .fd-about__badge {
        left: auto;
        right: 6%;
    }
}

@media (max-width: 576px) {
    .fd-about__items {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === ./ABOUT US === */


/* === SEPARATOR 1 === */
.section-separator1 {
    margin-top: 60px;
    margin-bottom: 60px;
}

.fd-sepa1 {
    position: relative;
    height: 550px;
}

.fd-sepa1__image {
    position: absolute;
    width: 100%;
    height: 100%;

    .fd-sepa1__img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}

/* Stat cards overlaid on the bottom of the image */
.fd-sepa1__cards {
    position: relative;
    display: flex;
    gap: 10px;
    justify-content: end;
    height: 100%;
    align-items: end;
    padding-bottom: 30px;
}

.fd-sepa1__card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 28px;
    border-top-left-radius: 25px;
}

.fd-sepa1__card--dark {
    background-color: var(--brand);
    color: white;

    .fd-sepa1__card-number {
        color: var(--accent);
    }
}

.fd-sepa1__card--light {
    background-color: #b7dbb4;
    color: var(--brand);

    .fd-sepa1__card-number {
        color: var(--brand);
    }
}

.fd-sepa1__card-figure {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.fd-sepa1__card-number {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
}

.fd-sepa1__card-source {
    margin-top: 4px;
    font-size: 10px;
    font-weight: 700;
    opacity: 0.85;
}

.fd-sepa1__card-title {
    font-size: var(--fs-card-title);
    font-weight: 700;
    line-height: 1.2;
    max-width: 160px;
}

@media (max-width: 768px) {
}

/* === ./SEPARATOR 1 === */


/* === COTIZA / FORMULARIO === */
.section-cotiza {
    margin-top: 80px;
    margin-bottom: 80px;
}

.fd-cotiza {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 70px;
    align-items: start;
}

/* --- Left: form card --- */
.fd-cotiza__form {
    position: relative;
    background-color: var(--brand);
    /* Degradado diagonal para dar profundidad a la tarjeta */
    background-image: linear-gradient(150deg, #0b5149 0%, #053D38 45%, #042f2b 75%, #0a4e46 100%);
    color: white;
    padding: 4rem;
    border-radius: 22px;

    h2 {
        color: white;
        text-align: center;
    }

    p {
        text-align: center;
    }
}

/* Aseguramos que el contenido quede por encima del borde decorativo */
.fd-cotiza__form > * {
    position: relative;
    z-index: 1;
}

/* WPForms overrides so the form matches the design */
.fd-cotiza__form .wpforms-title,
.fd-cotiza__form .wpforms-description {
    color: white;
}

/* Hide the field labels; the placeholder acts as the label */
.fd-cotiza__form .wpforms-field-label,
.fd-cotiza__form .wpforms-field-label-inline {
    display: none;
}

.fd-cotiza__form .wpforms-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
}

.fd-cotiza__form .wpforms-description {
    text-align: center;
    opacity: 0.9;
    margin-bottom: 10px;
}

.fd-cotiza__form input[type="text"],
.fd-cotiza__form input[type="tel"],
.fd-cotiza__form input[type="email"],
.fd-cotiza__form input[type="number"],
.fd-cotiza__form select,
.fd-cotiza__form textarea {
    width: 100%;
    background-color: white;
    border: 0;
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--text-color);
    font-size: 15px;
}

.fd-cotiza__form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Placeholder acts as the label: use the dark brand colour.
   Higher specificity + prefixes so it wins over WPForms defaults. */
.fd-cotiza__form .wpforms-field input::placeholder,
.fd-cotiza__form .wpforms-field textarea::placeholder,
.fd-cotiza__form input::placeholder,
.fd-cotiza__form textarea::placeholder {
    color: #000 !important;
    opacity: 1 !important;
}

.fd-cotiza__form input::-webkit-input-placeholder,
.fd-cotiza__form textarea::-webkit-input-placeholder {
    color: var(--brand) !important;
    opacity: 1 !important;
}

.fd-cotiza__form input::-moz-placeholder,
.fd-cotiza__form textarea::-moz-placeholder {
    color: var(--brand) !important;
    opacity: 1 !important;
}

.fd-cotiza__form input:-ms-input-placeholder,
.fd-cotiza__form textarea:-ms-input-placeholder {
    color: var(--brand) !important;
    opacity: 1 !important;
}

.fd-cotiza__form .wpforms-submit {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100% !important;
    background-color: var(--accent) !important;
    color: white !important;
    border: 0 !important;
    border-radius: 30px !important;
    padding: 15px 24px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: filter .2s ease !important;
}

.fd-cotiza__form .wpforms-submit:hover {
    filter: brightness(1.08);
}

#wpforms-68 {
    margin: 0;
}

/* --- Right: content --- */
.fd-cotiza__title {
    font-size: var(--fs-section-title);
    line-height: 1.12;
    color: var(--brand);
    margin-bottom: 16px;
}

.fd-cotiza__body {
    color: var(--text-color);
    line-height: 1.65;

    p {
        margin-bottom: 20px;
    }

    ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    li {
        position: relative;
        padding-left: 38px;
        line-height: 1.35;
        font-weight: 600;
    }

    /* Green circular check before each list item */

    li::before {
        content: "";
        position: absolute;
        left: 0;
        top: -2px;
        width: 26px;
        height: 26px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%232e9e5b'/%3E%3Cpath fill='%23fff' d='M9 16.17L4.83 12l-1.42 1.41L9 19L21 7l-1.41-1.41z'/%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
    }
}

/* --- Gallery (3 overlapping cards) --- */
.fd-cotiza__gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 45px;
}

.fd-cotiza__gallery-item {
    width: 200px;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    background-color: #e6e6e6;

    .fd-cotiza__gallery-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}

/* Side cards sit behind and are overlapped by the middle one */
.fd-cotiza__gallery-item:nth-child(1) {
    z-index: 1;
    margin-right: -0px;
}

.fd-cotiza__gallery-item:nth-child(3) {
    z-index: 1;
    margin-left: -3px;
}

/* Middle card: larger and on top */
.fd-cotiza__gallery-item:nth-child(2) {
    z-index: 3;
    transform: scale(1.12);
    background-color: #c9c9c9;
}

@media (max-width: 992px) {
    .fd-cotiza {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

.cotizacion {
    text-align: center;
    font-weight: 700;
    margin-top: 5px;
    margin-bottom: 0;
    font-size: 13px;
}

/* === ./COTIZA / FORMULARIO === */


/* === FOOTER === */
.footer-section {
    background-color: var(--brand);
    padding-top: 3rem;
    padding-bottom: 1.5rem;
    color: #dfdfdf;

    img {
        width: 350px;
        height: auto;
        object-fit: contain;
    }

    .fd-foo-body {
        margin-top: 30px;
        padding-bottom: 20px;
    }

}

@keyframes whatsapp-vibrate {
    0% {
        transform: translate(0, 0);
    }
    2% {
        transform: translate(-2px, 2px);
    }
    4% {
        transform: translate(2px, -2px);
    }
    6% {
        transform: translate(-2px, -2px);
    }
    8% {
        transform: translate(2px, 2px);
    }
    10% {
        transform: translate(-2px, 2px);
    }
    12% {
        transform: translate(2px, -2px);
    }
    14% {
        transform: translate(-2px, -2px);
    }
    16% {
        transform: translate(2px, 2px);
    }
    18% {
        transform: translate(-1px, 1px);
    }
    20%, 100% {
        transform: translate(0, 0);
    }
}

.whatsapp-button {
    border: none;
    align-items: center;
    animation: whatsapp-vibrate 2s linear infinite;
    background-color: #25d366;
    border-radius: 50%;
    bottom: 20px;
    box-shadow: 0 4px 10px #00000040;
    color: #fff;
    cursor: pointer;
    display: flex;
    width: 65px;
    height: 65px;
    justify-content: center;
    position: fixed;
    right: 20px;
    text-decoration: none;
    transform-origin: center center;
    transition: all .3s ease;

    z-index: 1000;

    &:hover {
        animation: none;
        box-shadow: 0 6px 14px #0000004d;
        color: #fff;
    }

    &:hover .whatsapp-tooltip {
        opacity: 1;
        visibility: visible;
    }

    .whatsapp-tooltip {
        background-color: #333;
        border-radius: 4px;
        color: #fff;
        font-size: 14px;
        opacity: 0;
        padding: 5px 10px;
        position: absolute;
        right: 70px;
        transition: all .3s ease;
        visibility: hidden;
        white-space: nowrap;
    }

    .whatsapp-badge {
        align-items: center;
        background-color: #ff0000;
        border-radius: 50%;
        color: #fff;
        display: flex;
        font-size: 12px;
        font-weight: 700;
        height: 22px;
        justify-content: center;
        position: absolute;
        right: -4px;
        top: -4px;
        width: 22px;
        z-index: 1;
    }
}

.copy {
    padding-top: 20px;
    border-top: 1px solid #34695c;
    text-align: center;
    margin-bottom: 0;
}

.group-empr {
    display: flex;
    align-items: center;
}

.group-logos {
    display: flex;
    margin-top: -70px;
    z-index: 2;
    gap: 10px;

    img {
        width: 180px;
        height: 180px;
    }
}

/* === ./FOOTER === */
/* === COTIZA MODAL === */
.cotiza-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.cotiza-modal.is-open {
    display: block;
}

html.cotiza-modal-open {
    overflow: hidden;
}

/* Congela el fondo: el body se fija en su posición (offset por JS con top). */
body.cotiza-modal-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
}

.cotiza-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    animation: cotizaFade .25s ease;
}

.cotiza-modal__dialog {
    position: relative;
    z-index: 1;
    width: 92%;
    max-width: 560px;
    margin: 5vh auto;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--brand);
    border-radius: 14px;
    padding: 34px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    animation: cotizaPop .3s ease;
}

.cotiza-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f2f2f2;
    color: var(--text-color);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease;
}

.cotiza-modal__close:hover {
    background: #e2e2e2;
}

.cotiza-modal__title {
    font-size: 1.8rem;
    color: whitesmoke;
    margin-bottom: 6px;
    padding-right: 30px;
    text-align: center;
}

.cotiza-modal__subtitle {
    color: var(--slogan-color);
    margin-bottom: 22px;
}

.cotiza-modal__subtitle strong {
    color: var(--accent);
}

/* Oculta la línea "Estás cotizando:" cuando no se pasó contexto */
.cotiza-modal:not(.has-context) .cotiza-modal__subtitle {
    display: none;
}

@keyframes cotizaFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes cotizaPop {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .cotiza-modal__dialog {
        width: 100%;
        margin: 0;
        max-height: 100%;
        border-radius: 0;
        padding: 26px 18px;
        top: 10%;
    }
}

.cotiza-modal__dialog {
    button[type=submit] {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100% !important;
        background-color: var(--accent) !important;
        color: white !important;
        border: 0 !important;
        border-radius: 30px !important;
        padding: 15px 24px !important;
        text-transform: uppercase !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px !important;
        cursor: pointer !important;
        transition: filter .2s ease !important;
    }
}


/* === ./COTIZA MODAL === */

.group-logos-mb {
    display: none;
}

/* === MOBILE === */
@media (width <= 736px) {

    .group-empr {
        flex-direction: column;
        margin-top: 20px;
    }

    .site-header {
        & .site-header__logo {
            & img {
                width: 180px;
                height: auto;
            }
        }
    }

    .mdf-enjoy-title {
        text-align: center;
    }

    .fd-agen__logos {
        margin-top: 20px;
    }

    .site-header {
        & .site-header__bar {
            padding: 10px 0;
        }
    }


    .section-hero {
        & h1 {
            font-size: 3.2rem;
        }

        .aux-content {
            width: 100%;
        }

        .fd-hero-content__actions {
            flex-direction: column;
        }

        .fd-hero-content__button {
            justify-content: center;
        }
    }

    .mdf-enjoy-title {
        width: 100%;
    }

    .fd-enjoy {
        padding: 15px;
    }

    .fd-enjoy__items {
        grid-template-columns: 1fr 1fr;
    }

    .fd-places__items {
        grid-template-columns: 1fr;
    }

    .fd-enjoy__item-image {
        height: 150px;
    }

    .fd-enjoy__item-title {
        & h3 {
            font-size: 13px;
        }
    }

    .fd-ctours__grid {
        grid-template-columns: 1fr;
    }

    .site-header {
        .site-header__promo {
            p {
                font-size: 13px;
            }
        }
    }

    .fd-sepa1__cards {
        flex-direction: column;
    }

    .fd-cotiza__form {
        padding: 1rem;
    }

    .fd-inclu__nav-icon--desktop {
        display: none;
    }

    .fd-inclu__nav-icon--mobile {
        display: block;
    }

    .fd-inclu__content {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    .fd-inclu__media {
        position: relative;
        inset: auto;
        width: 100%;
        height: 220px;
        order: -1;
        border-radius: 16px;
        overflow: hidden;
        z-index: 0;
    }

    .fd-inclu__image {
        position: absolute;
        inset: 0;
    }

    .fd-inclu__controls {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 16px;
        width: 100%;
    }

    .fd-inclu__nav {
        display: contents;
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        gap: 0;
    }

    .fd-inclu__nav-btn {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .fd-inclu__nav-btn--prev {
        order: 1;
    }

    .fd-inclu__nav-btn--next {
        order: 3;
    }

    .fd-inclu__nav-icon {
        width: 16px;
        height: 16px;
    }

    .fd-inclu__list {
        order: 2;
        display: flex;
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        max-width: none;
        width: 100%;
        padding: 0;
    }

    .fd-inclu__list::-webkit-scrollbar {
        display: none;
    }

    .fd-inclu__item {
        flex: 0 0 auto;
        scroll-snap-align: start;
        width: max-content;
        max-width: 180px;
        padding: 8px 12px;
        font-size: 13px;
        gap: 8px;
    }

    .fd-enjoy__item-group {
        margin-top: -12px;
    }

    .fd-inclu__item-icon {
        width: 20px;
        height: 20px;
    }

    .fd-inclu__item-icon .icon {
        width: 12px;
        height: 12px;
    }

    .fd-inclu__item.is-active {
        transform: translateY(-2px);
    }

    .fd-cotiza__gallery-item {
        width: 100%;
    }

    .fd-sepa1__card-number {
        font-size: 25px;
    }

    .fd-sepa1__card-title {
        font-size: 16px;
    }

    .footer-section {
        .fd-foo-body {
            font-size: 13px;
        }
    }

    .fd-enjoy__item-body {
        font-size: 13px;
    }

    .group-logos {
        display: none;
    }

    .group-logos-mb {
        display: flex;
        position: absolute;
        bottom: 20px;
        width: 100%;
        justify-content: center;
        gap: 20px;

        img {
            width: 100px;
            height: 100px;
        }
    }
}