/* =========================================================
   MATEO TE VEMOS — HEROES
========================================================= */

.wp-hero,
.hero,
.hero-secondary {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: min(100%, 1320px);
    min-height: 220px;

    margin: 16px auto 44px;
    padding: 22px 34px;

    overflow: hidden;

    color: #fff;
    text-align: center;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 18px;

    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.wp-hero::before,
.hero::before,
.hero-secondary::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 0;

    background:
        linear-gradient(
            90deg,
            rgba(20, 35, 45, 0.78) 0%,
            rgba(30, 40, 58, 0.57) 48%,
            rgba(53, 33, 83, 0.6) 100%
        );
}

.wp-hero > *,
.hero > *,
.hero-secondary > * {
    position: relative;
    z-index: 1;
}

.wp-hero-content,
.hero-text,
.hero-secondary-content {
    position: absolute;
    top: 50%;
    left: 50%;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: min(900px, calc(100% - 180px));
    max-width: 900px;
    margin: 0;

    text-align: center;

    transform: translate(-50%, -50%);
    pointer-events: none;
}

.wp-hero-content h1,
.wp-hero-content p,
.hero-text h1,
.hero-text p,
.hero-secondary-content h1,
.hero-secondary-content p {
    pointer-events: auto;
}

.wp-hero h1,
.wp-hero .wp-hero-content h1,
.hero h1,
.hero .hero-text h1,
.hero-secondary h1,
.hero-secondary .hero-secondary-content h1 {
    max-width: 900px;
    margin: 0;

    color: #ffffff;

    font-size: clamp(2rem, 2.8vw, 2.8rem);
    line-height: 1.05;
    letter-spacing: -0.03em;

    text-align: center;

    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.4);
}

.wp-hero p,
.wp-hero .wp-hero-content p,
.hero .hero-text p,
.hero-secondary-content p {
    max-width: 700px;
    margin: 14px auto 0;

    color: rgba(255, 255, 255, 0.9);

    font-size: 1rem;
    line-height: 1.45;
    text-align: center;

    text-shadow: 0 2px 9px rgba(0, 0, 0, 0.32);
}

.btn-back,
.wp-back-button {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 34px;
    padding: 7px 14px;

    color: #ffffff;
    background: rgba(23, 28, 35, 0.52);

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;

    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition:
        background-color var(--transition-fast),
        transform var(--transition-fast);
}

.btn-back::before,
.wp-back-button::before {
    content: "\2190";

    display: inline-block;

    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.btn-back:hover,
.wp-back-button:hover {
    color: #ffffff;
    background: rgba(23, 28, 35, 0.72);

    transform: translateY(-1px);
}

/* Fotografías: iguala el espacio superior con páginas que usan .content */

.gallery-page > .wp-content-container:first-child {
    padding-top: 24px;
}

.gallery-page > .wp-content-container:first-child .wp-hero {
    margin-top: 0;
}

@media (max-width: 560px) {
    .hero.home-hero {
        min-height: 240px;
        padding: 68px 18px 30px;
    }

    .hero.home-hero .hero-text {
        width: 100%;
    }

    .hero.home-hero .hero-text h1 {
        font-size: 2rem;
    }

    .hero.home-hero .hero-text p {
        margin-top: 10px;

        font-size: 0.95rem;
    }
}