﻿/* =========================
   BASE (template cleanup)
========================= */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0; /* clave: evita el espacio raro */
    padding: 0;
    /* Quitamos margin-bottom: 60px del template porque ya no aplica */
    background-color:black
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Si tu layout tiene un <main class="main"> del template, forzamos sin padding
   para que el HERO sea full width/full height */
main {
    padding: 0 !important;
}

/* =========================
   TOP STRIP (barra negra WP)
========================= */
.topstrip {
    background: #111;
    color: #fff;
    height: 64px;
    display: grid;
    grid-template-columns: 72px 1fr 220px 1fr;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1100;
}

.topstrip__left {
    display: flex;
    justify-content: center;
}

.topstrip__burger {
    width: 54px;
    height: 54px;
    border: 0;
    cursor: pointer;
    background: #d60000;
    color: #fff;
    display: grid;
    place-items: center;
    border-radius: 4px;
}

.topstrip__center {
    padding-left: 10px;
}

.topstrip__breaking {
    font-weight: 900;
    letter-spacing: .8px;
    font-size: 13px;
    opacity: .95;
}

.topstrip__logo {
    display: flex;
    justify-content: center;
}

    .topstrip__logo img {
        height: 28px;
        width: auto;
        display: block;
    }

.topstrip__right {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    padding-right: 18px;
}

.topstrip__social {
    color: #cfcfcf !important;
    text-decoration: none;
    font-size: 16px;
}

    .topstrip__social:hover {
        color: #d60000 !important;
    }

/* =========================
   HERO SLIDER (full screen)
========================= */
.hero {
    width: 100%;
    margin: 0;
}

.hero__viewport {
    position: relative;
    width: 100%;
    height: calc(100vh - 64px); /* full pantalla menos la barra */
    min-height: 640px; /* evita que se vea pequeño */
    overflow: hidden;
}

.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .6s ease, transform 1.2s ease;
}

    .hero__slide.is-active {
        opacity: 1;
        transform: scale(1);
    }

/* Overlay más parecido al WP (mejor contraste) */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.35) 100% );
}

.hero__content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* clave: centrado real */
    text-align: center;
    color: #fff;
    width: min(980px, 92%);
}

.hero__title {
    margin: 0 0 10px;
    font-weight: 950;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: .8px;
    line-height: 1.02;
    font-size: clamp(34px, 4.6vw, 74px);
    text-shadow: 0 10px 26px rgba(0,0,0,.35);
}

.hero__subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    opacity: .9;
}

/* Play button (círculo con aro) */
.hero__play {
    position: absolute;
    left: 50%;
    bottom: 90px;
    transform: translateX(-50%);
    width: 66px;
    height: 66px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    background: rgba(255,255,255,.14);
    color: #fff;
    display: grid;
    place-items: center;
    z-index: 10;
    backdrop-filter: blur(2px);
}

    .hero__play i {
        font-size: 18px;
        margin-left: 2px;
    }

.hero__playRing {
    position: absolute;
    inset: -10px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,.18);
}

.hero__play:hover {
    background: rgba(255,255,255,.20);
}

/* Dots */
.hero__dots {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(255,255,255,.35);
    cursor: pointer;
}

    .hero__dot.is-active {
        background: rgba(255,255,255,.9);
    }

@media (max-width: 680px) {
    .hero__viewport {
        min-height: 520px;
    }

    .hero__title {
        font-size: clamp(28px, 7vw, 46px);
    }

    .hero__play {
        bottom: 78px;
    }
}

/* =========================
   HOME CONTENT CONTAINER
   (todo lo que va debajo del hero)
========================= */
.page {
    padding: 18px;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    margin-top: 26px;
}

.section__head {
    display: flex;
    gap: 12px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 12px;
}

    .section__head h2 {
        margin: 0;
        font-size: 22px;
        color:#ffffff;
    }

/* Breaking bar */
.breaking {
    display: flex;
    align-items: center;
    background: #111;
    color: #fff;
    border: 0 !important;
    box-shadow: 0 10px 26px rgba(0,0,0,.12); /* leve */
    overflow: hidden;
}

.breaking__label {
    background: #d60000;
    padding: 10px 14px;
    font-weight: 700;
    letter-spacing: .5px;
}

.breaking__ticker {
    flex: 1;
    padding: 10px 14px;
    overflow: hidden;
    white-space: nowrap;
}

.breaking__track {
    display: inline-block;
    animation: ticker 18s linear infinite;
}

.breaking__item {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.breaking__sep {
    opacity: .6;
    margin: 0 10px;
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-45%);
    }
}

/* Chips */
.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    padding: 6px 10px;
    border-radius: 999px;
    background: #eee;
    text-decoration: none;
    color: #111;
    font-weight: 600;
    font-size: 13px;
}

.chip--active {
    background: #111;
    color: #fff;
}

/* Grid */
.grid {
    display: grid;
    gap: 14px;
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

/* News cards */
.card {
    border: 0 !important;
    border-radius: 0px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 26px rgba(0,0,0,.08); /* sombra suave como WP */
}
    .card:hover, .tcard:hover {
        transform: translateY(-2px);
        transition: transform .15s ease, box-shadow .15s ease;
        box-shadow: 0 14px 34px rgba(0,0,0,.12);
    }


.card__img {
    display: block;
    height: 170px;
    background-size: cover;
    background-position: center;
}

.card__body {
    padding: 12px;
}

.meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.tag {
    background: #f2f2f2;
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 700;
    font-size: 12px;
}

.date {
    color: #666;
    font-size: 12px;
}

.card__title {
    display: block;
    margin-top: 8px;
    font-size: 16px;
    font-weight: 800;
    color: #111;
    text-decoration: none;
}

.card__text {
    margin: 8px 0 0;
    color: #444;
    font-size: 14px;
}

/* Tournament cards */
.tcard {
    border: 0 !important;
    border-radius: 0px;
    overflow: hidden;
    background: #fff;
    display: grid;
    grid-template-columns: 38% 62%;
    box-shadow: 0 10px 26px rgba(0,0,0,.08);
}

.tcard__img {
    display: block;
    min-height: 170px;
    background-size: cover;
    background-position: center;
}

.tcard__body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tcard__title {
    font-size: 18px;
    font-weight: 900;
    color: #111;
    text-decoration: none;
}

.venue {
    color: #444;
    font-weight: 600;
}

.status {
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    color: #fff;
}

.status--active {
    background: #0a8f2a;
}

.status--completed {
    background: #d60000;
}

.dates {
    font-size: 13px;
    color: #333;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.btn {
    padding: 8px 12px;
    border-radius: 0px;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
}

.btn--ghost {
    background: #eee;
    color: #111;
}

.btn--primary {
    background: #d60000;
    color: #fff;
}

.link {
    text-decoration: none;
    font-weight: 800;
    color: #d60000;
}

@media (max-width: 980px) {
    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .grid--3, .grid--2 {
        grid-template-columns: 1fr;
    }

    .tcard {
        grid-template-columns: 1fr;
    }

    .tcard__img {
        min-height: 200px;
    }
}

/* =========================
   FOOTER (con Font Awesome)
========================= */
.usmlsa-footer {
    margin-top: 36px;
}

/* Social bar */
.usmlsa-footer__socialbar {
    background: #2e2e2e;
}

.usmlsa-footer__socialinner {
    max-width: 1200px;
    margin: 0 auto;
    height: 72px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.usmlsa-footer__social {
    display: grid;
    place-items: center;
    text-decoration: none;
    border-left: 1px solid rgba(255,255,255,.06);
}

    .usmlsa-footer__social:first-child {
        border-left: none;
    }

    .usmlsa-footer__social i {
        font-size: 24px;
        color: #cfcfcf;
    }

    .usmlsa-footer__social:hover {
        background: rgba(255,255,255,.03);
    }

        .usmlsa-footer__social:hover i {
            color: #ffffff;
        }

/* Main footer content */
.usmlsa-footer__main {
    background: #ffffff;
    border-top: 1px solid #eee;
}

.usmlsa-footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 34px 18px 44px;
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.2fr;
    gap: 34px;
}

.usmlsa-footer__title {
    margin: 0 0 18px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #111;
}

.usmlsa-footer__item {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: start;
    margin: 12px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.35;
}

.usmlsa-footer__ico {
    color: #d60000;
    font-size: 14px;
}

/* Gallery widget */
.usmlsa-footer__gallery {
    display: grid;
    grid-template-columns: repeat(3, 72px);
    gap: 10px;
}

.usmlsa-footer__thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    display: block;
    border: 0 !important;
    box-shadow: 0 8px 18px rgba(0,0,0,.10); /* sombra leve */
}


/* Newsletter */
.usmlsa-footer__text {
    margin: 0 0 16px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    max-width: 420px;
}

.usmlsa-footer__form {
    display: grid;
    grid-template-columns: 1fr 46px;
    align-items: center;
    background: #f2f2f2;
    border-radius: 10px;
    overflow: hidden;
    max-width: 420px;
}

.usmlsa-footer__input {
    border: none;
    background: transparent;
    padding: 12px 14px;
    outline: none;
    font-size: 14px;
}

.usmlsa-footer__submit {
    border: none;
    height: 46px;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    color: #d60000;
}

    .usmlsa-footer__submit:hover {
        background: rgba(214,0,0,.08);
    }

/* Footer responsive */
@media (max-width: 980px) {
    .usmlsa-footer__container {
        grid-template-columns: 1fr;
    }

    .usmlsa-footer__gallery {
        grid-template-columns: repeat(6, 72px);
    }
}

@media (max-width: 520px) {
    .usmlsa-footer__gallery {
        grid-template-columns: repeat(3, 72px);
    }
}
/* Buttons clean (sin borde) */
.btn, .btn--ghost, .btn--primary, button {
   
    outline: none !important;
}

    /* Focus accesible pero sin aro azul del template */
    .btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
    .form-control:focus, .form-check-input:focus,
    button:focus, a:focus {
        box-shadow: none !important;
        outline: none !important;
    }
/* =========================
   NEWS CARD estilo WP (fecha roja + boton)
========================= */
.ncard {
    background: #fff;
    border: 0 !important;
    border-radius: 0; /* como el ejemplo (más cuadrado) */
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0,0,0,.08);
}

.ncard__media {
    position: relative;
    display: block;
    height: 210px;
    background-size: cover;
    background-position: center;
    text-decoration: none;
}

/* Date badge rojo */
.ncard__date {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 74px;
    height: 74px;
    background: #d60000;
    color: #fff;
    display: grid;
    place-items: center;
    text-align: center;
    font-weight: 950;
}

.ncard__day {
    font-size: 30px;
    line-height: 1;
    margin-top: 6px;
    letter-spacing: .5px;
}

.ncard__mon {
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

/* Body */
.ncard__body {
    padding: 14px 14px 16px;
}

.ncard__meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    color: #666;
    font-size: 12px;
    font-weight: 700;
}

.ncard__cat, .ncard__time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ncard__dots {
    opacity: .6;
}

.ncard__title {
    display: block;
    margin-top: 10px;
    text-decoration: none;
    color: #111;
    font-weight: 950;
    font-size: 18px;
    line-height: 1.15;
}

    .ncard__title:hover {
        color: #d60000;
    }

.ncard__text {
    margin: 10px 0 14px;
    color: #333;
    font-size: 14px;
    line-height: 1.55;
}

/* Botón */
.ncard__btn {
    display: inline-block;
    padding: 10px 14px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    font-size: 13px;
    border-radius: 0; /* como el ejemplo */
}

    .ncard__btn:hover {
        background: #d60000;
        color:white;
    }

@media (max-width: 680px) {
    .ncard__media {
        height: 200px;
    }
}
/* =========================
   BOTONES – ESTÁNDAR USMLSA
========================= */

/* Botón Register (primary) */
.btn--primary {
    background: #d60000;
    color: #ffffff !important;
    border: 2px solid #d60000;
    text-decoration: none !important;
    transition: all .15s ease;
}

    /* Hover Register */
    .btn--primary:hover,
    .btn--primary:focus {
        background: #ffffff;
        color: #d60000 !important;
        border-color: #d60000;
        text-decoration: none !important;
    }

/* Botón More Info (ghost) */
.btn--ghost {
    background: #f1f1f1;
    color: #111 !important;
    border: 2px solid #f1f1f1;
    text-decoration: none !important;
    transition: all .15s ease;
}

    .btn--ghost:hover,
    .btn--ghost:focus {
        background: #ffffff;
        color: #111 !important;
        border-color: #d60000;
        text-decoration: none !important;
    }

/* Blindaje contra estilos de <a> */
a.btn--primary:hover,
a.btn--primary:active,
a.btn--primary:visited {
    color: #d60000 !important;
}

a.btn--ghost:hover,
a.btn--ghost:active,
a.btn--ghost:visited {
    color: #111 !important;
}
/* =========================
   BOTÓN INFO (Read More / More Info)
========================= */
.btn--info,
.ncard__btn {
    display: inline-block;
    padding: 10px 14px;
    background: #111;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 900;
    font-size: 13px;
    border-radius: 0;
    border: 2px solid #111;
    transition: all .15s ease;
}

    /* Hover INFO */
    .btn--info:hover,
    .ncard__btn:hover {
        background: #ffffff;
        color: #d60000 !important;
        border-color: #d60000 !important;
        text-decoration: none !important;
    }
/* =========================
   OFFCANVAS MENU
========================= */
.offcanvas {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s ease;
}

    .offcanvas.is-open {
        pointer-events: auto;
        opacity: 1;
    }

.offcanvas__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}

.offcanvas__panel {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 320px;
    background: #111;
    color: #fff;
    transform: translateX(-100%);
    transition: transform .2s ease;
    box-shadow: 12px 0 30px rgba(0,0,0,.35);
    display: flex;
    flex-direction: column;
}

.offcanvas.is-open .offcanvas__panel {
    transform: translateX(0);
}

.offcanvas__head {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.offcanvas__logo {
    height: 22px;
    width: auto;
}

.offcanvas__close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 6px;
    background: rgba(255,255,255,.06);
    color: #fff;
    cursor: pointer;
}

    .offcanvas__close:hover {
        background: rgba(255,255,255,.10);
    }

.offcanvas__nav {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.offcanvas__link {
    display: block;
    padding: 12px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff !important;
    font-weight: 900;
    letter-spacing: .2px;
    background: rgba(255,255,255,.04);
}

    .offcanvas__link:hover {
        background: rgba(255,255,255,.20);
        color: #d60000 !important;
    }

.offcanvas__social {
    margin-top: auto;
    padding: 14px;
    display: flex;
    gap: 14px;
    border-top: 1px solid rgba(255,255,255,.08);
}

    .offcanvas__social a {
        color: #ffffff !important;
        font-size: 18px;
        text-decoration: none;
    }

        .offcanvas__social a:hover {
            color: #d60000 !important;
        }
/* News filter UX */
#newsChips .chip {
    cursor: pointer;
}

    #newsChips .chip:focus {
        outline: none;
    }
    #newsChips .chip:hover {
        color: #d60000;
    }

/* OFFCANVAS (no debe tapar nada cuando está cerrado) */
.usmlsa-offcanvas {
    position: fixed;
    inset: 0;
    z-index: 3000;
    opacity: 0;
    pointer-events: none; /* ✅ clave: no tapa ni roba clicks */
    transition: opacity .15s ease;
}

    /* Cuando abre */
    .usmlsa-offcanvas.is-open {
        opacity: 1;
        pointer-events: auto; /* ✅ ahora sí captura clicks */
    }

    /* Backdrop */
    .usmlsa-offcanvas .offcanvas__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,.55);
        z-index: 0;
    }

    /* Panel */
    .usmlsa-offcanvas .offcanvas__panel {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 320px;
        background: #111;
        color: #fff;
        z-index: 1;
        transform: translateX(-100%);
        transition: transform .2s ease;
        box-shadow: 12px 0 30px rgba(0,0,0,.35);
        display: flex;
        flex-direction: column;
    }

    /* Panel visible al abrir */
.offcanvas {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s ease;
}

    .usmlsa-offcanvas.is-open .offcanvas__panel {
        transform: translateX(0);
    }

.offcanvas.is-open {
    pointer-events: auto;
    opacity: 1;
}
/* =========================
   TOP STRIP – MOBILE FIX
   Ocultar redes en mobile
========================= */
@media (max-width: 768px) {
    .topstrip__right {
        display: none !important;
    }
}
/* ===== Sponsors Section ===== */
.eas-sponsors {
    /*background: #0b0b0b;*/
    padding: 40px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.eas-sponsors-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.eas-sponsors-title {
    color: #ffffff;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    font-weight: 700;
}

.eas-sponsors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    align-items: center;
}

.eas-sponsor-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, background .2s ease;
}

    .eas-sponsor-item:hover {
        transform: translateY(-3px);
        background: rgba(255,255,255,0.06);
    }

    .eas-sponsor-item img {
        max-height: 60px;
        width: auto;
        object-fit: contain;
    }

/* Tablet */
@media (max-width: 992px) {
    .eas-sponsors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .eas-sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
