*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
:root {
    --navy: #1a2d5a;
    --gold: #f0a500;
    --gold2: #ffd166;
    --white: #ffffff;
    --bg: #f4f6fb;
    --gray: #e2e6f0;
    --muted: #6b7280;
    --text: #1a1a2e;
    --green: #16a34a;
    --red: #dc2626;
}
body {
    font-family: "Open Sans", sans-serif;
    background: var(--bg);
    color: var(--text);
}
header {
    background: #f9f6ef;
    border-bottom: 4px solid #f0a500;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

header img {
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}

.header-sep {
    width: 1px;
    height: 38px;
    background: rgba(26, 45, 90, 0.2);
    flex-shrink: 0;
}

.header-text {
    flex: 1;
    min-width: 0; /* evita overflow */
}

.header-text h1 {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(0.85rem, 2vw, 1.15rem);
    font-weight: 800;
    color: #f0a500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Botón login */
.btn-login {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    border: 2px solid #1a56db;
    color: #1a56db;
    text-decoration: none;
    padding: 0.45rem 1.1rem;
    border-radius: 6px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    transition:
        background 0.18s,
        color 0.18s;
}
.btn-login:hover {
    background: #1a56db;
    color: #f0a500;
}
.btn-login-icon {
    font-size: 0.9rem;
}
@media (max-width: 768px) {
    header {
        padding: 0.65rem 1.2rem;
        gap: 0.75rem;
    }
    header img {
        height: 44px;
    }
    .header-text h1 {
        font-size: 0.78rem;
    }
    .btn-login {
        padding: 0.4rem 0.85rem;
        font-size: 0.68rem;
    }
}
@media (max-width: 480px) {
    .header-sep {
        display: none;
    }
    .header-text {
        display: none;
    }
    .btn-login-label {
        display: none;
    }
    .btn-login {
        padding: 0.5rem 0.7rem;
        border-radius: 50%;
        font-size: 1rem;
        border-width: 1.5px;
    }
    .btn-login-icon {
        font-size: 1.1rem;
    }

     header {
        justify-content: space-between;
    }
    header img       { order: 1; }
    .btn-login       { order: 2; margin-left: auto; }
    .header-sep      { display: none; }
    .header-text     { display: none; }
    .btn-login-label { display: none; }
    .btn-login {
        padding: 0.5rem 0.7rem;
        border-radius: 50%;
        border-width: 1.5px;
    }
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.page-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
}
.page-top h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex: 1;
}
.page-top h2 span {
    font-family: "Open Sans", sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--muted);
    text-transform: none;
    letter-spacing: 0;
    margin-left: 0.4rem;
}

.page-filters { display: flex; gap: .5rem; flex-wrap: wrap; }

.ftab {
    background: var(--white);
    border: 1.5px solid var(--gray);
    color: var(--muted);
    padding: 0.38rem 0.95rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.18s;
}
.ftab:hover {
    border-color: var(--navy);
    color: var(--navy);
}
.ftab.on {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--gold);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.3rem;
}

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--gray);
    box-shadow: 0 2px 10px rgba(26, 45, 90, 0.07);
    cursor: pointer;
    transition:
        transform 0.22s,
        box-shadow 0.22s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(26, 45, 90, 0.13);
}
.card.locked {
    cursor: default;
    opacity: 0.68;
}
.card.locked:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(26, 45, 90, 0.07);
}

.card-top {
    height: 4px;
}
.c-active {
    background: linear-gradient(90deg, var(--navy), var(--gold));
}
.c-inscrito {
    background: linear-gradient(90deg, #b97d00, var(--gold2));
}
.c-locked {
    background: #ccc;
}

.card-head {
    background: var(--navy);
    padding: 1.1rem 1.3rem 0.95rem;
    position: relative;
}
.cat {
    font-family: "Montserrat", sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold2);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.cat::before {
    content: "";
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
}
.ctitle {
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    line-height: 1.3;
    padding-right: 5.5rem;
}
.badge {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    padding: 0.18rem 0.6rem;
    border-radius: 3px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.57rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.b-active {
    background: rgba(22, 163, 74, 0.18);
    color: #16a34a;
    border: 1px solid #16a34a;
}
.b-inscrito {
    background: rgba(240, 165, 0, 0.18);
    color: #b97d00;
    border: 1px solid var(--gold);
}
.b-locked {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 1px solid #dc2626;
}

.card-body {
    padding: 1.1rem 1.3rem 1.2rem;
}
.meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 1.1rem;
}
.mi {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.mi-ico {
    width: 27px;
    height: 27px;
    background: var(--bg);
    border: 1px solid var(--gray);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.mi-tx b {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 0.57rem;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.mi-tx span {
    font-size: 0.77rem;
    color: var(--text);
    font-weight: 600;
}

.card-foot {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--gray);
}
.pcount {
    flex: 1;
    font-size: 0.75rem;
    color: var(--muted);
}
.pcount strong {
    color: var(--navy);
}

.btn-card {
    background: var(--navy);
    color: var(--gold);
    border: none;
    padding: 0.5rem 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background 0.18s;
    white-space: nowrap;
}
.btn-card:hover {
    background: #243870;
}
.btn-card.ins {
    background: transparent;
    color: #b97d00;
    border: 1.5px solid var(--gold);
}
.btn-card.ins:hover {
    background: rgba(240, 165, 0, 0.07);
}
.btn-card:disabled {
    background: #ddd;
    color: #aaa;
    cursor: not-allowed;
}

/* ── MODAL ── */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 18, 40, 0.68);
    backdrop-filter: blur(4px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.overlay.open {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: 10px;
    width: 100%;
    max-width: 460px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(10, 18, 40, 0.35);
    animation: pop 0.28s cubic-bezier(0.22, 0.68, 0, 1.2);
}
@keyframes pop {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.m-head {
    background: var(--navy);
    border-bottom: 3px solid var(--gold);
    padding: 1.3rem 1.6rem 1.1rem;
    position: relative;
}
.m-head-logos {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}
.ml {
    width: 26px;
    height: 26px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Montserrat", sans-serif;
    font-size: 0.5rem;
    font-weight: 900;
}
.ml-u {
    background: #c41e3a;
    color: #fff;
}
.ml-d {
    background: var(--gold);
    color: var(--navy);
}
.m-head-logos span {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: "Montserrat", sans-serif;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.m-head h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.m-head p {
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 0.2rem;
}
.m-x {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s;
}
.m-x:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.m-body {
    padding: 1.6rem;
}

.ev-pill {
    background: var(--navy);
    border-left: 4px solid var(--gold);
    border-radius: 5px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.ev-pill-ico {
    font-size: 1.4rem;
    flex-shrink: 0;
}
.ev-pill small {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
}
.ev-pill strong {
    display: block;
    font-size: 0.87rem;
    color: var(--gold2);
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    margin-top: 0.15rem;
}

.fg {
    margin-bottom: 0.6rem;
}
.fg label {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.38rem;
}
.fg label sup {
    color: var(--red);
}
.iw {
    position: relative;
}
.iw input {
    width: 100%;
    padding: 0.68rem 1rem 0.68rem 2.65rem;
    border: 1.5px solid var(--gray);
    border-radius: 6px;
    font-family: "Open Sans", sans-serif;
    font-size: 0.86rem;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition:
        border-color 0.18s,
        box-shadow 0.18s;
}
.iw input:focus {
    border-color: var(--navy);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26, 45, 90, 0.08);
}
.iw input.ok {
    border-color: var(--green);
    background: #f0fdf4;
}
.iw input.bad {
    border-color: var(--red);
    background: #fef2f2;
}
.ico {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    pointer-events: none;
}
.hint {
    font-size: 0.68rem;
    color: var(--muted);
    margin-top: 0.3rem;
}
.hint.err {
    color: var(--red);
    display: none;
}
.hint.err.v {
    display: block;
}

.m-acts {
    display: flex;
    gap: 0.7rem;
    margin-top: 1.3rem;
}
.btn-sec {
    flex: 1;
    background: transparent;
    border: 1.5px solid var(--gray);
    color: var(--muted);
    padding: 0.65rem;
    border-radius: 6px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.18s;
}
.btn-sec:hover {
    border-color: var(--navy);
    color: var(--navy);
}
.btn-pri {
    flex: 2;
    background: var(--navy);
    color: var(--gold);
    border: none;
    padding: 0.65rem;
    border-radius: 6px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.18s;
}
.btn-pri:hover {
    background: #243870;
}

.ms {
    display: none;
}
.ms.on {
    display: block;
}

.rbox {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 7px;
    margin-bottom: 1.2rem;
}
.rbox.ins {
    background: rgba(240, 165, 0, 0.08);
    border: 1.5px solid var(--gold);
}
.rbox.new {
    background: rgba(22, 163, 74, 0.07);
    border: 1.5px solid #16a34a;
}
.rico {
    font-size: 1.8rem;
}
.rtx h4 {
    font-family: "Montserrat", sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--navy);
    text-transform: uppercase;
}
.rtx p {
    font-size: 0.74rem;
    color: var(--muted);
    margin-top: 0.18rem;
}

.dcard {
    background: var(--bg);
    border: 1px solid var(--gray);
    border-radius: 6px;
    padding: 0.85rem 1.05rem;
    margin-bottom: 1.2rem;
}
.drow {
    display: flex;
    justify-content: space-between;
    padding: 0.28rem 0;
    font-size: 0.79rem;
    border-bottom: 1px solid var(--gray);
}
.drow:last-child {
    border-bottom: none;
}
.drow span:first-child {
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.drow span:last-child {
    color: var(--navy);
    font-weight: 700;
}

.btn-blk {
    width: 100%;
    padding: 0.7rem;
    border-radius: 6px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.18s;
    margin-bottom: 0.5rem;
}
.btn-p {
    background: var(--navy);
    color: var(--gold);
    border: none;
}
.btn-p:hover {
    background: #243870;
}
.btn-o {
    background: transparent;
    border: 1.5px solid var(--navy);
    color: var(--navy);
}
.btn-o:hover {
    background: var(--bg);
}

.ok-box {
    text-align: center;
    padding: 0.4rem 0;
}
.ok-box .ck {
    font-size: 3.2rem;
    display: block;
    margin-bottom: 0.7rem;
}
.ok-box h4 {
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--navy);
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}
.ok-box p {
    font-size: 0.79rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.3rem;
}

footer {
    background: #1a56db;
    border-top: 4px solid #f0a500;
    font-family: "Open Sans", sans-serif;
    color: #ffffff;
}

.f-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.f-brand img {
    max-width: 220px;
    object-fit: contain;
}

.f-contact {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 240px;
}

.f-col-title {
    font-family: "Montserrat", sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    color: #f0a500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
}

.f-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.92rem;
    line-height: 1.5;
    opacity: 1;
}
.f-contact-item a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.f-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.f-socials {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.4rem;
}

.fs-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        opacity 0.18s,
        transform 0.18s;
}
.fs-icon:hover {
    opacity: 0.82;
    transform: translateY(-2px);
}
.fs-wa {
    background: #25d366;
    color: #fff;
}
.fs-fb {
    background: #1877f2;
    color: #fff;
}
.fs-yt {
    background: #ff0000;
    color: #fff;
}
.fs-ml {
    background: #f0a500;
    color: #1a56db;
}

.f-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.9rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.f-bottom strong {
    color: #f0a500;
    font-weight: 700;
}

@media (max-width: 640px) {
    .f-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.8rem;
    }
    .f-contact-item {
        justify-content: center;
    }
    .f-socials {
        justify-content: center;
    }
    .f-bottom {
        justify-content: center;
        text-align: center;
    }
    .header-login {
        display: none;
    }
    .header-text {
        height: 52px;
    }
    .logo {
        height: 52px;
    }
}

@media (max-width: 640px) {
    .grid {
        grid-template-columns: 1fr;
    }
    .meta {
        grid-template-columns: 1fr;
    }
}

.no-link {
    text-decoration: none;
    color: inherit;
}

.no-link:hover {
    color: #6675df;
}

.banner {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: url("../cabezera.png") center center / cover no-repeat;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
}

/* Contenido encima */
.banner-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
}

.banner-tag {
    display: inline-block;
    background: rgba(240, 165, 0, 0.2);
    border: 1px solid rgba(240, 165, 0, 0.5);
    color: #ffd166;
    font-family: "Montserrat", sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.28rem 0.85rem;
    border-radius: 20px;
    width: fit-content;
}

.banner-title {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    color: #f0a500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.banner-desc {
    font-family: "Open Sans", sans-serif;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 300;
    line-height: 1.65;
    max-width: 520px;
}

.banner-desc strong {
    color: #ffd166;
    font-weight: 600;
}

@media (max-width: 640px) {
    .banner {
        height: 200px;
    }
    .banner-title {
        font-size: 1.2rem;
    }
    .banner-desc {
        font-size: 0.78rem;
    }
}
.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .8rem;
    margin-top: 2rem;
}

.pg-info {
    font-family: 'Open Sans', sans-serif;
    font-size: .75rem;
    color: var(--muted);
}

.pg-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    flex-wrap: wrap;
}

.pg-links .pg-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 .65rem;
    border-radius: 6px;
    border: 1.5px solid var(--gray);
    background: var(--white);
    color: var(--navy);
    font-family: 'Montserrat', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .18s;
}

.pg-links a.pg-btn:hover {
    border-color: var(--navy);
    background: var(--bg);
}

.pg-links .pg-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--gold);
}

.pg-links .pg-btn.disabled {
    opacity: .35;
    cursor: not-allowed;
    pointer-events: none;
}

.pg-links .pg-info {
    padding: 0 .3rem;
    color: var(--muted);
    font-size: .8rem;
}
.iw select {
    width: 100%;
    padding: 0.68rem 1rem 0.68rem 2.65rem;
    border: 1.5px solid var(--gray);
    border-radius: 6px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.86rem;
    color: var(--text);
    background: var(--bg);
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.iw select:focus {
    border-color: var(--navy);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26, 45, 90, 0.08);
}

.iw select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
