/* ==========================================================================
   Corre Cancún — Reset + base
   ========================================================================== */

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

html {
  font-size: 62.5%;            /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body-l);
  line-height: 1.5;
  color: var(--ink);
  background: var(--navy-3);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: .01em;
}

:focus-visible {
  outline: 3px solid var(--brand-orange);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

[hidden] { display: none !important; }

/* ---- Layout helpers ----------------------------------------------------- */
.wrapper {
  width: 100%;
  max-width: var(--wrapper);
  margin-inline: auto;
  padding-inline: var(--sp-l);
}
.wrapper--wide { max-width: var(--wrapper-wide); }

.section { padding-block: var(--sp-4xl); }
.section--tight { padding-block: var(--sp-2xl); }

.u-main-background { background: var(--navy-3); }
.u-surface        { background: var(--surface); color: var(--ink); }

/* ---- Botones ---------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand-blue);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: 1.15rem 2.2rem;
  font-family: var(--font-body);
  font-size: var(--fs-label-s);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border-radius: var(--radius-full);
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: translateY(1px); }
.btn--grana   { --btn-bg: var(--brand-grana); }
.btn--grana:hover { background: var(--brand-grana-dark); }
.btn--gold    { --btn-bg: var(--brand-yellow); --btn-fg: #121212; }
.btn--gold:hover { background: var(--secondary-hover); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border: 1.5px solid var(--surface-container);
}
.btn--ghost:hover { background: var(--grey-100); }
/* Sobre las franjas de color (hero, CTA naranja, promos sobre foto) el
   ghost vuelve a texto blanco */
.page-hero .btn--ghost,
.cta-band .btn--ghost,
.join .btn--ghost,
.feature-promo .btn--ghost,
.video-hero .btn--ghost,
.hero__primary .btn--ghost {
  --btn-fg: #fff;
  border-color: rgba(255,255,255,.65);
}
.page-hero .btn--ghost:hover,
.cta-band .btn--ghost:hover,
.join .btn--ghost:hover,
.feature-promo .btn--ghost:hover,
.video-hero .btn--ghost:hover,
.hero__primary .btn--ghost:hover { background: rgba(255,255,255,.14); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--dark:hover { background: #000; }
.btn--block { display: flex; width: 100%; justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--fs-label-s);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.link-arrow svg { width: 1.4rem; height: 1.4rem; fill: currentColor; transition: transform .18s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---- Encabezado de widget ------------------------------------------------ */
.widget__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-m);
  margin-bottom: var(--sp-xl);
}
.widget__title {
  font-family: var(--font-display);
  font-size: var(--fs-title-xl);
  text-transform: uppercase;
  color: var(--ink);
}
.widget__title::after {
  content: "";
  display: block;
  width: 4.8rem;
  height: .4rem;
  margin-top: var(--sp-s);
  background: var(--grad-tight);
}

/* ---- Etiqueta de sección / tag ---------------------------------------- */
.tag {
  display: inline-block;
  padding: .4rem .8rem;
  font-size: var(--fs-body-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
  background: var(--brand-grana);
}
.tag--blue   { background: var(--brand-blue); }
.tag--gold   { background: var(--brand-yellow); color: #121212; }
.tag--live   { background: var(--danger); }

.eyebrow {
  font-size: var(--fs-label-s);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--brand-orange-dark);
}

/* ---- Media placeholder (sin assets con copyright) --------------------- */
.ph {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--grad-tight);
  isolation: isolate;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,.06) 0 2px, transparent 2px 22px),
    radial-gradient(120% 120% at 15% 0%, rgba(255,255,255,.18), transparent 55%);
  z-index: -1;
}
.ph__crest {
  position: absolute;
  right: -3rem; bottom: -3rem;
  width: 46%;
  opacity: .12;
  filter: brightness(0) invert(1);
}
.ph--grana { background: var(--brand-rust); }
.ph--blue  { background: linear-gradient(120deg, #c2673a, #9c4a1a); }
.ph--navy  { background: linear-gradient(120deg, #a85528, #7d340f); }
.ph--gold  { background: linear-gradient(120deg, #f7b542, #d4881a); }
