/*
 * SomosParis Tours Core - Global Hero
 *
 * Clases abiertas para reutilizar el aspecto del hero de tours en páginas generales.
 * Se carga de forma global, pero todos los estilos quedan encapsulados bajo .sp-global-hero-section.
 */

.sp-global-hero-section {
    --sp-header-height: 66px;
    --sp-yellow: #f3bf1e;
    --sp-dark: #31302d;
    --sp-dark-alt: #272020;
    --sp-white: #ffffff;
    --sp-font-family: Montserrat, Helvetica, Arial, Lucida, sans-serif;

    min-height: 600px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    background-size: cover !important;
    background-position: center !important;
    background-color: var(--sp-dark);
    position: relative;
    overflow: hidden;
}

.sp-global-hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.72) 0%,
        rgba(0,0,0,0.48) 46%,
        rgba(0,0,0,0.18) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.sp-global-hero-section .et_pb_row,
.sp-global-hero-row,
.et_pb_row.sp-global-hero-row {
    position: relative;
    z-index: 2;
    width: 100% !important;
    max-width: 1165px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 0;
}

.sp-global-hero-row,
.et_pb_row.sp-global-hero-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: space-between;
}

.sp-global-hero-content {
    max-width: 800px;
}

.sp-global-hero-kicker,
.sp-global-hero-city {
    display: inline-block;
    font-family: var(--sp-font-family);
    font-size: 13px;
    font-weight: 700;
    color: var(--sp-yellow) !important;
    background: var(--sp-dark);
    line-height: 1;
    text-transform: uppercase;
    padding: 10px 25px;
    margin: 0 0 12px;
}

.sp-global-hero-title,
.sp-global-hero-title .et_pb_text_inner,
.sp-global-hero-title h1,
.sp-global-hero-title h2,
.sp-global-hero-content h1 {
    font-family: var(--sp-font-family);
    font-size: 48px !important;
    line-height: 1.08 !important;
    padding-top: 10px;
    font-weight: 400 !important;
    max-width: 700px;
    color: var(--sp-white) !important;
    margin-top: 0;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}

.sp-global-hero-subtitle,
.sp-global-hero-claim,
.sp-global-hero-subtitle .et_pb_text_inner,
.sp-global-hero-claim .et_pb_text_inner,
.sp-global-hero-subtitle p,
.sp-global-hero-claim p,
.sp-global-hero-content p {
    font-family: var(--sp-font-family);
    font-size: 18px !important;
    line-height: 1.35 !important;
    color: var(--sp-yellow) !important;
    max-width: 760px;
    margin: 0;
    padding-bottom: 0;
}

/* Imagen real opcional para heroes optimizados.
   Úsala si se inserta un <img> dentro de la sección y se quiere evitar depender solo de background-image. */
.sp-global-hero-media,
.sp-global-hero-image {
    position: absolute !important;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    pointer-events: none;
}

.sp-global-hero-media .et_pb_code_inner,
.sp-global-hero-image .et_pb_code_inner {
    width: 100%;
    height: 100%;
}

.sp-global-hero-media img,
.sp-global-hero-image img,
.sp-global-hero-img,
.sp-global-hero-media picture,
.sp-global-hero-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.sp-global-hero-media img,
.sp-global-hero-image img,
.sp-global-hero-img {
    object-fit: cover;
    object-position: center;
}

/* Fila de fondo para Divi Theme Builder.
   Evita que la imagen quede atrapada dentro de la fila de contenido. */
.sp-global-hero-section .et_pb_row.sp-global-hero-bg-row,
.sp-global-hero-section .sp-global-hero-bg-row {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.sp-global-hero-section .sp-global-hero-bg-row .et_pb_column,
.sp-global-hero-section .sp-global-hero-bg-row .et_pb_module,
.sp-global-hero-section .sp-global-hero-bg-row .et_pb_code,
.sp-global-hero-section .sp-global-hero-bg-row .et_pb_code_inner,
.sp-global-hero-section .sp-global-hero-bg-row .sp-global-hero-media {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sp-global-hero-section .sp-global-hero-bg-row .sp-global-hero-media {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
}

.sp-global-hero-section .sp-global-hero-bg-row img,
.sp-global-hero-section .sp-global-hero-bg-row .sp-global-hero-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Opcional: bloque lateral tipo badge/precio del hero de tours. */
.sp-global-hero-badge-column {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-global-hero-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-top: 18px;
    line-height: 0.92;
}

.sp-global-hero-badge-main {
    display: block;
    color: var(--sp-yellow);
    font-size: 33px;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.9;
}

.sp-global-hero-badge-sub {
    display: block;
    color: var(--sp-white);
    font-size: 35px;
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 0.95;
}

/* Evitar animaciones de entrada de Divi dentro de heroes globales. */
.sp-global-hero-section .et_animated,
.sp-global-hero-section .et_pb_animation_top,
.sp-global-hero-section .et_pb_animation_bottom,
.sp-global-hero-section .et_pb_animation_left,
.sp-global-hero-section .et_pb_animation_right,
.sp-global-hero-section .et_pb_animation_fade_in {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
}

@media (max-width: 980px) {
    .sp-global-hero-section {
        min-height: 480px;
    }

    .sp-global-hero-badge-column {
        justify-content: flex-start;
        margin-top: 24px;
    }
}

@media (max-width: 767px) {
    .sp-global-hero-section {
        min-height: 430px !important;
        align-items: flex-end !important;
        background-position: center center !important;
    }

    .sp-global-hero-section::before {
        background: linear-gradient(
            180deg,
            rgba(0,0,0,0.08) 0%,
            rgba(0,0,0,0.38) 42%,
            rgba(0,0,0,0.86) 100%
        ) !important;
    }

    .sp-global-hero-section .et_pb_row,
    .sp-global-hero-row,
    .et_pb_row.sp-global-hero-row {
        width: 90% !important;
        max-width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-bottom: 34px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
    }

    .sp-global-hero-section .et_pb_row.sp-global-hero-bg-row,
    .sp-global-hero-section .sp-global-hero-bg-row {
        position: absolute !important;
        inset: 0 !important;
        z-index: 0 !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    .sp-global-hero-content {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .sp-global-hero-kicker,
    .sp-global-hero-city {
        font-size: 11px !important;
        line-height: 1 !important;
        padding: 8px 16px !important;
        margin-bottom: 12px !important;
    }

    .sp-global-hero-title,
    .sp-global-hero-title .et_pb_text_inner,
    .sp-global-hero-title h1,
    .sp-global-hero-title h2,
    .sp-global-hero-content h1 {
        font-size: 34px !important;
        line-height: 1.08 !important;
        font-weight: 500 !important;
        max-width: 100% !important;
        padding-top: 0 !important;
        margin-bottom: 12px !important;
        letter-spacing: -0.025em !important;
    }

    .sp-global-hero-subtitle,
    .sp-global-hero-claim,
    .sp-global-hero-subtitle .et_pb_text_inner,
    .sp-global-hero-claim .et_pb_text_inner,
    .sp-global-hero-subtitle p,
    .sp-global-hero-claim p,
    .sp-global-hero-content p {
        font-size: 16px !important;
        line-height: 1.35 !important;
        max-width: 100% !important;
        margin-bottom: 14px !important;
    }

    .sp-global-hero-badge-column {
        justify-content: flex-start !important;
        align-items: flex-start !important;
        margin-top: 0 !important;
    }

    .sp-global-hero-badge {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: baseline !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        margin-top: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        line-height: 1 !important;
    }

    .sp-global-hero-badge-main,
    .sp-global-hero-badge-sub {
        display: inline !important;
        font-size: 26px !important;
        line-height: 1 !important;
        font-weight: 800 !important;
        letter-spacing: -0.02em !important;
    }

    .sp-global-hero-badge-main {
        color: var(--sp-yellow) !important;
    }

    .sp-global-hero-badge-sub {
        color: var(--sp-white) !important;
        font-weight: 500 !important;
    }
}