@font-face {
  font-family: 'Rubik';
  src: url('../fonts/Rubik/Rubik-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/Source_Sans_3/SourceSans3-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/Source_Sans_3/SourceSans3-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

body {
  background: #232320;
  color: #f4f1e0;
  min-height: 100vh;
  font-family: 'Source Sans 3', sans-serif;
  animation: fadeIn 0.6s ease forwards;
}

/* ── Fondo fijo: color base ── */
.bg-fixed {
  position: fixed;
  inset: 0;
  background-color: #232320;
  pointer-events: none;
  z-index: 0;
}

/* grain encima del color, opacidad independiente */
.bg-fixed::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.35;
  pointer-events: none;
}

.left  { animation: riseIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both; }
.right { animation: riseIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both; }

/* ── Contenedor principal (pineado por GSAP) ── */
.main-section {
  height: 100vh;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.main-track {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(48px, 6vw, 96px);
  height: 100%;
  width: max-content;
  will-change: transform;
}

/* ── Card: panel hero dentro del track ── */
.card-wrap {
  flex-shrink: 0;
  width: 100vw;
  height: 100%;
  background-color: transparent;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: clamp(36px, 6vh, 72px) clamp(40px, 6vw, 80px) calc(clamp(36px, 6vh, 72px) + 40px);
}

/* ── Columnas ── */
.left,
.right {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Mobile: logo primero */
.right {
  order: -1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.left {
  display: flex;
  flex-direction: column;
}

/* ── Tipografía ── */
.brand-name {
  display: block;
  font-family: 'Rubik', sans-serif;
  font-size: clamp(52px, 15vw, 76px);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: clamp(15px, 2.6vw, 26px);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: clamp(10px, 1.6vh, 18px);
}

.brand-desc {
  font-size: clamp(13px, 1.4vw, 15px);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin-top: clamp(12px, 1.6vh, 18px);
  max-width: 480px;
}

.brand-desc strong {
  color: #ffffff;
  font-weight: 700;
}

/* ── Contacto ── */
.contact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 32px;
  align-items: start;
  margin-top: clamp(20px, 3vh, 36px);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(13px, 1.6vw, 17px);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.contact-item:hover {
  opacity: 0.7;
}

.fixture-expiry {
  display: block;
  font-size: 11px;
  color: #b63b28;
  margin-top: 3px;
  padding-left: 28px;
  letter-spacing: 0.3px;
}

.contact-item svg {
  flex-shrink: 0;
  opacity: 0.75;
}

/* ── Logo ── */
.logo-svg {
  width: clamp(160px, 48vw, 260px);
  height: clamp(160px, 48vw, 260px);
  display: block;
}

/* ── Tablet (≥ 640px): lado a lado ── */
@media (min-width: 640px) {
  .dev-credit {
    text-align: right;
  }

  .card-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(40px, 6vw, 80px);
  }

  .left {
    width: auto;
    flex: 1 1 0;
    max-width: 520px;
  }

  .right {
    order: 0;
    width: auto;
    flex: 0 0 auto;
  }

  .brand-name {
    font-size: clamp(64px, 9vw, 110px);
  }

  .logo-svg {
    width: clamp(180px, 24vw, 320px);
    height: clamp(180px, 24vw, 320px);
  }

  .contact-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px 40px;
  }
}

/* ── Píldora split scroll hint ── */
.scroll-hint {
  position: absolute;
  top: 28px;
  right: 0;
  transform: translateX(calc(100% - 240px));
  display: flex;
  align-items: stretch;
  height: 36px;
  background: rgba(30, 30, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  white-space: nowrap;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  pointer-events: none;
  overflow: hidden;
}

.scroll-hint__left {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 0 26px;
  color: rgba(255, 255, 255, 0.55);
}

.scroll-hint__arrow {
  color: #ff923f;
  font-size: 15px;
  letter-spacing: 0;
  flex-shrink: 0;
  display: inline-block;
  animation: arrowPulse 1.2s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(5px); }
}

.scroll-hint__right {
  display: flex;
  align-items: center;
  padding: 0 26px 0 20px;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Ocultar scrollbar nativo + evitar scroll horizontal de página ── */
html {
  scrollbar-width: none;
  overflow-x: hidden;
}
html::-webkit-scrollbar {
  display: none;
}
body {
  overflow-x: hidden;
}

/* ── Barra de progreso horizontal ── */
.scroll-progress {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 200;
}

.scroll-progress__fill {
  height: 100%;
  width: 100%;
  background: #ff923f;
  transform: scaleX(0);
  transform-origin: left center;
}

/* ── Firma del desarrollador ── */
.dev-credit {
  position: fixed;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 clamp(20px, 4vw, 40px);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.5px;
  z-index: 10;
}

a.cufa-name {
  font-family: 'Bebas Neue', sans-serif;
  color: #fe4e03;
  font-size: 13px;
  letter-spacing: 1px;
  text-decoration: none !important;
  cursor: pointer;
}

/* ── Sección Prode 2026 ── */
.premios-section {
  background: transparent;
  overflow: hidden;
  height: 100vh;
  position: relative;
  z-index: 20;
}

.premios-track {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(48px, 6vw, 96px);
  padding: 0 clamp(48px, 7vw, 100px);
  height: 100%;
  width: max-content;
  will-change: transform;
}

.premios-intro {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.premios-eyebrow {
  font-family: 'Source Sans 3', sans-serif;
  font-size: clamp(11px, 1.2vw, 14px);
  color: #ff923f;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.premios-titulo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(130px, 18vw, 300px);
  line-height: 0.85;
  color: #f4f1e0;
  margin: 0;
  white-space: nowrap;
}

.premio-card {
  flex-shrink: 0;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #1e1e1c;
}

.premio-card--gold {
  width: clamp(280px, 28vw, 400px);
  border: 2px solid #ff923f;
  padding: clamp(28px, 4vh, 48px) clamp(24px, 3vw, 36px);
}

.premio-card--silver,
.premio-card--bronze {
  width: clamp(220px, 20vw, 300px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: clamp(24px, 3vh, 40px) clamp(24px, 3vw, 36px);
}

.premio-medalla {
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1;
}

.premio-img-wrap {
  position: relative;
  width: 100%;
}

.premio-img-wrap .premio-medalla {
  position: absolute;
  top: 10px;
  left: 16px;
  font-size: clamp(32px, 3.5vw, 48px);
  z-index: 1;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.6));
}

.premio-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin-top: 10px;
}

.premio-card--gold .premio-img-wrap,
.premio-card--gold .premio-body {
  transition: opacity 0.9s ease;
}
.premio-card--gold.is-fading .premio-img-wrap,
.premio-card--gold.is-fading .premio-body {
  opacity: 0;
}

.premio-dots {
  position: absolute;
  bottom: 10px;
  right: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
  pointer-events: none;
}

.premio-dot {
  height: 5px;
  width: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  transition: width 0.45s ease, background 0.45s ease;
  position: relative;
  flex-shrink: 0;
}

.premio-dot.active {
  width: 24px;
  background: rgba(255, 146, 63, 0.2);
}

.premio-dot__fill {
  display: block;
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #ff923f;
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

.premio-dot.active .premio-dot__fill {
  animation: dotFill 8s linear forwards;
}

@keyframes dotFill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.premio-puesto {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: #ff923f;
  text-transform: uppercase;
  margin: 0 0 10px;
}

/* ── Columna principal: oro + subcol ── */
.premios-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(12px, 1.5vw, 24px);
}

/* ── Subcolumna: plata/bronce + bonus ── */
.premios-subcol {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.5vh, 20px);
}

.premios-row {
  display: flex;
  gap: clamp(12px, 1.5vw, 24px);
  align-items: flex-start;
}

/* ── Card bonus: rectangular horizontal ── */
.premio-card--bonus {
  flex-direction: row;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  padding: clamp(16px, 2vh, 24px) clamp(24px, 3vw, 36px);
  border: 1.5px solid rgba(201, 151, 26, 0.6);
  background: rgba(20, 18, 10, 0.7);
  box-shadow: 0 0 32px rgba(184, 134, 11, 0.08);
  width: 100%;
}

.premio-bonus-img {
  height: clamp(52px, 6vw, 80px);
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  transform: scale(1.35);
}

.premio-bonus-validez {
  font-family: 'Source Sans 3', sans-serif;
  font-size: clamp(10px, 0.9vw, 13px);
  font-weight: 600;
  color: #e03535;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.premio-card--bonus .premio-medalla {
  font-size: clamp(28px, 3vw, 40px);
  flex-shrink: 0;
}

.premio-card--bonus .premio-puesto {
  color: #c9971a;
}

.premio-card--bonus .premio-nombre {
  font-size: clamp(22px, 2.5vw, 36px);
  white-space: nowrap;
}

.premio-card--bonus .premio-body {
  flex: 1;
}

.premio-bonus-tag {
  font-family: 'Source Sans 3', sans-serif;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 600;
  color: #c9971a;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border: 1px solid rgba(201, 151, 26, 0.4);
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.premio-nombre {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  color: #f4f1e0;
  margin: 0;
}

/* ── Panel reglas del prode ── */
.reglas-panel {
  flex-shrink: 0;
  width: clamp(300px, 32vw, 460px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(40px, 5vw, 80px);
}

.reglas-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vh, 40px);
}

.regla-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.regla-emoji {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1;
  flex-shrink: 0;
  margin-top: 4px;
}

.regla-texto {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.regla-accion {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 0.9;
  color: #f4f1e0;
  font-weight: 400;
}

.regla-premio {
  font-family: 'Source Sans 3', sans-serif;
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 600;
  color: #ff923f;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.premios-fin {
  flex-shrink: 0;
  padding: 0 clamp(40px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.participas-link {
  display: none;
}

@media (max-width: 640px) {
  /* Scroll horizontal nativo en mobile */
  .main-section {
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: none; /* evita el rebote elástico de iOS */
  }

  .card-wrap,
  .premios-intro,
  .premios-col,
  .reglas-panel,
  .premios-fin {
    scroll-snap-align: start;
    min-width: 100vw;
  }

  .premios-fin {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .participas-link {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.9s ease;
    color: #ff923f;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-decoration: none;
    text-transform: uppercase;
    margin-top: 18px;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
  }

  .participas-link:active {
    opacity: 0.7;
  }

  .fixture-url-fin {
    display: none;
  }
}

.premios-fin p {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(60px, 8vw, 120px);
  color: #b63b28;
  white-space: nowrap;
  margin: 0;
  letter-spacing: 4px;
}

.fixture-url-fin {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(16px, 1.8vw, 26px);
  color: #ff923f;
  letter-spacing: 0.14em;
  text-decoration: none;
  opacity: 0.75;
  margin-top: 0.6em;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.fixture-url-fin:hover { opacity: 1; }

/* ── Desktop (≥ 1100px) ── */
@media (min-width: 1100px) {
  .card-wrap {
    gap: clamp(64px, 7vw, 100px);
  }

  .left {
    max-width: 560px;
  }

  .brand-name {
    font-size: clamp(96px, 10vw, 140px);
  }

  .logo-svg {
    width: clamp(260px, 28vw, 400px);
    height: clamp(260px, 28vw, 400px);
  }
}
