/* ============ VARIABLES ============ */
:root {
  --rojo: #d32f2f;
  --rojo-osc: #9b1c1c;
  --negro: #0f1014;
  --negro-2: #17181e;
  --negro-3: #23252d;
  --oro: #d4a94e;
  --plata: #b9bec7;
  --bronce: #c27a46;
  --hueso: #f6f4ef;
  --gris: #6b6d76;
  --texto: #24252b;
  --borde: #e5e2da;
  --blanco: #ffffff;
  --radio: 14px;
  --display: 'Bebas Neue', 'Arial Narrow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: 'Montserrat', system-ui, sans-serif; color: var(--texto); background: var(--blanco); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: 1120px; margin: 0 auto; }
.empty { text-align: center; color: var(--gris); padding: 20px; }
.aviso { border: 2px dashed var(--rojo); border-radius: 10px; color: var(--rojo); font-weight: 600; }
.aviso code { background: #fdecec; padding: 1px 6px; border-radius: 4px; }

/* ============ BOTONES ============ */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 40px; font-weight: 700; font-size: .92rem; text-decoration: none; letter-spacing: .3px; transition: transform .2s, background .2s, color .2s; border: 2px solid transparent; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--rojo); color: var(--blanco); }
.btn-primary:hover { background: var(--rojo-osc); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--blanco); }
.btn-ghost:hover { border-color: var(--blanco); }
.btn-light { background: var(--blanco); color: var(--rojo-osc); }

/* ============ NAVEGACIÓN ============ */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .3s, box-shadow .3s; }
.header.scrolled { background: rgba(15,16,20,.94); backdrop-filter: blur(8px); box-shadow: 0 2px 16px rgba(0,0,0,.35); }
.navbar { max-width: 1200px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--blanco); text-decoration: none; font-weight: 800; font-size: 1.05rem; letter-spacing: .5px; text-transform: uppercase; }
.logo em { font-style: normal; color: var(--rojo); }
.logo-mark { font-family: var(--display); font-size: 1.3rem; width: 38px; height: 38px; display: grid; place-items: center; background: var(--rojo); border-radius: 8px; letter-spacing: 1px; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 28px; }
.nav-links a { color: #e6e6ea; text-decoration: none; font-weight: 600; font-size: .9rem; transition: color .2s; }
.nav-links a:hover { color: var(--blanco); }
.nav-cta { background: var(--rojo); color: var(--blanco) !important; padding: 8px 18px; border-radius: 30px; }
.menu-toggle { display: none; background: none; border: 0; color: var(--blanco); font-size: 1.5rem; cursor: pointer; padding: 6px; }

/* ============ PORTADA ============ */
.hero { background: radial-gradient(ellipse at 15% 30%, #2a0d10 0%, #0b0b0b 55%); color: var(--blanco); min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 80px, rgba(255,255,255,.015) 80px 81px); pointer-events: none; }
.hero-inner { max-width: 1200px; width: 100%; margin: 0 auto; padding: 110px 20px 0; display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; gap: 20px; flex: 1; position: relative; }
.hero-text { padding-bottom: 70px; align-self: center; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #c9c9d1; margin-bottom: 18px; }
.flag { width: 34px; height: 20px; object-fit: cover; border-radius: 3px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(3.4rem, 8vw, 6.6rem); line-height: .9; letter-spacing: 1px; }
.hero h1 .accent { color: var(--rojo); }
.hero-sub { margin-top: 18px; font-weight: 700; font-size: 1.05rem; color: var(--oro); letter-spacing: .5px; }
.hero-frase { margin-top: 8px; color: #b8b9c2; max-width: 460px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-photo { align-self: end; display: flex; justify-content: center; }
.hero-photo img { max-height: 78vh; width: auto; -webkit-mask-image: radial-gradient(ellipse 50% 52% at 50% 48%, #000 70%, transparent 100%); mask-image: radial-gradient(ellipse 50% 52% at 50% 48%, #000 70%, transparent 100%); }
.stats-strip { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.35); }
.stat { padding: 22px 16px; text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--display); font-weight: 400; font-size: 2.4rem; line-height: 1; color: var(--blanco); }
.stat span { font-size: .75rem; text-transform: uppercase; letter-spacing: 1.5px; color: #a3a4ad; }

/* ============ SECCIONES ============ */
.section { padding: 96px 20px; }
.bg-light { background: var(--hueso); }
.bg-dark { background: var(--negro); color: #e8e8ec; }
.kicker { font-size: .78rem; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: var(--rojo); margin-bottom: 8px; }
.kicker.center, .section-title, .section-sub { text-align: center; }
.section-title, .h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; letter-spacing: 1px; }
.bg-dark .section-title { color: var(--blanco); }
.section-sub { color: var(--gris); margin: 12px auto 44px; max-width: 560px; }
.bg-dark .section-sub { color: #9a9ba4; }

/* ============ PERFIL ============ */
.perfil-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; }
.perfil-img img { border-radius: var(--radio); width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.bio { margin: 18px 0 28px; font-size: 1.02rem; color: #45464e; }
.ficha { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.ficha div { padding: 12px 0; border-bottom: 1px solid var(--borde); }
.ficha dt { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--gris); }
.ficha dd { font-weight: 600; color: var(--negro); }

/* ============ TRAYECTORIA ============ */
.medallero { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.medal-box { display: flex; align-items: center; gap: 10px; background: var(--negro-2); border: 1px solid var(--negro-3); padding: 12px 22px; border-radius: 40px; }
.medal-box i { font-size: 1.2rem; }
.medal-box strong { font-family: var(--display); font-weight: 400; font-size: 1.8rem; line-height: 1; color: var(--blanco); }
.medal-box span { font-size: .75rem; text-transform: uppercase; letter-spacing: 1.5px; color: #9a9ba4; }
.medal-box.oro i { color: var(--oro); } .medal-box.plata i { color: var(--plata); } .medal-box.bronce i { color: var(--bronce); } .medal-box.neutral i { color: var(--rojo); }

.filtros { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip { font: inherit; font-size: .82rem; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 30px; border: 1px solid var(--negro-3); background: var(--negro-2); color: #b5b6bf; cursor: pointer; transition: all .2s; }
.chip:hover { color: var(--blanco); }
.chip.active { background: var(--rojo); border-color: var(--rojo); color: var(--blanco); }
.chip.light { background: var(--blanco); border-color: var(--borde); color: var(--texto); }
.chip.light.active { background: var(--negro); border-color: var(--negro); color: var(--blanco); }

.year-block { display: grid; grid-template-columns: 110px 1fr; gap: 24px; margin-bottom: 40px; }
.year { font-family: var(--display); font-weight: 400; font-size: 3rem; line-height: 1; color: var(--rojo); position: sticky; top: 90px; align-self: start; }
.cv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cv-card { display: flex; gap: 16px; background: var(--negro-2); border: 1px solid var(--negro-3); border-left: 4px solid var(--negro-3); border-radius: 12px; padding: 18px; transition: transform .2s, border-color .2s; }
.cv-card:hover { transform: translateY(-2px); }
.cv-card.oro { border-left-color: var(--oro); } .cv-card.plata { border-left-color: var(--plata); } .cv-card.bronce { border-left-color: var(--bronce); } .cv-card.formacion { border-left-color: #4c7bd9; }
.cv-icon { flex: 0 0 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--negro-3); color: #a3a4ad; }
.cv-card.oro .cv-icon { color: var(--oro); } .cv-card.plata .cv-icon { color: var(--plata); } .cv-card.bronce .cv-icon { color: var(--bronce); } .cv-card.formacion .cv-icon { color: #7ea3ef; }
.cv-date { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #8b8c95; }
.cv-date .intl { color: var(--rojo); }
.cv-card h4 { color: var(--blanco); font-size: 1rem; line-height: 1.3; margin: 2px 0 4px; }
.cv-place { font-size: .82rem; color: #9a9ba4; }
.cv-place i { font-size: .7rem; margin-right: 3px; }
.cv-result { margin-top: 8px; font-weight: 700; font-size: .86rem; color: #e8e8ec; }
.cv-card.oro .cv-result { color: var(--oro); } .cv-card.plata .cv-result { color: var(--plata); } .cv-card.bronce .cv-result { color: var(--bronce); }

/* ============ GALERÍA ============ */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.album-card { position: relative; height: 340px; border-radius: var(--radio); overflow: hidden; border: 0; padding: 0; cursor: pointer; background: var(--negro); text-align: left; font: inherit; color: var(--blanco); box-shadow: 0 14px 30px -18px rgba(0,0,0,.5); }
.album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.album-card:hover img { transform: scale(1.05); }
.album-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 35%, rgba(0,0,0,.88)); }
.album-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.album-tag { align-self: flex-start; background: var(--rojo); font-size: .68rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; padding: 4px 11px; border-radius: 20px; }
.album-title { font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.album-desc { font-size: .82rem; opacity: .85; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,8,10,.94); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: 1100px; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: 82vh; width: auto; border-radius: 8px; }
.lightbox figcaption { color: #d5d5db; margin-top: 12px; font-size: .9rem; text-align: center; }
.lb-btn { position: absolute; background: rgba(255,255,255,.1); border: 0; color: var(--blanco); width: 48px; height: 48px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.lb-btn:hover { background: var(--rojo); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }

/* ============ EVENTOS ============ */
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 430px)); justify-content: center; align-items: start; gap: 18px; max-width: 900px; margin: 0 auto; }
.event-card { background: var(--blanco); border-radius: var(--radio); border: 1px solid var(--borde); overflow: hidden; }
.event-row { display: flex; align-items: center; gap: 20px; padding: 20px; }
.event-foto-link { display: block; background: #111; }
.event-foto { width: 100%; height: auto; max-height: 560px; object-fit: contain; margin: 0 auto; }
.event-nota { color: var(--rojo) !important; font-weight: 600; }
.event-date { flex: 0 0 74px; text-align: center; background: var(--negro); color: var(--blanco); border-radius: 10px; padding: 10px 6px; line-height: 1; }
.event-date span { display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--rojo); }
.event-date strong { display: block; font-family: var(--display); font-weight: 400; font-size: 2.2rem; margin: 4px 0 2px; }
.event-date small { font-size: .7rem; color: #a3a4ad; }
.event-card h3 { font-size: 1rem; line-height: 1.3; color: var(--negro); }
.event-card p { font-size: .85rem; color: var(--gris); margin-top: 4px; }

/* ============ CTA PATROCINIO ============ */
.cta-band { background: linear-gradient(110deg, var(--rojo-osc), var(--rojo)); color: var(--blanco); padding: 56px 20px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; letter-spacing: .5px; }
.cta-band p { opacity: .9; margin-top: 6px; }

/* ============ CONTACTO ============ */
.contacto { max-width: 780px; }
.contact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 36px; }
.contact-list .responsable, .contact-list .empty { grid-column: 1 / -1; text-align: center; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--borde); border-radius: 12px; text-decoration: none; transition: border-color .2s, transform .2s; }
.contact-item:hover { border-color: var(--rojo); transform: translateY(-2px); }
.contact-item i { font-size: 1.5rem; color: var(--rojo); width: 28px; text-align: center; }
.contact-item small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--gris); }
.contact-item span { font-weight: 600; word-break: break-word; }

.footer { background: var(--negro); color: #8b8c95; text-align: center; padding: 28px 20px; font-size: .85rem; }

/* ============ RESPONSIVO ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 96px; text-align: center; }
  .hero-text { padding-bottom: 10px; }
  .eyebrow, .hero-btns { justify-content: center; }
  .hero-frase { margin-inline: auto; }
  .hero-photo img { max-height: 46vh; }
  .perfil-grid { grid-template-columns: 1fr; gap: 36px; }
  .perfil-img { max-width: 420px; margin: 0 auto; }
  .cv-grid { grid-template-columns: 1fr; }
  .year-block { grid-template-columns: 1fr; gap: 12px; }
  .year { position: static; }
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--negro); padding: 10px 0 18px; box-shadow: 0 10px 20px rgba(0,0,0,.4); }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 12px; }
  .nav-cta { display: inline-block !important; margin-top: 6px; }
  .header:has(.nav-links.open) { background: var(--negro); }
  .section { padding: 72px 16px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.08); }
  .ficha { grid-template-columns: 1fr; }
  .cta-inner { text-align: center; justify-content: center; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
