
/* ── 1. VIDEO SECTION ─────────────────────────── */
.club-video-section {
    padding: 0 0 2rem;
}

.club-video-wrapper {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    height: 500px;
    max-height: 600px;
}

.club-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    max-height: 500px;
    object-position: center 65%;
    /* GPU compositing: prevents video repaint from blocking scroll */
    will-change: transform;
    transform: translateZ(0);
}

.club-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0.95) 100%);
    padding: 2rem 1.5rem 1.2rem;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.club-video-overlay-img {
    max-width: 100%;
    width: 63rem;
    height: auto;
    object-fit: contain;
    position: relative;
    top: 3rem;
}

.club-video-logo-tr {
    position: absolute;
    top: clamp(1rem, 3vw, 1rem);
    right: clamp(2rem, 5vw, 3rem);
    width: clamp(80px, 12vw, 140px);
    height: auto;
    z-index: 10;
}

/* ── 2. CONTACTO ─────────────────────────────── */
.club-contact-section {
    padding: 1.5rem 0;
}

.club-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.club-contact-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.club-contact-btn:hover {
    opacity: 0.85;
}

.club-contact-wpp {
    background: #25d366;
    color: #ffffff;
}

.club-contact-mail {
    background: #1a1a2e;
    color: #ffffff;
}

.club-contact-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* ── 3. TEXTO EXPLICATIVO ────────────────────── */
.club-about-section {
    padding: 1rem 0;
    background: #ffffff;
}

.club-about-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.club-badge {
    display: inline-block;
    background: #eac736;
    color: #111111;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.club-badge-img {
    display: inline-block;
    max-width: 230px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 8px; /* Opcional, para suavizar los bordes si es necesario */
}

.club-about-inner h2 {
    font-size: 1.35rem;
    color: #081a4b;
    margin: 0 0 1rem;
    line-height: 1.25;
}

.club-about-inner p {
    color: #1a1a2e;
    font-size: 1rem;
    line-height: 1.75;
    margin: 0;
}

/* ── 4. ALIADOS ESTRATÉGICOS ─────────────────── */
.club-allies-section {
    padding: 3rem 0 5rem;
    /* contain solo layout/style, NO content-visibility (evita reflow masivo al scroll) */
    contain: layout style;
}

.club-allies-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.club-allies-header h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: #081a4b;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0 0 0.4rem;
}

.club-allies-header p {
    color: #555555;
    font-size: 1rem;
    margin: 0;
}

.club-allies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    /* Sin contain:layout — permite que el browser mantenga bitmaps en memoria al scroll */
}

.club-ally-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    /* Solo transform en GPU, sin box-shadow animado */
    transition: transform 0.2s ease;
    aspect-ratio: 4 / 4;
    /* will-change solo en hover, no permanente (ahorra memoria GPU) */
    will-change: auto;
}

.club-ally-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.club-ally-card:hover {
    will-change: transform;
    transform: translateY(-4px) translateZ(0);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.club-ally-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Mantiene el bitmap decodificado en capa GPU: evita re-decodificación al volver al viewport */
    transform: translateZ(0);
    will-change: transform;
}

.club-ally-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 1rem 1rem 0.85rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    text-align: center;

}

.club-brands-block {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e2e2;
}

.club-brands-block h3 {
    margin: 0 0 1rem;
    font-size: 2rem;
    color: #081a4b;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.club-brands-swiper {
    padding: 0.25rem 0.2rem 2rem;
}

.club-brand-card {
    min-height: 88px;
    border-radius: 12px;
    border: 1px solid #dfdfdf;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #1f1f1f;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    gap: 0.55rem;
    padding: 0.6rem;
    width: 100%;
    cursor: pointer;
    appearance: none;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.club-brand-card:hover {
    transform: translateY(-2px);
    border-color: #d2c27a;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}

.club-brand-card:focus-visible {
    outline: 2px solid #eac736;
    outline-offset: 2px;
}

.club-brand-card img {
    width: 100%;
    max-width: 220px;
    height: 220px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.club-brand-card span {
    font-size: 0.9rem;
    color: #333333;
}

.club-brands-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.club-brands-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #d6d6d6;
    background: #ffffff;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #222222;
    cursor: pointer;
}

.club-brands-btn svg {
    width: 18px;
    height: 18px;
}

.club-brands-pagination {
    text-align: center;
}

.club-brands-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #d2d2d2;
    opacity: 1;
}

.club-brands-pagination .swiper-pagination-bullet-active {
    background: #eac736;
}

.club-associate-form-block {
    margin-top: 2rem;
    background: #ffffff;
    border-radius: 14px;
    padding: 2rem 1.1rem 0.4rem;
}

.club-associate-form-block h4 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #081a4b;
    text-align: center;
    font-weight: 800;
}

.club-associate-form-block p {
    margin: 0 0 2.2rem;
    color: #555555;
    line-height: 1.55;
    text-align: center;
    font-size: 1rem;
}

.club-associate-form {
    display: grid;
    gap: 1.5rem;
}

.club-associate-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.6rem 2.4rem;
}

.club-associate-form label {
    display: grid;
    gap: 0.55rem;
    font-size: 0.86rem;
    font-weight: 500;
    color: #081a4b;
}

.club-associate-form input,
.club-associate-form textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #bcbcbc;
    border-radius: 0;
    padding: 0.55rem 0;
    font: inherit;
    color: #1f1f1f;
    background: transparent;
    box-sizing: border-box;
}

.club-associate-form input:focus,
.club-associate-form textarea:focus {
    border-color: #081a4b;
    outline: none;
}

.club-associate-form textarea {
    resize: vertical;
    min-height: 80px;
}

.club-associate-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #111111;
    padding-top: 0.2rem;
}

.club-associate-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    border: 1px solid #bcbcbc;
}

.club-associate-check span {
    line-height: 1.4;
}

.club-associate-check a {
    color: #081a4b;
}

.club-associate-submit {
    border: 0;
    border-radius: 999px;
    padding: 0.95rem 2.6rem;
    background: #eb1f2d;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    justify-self: center;
    min-width: 180px;
}

.club-associate-submit:hover {
    opacity: 0.9;
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (min-width: 640px) {
    /* 3 columnas arriba + 3 abajo = grid 3×2 */
    .club-allies-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .club-associate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 2.8rem;
    }
}

@media (max-width: 768px) {
    main {
        margin-top: 0;
    }

    /*
    .club-video-section {
        margin-top: -60px;
    }*/

    .club-video-wrapper {
        height: 250px;
        max-height: 600px;
    }   

    .club-contact-row {
        flex-direction: column;
        align-items: center;
    }

    .club-contact-btn {
        max-width: 320px;
        justify-content: center;
    }

    .club-associate-form-block {
        padding: 1.5rem 0.9rem 0.2rem;
    }

    .club-associate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 2.8rem;
    }

    .club-video-overlay-img {
        max-width: 145%;
        top: 2.5rem;
    }

    .club-video-logo-tr {
        right: clamp(0rem, 5vw, -2rem);
        top: clamp(0rem, 3vw, 0.4rem);
    }

    .club-badge-img {
        display: inline-block;
        max-width: 185px;
        height: auto;
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    .club-about-inner h2 {
        font-size: 1.2rem;
        margin: 0 15px 1rem;
        line-height: 1.25;
    }
}

/* ── CTA DROPDOWN (header) ───────────────────── */
.cta-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

#ctaDropdownBtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.cta-chevron {
    font-size: 0.65em;
    display: inline-block;
    transition: transform 0.25s ease;
    line-height: 1;
}

.cta-chevron.open {
    transform: rotate(180deg);
}

.cta-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    z-index: 9999;
    animation: dropFadeIn 0.2s ease;
}

.cta-dropdown-menu.open {
    display: block;
}

@keyframes dropFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cta-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    text-decoration: none;
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    transition: background 0.18s, color 0.18s;
    border-bottom: 1px solid #f0f0f0;
}

.cta-dropdown-item:last-child {
    border-bottom: none;
}

.cta-dropdown-item:hover {
    background: #f5f5f5;
    color: #000;
}

/* ── TOAST MESSAGE ──────────────────────────── */
.form-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #664d03;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    z-index: 9999;
    max-width: 90%;
    animation: slideDownToast 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes slideDownToast {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.form-toast.hide {
    animation: slideUpToast 0.3s ease-out;
}

@keyframes slideUpToast {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}
