/* Aylin Mendez — identidad propia.
   Violeta #2F004E y oro champan #EFD98E salen de su propio logo (leon de Leo,
   anillo trenzado, "A" con corona). No se inventa nada: la web usa lo que ella
   ya tiene. Mobile-first: se escribe para 320px y solo crece con min-width.
   El oro es el unico acento y marca tres cosas: el idioma activo, el oro del
   palmares y la llamada de patrocinio. */

@font-face {
  font-family: 'Inter Tight';
  src: url('assets/fonts/inter-tight-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('assets/fonts/inter-tight-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --violet: #2F004E;
  --violet-d: #1B002E;
  --violet-l: #43096B;
  --violet-hi: #38005C;
  --gold: #EFD98E;
  --gold-d: #C9A85C;
  --lilac: #C9B6DA;
  --mut: #9C8BB0;
  --line: rgba(239, 217, 142, 0.20);
  --line-soft: rgba(239, 217, 142, 0.10);

  --font: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;
  --gutter: 20px;
  --measure: 1180px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--violet-d);
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  hyphens: auto;
  overflow-x: hidden;
}

/* Grano fino: rompe los degradados planos sin costar una imagen. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.10;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
  hyphens: auto;
}
h2 {
  font-size: clamp(1.75rem, 7vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
p { margin: 0 0 1em; overflow-wrap: break-word; }
p:last-child { margin-bottom: 0; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: var(--gutter);
  top: 10px;
  z-index: 90;
  background: var(--gold);
  color: var(--violet-d);
  padding: 10px 16px;
  font-weight: 600;
}

/* ---------- Barra superior ---------- */

.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 6px var(--gutter);
  background: linear-gradient(180deg, rgba(27, 0, 46, 0.92), transparent);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
}
.wordmark::before {
  content: '';
  width: 15px;
  height: 23px;
  flex: none;
  background: url('assets/brand/corona.png') center / contain no-repeat;
}
.lang-switch ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
}
.lang-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--lilac);
  opacity: 0.55;
}
.lang-link.is-current { opacity: 1; color: var(--gold); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 48px;
  background:
    radial-gradient(70% 60% at 74% 44%, rgba(239, 217, 142, 0.13), transparent 62%),
    radial-gradient(90% 80% at 20% 90%, rgba(67, 9, 107, 0.85), transparent 65%),
    linear-gradient(165deg, var(--violet-hi) 0%, var(--violet) 42%, var(--violet-d) 100%);
}
/* El leon del logo, en marca de agua. Es suyo, no un adorno de stock. */
.hero::before {
  content: '';
  position: absolute;
  right: -30%;
  top: 50%;
  transform: translateY(-50%);
  width: 90%;
  height: 70%;
  opacity: 0.10;
  filter: saturate(0.6);
  pointer-events: none;
  background: url('assets/brand/emblema.png') center right / contain no-repeat;
}
.hero-portrait {
  position: relative;
  z-index: 6;
  width: 66%;
  max-width: 250px;
  margin: 0 auto;
}
/* El anillo trenzado del logo, reducido a su geometria. */
.hero-portrait::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 6%;
  width: 220px;
  height: 220px;
  margin-left: -110px;
  border: 1px solid rgba(239, 217, 142, 0.28);
  border-radius: 50%;
  z-index: -1;
}
.hero-portrait img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 60px rgba(239, 217, 142, 0.16)) contrast(1.06) brightness(1.04);
}
.hero-identity {
  position: relative;
  z-index: 10;
  padding: 0 var(--gutter);
  margin-top: -18px;
  text-align: center;
}
#hero-name { margin: 0 0 10px; }
#hero-name img {
  height: 44px;
  width: auto;
  margin: 0 auto;
}
.hero-nick {
  margin: 0 0 16px;
  font-size: 1rem;
  font-style: italic;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 10px;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lilac);
}
.hero-meta > span + span::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 14px;
  vertical-align: middle;
}
.hero-meta > .belt-mark + span::before { content: none; margin-right: 0; }
.hero-meta-label { color: var(--mut); }
.belt-mark {
  width: 26px;
  height: 8px;
  flex: none;
  border-radius: 1px;
  background: linear-gradient(90deg, #E8C33A 0 50%, #fff 50% 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.stats {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.stat {
  border: 1px solid var(--line);
  background: rgba(239, 217, 142, 0.05);
  padding: 14px 16px;
  text-align: center;
}
.stat-value {
  display: block;
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--gold);
}
.stat:nth-child(2) .stat-value { color: var(--lilac); }
.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mut);
}

.hero-actions {
  margin: 26px 0 0;
  display: grid;
  gap: 10px;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-align: center;
  text-decoration: none;
  padding: 15px 30px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(239, 217, 142, 0.45);
  color: var(--gold);
}
.btn--primary, .btn--accent {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--violet-d);
}
.btn:hover { border-color: var(--gold); }
.btn--primary:hover, .btn--accent:hover { background: #fff; border-color: #fff; }

/* ---------- Secciones ---------- */

.section {
  position: relative;
  padding: 56px var(--gutter);
  max-width: var(--measure);
  margin: 0 auto;
}
.section > h2 { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.section-note {
  margin: 14px 0 0;
  font-size: 0.8125rem;
  color: var(--mut);
  max-width: 62ch;
}

#results { max-width: none; background: linear-gradient(180deg, var(--violet-d), var(--violet) 55%, var(--violet-d)); }
#results > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }

.results { list-style: none; margin: 22px 0 0; padding: 0; }
.result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.result-when {
  grid-column: 1 / -1;
  order: -1;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
}
.result-what { min-width: 0; }
.result-event {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.result-meta {
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  font-size: 0.75rem;
  color: var(--mut);
}
.result-division, .result-bodyweight {
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lilac);
  border: 1px solid rgba(239, 217, 142, 0.24);
  padding: 3px 8px;
}
.result-note {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  color: var(--lilac);
  max-width: 58ch;
}
.result-medal {
  align-self: start;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.result-medal--gold { color: var(--gold); }
.result-medal--silver { color: var(--lilac); }
.result-medal--bronze { color: var(--gold-d); }

/* ---------- Trayectoria ---------- */

.journey-prose { margin-top: 22px; max-width: 62ch; color: var(--lilac); }
.timeline { display: none; }

/* ---------- Galeria ---------- */

.gallery {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
}
.gallery-item {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--violet-l);
  border: 1px solid var(--line-soft);
}
.gallery-item.is-empty { display: none; }
.gallery-item img, .gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Patrocinio ---------- */

.section--sponsor {
  max-width: none;
  background:
    radial-gradient(80% 70% at 50% 0%, rgba(239, 217, 142, 0.10), transparent 60%),
    var(--violet);
  border-top: 1px solid var(--line-soft);
}
.section--sponsor > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.sponsor-lead {
  margin: 20px 0 0;
  font-size: 1.0625rem;
  color: #fff;
  max-width: 60ch;
}
.sponsor-points {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 60ch;
}
.sponsor-points li {
  padding-left: 22px;
  position: relative;
  font-size: 0.9375rem;
  color: var(--lilac);
}
.sponsor-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.sponsor-actions { margin: 26px 0 0; }
.sponsor-actions .btn { display: inline-flex; }
.sponsor-contact-note {
  margin-top: 22px;
  font-size: 0.75rem;
  color: var(--mut);
  max-width: 60ch;
}

/* ---------- Banda de Instagram ---------- */

.band {
  padding: 44px var(--gutter);
  text-align: center;
  background: var(--violet-d);
  border-top: 1px solid var(--line-soft);
}
.band h2 { font-size: 0.6875rem; letter-spacing: 0.2em; color: var(--mut); }
.band-handle {
  display: block;
  margin: 12px 0 8px;
  font-size: clamp(1.5rem, 7vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--gold);
}
.band-cta { font-size: 0.8125rem; color: var(--mut); }

/* ---------- Pie ---------- */

.footer {
  padding: 28px var(--gutter) 40px;
  background: var(--violet-d);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  border-top: 1px solid var(--line-soft);
}
.footer-rights { margin: 0; font-size: 0.75rem; color: var(--mut); text-align: center; }

/* ---------- 620px ---------- */

@media (min-width: 620px) {
  :root { --gutter: 34px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .hero-actions { display: flex; flex-wrap: wrap; }
  .btn { display: inline-flex; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .result {
    grid-template-columns: 132px 1fr auto;
    align-items: start;
  }
  .result-when { grid-column: auto; order: 0; padding-top: 2px; }
}

/* ---------- 900px ---------- */

@media (min-width: 900px) {
  :root { --gutter: 54px; }

  .hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 0;
  }
  .hero::before {
    right: -6%;
    width: 62%;
    height: 126%;
    opacity: 0.13;
  }
  .hero-portrait {
    position: absolute;
    right: 5%;
    bottom: 0;
    width: auto;
    max-width: none;
    height: 93%;
    margin: 0;
  }
  .hero-portrait::before {
    width: 560px;
    height: 560px;
    margin-left: -280px;
    top: auto;
    bottom: 10%;
  }
  .hero-portrait img { width: auto; height: 100%; }
  .hero-identity {
    margin: 0;
    text-align: left;
    max-width: 56%;
  }
  #hero-name img { height: 72px; margin: 0; }
  .hero-nick { font-size: 1.3125rem; letter-spacing: 0.16em; }
  .hero-meta { justify-content: flex-start; font-size: 0.75rem; }
  .stats { max-width: 560px; gap: 14px; }
  .stat { padding: 18px 20px; text-align: left; }
  .stat-value { font-size: 2.75rem; }
  .hero-actions { gap: 12px; }

  .section { padding: 96px var(--gutter); }
  #results, .section--sponsor { padding-left: 0; padding-right: 0; }
  #results > *, .section--sponsor > * { padding-left: var(--gutter); padding-right: var(--gutter); }

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

  .journey {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 48px;
    align-items: start;
  }
  .timeline {
    display: block;
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
  }
  .timeline-item {
    position: relative;
    padding: 0 0 20px 24px;
    font-size: 0.875rem;
    color: var(--mut);
  }
  .timeline-item::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 14px;
    bottom: 0;
    width: 1px;
    background: var(--line-soft);
  }
  .timeline-item:last-child { padding-bottom: 0; }
  .timeline-item:last-child::after { display: none; }
  .timeline-dot {
    position: absolute;
    left: 0;
    top: 6px;
    width: 9px;
    height: 9px;
    border: 1px solid var(--mut);
    border-radius: 50%;
    background: transparent;
  }
  .timeline-item.is-current { color: var(--gold); font-weight: 600; }
  .timeline-item.is-current .timeline-dot { background: var(--gold); border-color: var(--gold); }

  .footer { flex-direction: row; justify-content: space-between; }
  .footer-rights { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
