/* ===========================================================
   XFK FIGHTERS CHAMPIONSHIP — Landing page
   =========================================================== */

:root{
  --black: #0a0a0a;
  --black-soft: #141414;
  --gold: #c81e28;
  --gold-bright: #ff5c4d;
  --white: #f5f5f5;
  --grey: #9a9a9a;
  --font-title: 'Bebas Neue', Impact, 'Arial Narrow Bold', sans-serif;
  --font-body: 'Montserrat', -apple-system, sans-serif;
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3{
  font-family: var(--font-title);
  letter-spacing: .03em;
  margin: 0;
  text-transform: uppercase;
}

p{ margin: 0; }

img{ max-width: 100%; display: block; }

a{ text-decoration: none; color: inherit; }

.section-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.25rem;
}

/* -------- Grunge / noise texture overlay -------- */
.reveal{ position: relative; }
.reveal::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* -------- Scroll reveal animation -------- */
.reveal{ opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* -------- Image placeholders (hasta insertar imagenes reales) -------- */
.ph-img{
  background: linear-gradient(135deg, #1c1c1c, #0a0a0a);
  min-height: 60px;
  position: relative;
}
.ph-img.img-missing{
  border: 1px dashed rgba(200,30,40,.4);
}
.ph-img.img-missing::after{
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: .5rem;
  font-family: var(--font-body);
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--gold);
  background: rgba(0,0,0,.35);
}

/* -------- Floating contact -------- */
.floating-contact{
  position: fixed;
  z-index: 500;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.fc-btn{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10,10,10,.7);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background .2s ease, transform .2s ease;
}
.fc-btn svg{ width: 20px; height: 20px; fill: var(--gold); }
.fc-btn:hover{ background: var(--gold); transform: scale(1.08); }
.fc-btn:hover svg{ fill: var(--black); }

/* ===========================================================
   HERO
   =========================================================== */
.hero{
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.15);
  z-index: -3;
}
.hero-bg.ph-img{ border: none; }

.hero-overlay{
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,.35) 0%, rgba(0,0,0,.85) 75%),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.4) 40%, rgba(0,0,0,.9) 100%);
}

.hero-diagonal{
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-diagonal--alt{ z-index: 0; }

.hero-content{
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  max-width: 720px;
}

/* -------- Metallic red text -------- */
.text-metal{
  background: linear-gradient(180deg, #ffe0dc 0%, #e8564a 30%, #7a1a12 52%, #ff9186 70%, #a3271f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 1px rgba(0,0,0,.7));
}

.hero-kicker{
  font-family: var(--font-title);
  font-size: clamp(1rem, 3.2vw, 1.3rem);
  letter-spacing: .12em;
}

.hero-title{
  font-size: clamp(2.4rem, 9vw, 4.6rem);
  line-height: .98;
  color: var(--white);
  text-shadow: 0 4px 24px rgba(0,0,0,.6);
  text-wrap: balance;
}

.hero-desc{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(.95rem, 2.6vw, 1.2rem);
  color: var(--white);
  opacity: .95;
}

.hero-warning{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(.8rem, 2.2vw, .95rem);
  color: var(--black);
  background: var(--gold);
  padding: .5rem 1.1rem;
  border-radius: 3px;
  letter-spacing: .02em;
  margin-top: .6rem;
}

/* -------- CTA buttons -------- */
.btn-buy{
  display: inline-block;
  font-family: var(--font-title);
  letter-spacing: .06em;
  font-size: 1.3rem;
  color: var(--black);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  padding: 1rem 2.4rem;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(200,30,40,.35);
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
  transition: transform .18s ease, box-shadow .18s ease;
  animation: pulse-glow 2.4s ease-in-out infinite;
}
.btn-buy:hover{
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 32px rgba(200,30,40,.55);
}

@keyframes pulse-glow{
  0%, 100%{ box-shadow: 0 6px 24px rgba(200,30,40,.35); }
  50%{ box-shadow: 0 6px 32px rgba(200,30,40,.65); }
}

.btn-buy--hero{ margin-top: .5rem; }
.btn-buy--final{ font-size: 1.5rem; padding: 1.2rem 3rem; }

/* -------- Ticker (cinta publicitaria con la cuenta atrás) -------- */
.ticker{
  width: 100%;
  overflow: hidden;
  background: var(--gold);
  border-top: 1px solid rgba(0,0,0,.2);
  border-bottom: 1px solid rgba(0,0,0,.2);
}

.ticker-track{
  display: flex;
  width: max-content;
  animation: ticker-scroll 24s linear infinite;
}

.ticker-content{
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-title);
  letter-spacing: .04em;
  font-size: clamp(.85rem, 2.6vw, 1.05rem);
  color: var(--black);
  padding: .55rem 0;
}

.ticker-content b{ font-weight: normal; margin: 0 .15em; }

@keyframes ticker-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce){
  .ticker-track{ animation: none; }
}

/* ===========================================================
   SECTION TITLES
   =========================================================== */
.section-title{
  font-size: clamp(2rem, 6vw, 3rem);
  text-align: center;
  color: var(--white);
  position: relative;
  padding-bottom: 1.1rem;
}
.section-title::after{
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) skewX(-15deg);
  width: 70px;
  height: 4px;
  background: var(--gold);
}
.section-title--small{ font-size: clamp(1.9rem, 5.5vw, 2.6rem); }
.section-kicker{
  text-align: center;
  color: var(--grey);
  font-size: .85rem;
  letter-spacing: .15em;
  margin-top: 1.2rem;
}

/* ===========================================================
   INFO
   =========================================================== */
.info{ background: var(--black-soft); padding-top: 4rem; }
.info .section-inner{ padding-top: 3rem; }

.venue-feature{
  margin: 3rem 0 0;
}

.venue-feature-img{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  filter: grayscale(100%) contrast(1.1);
}

.venue-feature-caption{
  text-align: center;
  margin-top: 1.2rem;
}
.venue-feature-caption h3{
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: .3rem;
}
.venue-feature-caption p{ color: var(--gold); font-size: .9rem; letter-spacing: .04em; }
.venue-feature-caption .info-schedule{ color: var(--grey); margin-top: .4rem; }

.info-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.info-card{
  background: var(--black);
  border: 1px solid rgba(200,30,40,.2);
  border-radius: 6px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color .2s ease, transform .2s ease;
}
.info-card:hover{ border-color: var(--gold); transform: translateY(-4px); }

.info-icon{ width: 40px; height: 40px; fill: var(--gold); margin-bottom: 1rem; }

.info-card h3{
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: .6rem;
}
.info-card p{ color: var(--grey); font-size: .9rem; }

.info-card--photo{
  padding: 0;
  text-align: left;
  overflow: hidden;
}

.info-photo{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--black);
}
.info-photo--face{
  object-position: center top;
}
.info-photo--singer{
  object-position: center 22%;
}

.info-card-body{ padding: 1.4rem 1.5rem; }
.info-card-body h3{ margin-bottom: .5rem; }

/* ===========================================================
   CARTELERA
   =========================================================== */
.cartelera{ background: var(--black); }

.fights-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  align-items: start;
  gap: 1.5rem;
  margin-top: 3rem;
}

.fight-card{
  background: var(--black-soft);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.fight-card--main{
  border-color: var(--gold);
  margin-bottom: 1.5rem;
}

.fight-poster{
  width: 100%;
  aspect-ratio: 7 / 10;
  object-fit: contain;
  background: var(--black-soft);
  display: block;
}

.fight-tag{
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-title);
  font-size: .75rem;
  letter-spacing: .1em;
  padding: .3rem 1rem;
  clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
}

/* ===========================================================
   PROMOTERS
   =========================================================== */
.promoters{ background: var(--black-soft); }

.promoters-grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3.5rem;
  margin-top: 3rem;
}

.promoter{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  width: 360px;
  max-width: 100%;
}

.promoter-photo{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  background: var(--black);
  border-radius: 6px;
}

.promoter-logo{
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--white);
}

.promoter-name{
  font-family: var(--font-title);
  font-size: 1.3rem;
  letter-spacing: .04em;
  color: var(--white);
  text-align: center;
}

/* ===========================================================
   FINAL CTA
   =========================================================== */
.final-cta{
  position: relative;
  background: var(--black);
  overflow: hidden;
  isolation: isolate;
}

.final-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}
.final-bg.ph-img{ border: none; }

.final-overlay{
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,.45) 0%, rgba(0,0,0,.88) 75%),
    linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.5) 40%, rgba(0,0,0,.92) 100%);
}

.final-inner{
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  position: relative;
  z-index: 1;
}

.final-title{
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  line-height: .95;
  color: var(--white);
}

.final-price{
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--grey);
  font-size: 1rem;
  letter-spacing: .1em;
}
.final-price span{
  font-family: var(--font-title);
  color: var(--gold);
  font-size: 1.6rem;
  margin-left: .3rem;
}

.footer-contact{ margin-top: .4rem; color: var(--grey); }
.footer-contact a{ text-decoration: underline; text-underline-offset: 2px; }
.footer-contact a:hover{ color: var(--gold); }

.copy-link{
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.copy-link:hover{ color: var(--gold); }

.sponsors{
  margin-bottom: 2rem;
}
.sponsors-strip{
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  height: auto;
  opacity: .75;
}

/* ===========================================================
   FOOTER
   =========================================================== */
.footer{
  text-align: center;
  padding: 3rem 1rem 5.5rem;
  background: var(--black);
  color: var(--grey);
  font-size: .75rem;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (min-width: 600px){
  .footer{ padding-bottom: 2rem; }
  .floating-contact{ bottom: 1.5rem; right: 1.5rem; }
}

/* -------- Tablet and up: use the extra width, don't just stack -------- */
@media (min-width: 700px){
  .promoters-grid{ gap: 2.5rem; }
  .promoter{ width: 300px; }

  .info-grid{ grid-template-columns: repeat(3, 1fr); }
  .fights-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px){
  .fights-grid{ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .fight-card--main{ max-width: 640px; margin-left: auto; margin-right: auto; }
}

/* -------- Trim vertical rhythm below desktop so the page doesn't feel like one long narrow scroll -------- */
@media (max-width: 900px){
  .section-inner{ padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .info .section-inner{ padding-top: 2.5rem; }
}
