*{box-sizing:border-box}
:root{
  --bg:#070707;
  --bg2:#0d0d0e;
  --panel:#121314;
  --panel2:#18191a;
  --line:#2b2c2e;
  --text:#f6f6f6;
  --muted:#a6a6a8;
  --orange:#ff5a2d;
  --orange2:#f27148;
  --white:#fff;
  --light:#f3f4f5;
  --darkText:#171719;
}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,Segoe UI,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{text-decoration:none;color:inherit}
button{font:inherit}
.site-header{
  height:86px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 clamp(22px,4vw,70px);
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(5,5,5,.93);
  border-bottom:1px solid #202020;
  backdrop-filter:blur(16px);
}
.brand{height:70px;width:290px;overflow:hidden;display:flex;align-items:center}
.brand img{
  width:275px;
  height:auto;
  object-fit:contain;
  transform:translateY(0);
}
nav{display:flex;gap:30px;align-items:center}
nav a{
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:1.2px;
  font-weight:800;
  color:#c8c8c8;
  padding:34px 0;
  position:relative;
}
nav a::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:20px;
  height:2px;
  background:var(--orange);
  transform:scaleX(0);
  transition:.2s ease;
}
nav a:hover,nav a.active{color:#fff}
nav a:hover::after,nav a.active::after{transform:scaleX(1)}
.menu-button{display:none;background:none;border:0;color:#fff;font-size:28px}

.hero{
  min-height:610px;
  padding:76px clamp(22px,5vw,88px) 70px;
  background:
    radial-gradient(circle at 15% 18%,rgba(255,90,45,.18),transparent 27%),
    radial-gradient(circle at 92% 72%,rgba(255,90,45,.11),transparent 23%),
    linear-gradient(130deg,#050505 0%,#0a0a0b 62%,#090909 100%);
  border-bottom:1px solid #242424;
}
.hero-grid{
  max-width:1550px;
  margin:auto;
  display:grid;
  grid-template-columns:1.2fr .8fr;
  align-items:center;
  gap:70px;
}
.kicker,.section-kicker{
  font-size:11px;
  letter-spacing:2.6px;
  font-weight:900;
  color:#b8b8b9;
}
.kicker span{
  display:inline-block;width:22px;height:2px;background:var(--orange);vertical-align:middle;margin-right:10px
}
.hero h1{
  margin:18px 0 24px;
  font-size:clamp(46px,5.4vw,82px);
  line-height:.88;
  letter-spacing:-5px;
  font-weight:900;
}
.hero h1 em{font-style:normal;color:var(--orange)}
.hero p{
  color:#b3b3b5;
  max-width:690px;
  font-size:18px;
  line-height:1.65;
}
.hero-actions{display:flex;gap:12px;margin-top:32px;flex-wrap:wrap}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 20px;
  border-radius:8px;
  font-size:12px;
  letter-spacing:.8px;
  font-weight:900;
}
.btn.primary{background:var(--orange);color:#fff}
.btn.primary:hover{filter:brightness(1.08)}
.btn.ghost{border:1px solid #3a3a3c;background:rgba(255,255,255,.02)}
.hero-panel{
  border:1px solid #272729;
  border-radius:22px;
  overflow:hidden;
  background:linear-gradient(180deg,#121213,#0a0a0b);
  box-shadow:0 30px 70px rgba(0,0,0,.35);
}
.status-card{padding:24px;border-bottom:1px solid #252527}
.status-top{display:flex;justify-content:space-between;align-items:center;gap:20px}
.status-label{display:block;color:#777;font-size:10px;letter-spacing:1.7px;margin-bottom:7px}
.status-top strong{font-size:22px}
.live-dot{
  display:inline-block;
  width:10px;height:10px;
  background:var(--orange);
  border-radius:50%;
  box-shadow:0 0 0 7px rgba(255,90,45,.1),0 0 22px rgba(255,90,45,.65);
  flex:0 0 auto;
}
.mini-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1px;
  background:#252527;margin-top:22px;border:1px solid #252527;border-radius:10px;overflow:hidden
}
.mini-grid div{background:#0d0d0e;padding:14px}
.mini-grid span{display:block;color:#737477;font-size:10px;text-transform:uppercase}
.mini-grid strong{display:block;margin-top:5px;font-size:14px}
.hero-logo-wrap{
  height:300px;display:flex;align-items:center;justify-content:center;overflow:hidden;
  background:radial-gradient(circle at center,rgba(255,90,45,.08),transparent 55%)
}
.hero-logo-wrap img{width:98%;max-width:640px}

.section{padding:68px clamp(22px,5vw,88px)}
.section-title-row{
  max-width:1550px;margin:0 auto 30px;
  display:flex;justify-content:space-between;align-items:end;gap:30px
}
.section-title-row h2{margin:7px 0 0;font-size:36px;letter-spacing:-1.2px}
.section-title-row.light{color:var(--darkText)}
.section-kicker.orange{color:var(--orange)}
.section-note{color:#777;margin:0;max-width:420px}
.live-section{background:#0a0a0b}
.live-summary{color:#a7a7a9;font-size:13px;display:flex;align-items:center;gap:12px}

.live-grid{
  max-width:1550px;margin:auto;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;
}
.race-card{
  border:1px solid #2b2b2d;
  border-radius:16px;
  overflow:hidden;
  background:linear-gradient(180deg,#141415,#0d0d0e);
  min-width:0;
}
.race-top{padding:18px 18px 15px;border-bottom:1px solid #2a2a2c}
.race-topline{display:flex;align-items:center;justify-content:space-between;gap:14px}
.live-pill{
  display:inline-flex;align-items:center;gap:7px;
  background:var(--orange);border-radius:999px;padding:6px 9px;
  font-size:10px;font-weight:900;letter-spacing:.5px
}
.live-pill::before{content:"";width:6px;height:6px;border-radius:50%;background:#fff}
.channel{font-size:10px;letter-spacing:1.4px;color:#7b7b7d}
.race-title-row{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-top:14px}
.race-title h3{margin:0;font-size:22px}
.race-title p{margin:4px 0 0;color:#929295;font-size:13px}
.lap{text-align:right}
.lap span{display:block;color:#777;font-size:9px;text-transform:uppercase;letter-spacing:1px}
.lap strong{font-size:20px}
.race-meta{display:flex;justify-content:space-between;padding:12px 18px;color:#858588;font-size:12px;border-bottom:1px solid #242426}
.race-meta b{color:#e6e6e7}
.positions{width:100%;border-collapse:collapse}
.positions th,.positions td{padding:10px 13px;border-bottom:1px solid #242426;font-size:12px;text-align:left}
.positions th{font-size:9px;color:#717174;text-transform:uppercase;letter-spacing:.6px}
.positions th:first-child,.positions td:first-child{width:42px;text-align:center}
.positions th:last-child,.positions td:last-child{text-align:right}
.positions tbody tr:first-child td{color:#fff;font-weight:800}
.race-link{
  display:flex;align-items:center;justify-content:space-between;
  padding:15px 18px;background:var(--orange);font-size:11px;letter-spacing:.7px;font-weight:900
}
.race-link:hover{filter:brightness(1.06)}
.empty-live{
  max-width:1550px;margin:auto;border:1px dashed #373739;border-radius:16px;
  padding:55px;text-align:center;color:#929295
}
.empty-icon{font-size:38px}.empty-live h3{color:#fff;margin-bottom:7px}

.championship-section{background:#f2f3f4}
.championship-grid{
  max-width:1550px;margin:auto;
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px
}
.champ-card{
  min-height:225px;background:#fff;border:1px solid #dedfe1;border-radius:14px;padding:18px;
  color:var(--darkText);display:flex;flex-direction:column;justify-content:space-between;
  box-shadow:0 8px 22px rgba(0,0,0,.04)
}
.champ-logo{
  height:104px;border-radius:10px;background:#f6f6f7;border:1px solid #ececee;
  display:flex;align-items:center;justify-content:center;text-align:center;
  color:#9a9a9d;font-size:12px;font-weight:900;letter-spacing:.5px;padding:12px
}
.champ-card h3{margin:16px 0 4px;font-size:17px}
.champ-card p{margin:0;color:#777;font-size:13px}
.champ-card a{margin-top:16px;color:var(--orange);font-size:11px;font-weight:900;letter-spacing:.6px}

.feature-section{
  background:
    radial-gradient(circle at 78% 30%,rgba(255,90,45,.13),transparent 26%),
    #090909;
}
.feature-grid{
  max-width:1550px;margin:auto;display:grid;grid-template-columns:.9fr 1.1fr;gap:70px;align-items:center
}
.qr-card{
  background:#fff;border-radius:22px;padding:24px;
  color:#111;display:grid;grid-template-columns:190px 1fr;align-items:center;gap:24px;
  box-shadow:0 25px 80px rgba(0,0,0,.25)
}
.qr-frame{background:#fff;border-radius:14px;padding:10px}
.qr-frame img{width:100%;display:block}
.qr-card h3{margin:6px 0 8px;font-size:24px;line-height:1.05}
.domain{font-weight:900;color:var(--orange);margin:0}
.feature-copy h2{font-size:52px;line-height:.95;margin:10px 0 20px;letter-spacing:-2px}
.feature-copy>p{max-width:680px;color:#a7a7a9;font-size:17px;line-height:1.6}
.feature-points{margin-top:28px;display:grid;gap:10px}
.feature-points div{display:flex;align-items:center;gap:14px;padding:13px 0;border-bottom:1px solid #242426}
.feature-points b{color:var(--orange);font-size:12px;letter-spacing:1px}
.feature-points span{color:#d4d4d5}

.results-section{background:#f2f3f4;color:#161617}
.results-banner{
  max-width:1550px;margin:auto;background:#141415;color:#fff;border-radius:20px;
  padding:34px;display:flex;align-items:center;justify-content:space-between;gap:30px
}
.results-banner h2{margin:7px 0 10px;font-size:32px}
.results-banner p{margin:0;color:#a4a4a7}

footer{
  min-height:120px;padding:28px clamp(22px,5vw,88px);
  background:#050505;border-top:1px solid #202020;
  display:grid;grid-template-columns:260px 1fr auto;align-items:center;gap:35px
}
.footer-logo{height:62px;overflow:hidden;display:flex;align-items:center}
.footer-logo img{width:225px}
.footer-copy{display:flex;flex-direction:column;gap:5px;color:#7f7f82;font-size:12px}
.footer-copy strong{color:#d2d2d4}
.footer-domain{color:var(--orange);font-weight:900}

@media(max-width:1100px){
  .hero-grid,.feature-grid{grid-template-columns:1fr}
  .hero{min-height:auto}
  .hero-panel{max-width:760px}
  .live-grid{grid-template-columns:1fr}
  .championship-grid{grid-template-columns:repeat(2,1fr)}
  footer{grid-template-columns:220px 1fr}
  .footer-domain{grid-column:2}
}
@media(max-width:760px){
  .site-header{height:68px}
  .brand{width:215px;height:60px}
  .brand img{width:205px}
  .menu-button{display:block}
  nav{
    position:absolute;top:68px;left:0;right:0;
    background:#080808;border-bottom:1px solid #242424;
    display:none;flex-direction:column;gap:0;align-items:stretch;padding:8px 22px 18px
  }
  nav.open{display:flex}
  nav a{padding:14px 0;border-bottom:1px solid #1f1f20}
  nav a::after{display:none}
  .hero{padding-top:45px}
  .hero h1{font-size:46px;letter-spacing:-2.5px}
  .hero p{font-size:16px}
  .hero-panel{display:none}
  .section{padding-top:48px;padding-bottom:48px}
  .section-title-row{flex-direction:column;align-items:flex-start;gap:8px}
  .section-title-row h2{font-size:29px}
  .championship-grid{grid-template-columns:1fr}
  .qr-card{grid-template-columns:120px 1fr}
  .feature-copy h2{font-size:40px}
  .results-banner{flex-direction:column;align-items:flex-start}
  footer{grid-template-columns:1fr}
  .footer-domain{grid-column:auto}
  .positions th:nth-child(3),.positions td:nth-child(3){display:none}
}
@media(max-width:470px){
  .hero h1{font-size:40px}
  .qr-card{grid-template-columns:1fr;text-align:center}
  .qr-frame{max-width:190px;margin:auto}
  .race-title-row{align-items:flex-start}
}

/* V3: evita que el header fijo tape los títulos al navegar por anclas */
section[id]{scroll-margin-top:105px;}


/* X1 V5 - SOLO VIVOS REALES */
.live-grid.one-live{grid-template-columns:minmax(0,980px);justify-content:center}
.live-grid.two-live{grid-template-columns:repeat(2,minmax(0,1fr))}
.live-grid.three-live{grid-template-columns:repeat(3,minmax(0,1fr))}
.real-race-card{border-color:#343436;box-shadow:0 18px 55px rgba(0,0,0,.28)}
.one-live .race-title h3{font-size:30px}
.one-live .race-title p{font-size:14px}
.one-live .positions th,.one-live .positions td{padding-top:13px;padding-bottom:13px}
.real-channel{color:var(--orange)!important;font-weight:900}
.event-name{margin-top:6px;color:#d8d8da;font-size:11px;font-weight:800;letter-spacing:.5px}
.empty-live{background:linear-gradient(180deg,#101011,#0b0b0c)}
@media(max-width:1100px){.live-grid.one-live,.live-grid.two-live,.live-grid.three-live{grid-template-columns:1fr}.one-live .race-title h3{font-size:24px}}

.real-champ-logo{
  background:#fff!important;
  border:1px solid #e2e3e5!important;
  overflow:hidden;
}
.real-champ-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:8px;
}
.champ-logo-placeholder{
  color:#9b9b9f;
  font-size:10px;
  font-weight:900;
  letter-spacing:1px;
}

/* X1 V8 - logos reales de campeonatos */
.real-champ-logo{
  background:#fff!important;
  border:1px solid #e0e1e3!important;
  overflow:hidden;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:8px!important;
}
.champ-real-logo{
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  display:block;
}
.champ-logo-placeholder{
  color:#9b9ba0;
  font-size:10px;
  font-weight:900;
  letter-spacing:1px;
}

/* X1 V21 - CONTACTO */
.contact-section{background:#0b0b0c;color:#fff}
.contact-card{
  max-width:1550px;margin:auto;border:1px solid #29292c;border-radius:20px;
  padding:38px 42px;display:flex;align-items:center;justify-content:space-between;
  gap:35px;background:linear-gradient(135deg,#111112,#090909)
}
.contact-card h2{margin:8px 0 10px;font-size:36px;letter-spacing:-1px}
.contact-card p{margin:0;color:#9d9da1;font-size:15px}
.contact-mail{
  color:#fff;border:1px solid #3a3a3e;border-radius:10px;padding:15px 20px;
  font-size:15px;font-weight:900;white-space:nowrap;transition:.2s ease
}
.contact-mail:hover{border-color:var(--orange);color:var(--orange)}
@media(max-width:760px){
  .contact-card{padding:28px 22px;flex-direction:column;align-items:flex-start}
  .contact-card h2{font-size:30px}
  .contact-mail{white-space:normal;word-break:break-word;width:100%}
}
