* {
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #000;
    min-height: 100vh;
}

.fitness-card {
    position: relative;
    height: 260px;
    /* altura más compacta */
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 15px;
    /* menos espacio entre tarjetas */
}

.fitness-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.fitness-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fitness-card:hover img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    color: white;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 260px;
}

.card-date {
    font-size: 0.85rem;
    font-weight: 500;
    color: #00d4aa;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.fitness-grid {
    max-width: 1100px;
    margin: 0 auto;
    row-gap: 15px;
    /* menor espacio vertical */
}

/* Responsive */
@media (max-width: 768px) {
    .fitness-card {
        height: 220px;
    }

    .card-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .fitness-card {
        height: 200px;
    }

    .card-title {
        font-size: 1.05rem;
    }

    .card-overlay {
        padding: 15px;
    }
}


.partners-intro {
    position: relative;
    padding: clamp(36px, 4.5vw, 72px) 0 28px;
    background: var(--lh-surface);
    color: var(--lh-ink);
    /* forzamos color oscuro */
    overflow: clip;
    isolation: isolate;
    color: white;
}

.partners-intro .container {
    position: relative;
    z-index: 1;
    /* contenido arriba de decoraciones */
    max-width: 1160px;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 32px);
}

/* “manchas” decorativas */
.partners-intro::before {
    content: "";
    position: absolute;
    inset: -30% -10% auto -10%;
    height: clamp(420px, 48vw, 640px);
    background:
        radial-gradient(50% 60% at 20% 30%, rgba(43, 103, 182, .22), transparent 60%),
        radial-gradient(40% 50% at 70% 50%, rgba(14, 33, 68, .18), transparent 60%);
    filter: blur(30px);
    opacity: .75;
    z-index: 0;
    transform: translateY(0);
    animation: floaty 14s ease-in-out infinite alternate;
}

/* barra superior finita con degradado */
.partners-intro::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lh-primary), var(--lh-accent));
    opacity: .55;
    z-index: 0;
}

/* Accesibilidad: reduced motion */
@media (prefers-reduced-motion: reduce) {
    .partners-intro::before {
        animation: none;
    }

    .partners-title .hl {
        transition: none;
    }
}

.partners-title {
    font-size: 22px;
    line-height: 1.6;
    display: inline-block;
    text-align: center;
}

.fitness-card {
    cursor: zoom-in;
}

#imgModalSrc {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.s24-hero4 {
    position: relative;
    width: 100%;
    height: auto;
    /* permite crecer si el contenido lo pide */
    min-height: max(520px, 100svh);
    /* pantalla completa visible + mínimo */
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #fff;
}

@supports (height: 100dvh) {
    .s24-hero4 {
        min-height: max(520px, 100dvh);
    }

    /* viewport real en navegadores modernos */
}

.s24-bg4 {
    position: absolute;
    inset: 0;
    background: url("../../images/image-24.webp") center/cover no-repeat;
    z-index: -2;
}

.s24-inner4 {
    width: min(1100px, 92vw);
    margin-right: clamp(18px, 6vw, 72px);
    align-self: center;
    text-align: right;
}

.s24-title4 {
    font-size: clamp(22px, 3.2vw, 34px);
    font-weight: 800;
    margin: 0 0 14px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

.s24-copy4 {
    max-width: 560px;
    font-size: 20px;
    line-height: 1.65;
    margin: 0 0 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}

@media (max-width: 680px) {
    .s24-hero4 {
        height: auto;
        min-height: max(520px, 100svh);
        padding: 42px 0;
    }

    @supports (height: 100dvh) {
        .s24-hero4 {
            min-height: max(520px, 100dvh);
        }
    }

    .s24-inner4 {
        margin: 0 auto;
        width: 88vw;
        text-align: center;
    }

    .s24-copy4 {
        margin: 0 auto;
    }
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    min-height: 100svh;
    /* o 100vh */
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* el contenido ocupa el alto disponible */
footer {
    margin-top: auto;
}

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    /* Oculto por defecto */
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .88);
    /* Fondo oscuro */
    z-index: 9999;
    /* Por encima de todo */
    padding: 2rem;
}

.lightbox.open {
    display: flex;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
}

.lightbox__caption {
    position: absolute;
    bottom: 18px;
    left: 24px;
    right: 24px;
    color: #fff;
    text-align: center;
    font-weight: 500;
    opacity: .9;
}

.lightbox__close {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 28px;
    line-height: 1;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
}

body.lb-open {
    overflow: hidden;
}

/* bloquea scroll detrás */