/* ==========================================================================
   Copa Malta Morena 2027 · Estilos (mobile-first)
   Orden: base → componentes → sitio informativo → portal de fichas
   Breakpoints: 768px (md) y 992px (lg), igual que Bootstrap.
   ========================================================================== */

/* ---------- 1. Base ---------- */
html { scroll-behavior: smooth; }
body { background: var(--mm-navy); color: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { text-decoration: none; }
:focus-visible { outline: 3px solid var(--mm-cyan); outline-offset: 2px; }
.container { max-width: 1240px; }

.display-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: .92; letter-spacing: .005em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow .icon { width: 14px; height: 14px; }
.text-cyan { color: var(--mm-cyan) !important; }
.text-yellow { color: var(--mm-yellow) !important; }
.text-soft { color: var(--mm-text-soft) !important; }
.icon { width: 1em; height: 1em; flex: none; fill: currentColor; }
.icon-stroke { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--mm-yellow); color: var(--mm-navy); padding: 10px 16px; border-radius: 8px; font-weight: 800; }
.skip-link:focus { top: 12px; }

/* ---------- 2. Botones ---------- */
.btn { --bs-btn-font-weight: 800; --bs-btn-font-size: 15px; --bs-btn-padding-x: 22px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; border-width: 2px; white-space: nowrap; transition: transform .15s var(--ease-out), box-shadow .15s, background-color .15s, opacity .15s; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-sm { min-height: 40px; --bs-btn-padding-x: 16px; --bs-btn-font-size: 14px; }
.btn-cta { --bs-btn-bg: var(--mm-yellow); --bs-btn-color: var(--mm-navy); --bs-btn-border-color: var(--mm-yellow); --bs-btn-hover-bg: #fff; --bs-btn-hover-color: var(--mm-navy); --bs-btn-hover-border-color: #fff; --bs-btn-active-bg: var(--mm-yellow); --bs-btn-active-color: var(--mm-navy); --bs-btn-disabled-bg: var(--mm-yellow); --bs-btn-disabled-color: var(--mm-navy); --bs-btn-disabled-border-color: var(--mm-yellow); box-shadow: 0 4px 0 #B9BF00; }
.btn-cta:disabled, .btn-cta.disabled { opacity: .4; box-shadow: none; }
.btn-cta .btn-arrow { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--mm-navy); color: var(--mm-yellow); }
.btn-cta .btn-arrow .icon { width: 14px; height: 14px; }
.btn-ghost { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .45); --bs-btn-hover-bg: rgba(255, 255, 255, .1); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #fff; --bs-btn-active-bg: rgba(255,255,255,.15); --bs-btn-active-color: #fff; }
.btn-navy { --bs-btn-bg: var(--mm-navy); --bs-btn-color: #fff; --bs-btn-border-color: var(--mm-navy); --bs-btn-hover-bg: var(--mm-royal); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--mm-royal); --bs-btn-active-bg: var(--mm-navy); --bs-btn-active-color: #fff; }
.btn-light-outline { --bs-btn-color: var(--mm-navy); --bs-btn-border-color: #C9D5EA; --bs-btn-hover-bg: #EEF3FB; --bs-btn-hover-color: var(--mm-navy); --bs-btn-hover-border-color: #9FB0CC; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .8; }
.btn .spinner-border { width: 18px; height: 18px; border-width: 3px; }

/* ---------- 3. Barra de demostración (solo maqueta) ---------- */
.demo-bar { background: #000E26; border-bottom: 1px dashed #23406F; font-size: 12px; color: #9FB3D6; position: relative; z-index: 1031; }
.demo-bar .container { display: flex; align-items: center; gap: 10px; min-height: 38px; flex-wrap: wrap; }
.demo-bar__tag { font-weight: 800; letter-spacing: .12em; color: var(--mm-cyan); }
.demo-switch { display: inline-flex; background: #0B2350; border-radius: 999px; padding: 3px; }
.demo-switch button { border: 0; background: transparent; color: #9FB3D6; font-weight: 700; font-size: 11px; padding: 3px 9px; border-radius: 999px; }
.demo-switch button[aria-pressed="true"] { background: var(--mm-cyan); color: var(--mm-navy); }
.demo-bar__label { display: none; }
.demo-bar__reset { margin-left: auto; border: 0; background: transparent; color: var(--mm-yellow); font-weight: 800; font-size: 11px; }
@media (min-width: 768px) { .demo-bar__label { display: inline; } .demo-switch button { font-size: 12px; padding: 3px 12px; } }

/* ---------- 4. Header del sitio ---------- */
.site-header { position: absolute; left: 0; right: 0; top: 38px; z-index: 1030; }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.site-header__brand img { height: 52px; width: auto; }
.site-nav { display: none; }
.site-nav a { color: #fff; font-weight: 700; font-size: 14px; padding: 8px 12px; }
.site-nav a:hover { color: var(--mm-yellow); }
.site-nav a[aria-current="page"] { color: var(--mm-yellow); box-shadow: inset 0 -3px 0 var(--mm-yellow); }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.site-header__cta { display: none !important; }
.menu-toggle { width: 48px; height: 48px; border-radius: 12px; background: var(--mm-royal); border: 0; color: #fff; display: grid; place-items: center; }
.menu-toggle .icon { width: 24px; height: 24px; }
.site-header--solid { position: relative; top: 0; background: var(--mm-navy); border-bottom: 1px solid rgba(255,255,255,.08); }
@media (min-width: 992px) {
  .site-header__brand img { height: 62px; }
  .site-nav { display: flex; gap: 2px; }
  .site-header__cta { display: inline-flex !important; }
  .menu-toggle { display: none; }
}

/* Menú móvil (offcanvas de Bootstrap) */
.mobile-menu { --bs-offcanvas-bg: var(--mm-navy-deep); --bs-offcanvas-color: #fff; --bs-offcanvas-width: 320px; }
.mobile-menu .offcanvas-header { border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-menu .btn-close { filter: invert(1); opacity: .9; }
.mobile-menu nav a { display: flex; align-items: center; min-height: 52px; padding: 0 8px; border-bottom: 1px solid rgba(255,255,255,.08); font-family: var(--font-display); font-size: 24px; text-transform: uppercase; color: #fff; letter-spacing: .02em; }
.mobile-menu nav a[aria-current="page"] { color: var(--mm-yellow); }

/* ---------- 5. Cinta (ticker) ---------- */
.ticker { background: var(--mm-yellow); color: var(--mm-navy); overflow: hidden; white-space: nowrap; height: 46px; display: flex; align-items: center; }
.ticker__track { display: inline-flex; align-items: center; gap: 24px; padding-left: 24px; font-family: var(--font-display); font-size: 22px; text-transform: uppercase; letter-spacing: .03em; animation: ticker 28s linear infinite; }
.ticker__track .icon { width: 18px; height: 18px; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (min-width: 768px) { .ticker { height: 54px; } .ticker__track { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } html { scroll-behavior: auto; } }

/* ---------- 6. Secciones genéricas ---------- */
.section { position: relative; padding: 64px 0; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.section-head h2 { font-size: 44px; margin: 6px 0 0; }
.section-head p { color: var(--mm-text-soft); margin: 0; max-width: 440px; }
@media (min-width: 992px) {
  .section { padding: 96px 0; }
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
  .section-head h2 { font-size: 64px; }
}

/* ---------- 7. Hero con video ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 160px 0 56px; min-height: 640px; display: flex; align-items: flex-end; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; background: var(--mm-navy); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,26,67,.98) 0%, rgba(0,35,88,.82) 55%, rgba(0,35,88,.5) 100%); }
.hero__tag { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.hero__badge { background: var(--mm-red); color: #fff; padding: 5px 10px; border-radius: 4px; display: inline-flex; gap: 6px; align-items: center; }
.hero__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.hero__title { font-size: 76px; margin: 16px 0; }
.hero__title span { display: block; color: var(--mm-yellow); }
.hero__lead { font-size: 16px; color: #DBE6FF; max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__note { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--mm-text-muted); font-weight: 600; }
.hero__note .icon { color: var(--mm-cyan); width: 18px; height: 18px; }
.hero__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255,255,255,.2); }
.hero__progress span { display: block; height: 100%; width: 0; background: var(--mm-yellow); }
.video-toggle { position: absolute; right: 16px; bottom: 20px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); background: rgba(0,26,67,.6); color: #fff; display: grid; place-items: center; }
.video-toggle .icon { width: 18px; height: 18px; }
@media (min-width: 992px) {
  .hero { min-height: 800px; align-items: center; padding: 140px 0 80px; }
  .hero::before { background: linear-gradient(90deg, rgba(0,26,67,.97) 0%, rgba(0,35,88,.88) 42%, rgba(0,35,88,.25) 72%), linear-gradient(0deg, rgba(0,26,67,.9) 0%, transparent 40%); }
  .hero__title { font-size: 150px; line-height: .84; margin: 22px 0; }
  .hero__lead { font-size: 19px; }
  .video-toggle { right: 32px; bottom: 32px; }
}

/* ---------- 8. Pasos ---------- */
.steps-section { background-color: var(--mm-royal); overflow: hidden; }
.steps-section::before { content: ""; position: absolute; inset: 0; background: var(--pattern-chevron-royal); background-size: 64px 37px; }
.steps-section .container { position: relative; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step { background: var(--mm-navy); border-radius: 18px; padding: 20px 18px; display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; }
.step__num { font-family: var(--font-display); font-size: 72px; line-height: .8; color: var(--mm-yellow); grid-row: span 3; }
.step__when { justify-self: start; background: var(--mm-cyan); color: var(--mm-navy); font-size: 11px; font-weight: 800; letter-spacing: .1em; padding: 4px 9px; border-radius: 4px; text-transform: uppercase; margin-bottom: 8px; }
.step h3 { font-size: 19px; font-weight: 800; margin: 0 0 4px; }
.step p { font-size: 14px; color: var(--mm-text-muted); margin: 0; }
.step--highlight { background: var(--mm-yellow); color: var(--mm-navy); }
.step--highlight .step__num { color: var(--mm-navy); }
.step--highlight .step__when { background: var(--mm-red); color: #fff; }
.step--highlight p { color: #26385C; }
@media (min-width: 992px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { display: block; padding: 28px 24px; }
  .step__num { font-size: 96px; }
  .step__when { display: inline-block; margin: 16px 0 10px; }
}

/* ---------- 9. Categorías ---------- */
.categories-section { overflow: hidden; isolation: isolate; }
.categories-section__bg { position: absolute; right: 0; top: 0; height: 100%; width: 100%; object-fit: cover; object-position: center 25%; z-index: -2; opacity: .35; }
.categories-section::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--mm-navy) 10%, rgba(0,35,88,.7) 60%, var(--mm-navy) 100%); }
.categories-section::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--mm-royal); mix-blend-mode: color; opacity: .6; }
.category-list { display: grid; gap: 14px; }
.category-bar { display: grid; grid-template-columns: 64px 1fr; filter: drop-shadow(0 10px 24px rgba(0,0,0,.3)); }
.category-bar__code { background: var(--mm-yellow); color: var(--mm-navy); display: grid; place-items: center; font-family: var(--font-display); font-size: 28px; grid-row: span 3; }
.category-bar--elite .category-bar__code { background: var(--mm-cyan); }
.category-bar__name { background: #fff; color: var(--mm-navy); padding: 12px 14px; }
.category-bar__name small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--mm-royal); }
.category-bar__name strong { font-family: var(--font-display); font-weight: 400; font-size: 36px; line-height: .95; text-transform: uppercase; }
.category-bar__years { background: var(--mm-royal); padding: 10px 14px; }
.category-bar__years strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1; color: var(--mm-yellow); }
.category-bar__years span { font-size: 12px; color: var(--mm-text-soft); font-weight: 600; }
.category-bar__branches { background: var(--mm-navy-deep); display: flex; align-items: center; gap: 8px; padding: 10px 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 13px; font-weight: 800; font-size: 13px; border: 2px solid rgba(255,255,255,.35); }
.footnote { margin-top: 16px; font-size: 13px; color: #9FB3D6; }
@media (min-width: 992px) {
  .categories-section__bg { width: 62%; opacity: .55; }
  .categories-section::before { background: linear-gradient(90deg, var(--mm-navy) 30%, rgba(0,35,88,.55) 70%, rgba(0,35,88,.7) 100%), linear-gradient(0deg, var(--mm-navy) 0%, transparent 30%, transparent 80%, var(--mm-navy) 100%); }
  .category-bar { grid-template-columns: 110px 1fr 300px 260px; }
  .category-bar__code { font-size: 44px; grid-row: auto; }
  .category-bar__name { padding: 16px 26px; }
  .category-bar__name strong { font-size: 52px; }
  .category-bar__years { padding: 16px 22px; display: flex; flex-direction: column; justify-content: center; }
  .category-bar__years strong { font-size: 44px; }
  .category-bar__branches { padding: 0 20px; }
}

/* ---------- 10. Finales en video (YouTube) ---------- */
.finals-section { background: #000E26; overflow: hidden; }
.finals-section::before { content: ""; position: absolute; inset: 0; background: var(--pattern-stars); }
.finals-section .container { position: relative; }
.finals-grid { display: grid; gap: 18px; }
.video-player { position: relative; aspect-ratio: 16/10; background: #000; overflow: hidden; margin: 0 calc(var(--bs-gutter-x) * -.5); }
.video-player__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-player__poster { position: absolute; inset: 0; border: 0; padding: 0; background: transparent; width: 100%; color: #fff; text-align: left; }
.video-player__poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,14,38,.92) 0%, transparent 55%); }
.video-player__play { position: absolute; left: 50%; top: 40%; transform: translate(-50%,-50%); z-index: 2; width: 72px; height: 72px; border-radius: 50%; background: var(--mm-yellow); color: var(--mm-navy); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(247,255,0,.18), 0 0 0 22px rgba(247,255,0,.08); transition: transform .2s var(--ease-out); }
.video-player__poster:hover .video-player__play { transform: translate(-50%,-50%) scale(1.06); }
.video-player__play .icon { width: 28px; height: 28px; margin-left: 4px; }
.video-player__meta { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; }
.video-player__meta h3 { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1; text-transform: uppercase; margin: 8px 0 0; }
.label-pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.label-pill b { background: var(--mm-yellow); color: var(--mm-navy); padding: 4px 8px; border-radius: 4px; }
.video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.final-card { background: var(--mm-royal); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; }
.final-card__kicker { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--mm-cyan); text-transform: uppercase; }
.final-card h3 { font-size: 34px; margin: 6px 0 12px; }
.final-card__row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.15); }
.final-card__row .code { font-family: var(--font-display); font-size: 32px; line-height: 1; color: var(--mm-yellow); min-width: 64px; }
.final-card__row strong { display: block; font-size: 16px; line-height: 1.25; }
.final-card__row span { font-size: 12px; color: var(--mm-text-muted); }
.final-card .btn { margin-top: 14px; align-self: flex-start; }
.carousel-strip { position: relative; margin-top: 22px; display: flex; align-items: center; gap: 14px; }
.carousel-strip__track { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--bs-gutter-x) * -.5); padding: 0 calc(var(--bs-gutter-x) * .5); scroll-behavior: smooth; }
.carousel-strip__track::-webkit-scrollbar { display: none; }
.carousel-strip__btn { display: none; flex: none; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--mm-yellow); background: transparent; color: var(--mm-yellow); place-items: center; }
.carousel-strip__btn--next { background: var(--mm-yellow); color: var(--mm-navy); }
.carousel-strip__btn .icon { width: 22px; height: 22px; }
.carousel-strip__btn:disabled { opacity: .3; }
.video-card { position: relative; scroll-snap-align: start; border-radius: 14px; overflow: hidden; aspect-ratio: 16/10; border: 3px solid transparent; padding: 0; background: #000; color: #fff; text-align: left; }
.video-card[aria-current="true"] { border-color: var(--mm-yellow); }
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease-out); }
.video-card:hover img { transform: scale(1.04); }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,14,38,.92) 0%, transparent 60%); }
.video-card__play { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: var(--mm-yellow); color: var(--mm-navy); display: grid; place-items: center; }
.video-card__play .icon { width: 15px; height: 15px; margin-left: 2px; }
.video-card__caption { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2; line-height: 1.1; }
.video-card__caption small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--mm-cyan); text-transform: uppercase; }
.video-card__caption strong { font-family: var(--font-display); font-weight: 400; font-size: 22px; text-transform: uppercase; }
@media (min-width: 992px) {
  .finals-grid { grid-template-columns: 1fr 340px; gap: 22px; }
  .video-player { aspect-ratio: 16/9; margin: 0; border-radius: 18px; box-shadow: var(--shadow-lg); }
  .video-player__play { top: 50%; width: 84px; height: 84px; }
  .video-player__meta { left: 24px; right: 24px; bottom: 20px; }
  .video-player__meta h3 { font-size: 44px; }
  .final-card { padding: 24px; }
  .final-card h3 { font-size: 44px; }
  .final-card .btn { margin-top: auto; }
  .carousel-strip__btn { display: grid; }
  .carousel-strip__track { grid-auto-columns: calc((100% - 36px) / 4); margin: 0; padding: 0; }
}

/* ---------- 11. Requisitos ---------- */
.requirements { background: var(--mm-royal); padding: 32px 0; }
.requirements .container { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.requirements h2 { grid-column: span 2; font-size: 40px; color: var(--mm-yellow); margin: 0; }
.requirement { border-left: 3px solid var(--mm-yellow); padding-left: 14px; }
.requirement strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 36px; line-height: 1; }
.requirement span { font-size: 13px; color: var(--mm-text-soft); font-weight: 600; }
@media (min-width: 992px) {
  .requirements { padding: 36px 0; }
  .requirements .container { grid-template-columns: auto repeat(4, 1fr); gap: 28px; align-items: center; }
  .requirements h2 { grid-column: auto; }
  .requirement strong { font-size: 44px; }
}

/* ---------- 12. Suscripción ---------- */
.subscribe { background: var(--mm-yellow); color: var(--mm-navy); position: relative; overflow: hidden; }
.subscribe::before { content: ""; position: absolute; inset: 0; background: var(--pattern-chevron-on-yellow); background-size: 64px 37px; }
.subscribe .container { position: relative; display: grid; gap: 16px; padding-top: 44px; padding-bottom: 44px; }
.subscribe__lockup { width: 170px; }
.subscribe h2 { font-size: 40px; margin: 0; }
.subscribe p { font-weight: 600; margin: 6px 0 0; }
.subscribe .form-label { font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.inline-field { display: flex; background: #fff; border-radius: 999px; padding: 5px; border: 2px solid var(--mm-navy); }
.inline-field .form-control { border: 0; background: transparent; box-shadow: none; font-weight: 600; color: var(--mm-navy); min-width: 0; padding-left: 14px; }
.inline-field .form-control::placeholder { color: #5A6F95; }
.subscribe .invalid-feedback { color: var(--mm-error); font-weight: 700; }
.subscribe__legal { font-size: 12px; margin-top: 10px; font-weight: 600; }
.subscribe__success { display: flex; align-items: center; gap: 10px; background: var(--mm-navy); color: #fff; border-radius: 14px; padding: 14px 16px; font-weight: 700; }
.subscribe__success .icon { color: var(--mm-yellow); width: 22px; height: 22px; }
@media (min-width: 992px) {
  .subscribe .container { grid-template-columns: auto 1fr 1fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
  .subscribe__lockup { width: 220px; }
  .subscribe h2 { font-size: 52px; }
}

/* ---------- 13. Footer ---------- */
.site-footer { background: var(--mm-navy-deep); padding: 56px 0 24px; font-size: 14px; color: #A9BDE3; }
.site-footer__brand img { height: 90px; width: auto; margin-bottom: 14px; }
.site-footer h3 { font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: .04em; color: #fff; text-transform: uppercase; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; overflow-wrap: anywhere; }
.site-footer a { color: #A9BDE3; }
.site-footer a:hover { color: var(--mm-yellow); }
.social { display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; border-radius: 50%; background: var(--mm-royal); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
@media (min-width: 768px) { .site-footer__legal { flex-direction: row; justify-content: space-between; } }

/* CTA fijo en móvil */
.sticky-cta { position: sticky; bottom: 0; z-index: 1020; background: rgba(0,26,67,.96); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.1); display: flex; gap: 12px; align-items: center; }
.sticky-cta__when { font-size: 12px; line-height: 1.3; color: var(--mm-text-muted); flex: none; }
.sticky-cta__when b { display: block; color: #fff; font-size: 14px; }
.sticky-cta .btn { flex: 1; }
@media (min-width: 992px) { .sticky-cta { display: none; } }

/* Página de sección pendiente */
.stub { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; background: var(--mm-navy); position: relative; }
.stub::before { content: ""; position: absolute; inset: 0; background: var(--pattern-stars); }
.stub > * { position: relative; }
.stub h1 { font-size: 56px; margin: 12px 0; }
.stub p { color: var(--mm-text-soft); max-width: 460px; margin: 0 auto 22px; }
@media (min-width: 992px) { .stub h1 { font-size: 88px; } }

/* Aviso de fase F-2 */
.phase-banner { display: none; background: var(--mm-red); color: #fff; text-align: center; font-weight: 800; font-size: 13px; padding: 8px 16px; }
body[data-phase="f2"] .phase-banner { display: block; }

/* ==========================================================================
   PORTAL DE FICHAS
   ========================================================================== */
.portal { min-height: 100vh; display: flex; flex-direction: column; }
.portal-side { display: none; }
.portal-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.portal-topbar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: 10px; padding: 10px 16px; min-height: 64px; background: var(--mm-navy-deep); border-bottom: 1px solid rgba(255,255,255,.08); }
.portal-topbar__brand img { height: 42px; width: auto; }
.portal-topbar__title { line-height: 1.2; min-width: 0; }
.portal-topbar__title strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portal-topbar__title span { font-size: 11px; color: var(--mm-text-muted); font-weight: 700; }
.portal-topbar__crumb { display: none; font-size: 13px; font-weight: 700; color: #8FA6D3; }
.portal-topbar__crumb b { color: #fff; }
.deadline-chip { margin-left: auto; display: flex; align-items: center; gap: 8px; background: rgba(255,0,11,.12); border: 1px solid rgba(255,0,11,.4); border-radius: 999px; padding: 4px 10px 4px 4px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.deadline-chip b { background: var(--mm-red); border-radius: 999px; padding: 2px 9px; font-family: var(--font-display); font-weight: 400; font-size: 15px; letter-spacing: .03em; }
.deadline-chip__long { display: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--mm-cyan); color: var(--mm-navy); display: none; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.portal-content { padding: 16px 16px 28px; flex: 1; }
.portal-tabbar { position: sticky; bottom: 0; z-index: 1020; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--mm-navy-deep); border-top: 1px solid rgba(255,255,255,.1); padding: 6px 6px calc(10px + env(safe-area-inset-bottom)); }
.portal-tabbar a, .portal-tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; color: #9FB3D6; padding: 6px 0; border-radius: 10px; border: 0; background: transparent; }
.portal-tabbar .icon { width: 22px; height: 22px; }
.portal-tabbar [aria-current="page"] { color: var(--mm-yellow); }
@media (min-width: 992px) {
  .portal { display: grid; grid-template-columns: 264px 1fr; }
  .portal-side { display: flex; flex-direction: column; gap: 18px; background: var(--mm-navy-deep); padding: 22px 16px; border-right: 1px solid rgba(255,255,255,.06); position: sticky; top: 0; height: 100vh; }
  .portal-topbar { background: var(--mm-navy); padding: 14px 32px; }
  .portal-topbar__brand, .portal-topbar__title { display: none; }
  .portal-topbar__crumb { display: block; }
  .deadline-chip { padding: 6px 14px 6px 6px; font-size: 13px; }
  .deadline-chip b { font-size: 16px; }
  .deadline-chip__long { display: inline; }
  .deadline-chip__short { display: none; }
  .avatar { display: grid; }
  .portal-content { padding: 28px 32px 48px; }
  .portal-tabbar { display: none; }
}
.portal-side__brand { display: flex; align-items: center; gap: 10px; }
.portal-side__brand img { height: 54px; width: auto; }
.portal-side__brand b { font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.portal-side__brand small { display: block; font-family: var(--font-body); font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--mm-cyan); }
.school-card { background: var(--mm-royal); border-radius: 14px; padding: 14px; display: flex; gap: 12px; align-items: center; }
.school-card__logo { width: 44px; height: 44px; border-radius: 10px; background: #fff; color: var(--mm-royal); display: grid; place-items: center; font-weight: 800; font-size: 11px; flex: none; border: 2px dashed #9FB6DC; }
.school-card strong { display: block; font-size: 14px; line-height: 1.25; }
.school-card span { font-size: 12px; color: var(--mm-text-muted); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 12px; font-weight: 700; font-size: 14px; color: #C4D4F3; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a[aria-current="page"] { background: var(--mm-yellow); color: var(--mm-navy); }
.side-nav .icon { width: 20px; height: 20px; }
.portal-side__bottom { margin-top: auto; display: grid; gap: 10px; font-size: 13px; }
.portal-side__bottom a, .portal-side__bottom button { display: flex; gap: 10px; align-items: center; font-weight: 700; color: #9FB3D6; background: transparent; border: 0; padding: 0; text-align: left; }
.portal-side__bottom a:hover, .portal-side__bottom button:hover { color: #fff; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 20px; margin-bottom: 18px; }
.page-head h1 { font-size: 44px; margin: 6px 0 0; }
.page-head__sub { color: var(--mm-text-muted); font-size: 15px; margin-top: 6px; }
.page-head__actions { display: none; }
@media (min-width: 992px) {
  .page-head { margin-bottom: 24px; }
  .page-head h1 { font-size: 64px; }
  .page-head__actions { display: flex; gap: 10px; margin-left: auto; }
}

/* Estados */
.status { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.status .icon { width: 14px; height: 14px; }
.status--ok { background: rgba(0,234,255,.14); color: var(--mm-cyan); }
.status--warn { background: rgba(255,177,0,.16); color: var(--mm-amber); }
.status--bad { background: rgba(255,0,11,.18); color: #FF6A70; }
.status--info { background: rgba(255,255,255,.1); color: #D8E4FF; }
.status--yellow { background: var(--mm-yellow); color: var(--mm-navy); }

.notice { display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,.06); border-left: 4px solid var(--mm-yellow); border-radius: 0 12px 12px 0; padding: 12px 14px; font-size: 13px; color: var(--mm-text-soft); margin-bottom: 20px; }
.notice .icon { color: var(--mm-yellow); width: 18px; height: 18px; margin-top: 1px; }

/* --- Login --- */
.login { min-height: 100vh; display: grid; }
.login__visual { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px 16px; min-height: 340px; isolation: isolate; }
.login__visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; z-index: -2; }
.login__visual::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,35,88,.2) 0%, rgba(0,35,88,.75) 55%, var(--mm-navy) 100%); }
.login__crest { position: absolute; top: 16px; left: 16px; }
.login__crest img { height: 56px; width: auto; }
.login__visual h1 { font-size: 52px; margin: 6px 0 12px; }
.login__visual h1 span { color: var(--mm-yellow); }
.date-tiles { display: flex; gap: 10px; }
.date-tile { background: rgba(0,26,67,.85); border: 1px solid rgba(255,255,255,.15); border-radius: 14px; padding: 8px 12px; }
.date-tile strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1; color: var(--mm-yellow); }
.date-tile span { font-size: 12px; font-weight: 700; color: var(--mm-text-soft); }
.login__panel { position: relative; padding: 28px 16px 40px; background: var(--mm-navy); }
.login__panel::before { content: ""; position: absolute; inset: 0; background: var(--pattern-stars); }
.login__card { position: relative; width: 100%; max-width: 440px; margin: 0 auto; }
.login__card h2 { font-size: 42px; margin: 8px 0; }
.login__card > p { color: var(--mm-text-muted); margin-bottom: 20px; }
.login__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 4px 0 18px; font-size: 13px; font-weight: 700; }
.login__row a, .link-yellow { color: var(--mm-yellow); font-weight: 800; background: none; border: 0; padding: 0; }
.help-line { display: flex; gap: 10px; margin-top: 20px; font-size: 13px; color: #A9BDE3; line-height: 1.45; }
.help-line .icon { color: var(--mm-cyan); width: 18px; height: 18px; margin-top: 2px; }
.help-line b { color: #fff; }
.demo-hint { margin-top: 18px; border: 1px dashed #23406F; border-radius: 12px; padding: 10px 12px; font-size: 12px; color: #9FB3D6; }
.demo-hint code { color: var(--mm-cyan); }
@media (min-width: 992px) {
  .login { grid-template-columns: 1.05fr 1fr; }
  .login__visual { padding: 48px; }
  .login__crest { top: 36px; left: 48px; }
  .login__crest img { height: 76px; }
  .login__visual h1 { font-size: 88px; }
  .date-tile strong { font-size: 30px; }
  .login__panel { display: flex; align-items: center; padding: 48px; }
  .login__card h2 { font-size: 56px; }
}

/* --- Formularios oscuros y claros --- */
.form-dark .form-label { font-weight: 800; font-size: 13px; color: #fff; }
.form-control, .form-select { min-height: 50px; border-radius: 12px; border: 2px solid #C9D5EA; font-weight: 600; font-size: 16px; color: var(--mm-navy); background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--mm-blue); box-shadow: 0 0 0 4px rgba(0,124,255,.2); color: var(--mm-navy); }
.form-control::placeholder { color: #6B7FA3; font-weight: 500; }
.form-control.is-invalid, .was-validated .form-control:invalid, .form-select.is-invalid { border-color: var(--mm-error); background-color: #FFF6F6; background-image: none; padding-right: 12px; }
.form-control.is-valid { border-color: var(--mm-success-ink); background-image: none; }
.invalid-feedback { font-size: 13px; font-weight: 700; color: #FF8A8F; }
.form-light .invalid-feedback { color: var(--mm-error); }
.valid-feedback { font-size: 13px; font-weight: 800; color: var(--mm-success-ink); }
.form-check-input { width: 22px; height: 22px; border: 2px solid #9FB0CC; margin-top: 0; }
.form-check-input:checked { background-color: var(--mm-navy); border-color: var(--mm-navy); }
.form-dark .form-check-input:checked { background-color: var(--mm-yellow); border-color: var(--mm-yellow); --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23002358' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e"); }
.form-check { display: flex; gap: 10px; align-items: center; padding-left: 0; }
.form-check .form-check-input { float: none; margin-left: 0; }
.password-field { position: relative; }
.password-field .form-control { padding-right: 90px; }
.password-field__toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--mm-royal); font-weight: 800; font-size: 13px; padding: 8px; }
.form-alert { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 700; margin-bottom: 16px; background: rgba(255,0,11,.14); border: 1px solid rgba(255,0,11,.45); color: #FFB3B6; }
.form-alert .icon { width: 18px; height: 18px; margin-top: 1px; }

/* --- Participación (tarjetas por cupo) --- */
.quota-grid { display: grid; gap: 10px; }
.quota-grid__head { display: none; }
.quota-row-label { margin-top: 10px; }
.quota-row-label strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: .95; text-transform: uppercase; }
.quota-row-label span { font-size: 12px; color: var(--mm-text-muted); font-weight: 700; }
.quota-card { background: var(--mm-royal); border-radius: 16px; padding: 16px; border: 2px solid transparent; transition: border-color .2s; }
.quota-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 800; font-size: 15px; }
.quota-card__choices { display: grid; gap: 8px; }
.quota-choice { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; border: 2px solid rgba(255,255,255,.25); background: transparent; color: #fff; font-weight: 800; font-size: 14px; transition: background-color .15s, border-color .15s, color .15s; }
.quota-choice:hover { border-color: #fff; }
.quota-choice .icon { width: 16px; height: 16px; display: none; }
.quota-choice[aria-pressed="true"] .icon { display: block; }
.quota-card[data-state="accepted"] { border-color: var(--mm-cyan); }
.quota-card[data-state="accepted"] .quota-choice--accept { background: var(--mm-cyan); border-color: var(--mm-cyan); color: var(--mm-navy); }
.quota-card[data-state="declined"] .quota-choice--decline { background: #fff; border-color: #fff; color: var(--mm-navy); }
.quota-card[data-state="pending"] { border-color: var(--mm-yellow); border-style: dashed; }
.quota-card--locked { background: transparent; border: 2px dashed rgba(255,255,255,.14); color: #6F87B6; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 13px; min-height: 64px; }
.quota-card__reason { margin-top: 10px; }
.quota-card__reason label { font-size: 12px; color: var(--mm-text-muted); font-weight: 700; }
.quota-card__reason .form-control { min-height: 42px; font-size: 14px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.quota-card[data-readonly="true"] .quota-choice { pointer-events: none; }
.quota-summary { position: sticky; bottom: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; background: var(--mm-navy-deep); border-radius: 16px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.08); }
.quota-summary__counts { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.quota-summary .btn { flex: 1; }
@media (min-width: 992px) {
  .quota-grid { grid-template-columns: 170px 1fr 1fr; gap: 12px; max-width: 1100px; }
  .quota-grid__head { display: block; font-size: 12px; font-weight: 800; letter-spacing: .12em; color: #A9BDE3; text-transform: uppercase; align-self: end; }
  .quota-row-label { margin-top: 0; display: flex; flex-direction: column; justify-content: center; }
  .quota-summary { max-width: 1100px; flex-wrap: nowrap; }
  .quota-summary__counts { width: auto; }
  .quota-summary .btn { flex: none; margin-left: auto; }
}

/* --- Panel --- */
.stages { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 16px; padding: 0 16px 4px; list-style: none; }
.stage { flex: 0 0 132px; border-radius: 12px; padding: 12px; background: rgba(255,255,255,.06); font-size: 12px; font-weight: 700; color: #9FB3D6; line-height: 1.3; }
.stage::before { content: ""; display: block; height: 5px; border-radius: 3px; background: rgba(255,255,255,.18); margin-bottom: 10px; }
.stage--done { color: #fff; }
.stage--done::before { background: var(--mm-cyan); }
.stage--current { color: #fff; background: rgba(247,255,0,.1); outline: 2px solid var(--mm-yellow); outline-offset: -2px; }
.stage--current::before { background: var(--mm-yellow); }
.deadline-cards { display: grid; gap: 14px; margin-bottom: 20px; }
.deadline-card { border-radius: 18px; padding: 16px; display: flex; gap: 14px; align-items: center; }
.deadline-card--hot { background: var(--mm-yellow); color: var(--mm-navy); }
.deadline-card--cool { background: var(--mm-royal); }
.deadline-card__big { font-family: var(--font-display); font-size: 60px; line-height: .85; min-width: 70px; text-align: center; }
.deadline-card__big small { display: block; font-size: 15px; letter-spacing: .08em; margin-top: 6px; }
.deadline-card strong { display: block; font-size: 17px; line-height: 1.25; margin-bottom: 4px; }
.deadline-card p { font-size: 13px; opacity: .85; margin: 0 0 10px; }
.dash-grid { display: grid; gap: 20px; }
.panel-box { background: var(--mm-royal); border-radius: 18px; padding: 16px; }
.panel-box h2 { font-family: var(--font-display); font-weight: 400; font-size: 28px; text-transform: uppercase; line-height: 1; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.panel-box h2 .icon { color: var(--mm-yellow); width: 22px; height: 22px; }
.team-summary { background: var(--mm-navy); border-radius: 16px; padding: 16px; border: 1px solid rgba(255,255,255,.08); }
.team-summary + .team-summary { margin-top: 12px; }
.team-summary__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.team-summary__head strong { font-family: var(--font-display); font-weight: 400; font-size: 24px; text-transform: uppercase; line-height: 1; }
.team-summary__head .status { margin-left: auto; }
.roster-meter { position: relative; height: 12px; border-radius: 6px; background: rgba(255,255,255,.12); margin: 8px 0 6px; }
.roster-meter__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--mm-yellow); transition: width .4s var(--ease-out); }
.roster-meter__min { position: absolute; top: -5px; bottom: -5px; width: 3px; background: #fff; border-radius: 2px; left: 68.75%; }
.roster-meter__legend { display: flex; justify-content: space-between; font-size: 12px; color: #A9BDE3; font-weight: 600; }
.roster-meter__legend b { color: #fff; font-size: 14px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 14px; }
.mini-stat { background: rgba(255,255,255,.06); border-radius: 10px; padding: 8px 10px; font-size: 12px; color: #A9BDE3; }
.mini-stat b { display: block; color: #fff; font-size: 15px; }
.task-list { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.task { display: flex; gap: 14px; align-items: center; background: var(--mm-navy); border-radius: 14px; padding: 14px; }
.task__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.task__icon .icon { width: 20px; height: 20px; }
.task__icon--red { background: rgba(255,0,11,.15); color: #FF6A70; }
.task__icon--amber { background: rgba(255,177,0,.15); color: var(--mm-amber); }
.task__icon--cyan { background: rgba(0,234,255,.12); color: var(--mm-cyan); }
.task strong { display: block; font-size: 15px; line-height: 1.3; }
.task span { font-size: 13px; color: #A9BDE3; }
.receipt { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.receipt span { display: block; color: #A9BDE3; font-size: 12px; }
.receipt button { margin-left: auto; font-size: 13px; }
.empty-state { text-align: center; padding: 18px; color: var(--mm-text-muted); font-size: 14px; }
@media (min-width: 992px) {
  .stages { display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0 0 20px; padding: 0; }
  .deadline-cards { grid-template-columns: 1fr 1fr; }
  .deadline-card { padding: 20px; }
  .deadline-card__big { font-size: 76px; min-width: 84px; }
  .dash-grid { grid-template-columns: 1.25fr 1fr; }
  .panel-box { padding: 22px; }
}

/* --- Ficha de equipo --- */
.team-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 16px; padding: 0 16px 2px; scrollbar-width: none; }
.team-tab { flex: none; display: flex; flex-direction: column; justify-content: center; min-height: 54px; padding: 6px 16px; border-radius: 14px; background: var(--mm-royal); color: #fff; font-weight: 800; font-size: 14px; line-height: 1.25; border: 2px solid transparent; }
.team-tab small { font-weight: 600; font-size: 12px; color: #A9BDE3; }
.team-tab[aria-selected="true"] { background: var(--mm-yellow); color: var(--mm-navy); }
.team-tab[aria-selected="true"] small { color: var(--mm-royal); }
.scorebar { display: flex; flex-wrap: wrap; margin-bottom: 26px; filter: drop-shadow(0 12px 24px rgba(0,0,0,.3)); }
.scorebar__tag { width: 100%; background: var(--mm-yellow); color: var(--mm-navy); display: flex; gap: 8px; align-items: baseline; padding: 6px 12px; font-family: var(--font-display); font-size: 16px; text-transform: uppercase; }
.scorebar__tag small { font-family: var(--font-body); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.scorebar__cell { flex: 1; background: #fff; color: var(--mm-navy); padding: 8px 10px; border-right: 2px solid #DFE7F5; min-width: 0; }
.scorebar__cell .n { font-family: var(--font-display); font-size: 34px; line-height: 1; }
.scorebar__cell .n small { font-size: 20px; color: #6B7FA3; }
.scorebar__cell .l { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--mm-royal); text-transform: uppercase; }
.scorebar__meter { width: 100%; background: #fff; color: var(--mm-navy); padding: 12px 14px; border-top: 2px solid #DFE7F5; }
.scorebar__meter .roster-meter { background: #DFE7F5; }
.scorebar__meter .roster-meter__min { background: var(--mm-navy); }
.scorebar__meter .roster-meter__legend { color: #4A5F86; }
.scorebar__meter .roster-meter__legend b { color: var(--mm-navy); }
.block-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0 14px; }
.block-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 30px; text-transform: uppercase; line-height: 1; margin: 0; }
.block-head__count { font-size: 14px; color: #A9BDE3; font-weight: 700; }
.filter-chips { display: flex; gap: 6px; overflow-x: auto; width: 100%; scrollbar-width: none; }
.filter-chip { flex: none; min-height: 38px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 2px solid rgba(255,255,255,.2); background: transparent; color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; }
.filter-chip[aria-pressed="true"] { background: #fff; color: var(--mm-navy); border-color: #fff; }
.staff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 30px; }
.staff-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; background: var(--mm-royal); border-radius: 14px; padding: 10px; border: 2px solid transparent; color: #fff; text-align: left; }
.staff-card__photo { width: 44px; height: 44px; border-radius: 12px; flex: none; background: linear-gradient(160deg, var(--mm-azure), #0A3B85); display: grid; place-items: center; color: rgba(255,255,255,.6); }
.staff-card__photo .icon { width: 24px; height: 24px; }
.staff-card__role { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--mm-cyan); text-transform: uppercase; }
.staff-card strong { display: block; font-size: 15px; line-height: 1.25; }
.staff-card--empty { background: transparent; border: 2px dashed rgba(255,255,255,.25); }
.staff-card--empty strong { color: #A9BDE3; }
.roster { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.player-card { background: #fff; color: var(--mm-navy); border-radius: 16px; overflow: hidden; position: relative; display: flex; flex-direction: column; border: 0; padding: 0; text-align: left; transition: transform .2s var(--ease-out), box-shadow .2s; }
.player-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.player-card__photo { position: relative; height: 130px; background: linear-gradient(170deg, var(--mm-azure) 0%, var(--mm-royal) 100%); display: grid; place-items: end center; overflow: hidden; }
.player-card__photo::before { content: ""; position: absolute; inset: 0; background: var(--pattern-chevron-navy); background-size: 40px 23px; opacity: .35; mix-blend-mode: screen; }
.player-card__photo img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.player-card__silhouette { position: relative; width: 90px; height: 110px; color: rgba(255,255,255,.28); }
.player-card__number { position: absolute; left: 10px; top: 8px; z-index: 1; font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--mm-yellow); text-shadow: 0 3px 0 var(--mm-navy); }
.player-card__status { position: absolute; right: 8px; top: 8px; z-index: 1; }
.player-card__status .status { box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.player-card__status .status--ok { background: var(--mm-cyan); color: var(--mm-navy); }
.player-card__status .status--warn { background: var(--mm-amber); color: var(--mm-navy); }
.player-card__status .status--bad { background: var(--mm-red); color: #fff; }
.player-card__body { padding: 12px; }
.player-card__body strong { display: block; font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-card__body span { font-size: 12px; color: #4A5F86; font-weight: 600; }
.doc-flags { display: flex; gap: 4px; margin-top: 10px; }
.doc-flag { flex: 1; height: 26px; border-radius: 6px; display: grid; place-items: center; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.doc-flag--ok { background: #E1F7FB; color: var(--mm-success-ink); }
.doc-flag--missing { background: #FFF1D6; color: var(--mm-warn-ink); }
.doc-flag--rejected { background: #FFE3E4; color: var(--mm-error); }
.player-card--add { background: transparent; border: 2px dashed rgba(255,255,255,.35); color: #fff; display: grid; place-items: center; text-align: center; min-height: 220px; padding: 14px; }
.player-card--add:hover { border-color: var(--mm-yellow); box-shadow: none; }
.player-card--add .plus { width: 56px; height: 56px; border-radius: 50%; background: var(--mm-yellow); color: var(--mm-navy); display: grid; place-items: center; margin: 0 auto 10px; }
.player-card--add .plus .icon { width: 24px; height: 24px; }
.player-card--add strong { font-size: 16px; }
.player-card--add span { display: block; font-size: 13px; color: #A9BDE3; margin-top: 4px; }
.player-card--add:disabled { opacity: .5; }
.legend { display: flex; gap: 10px 16px; margin-top: 16px; font-size: 12px; color: #A9BDE3; font-weight: 600; flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
@media (min-width: 768px) { .roster { grid-template-columns: repeat(3, 1fr); } .staff-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 992px) {
  .team-tabs { flex-wrap: wrap; margin: 0 0 22px; padding: 0; overflow: visible; }
  .scorebar { flex-wrap: nowrap; margin-bottom: 34px; }
  .scorebar__tag { width: auto; flex-direction: column; justify-content: center; padding: 0 18px; font-size: 20px; line-height: 1.05; }
  .scorebar__cell { flex: none; min-width: 120px; padding: 10px 20px; }
  .scorebar__cell .n { font-size: 42px; }
  .scorebar__meter { flex: 1; width: auto; border-top: 0; display: flex; flex-direction: column; justify-content: center; padding: 12px 20px; }
  .filter-chips { width: auto; margin-left: auto; }
  .staff-card { flex-direction: row; align-items: center; padding: 12px; gap: 12px; }
  .staff-card__photo { width: 56px; height: 56px; }
  .roster { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .player-card__photo { height: 168px; }
  .player-card__silhouette { width: 120px; height: 140px; }
  .player-card__number { font-size: 48px; }
}
@media (min-width: 1200px) { .roster { grid-template-columns: repeat(5, 1fr); } }

/* --- Panel lateral: agregar / editar jugador (offcanvas) --- */
.player-drawer { --bs-offcanvas-width: 620px; --bs-offcanvas-bg: #fff; --bs-offcanvas-color: var(--mm-navy); }
.player-drawer .offcanvas-header { align-items: flex-start; border-bottom: 1px solid #E3EAF5; padding: 18px 20px 14px; }
.player-drawer .offcanvas-title { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1; text-transform: uppercase; }
.player-drawer__sub { font-size: 13px; color: #4A5F86; font-weight: 600; margin: 4px 0 0; }
.player-drawer .btn-close { width: 44px; height: 44px; border-radius: 12px; background-color: #EEF3FB; opacity: 1; }
.form-steps { display: flex; gap: 4px; padding: 10px 20px; border-bottom: 1px solid #E3EAF5; background: #F6F9FE; overflow-x: auto; scrollbar-width: none; }
.form-step { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 800; color: #4A5F86; border: 0; background: transparent; }
.form-step i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; background: #DFE7F5; }
.form-step[aria-current="step"] { background: var(--mm-navy); color: #fff; }
.form-step[aria-current="step"] i { background: var(--mm-yellow); color: var(--mm-navy); }
.form-step--done i { background: var(--mm-cyan); color: var(--mm-navy); }
.player-drawer .offcanvas-body { padding: 18px 20px; }
.form-light .form-label { font-weight: 800; font-size: 13px; color: var(--mm-navy); }
.req { color: var(--mm-error); }
.fieldset-title { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.fieldset-title::after { content: ""; flex: 1; height: 2px; background: #E3EAF5; }
.form-text { font-size: 12px; color: #4A5F86; font-weight: 600; }
.input-prefix { display: flex; }
.input-prefix span { display: flex; align-items: center; padding: 0 12px; border: 2px solid #C9D5EA; border-right: 0; border-radius: 12px 0 0 12px; font-weight: 800; font-size: 14px; background: #F6F9FE; }
.input-prefix .form-control { border-radius: 0 12px 12px 0; }
.segmented { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { min-height: 44px; display: grid; place-items: center; border: 2px solid #C9D5EA; border-radius: 10px; font-size: 13px; font-weight: 800; cursor: pointer; }
.segmented input:checked + label { background: var(--mm-navy); border-color: var(--mm-navy); color: var(--mm-yellow); }
.segmented input:focus-visible + label { outline: 3px solid var(--mm-blue); outline-offset: 2px; }
.upload-grid { display: grid; gap: 10px; }
.upload { position: relative; border: 2px dashed #B8C8E3; border-radius: 14px; padding: 12px; display: flex; gap: 12px; align-items: center; background: #F6F9FE; cursor: pointer; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload__icon { width: 46px; height: 46px; border-radius: 10px; background: #DFE8F8; display: grid; place-items: center; color: var(--mm-royal); flex: none; overflow: hidden; }
.upload__icon img { width: 100%; height: 100%; object-fit: cover; }
.upload__icon .icon { width: 22px; height: 22px; }
.upload strong { display: block; font-size: 13px; line-height: 1.3; }
.upload__text { font-size: 12px; color: #4A5F86; }
.upload__bar { height: 6px; border-radius: 3px; background: #DFE7F5; margin-top: 6px; overflow: hidden; display: none; }
.upload__bar span { display: block; height: 100%; width: 0; background: var(--mm-blue); transition: width .15s linear; }
.upload[data-state="loading"] .upload__bar { display: block; }
.upload[data-state="done"] { border-style: solid; border-color: #7FD6E2; background: #EFFCFE; }
.upload[data-state="done"] .upload__icon { background: var(--mm-cyan); color: var(--mm-navy); }
.upload[data-state="error"] { border-color: var(--mm-error); background: #FFF6F6; }
.upload[data-state="error"] .upload__text { color: var(--mm-error); font-weight: 700; }
.upload:focus-within { outline: 3px solid var(--mm-blue); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.45; font-weight: 600; color: #26385C; padding: 12px; border: 2px solid #E3EAF5; border-radius: 12px; }
.consent + .consent { margin-top: 10px; }
.consent .form-check-input { flex: none; margin-top: 1px; }
.player-drawer__footer { display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid #E3EAF5; background: #fff; }
.player-drawer__footer .btn { flex: 1; }
.player-drawer__footer .btn-cta { box-shadow: 0 4px 0 #B9BF00; }
.player-drawer__delete { color: var(--mm-error); font-weight: 800; background: none; border: 0; font-size: 13px; padding: 0; }
@media (min-width: 768px) {
  .upload-grid { grid-template-columns: 1fr 1fr; }
  .segmented { grid-template-columns: repeat(4, 1fr); }
  .player-drawer__footer .btn { flex: none; }
  .player-drawer__footer .btn-cta { margin-left: auto; }
  .player-drawer .offcanvas-header { padding: 22px 26px 16px; }
  .player-drawer .offcanvas-title { font-size: 38px; }
  .form-steps { padding: 12px 26px; }
  .player-drawer .offcanvas-body { padding: 20px 26px; }
  .player-drawer__footer { padding: 16px 26px; }
}

/* --- Modales y toasts --- */
.modal-content { background: var(--mm-navy); color: #fff; border-radius: 20px; border: 1px solid rgba(255,255,255,.12); }
.modal-header, .modal-footer { border-color: rgba(255,255,255,.1); }
.modal-title { font-family: var(--font-display); font-weight: 400; font-size: 32px; text-transform: uppercase; line-height: 1; }
.modal .btn-close { filter: invert(1); }
.summary-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.summary-list li { display: flex; justify-content: space-between; gap: 10px; background: rgba(255,255,255,.06); border-radius: 10px; padding: 10px 12px; font-weight: 700; font-size: 14px; }
.toast-container { z-index: 1090; }
.toast { background: var(--mm-navy-deep); color: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; }
.toast-body { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.toast-body .icon { width: 20px; height: 20px; color: var(--mm-cyan); }
.toast--error .toast-body .icon { color: #FF6A70; }
.toast .btn-close { filter: invert(1); }

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.hero__tag { flex-wrap: wrap; font-size: 11px; }
.hero__badge { white-space: nowrap; }
@media (min-width: 768px) { .hero__tag { font-size: 12px; } }
.legend__swatch--ok { background: #E1F7FB; border: 1px solid #7FD6E2; }
.legend__swatch--missing { background: #FFF1D6; border: 1px solid #F0B34D; }
.legend__swatch--rejected { background: #FFE3E4; border: 1px solid #FF8A8F; }
.task { color: #fff; }
.task:hover { background: #001A43; color: #fff; }
.task-list .empty-state .icon { color: var(--mm-cyan); }
.text-warning { color: var(--mm-amber) !important; }
.player-card__silhouette { fill: currentColor; }
.input-prefix span { white-space: nowrap; }
.form-control:focus, .form-select:focus { background-color: #fff; }
.form-control.is-invalid:focus, .form-select.is-invalid:focus { background-color: #FFF6F6; border-color: var(--mm-error); box-shadow: 0 0 0 4px rgba(184,0,10,.15); }
.form-select { --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23002358' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.quota-card__reason .form-control:focus { background-color: rgba(255,255,255,.12); color: #fff; }
.player-card__cat { display: none; }
@media (min-width: 992px) { .player-card__cat { display: inline; } }
.offcanvas:focus-visible { outline: none; }
.receipt-preview { background: #fff; color: var(--mm-navy); border-radius: 12px; padding: 16px; font-size: 13px; white-space: pre-wrap; margin: 0; font-family: var(--font-body); font-weight: 600; }
@media (min-width: 992px) { .portal-side { align-self: start; } }
.site-header--nodemo { top: 0; }

/* Menú "Ver copas anteriores" */
.site-nav { align-items: center; }
.site-nav__toggle { background: transparent; border: 0; color: #fff; font-weight: 700; font-size: 14px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 6px; }
.site-nav__toggle:hover, .site-nav__toggle[aria-expanded="true"] { color: var(--mm-yellow); }
.site-nav__menu { --bs-dropdown-bg: var(--mm-navy-deep); --bs-dropdown-border-color: rgba(255,255,255,.12); --bs-dropdown-link-color: #fff; --bs-dropdown-link-hover-bg: var(--mm-yellow); --bs-dropdown-link-hover-color: var(--mm-navy); --bs-dropdown-link-active-bg: var(--mm-yellow); --bs-dropdown-link-active-color: var(--mm-navy); border-radius: 14px; padding: 6px; min-width: 200px; box-shadow: var(--shadow-lg); }
.site-nav__menu .dropdown-item { display: flex; align-items: center; gap: 10px; border-radius: 10px; font-weight: 800; padding: 10px 12px; }
.site-nav__menu .dropdown-item .icon { width: 18px; height: 18px; color: var(--mm-yellow); }
.site-nav__menu .dropdown-item:hover .icon, .site-nav__menu .dropdown-item:focus .icon { color: var(--mm-navy); }
.mobile-menu__label { margin: 18px 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mm-cyan); }
.mobile-menu nav a.mobile-menu__sub { gap: 10px; font-size: 20px; color: var(--mm-text-soft); }
.mobile-menu nav a.mobile-menu__sub .icon { width: 18px; height: 18px; color: var(--mm-yellow); }
/* Corrige el hover: ".site-nav a:hover" pintaba el texto en amarillo sobre fondo amarillo */
.site-nav .site-nav__menu .dropdown-item { color: #fff; padding: 10px 12px; box-shadow: none; }
.site-nav .site-nav__menu .dropdown-item:hover,
.site-nav .site-nav__menu .dropdown-item:focus,
.site-nav .site-nav__menu .dropdown-item:active { background: var(--mm-yellow); color: var(--mm-navy); }
.site-nav__toggle:focus:not(:focus-visible) { outline: none; }

/* Header fijo: visible siempre al hacer scroll (escritorio y móvil) */
html { scroll-padding-top: 84px; }
.site-header.site-header--nodemo { position: fixed; top: 0; left: 0; right: 0; transition: background-color .25s var(--ease-out), box-shadow .25s, min-height .25s; }
.site-header .container { transition: min-height .25s var(--ease-out); }
.site-header__brand img { transition: height .25s var(--ease-out); }
.site-header.is-scrolled { background: rgba(0, 26, 67, .94); box-shadow: 0 8px 24px rgba(0, 10, 30, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header.is-scrolled .container { min-height: 64px; }
.site-header.is-scrolled .site-header__brand img { height: 44px; }
@media (min-width: 992px) {
  html { scroll-padding-top: 76px; }
  .site-header.is-scrolled .container { min-height: 68px; }
  .site-header.is-scrolled .site-header__brand img { height: 50px; }
}
@media (prefers-reduced-motion: reduce) { .site-header, .site-header .container, .site-header__brand img { transition: none; } }
