/* ════════════════════════════════════════════════
   io Mx 🤠 — Folk Urbano / Western Mexicano
   Paleta: negro carbón · dorado · tierra · crema
   ════════════════════════════════════════════════ */

:root {
  --bg:        #14100c;   /* negro carbón cálido */
  --bg-soft:   #1d1812;
  --bg-card:   #221c15;
  --gold:      #d9a441;   /* dorado */
  --gold-soft: #e9c87a;
  --earth:     #8a5a2b;   /* tierra / cuero */
  --rust:      #b4502a;   /* óxido / rojo tierra */
  --cream:     #f2e9d8;   /* crema */
  --muted:     #9c9080;
  --line:      rgba(217,164,65,.18);
  --shadow:    0 18px 50px rgba(0,0,0,.5);
  --maxw:      1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

img, iframe { max-width: 100%; display: block; }
/* Reset defensivo: ningún SVG inline debe crecer más de lo que su clase indique */
svg { max-width: 100%; }
svg.brand, svg.ico { flex-shrink: 0; }

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

/* ░░ ÍCONOS SVG ░░ */
.ico {
  width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -0.18em;
  fill: none; flex: 0 0 auto;
}
.ico--inline { width: 1em; height: 1em; vertical-align: -0.12em; }
.ico--title { width: 1.05em; height: 1.05em; vertical-align: -0.12em; color: var(--gold); }
.ico--ph { display: block; width: 32px; height: 32px; margin: 0 auto .5rem; opacity: .8; }
/* Los íconos heredan el color del texto/botón contenedor vía currentColor */

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  font-family: 'Oswald', sans-serif; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; font-size: .9rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(135deg, var(--gold), var(--gold-soft)); color: #2a1d07; box-shadow: 0 10px 28px rgba(217,164,65,.35); }
.btn--ghost { background: transparent; color: var(--cream); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn--center { display: flex; width: fit-content; margin: 2.5rem auto 0; }

/* ░░ NAV ░░ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem 2rem;
  background: rgba(20,16,12,.6); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, padding .3s ease;
}
/* Escritorio: navbar más alto y con presencia */
@media (min-width: 861px) {
  .nav { padding: 1.1rem 3rem; }
  .nav__logo { font-size: 1.5rem; }
  .nav__links { gap: 2.2rem; }
  /* Al hacer scroll se compacta un poco para ganar espacio de lectura */
  .nav.scrolled { padding: .7rem 3rem; }
  /* Foto del hero desplazada a la derecha: más espacio oscuro para el texto */
  .hero__bg { background-position: right -8% center; }
}
.nav.scrolled { background: rgba(20,16,12,.94); }
.nav__logo { font-family: 'Rye', serif; font-size: 1.25rem; color: var(--gold-soft); letter-spacing: .02em; display: inline-flex; align-items: center; gap: .4rem; }
.nav__hat { width: 1.25em; height: 1.25em; color: var(--gold); }
.nav__links { display: flex; gap: 1.8rem; }
.nav__links a {
  font-family: 'Oswald', sans-serif; font-size: .85rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--cream); opacity: .8; transition: color .2s, opacity .2s;
}
.nav__links a:hover { color: var(--gold-soft); opacity: 1; }
.lang-toggle {
  background: transparent; border: 1.5px solid var(--line); border-radius: 999px;
  padding: .35rem .8rem; color: var(--muted); cursor: pointer;
  font-family: 'Oswald', sans-serif; font-size: .8rem; letter-spacing: .05em;
}
.lang-toggle .is-active { color: var(--gold-soft); font-weight: 700; }
.lang-toggle__sep { margin: 0 .3rem; opacity: .4; }

/* ░░ HERO ░░ */
.hero { position: relative; height: 100vh; min-height: 620px; display: flex; align-items: center; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    image-set(url("../img/iomx_horizontal.jpg") 1x);
  background-image: url("../img/iomx_horizontal.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex; align-items: center; justify-content: center;
}
/* La nota de placeholder ya no aplica: hay foto real */
.hero__bg .placeholder-note { display: none; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,16,12,.94) 0%, rgba(20,16,12,.78) 35%, rgba(20,16,12,.25) 60%, transparent 85%),
              linear-gradient(0deg, var(--bg) 1%, transparent 40%);
}
.hero__content { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; width: 100%; }
.hero__eyebrow {
  font-family: 'Oswald'; text-transform: uppercase; letter-spacing: .22em;
  color: var(--gold); font-size: .85rem; margin-bottom: .6rem;
}
.hero__title { font-family: 'Rye', serif; font-size: clamp(3.5rem, 11vw, 8rem); line-height: .95; color: var(--cream); text-shadow: 0 6px 30px rgba(0,0,0,.6); display: inline-flex; align-items: center; gap: .35em; }
.hero__name { display: inline-block; }
/* Sombrero como elemento separado, junto al wordmark */
.hero__hat { width: .6em; height: .6em; color: var(--gold); flex: 0 0 auto; filter: drop-shadow(0 4px 14px rgba(0,0,0,.5)); }
.hero__tagline { font-family: 'Oswald'; font-weight: 300; font-size: clamp(1.1rem, 3vw, 1.7rem); color: var(--gold-soft); margin: .6rem 0 2rem; letter-spacing: .03em; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__stat { margin-top: 2.2rem; color: var(--muted); font-family: 'Oswald'; letter-spacing: .05em; }
.hero__stat strong { color: var(--gold-soft); font-size: 1.4rem; }
.hero__scroll { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); color: var(--gold); font-size: 1.6rem; animation: bob 1.8s ease-in-out infinite; z-index: 2; }
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,10px);} }

/* ░░ SECTIONS base ░░ */
.section { max-width: var(--maxw); margin: 0 auto; padding: 6rem 2rem; }
.section__head { text-align: center; margin-bottom: 3rem; }
.section__title { font-family: 'Rye', serif; font-size: clamp(2rem, 5vw, 3rem); color: var(--gold-soft); }
.section__title--light { color: var(--cream); text-align: center; }
.section__sub { color: var(--muted); font-family: 'Oswald'; font-weight: 300; margin-top: .5rem; letter-spacing: .04em; }

/* ░░ MÚSICA ░░ */
.section--music { border-top: 1px solid var(--line); }
.music__embeds { max-width: 720px; margin: 0 auto; }
.music__platforms-title { text-align: center; font-family: 'Oswald'; font-weight: 300; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); margin: 3rem 0 1.4rem; font-size: .9rem; }
.platforms { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.platform {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .95rem; border: 1px solid var(--line); border-radius: 999px;
  font-family: 'Oswald'; font-size: .82rem; letter-spacing: .03em; color: var(--cream);
  line-height: 1; transition: all .2s ease; background: var(--bg-soft);
}
.platform:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-2px); }

/* ░░ Logos de marca (mono dorado por defecto, color oficial al hover) ░░ */
.brand {
  width: 16px; height: 16px; flex: 0 0 16px; display: inline-block;
  color: var(--cream); transition: color .2s ease; vertical-align: middle;
}
.brand--title { width: 1.05em; height: 1.05em; flex: none; vertical-align: -.12em; color: var(--gold); }
.platform:hover .brand, .social__link:hover .brand { transition: color .2s ease; }

/* Colores oficiales de cada marca al hacer hover sobre el enlace */
.platform[data-brand="spotify"]:hover    .brand { color: #1ED760; }
.platform[data-brand="applemusic"]:hover .brand { color: #FA243C; }
.platform[data-brand="ytmusic"]:hover    .brand { color: #FF0000; }
.platform[data-brand="amazonmusic"]:hover .brand { color: #25D1DA; }
.platform[data-brand="deezer"]:hover     .brand { color: #A238FF; }
.platform[data-brand="tidal"]:hover      .brand { color: #ffffff; }
.platform[data-brand="soundcloud"]:hover .brand { color: #FF5500; }
.platform[data-brand="audiomack"]:hover  .brand { color: #FFA200; }
.social__link[data-brand="instagram"]:hover .brand { color: #FF0069; }
.social__link[data-brand="tiktok"]:hover    .brand { color: #ffffff; }
.social__link[data-brand="youtube"]:hover   .brand { color: #FF0000; }
.social__link[data-brand="x"]:hover         .brand { color: #ffffff; }
.social__link[data-brand="facebook"]:hover  .brand { color: #0866FF; }
.social__link[data-brand="threads"]:hover   .brand { color: #ffffff; }

/* ░░ QUINIELA (estrella) ░░ */
.section--quiniela {
  background:
    radial-gradient(100% 120% at 0% 0%, rgba(180,80,42,.18), transparent 50%),
    linear-gradient(160deg, #1e2a1c, #14100c 75%);
  max-width: none; margin: 0; padding-left: 2rem; padding-right: 2rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section--quiniela > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.quiniela__logo {
  width: clamp(240px, 42vw, 380px); height: auto; margin: 0 auto 1.4rem;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.45));
}
.quiniela__lead { text-align: center; max-width: 680px; margin: 1rem auto 3rem; color: var(--cream); opacity: .9; font-size: 1.1rem; }
.quiniela__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.step { display: flex; gap: 1rem; margin-bottom: 1.6rem; align-items: flex-start; }
.step__num {
  flex: 0 0 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft)); color: #2a1d07;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Oswald'; font-weight: 700; font-size: 1.1rem;
}
.step__num--icon .ico { width: 22px; height: 22px; }
.step h4 { font-family: 'Oswald'; font-size: 1.15rem; color: var(--gold-soft); letter-spacing: .02em; }
.step p { color: var(--muted); font-size: .95rem; }
.code { background: rgba(217,164,65,.16); color: var(--gold-soft); padding: .1rem .5rem; border-radius: 6px; letter-spacing: .15em; font-family: 'Oswald'; }
.quiniela__download { display: flex; gap: .8rem; margin-top: 2rem; flex-wrap: wrap; }
/* Store badges oficiales (imágenes externas Apple / Google).
   El PNG de Google trae ~11.6% de padding transparente por lado (botón
   real = 192/250 de la imagen). Para que ambos botones se vean del mismo
   alto: Apple (sin padding) a 50px; Google a 65px → botón visible ≈ 50px,
   con margen negativo que compensa el padding y empata el ancho del gap. */
.stores { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 1.6rem; }
.store-badge { height: 50px; width: auto; border-radius: 9px; transition: transform .2s ease; }
.store-badge[alt*="Google Play"], .store-badge[alt*="Disponible"] {
  height: 65px; margin: -7px -8px; border-radius: 0;
}
.store-badge:hover { transform: scale(1.04); }

.quiniela__prize { position: sticky; top: 90px; }
.prize-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.6rem; text-align: center; box-shadow: var(--shadow);
}
.prize-card__qr {
  width: 150px; height: 150px; margin: 0 auto 1.2rem;
  background: var(--bg-soft); border: 1.5px dashed var(--earth); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; padding: .8rem;
}
.prize-card h3 { font-family: 'Rye', serif; color: var(--gold-soft); font-size: 1.4rem; }
.prize-card__desc { color: var(--muted); margin-top: .6rem; font-size: .95rem; }

/* LEADERBOARD */
.leaderboard {
  margin-top: 3.5rem; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 18px; padding: 1.6rem 1.8rem; box-shadow: var(--shadow);
}
.leaderboard__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.leaderboard__head h3 { font-family: 'Rye', serif; color: var(--gold-soft); font-size: 1.4rem; }
.leaderboard__live { display: flex; align-items: center; gap: .5rem; font-family: 'Oswald'; font-size: .75rem; letter-spacing: .12em; color: var(--rust); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rust); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.3;} }
.leaderboard__list { list-style: none; counter-reset: rank; }
.leaderboard__list li {
  display: grid; grid-template-columns: 42px 1fr auto; align-items: center;
  padding: .7rem .4rem; border-bottom: 1px solid rgba(217,164,65,.08); gap: .8rem;
}
.leaderboard__list li:last-child { border-bottom: none; }
.lb-rank { font-family: 'Oswald'; font-weight: 700; color: var(--muted); text-align: center; }
.leaderboard__list li:nth-child(1) .lb-rank { color: #ffd766; font-size: 1.2rem; }
.leaderboard__list li:nth-child(2) .lb-rank { color: #cfd3da; }
.leaderboard__list li:nth-child(3) .lb-rank { color: #d98c5a; }
.lb-name { font-family: 'Oswald'; letter-spacing: .02em; }
.lb-pts { font-family: 'Oswald'; font-weight: 600; color: var(--gold-soft); }
.lb-pts small { color: var(--muted); font-weight: 400; }

/* ░░ BIO ░░ */
.section--bio { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; }
.bio__photo {
  aspect-ratio: 1/1; border-radius: 18px; border: 1px solid var(--line);
  background-image: url("../img/iomx_vertical.jpg");
  background-size: cover; background-position: center top;
  display: flex; align-items: flex-end; justify-content: center; box-shadow: var(--shadow);
}
.bio__photo .placeholder-note { display: none; }
.bio__text p { margin-bottom: 1.1rem; color: var(--cream); opacity: .9; }
.bio__text .section__title { margin-bottom: 1.4rem; }
.bio__stats { list-style: none; display: flex; gap: 2rem; margin: 1.8rem 0; flex-wrap: wrap; }
.bio__stats li { display: flex; flex-direction: column; }
.bio__stats strong { font-family: 'Rye', serif; color: var(--gold-soft); font-size: 1.8rem; }
.bio__stats span { font-family: 'Oswald'; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ░░ VIDEOS ░░ */
.section--videos { border-top: 1px solid var(--line); }
.videos__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.video-embed, .video-placeholder { aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.video-embed iframe { width: 100%; height: 100%; }
.video-placeholder { background: var(--bg-soft); display: flex; align-items: center; justify-content: center; }

/* ░░ TIKTOK ░░ */
.section--tiktok { border-top: 1px solid var(--line); text-align: center; }
.tiktok__grid { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: center; }
.tiktok__grid .tiktok-embed { margin: 0 !important; }

/* ░░ SOCIAL ░░ */
.section--social {
  background: linear-gradient(160deg, #221a12, #14100c); max-width: none; margin: 0;
  border-top: 1px solid var(--line); text-align: center;
}
.social { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; max-width: 760px; margin: 2.5rem auto 0; }
.social__link {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.6rem; border: 1px solid var(--line); border-radius: 999px;
  font-family: 'Oswald'; letter-spacing: .05em; color: var(--cream);
  transition: all .2s ease; background: rgba(0,0,0,.2);
}
.social__link:hover { background: rgba(217,164,65,.1); color: var(--gold-soft); transform: translateY(-3px); border-color: var(--gold); }

/* ░░ CONTACTO ░░ */
.section--contact { text-align: center; }
.contact { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-top: 2.5rem; }
.contact__item {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.4rem 2.2rem; min-width: 240px; transition: border-color .2s, transform .2s;
}
.contact__item:hover { border-color: var(--gold); transform: translateY(-3px); }
.contact__label { display: block; font-family: 'Oswald'; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-size: .8rem; margin-bottom: .4rem; }
.contact__value { font-family: 'Oswald'; font-size: 1.15rem; color: var(--gold-soft); }

/* ░░ FOOTER ░░ */
.footer { text-align: center; padding: 3.5rem 2rem 2.5rem; border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer__brand { font-family: 'Rye', serif; font-size: 1.8rem; color: var(--gold-soft); display: inline-flex; align-items: center; gap: .5rem; }
.footer__brand .ico { width: 1.1em; height: 1.1em; color: var(--gold); }
.footer__tag { font-family: 'Oswald'; font-weight: 300; color: var(--gold); letter-spacing: .05em; margin: .3rem 0 1.4rem; }
.footer__small { color: var(--muted); font-size: .9rem; }
.footer__small a { color: var(--gold-soft); }
.footer__copy { color: var(--muted); font-size: .8rem; margin-top: 1rem; }

/* ░░ PLACEHOLDERS (solo para la propuesta) ░░ */
.placeholder-note {
  font-family: 'Oswald', sans-serif; color: var(--gold); font-size: .8rem;
  text-align: center; letter-spacing: .03em; padding: .6rem 1rem; line-height: 1.5;
  border: 1px dashed var(--earth); border-radius: 8px; background: rgba(180,80,42,.08);
}
.placeholder-note--inline { display: block; margin-top: 1rem; opacity: .8; border-style: dotted; }

/* ░░ RESPONSIVE ░░ */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .quiniela__grid { grid-template-columns: 1fr; }
  .quiniela__prize { position: static; }
  .section--bio { grid-template-columns: 1fr; }
  .bio__photo { max-width: 340px; margin: 0 auto; }
}
@media (max-width: 520px) {
  .section { padding: 4rem 1.2rem; }
  .nav { padding: .8rem 1.2rem; }
  .hero__cta { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
