/* Cerbotics 4400 — basado en el Identity Manual 2026
   Colores: #000c6a (navy), #3c4de1 (royal), #000, #fff
   Títulos: Scout Condensed Black Italic → sustituto web: Barlow Condensed 900 italic
   Subtítulos / texto: League Spartan */

:root {
  --navy: #000c6a;
  --royal: #3c4de1;
  --black: #000;
  --white: #fff;
  --ink: #0b0f2e;
  --muted: #5a6086;
  --paper: #f4f5fb;
  --red: #cb0909;

  --f-title: "Barlow Condensed", "Scout Condensed", Impact, sans-serif;
  --f-body: "League Spartan", "Helvetica Now Display", Helvetica, Arial, sans-serif;

  --radius: 14px;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }

/* ---------- Typography ---------- */
.title {
  font-family: var(--f-title);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: .92;
  margin: 0 0 16px;
  color: var(--navy);
}
.title--light { color: var(--white); }
.subtitle {
  font-family: var(--f-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.06em;
  font-size: 1.35rem;
  color: var(--navy);
  margin: 0 0 12px;
}
.subtitle--light { color: var(--white); }
.eyebrow {
  font-family: var(--f-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  margin: 0 0 12px;
  color: rgba(255,255,255,.8);
}
.eyebrow--blue { color: var(--royal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--f-title);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: .02em;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--royal); color: var(--white); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; padding: 0 16px;
  transition: background .3s, box-shadow .3s;
}
@media (min-width: 720px) { .nav { padding: 0 32px; } }
.nav.is-solid { background: var(--navy); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.nav__brand img { height: 40px; width: auto; }
.nav__links { display: flex; gap: 32px; }
@media (min-width: 720px) and (max-width: 959px) { .nav__links { gap: 18px; } .nav__right { gap: 16px; } }
.nav__links a {
  font-family: var(--f-title);
  font-weight: 800; font-style: italic;
  text-transform: uppercase;
  font-size: 1.2rem;
  color: var(--white);
  text-decoration: none;
  position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px;
  height: 3px; background: var(--royal); transition: right .25s;
}
.nav__links a:hover::after, .nav__links a.is-active::after { right: 0; }
.nav__toggle { display: none; }
.nav__right { display: flex; align-items: center; gap: 28px; }

/* Selector de idioma */
.lang {
  display: flex;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 999px;
  padding: 2px;
}
.lang__btn {
  font-family: var(--f-title); font-weight: 800; font-style: italic;
  font-size: 1rem; line-height: 1;
  background: none; border: 0; color: var(--white);
  padding: 6px 10px; border-radius: 999px; cursor: pointer;
  transition: background .2s, color .2s;
}
.lang__btn[aria-pressed="true"] { background: var(--white); color: var(--navy); }
.lang__btn:not([aria-pressed="true"]):hover { background: rgba(255,255,255,.15); }

@media (max-width: 719px) {
  .nav__right { gap: 12px; }
  .nav__toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: 0; padding: 8px; cursor: pointer;
  }
  .nav__toggle span { width: 26px; height: 3px; background: var(--white); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--navy);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav.is-open { background: var(--navy); }
  .nav.is-open .nav__links { max-height: 340px; }
  .nav__links a { padding: 14px 16px; font-size: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); }
  .nav__links a::after { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--navy);
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  transform: scale(1.05);
  animation: heroZoom 18s ease-out forwards;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,12,106,.95) 0%, rgba(0,12,106,.75) 45%, rgba(60,77,225,.35) 100%);
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__content {
  position: relative;
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 120px 16px 80px;
}
@media (min-width: 720px) { .hero__content { padding: 120px 32px 80px; } }
.hero__title {
  font-family: var(--f-title);
  font-weight: 900; font-style: italic;
  text-transform: uppercase;
  font-size: clamp(4rem, 13vw, 9.5rem);
  line-height: .85;
  margin: 0 0 24px;
}
.hero__lead { max-width: 520px; font-size: 1.2rem; margin: 0 0 32px; color: rgba(255,255,255,.9); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.7); border-radius: 20px;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: var(--white); border-radius: 2px;
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  background: var(--black); color: var(--white);
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats__item {
  padding: 28px 16px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.stats__num {
  display: block;
  font-family: var(--f-title); font-weight: 900; font-style: italic;
  font-size: clamp(2.8rem, 6vw, 4rem); line-height: 1;
  color: var(--royal);
}
.stats__label { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.75); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section__head { max-width: 760px; margin-bottom: 48px; }
.section__lead { font-size: 1.15rem; color: var(--muted); margin: 0; }
.section__head--light .section__lead { color: rgba(255,255,255,.8); }

/* Season grid */
.season { background: var(--paper); }
.season__grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .season__grid {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 340px 340px;
  }
  .card--big { grid-row: span 2; }
  .card--wide { grid-column: 1 / -1; height: 420px; }
  .season__grid { grid-template-rows: 300px 300px auto; }
}
.card {
  position: relative; margin: 0;
  border-radius: var(--radius); overflow: hidden;
  background: var(--navy);
  min-height: 260px;
}
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover img { transform: scale(1.04); }
.card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 20px 18px;
  background: linear-gradient(transparent, rgba(0,12,106,.92));
  color: var(--white);
  font-family: var(--f-title); font-weight: 800; font-style: italic;
  text-transform: uppercase; font-size: 1.5rem; line-height: 1;
}
.tag {
  display: inline-block; vertical-align: middle;
  background: var(--royal); color: var(--white);
  font-size: .9rem; padding: 4px 10px; margin-right: 8px; border-radius: 4px;
}

/* Awards */
.awards__counts {
  display: grid; gap: 12px; margin-bottom: 56px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) { .awards__counts { grid-template-columns: repeat(5, 1fr); } }
.award-count {
  background: var(--navy); color: var(--white);
  border-radius: var(--radius); padding: 24px 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.award-count:first-child { background: linear-gradient(135deg, var(--navy), var(--royal)); grid-column: 1 / -1; }
@media (min-width: 900px) { .award-count:first-child { grid-column: auto; } }
.award-count__num {
  font-family: var(--f-title); font-weight: 900; font-style: italic;
  font-size: 3.4rem; line-height: 1;
}
.award-count__label { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.8); line-height: 1.3; }

/* Banners estilo FIRST: azules con borde inferior en pico */
.blue-banners {
  list-style: none; padding: 0; margin: 20px 0 0;
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .blue-banners { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .blue-banners { grid-template-columns: repeat(6, 1fr); } }
.blue-banners li {
  background: var(--royal); color: var(--white);
  padding: 18px 12px 34px; text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 88%, 0 100%);
  font-size: .8rem; line-height: 1.25;
  min-height: 170px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform .25s;
}
.blue-banners li:hover { transform: translateY(-4px); }
.blue-banners b {
  font-family: var(--f-title); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: 1.15rem; line-height: 1;
}
.blue-banners span {
  font-family: var(--f-title); font-weight: 900; font-style: italic; font-size: 1.6rem; line-height: 1;
  color: rgba(255,255,255,.9);
}
.awards__source { margin: 28px 0 0; font-size: .9rem; color: var(--muted); }
.awards__source a { color: var(--royal); }

/* Banner */
.banner {
  background: var(--navy);
  padding: 72px 16px;
  text-align: center; color: rgba(255,255,255,.75);
  text-transform: uppercase; letter-spacing: .14em; font-size: .85rem;
}
.banner__img { width: min(460px, 90%); margin: 0 auto 16px; }

/* Split rows */
.split {
  display: grid; gap: 32px; align-items: center;
  margin-bottom: 80px;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split--reverse .split__text { order: 2; }
}
.split__text p { margin: 0 0 16px; }
.split__media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 48px -24px rgba(0,12,106,.5); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.split__media--logo { box-shadow: none; padding: 24px; background: var(--white); }
.split__media--logo img { object-fit: contain; aspect-ratio: auto; }

.elements { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.elements li {
  border-left: 4px solid var(--royal);
  background: var(--paper);
  padding: 10px 14px; font-size: .9rem; color: var(--muted);
  border-radius: 0 8px 8px 0;
}
.elements i { font-style: normal; }
.elements span {
  display: block; color: var(--navy);
  font-family: var(--f-title); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.2rem; line-height: 1.1;
}

/* Quote */
.quote {
  background: linear-gradient(120deg, var(--navy), var(--royal));
  color: var(--white);
  border-radius: var(--radius);
  padding: 56px 24px;
  margin-bottom: 80px;
  text-align: center;
}
@media (min-width: 720px) { .quote { padding: 72px 64px; } }
.quote__text {
  font-family: var(--f-title); font-weight: 900; font-style: italic; text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1; margin: 0 0 20px;
}
.quote__body { max-width: 720px; margin: 0 auto; color: rgba(255,255,255,.88); }

/* Team México · FIRST Global */
.global {
  display: grid; gap: 40px; align-items: center;
  margin-bottom: 80px;
}
@media (min-width: 860px) { .global { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.global__media { position: relative; padding-bottom: 48px; }
.global__main {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -24px rgba(0,12,106,.5);
}
.global__inset {
  position: absolute; right: -8px; bottom: 0;
  width: 46%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: 10px; border: 5px solid var(--white);
  box-shadow: 0 16px 32px -12px rgba(0,0,0,.45);
}
.global__text p { margin: 0 0 16px; }
.global__text .title { margin-bottom: 20px; }
/* franja tricolor bajo el título */
.global__text .title::after {
  content: ""; display: block; width: 120px; height: 6px; margin-top: 14px;
  background: linear-gradient(90deg, #006847 33.3%, var(--white) 33.3% 66.6%, #ce1126 66.6%);
  box-shadow: 0 0 0 1px rgba(0,12,106,.12);
}

/* Family */
.family { margin-bottom: 80px; }
.family > p { color: var(--muted); max-width: 720px; }
.family__grid { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 760px) { .family__grid { grid-template-columns: repeat(3, 1fr); } }
.team {
  border-radius: var(--radius); padding: 28px 24px; color: var(--white);
  display: flex; flex-direction: column; gap: 4px;
}
.team--4400 { background: var(--navy); }
.team--red { background: linear-gradient(135deg, var(--black) 40%, var(--red)); }
.team--blue { background: linear-gradient(135deg, var(--black) 40%, #09209d); }
.team__num { font-family: var(--f-title); font-weight: 900; font-style: italic; font-size: 3.2rem; line-height: 1; }
.team__name { text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; opacity: .85; }
.swatches { display: flex; gap: 6px; margin-top: 16px; }
.swatches i { width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 2px solid rgba(255,255,255,.35); }

/* Uniforms */
.uniforms { margin-bottom: 80px; }
.uniforms > p { color: var(--muted); max-width: 720px; }
.uniforms__grid {
  display: grid; gap: 16px; margin-top: 24px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) { .uniforms__grid { grid-template-columns: repeat(5, 1fr); } }
.uniforms__grid figure {
  margin: 0; background: var(--paper); border-radius: var(--radius);
  padding: 20px 12px 12px; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
}
.uniforms__grid img { height: 170px; width: auto; object-fit: contain; transition: transform .3s; }
.uniforms__grid figure:hover img { transform: translateY(-6px); }
.uniforms__grid figcaption {
  margin-top: 12px; font-family: var(--f-title); font-weight: 800; font-style: italic;
  text-transform: uppercase; color: var(--navy); font-size: 1.1rem;
}

/* Gallery */
.gallery__grid {
  display: grid; gap: 10px; margin-top: 24px;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 160px;
  grid-auto-flow: dense;
}
@media (min-width: 860px) { .gallery__grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; } }
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; cursor: zoom-in; transition: filter .3s; }
.gallery__grid img:hover { filter: brightness(1.08) saturate(1.1); }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,6,50,.92);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: 8px; }
.lightbox button {
  position: absolute; top: 16px; right: 16px; background: none; border: 0;
  color: var(--white); font-size: 2.4rem; line-height: 1; cursor: pointer;
}

/* ---------- Resources ---------- */
.resources { background: var(--paper); }
.gh-card {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--black); color: var(--white);
  border-radius: var(--radius); padding: 28px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: border-color .25s, transform .25s;
}
.gh-card:hover { border-color: var(--royal); transform: translateY(-3px); }
.gh-card__icon {
  width: 64px; height: 64px; padding: 14px; flex: none;
  background: var(--royal); border-radius: 16px; color: var(--white);
}
.gh-card__body { flex: 1 1 240px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gh-card__label { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--royal); font-weight: 600; }
.gh-card__name {
  font-family: var(--f-title); font-weight: 900; font-style: italic;
  font-size: clamp(1.5rem, 4vw, 2.3rem); line-height: 1.05; overflow-wrap: anywhere;
}
.gh-card__desc { color: rgba(255,255,255,.75); font-size: .95rem; }
.gh-card__cta {
  font-family: var(--f-title); font-weight: 800; font-style: italic; text-transform: uppercase;
  background: var(--white); color: var(--navy); padding: 10px 22px; border-radius: 999px; font-size: 1.1rem;
}


/* ---------- Sponsors ---------- */
.sponsors { background: var(--black); color: var(--white); }
.tier {
  font-family: var(--f-body); font-weight: 600; text-transform: uppercase; letter-spacing: .14em;
  font-size: .8rem; color: var(--royal); margin: 0 0 16px;
}
.sponsors__main { display: grid; gap: 16px; margin-bottom: 48px; }
@media (min-width: 720px) { .sponsors__main { grid-template-columns: 1fr 1fr; } }
.sponsors__grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); margin-bottom: 64px; }
@media (min-width: 860px) { .sponsors__grid { grid-template-columns: repeat(3, 1fr); } }
.logo-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: #0a0a12;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 28px 20px; min-height: 150px;
  transition: border-color .3s, transform .3s, background .3s;
}
.logo-card:hover { border-color: var(--royal); transform: translateY(-4px); background: #0d1030; }
.logo-card img { max-height: 70px; width: auto; max-width: 80%; object-fit: contain; }
.logo-card--xl { min-height: 260px; }
.logo-card--xl img { max-height: 140px; }
.logo-card span { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: rgba(255,255,255,.7); text-align: center; }

.sponsor-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(120deg, var(--navy), var(--royal));
  border-radius: var(--radius); padding: 36px 28px;
}
.sponsor-cta p { margin: 0; max-width: 560px; color: rgba(255,255,255,.88); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 48px 0 32px; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.footer__logo { height: 64px; width: auto; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { text-decoration: none; font-family: var(--f-title); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.1rem; color: var(--white); }
.footer__links a:hover { color: var(--royal); }
.footer__copy { margin: 0; font-size: .85rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { animation: none; transform: none; }
}
