/* ==========================================================================
   Dragones Elite — "Dragón en vuelo"
   Hero multicapa, secciones nuevas de la portada y soporte del movimiento.
   El movimiento vive en assets/js/fuego.js; aquí queda el estado final, que
   es también lo que ve quien pide menos movimiento.
   ========================================================================== */

/* --- Hero en cuatro profundidades ----------------------------------------- */

.intro .hero-texto, .intro .hero-visual { visibility: hidden; }

.hero-fuego { overflow: hidden; }
.hero-fuego .capa { will-change: transform; }

.capa-fondo { position: absolute; inset: -10% 0 0 0; z-index: -1; pointer-events: none; }
.escamas {
  position: absolute; inset: 0;
  background: url('../img/escamas.svg') repeat;
  background-size: 44px 26px;
  opacity: .045;
  -webkit-mask-image: radial-gradient(70% 60% at 70% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(70% 60% at 70% 40%, #000 20%, transparent 75%);
}
.brasas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Foto grupal del club de fondo: difuminada y oscura, lo justo para que se
   reconozca al equipo sin pelearle al titular. Sin foto no se ve nada, así que
   el hero nunca queda a medias. */
.hero-foto {
  position: absolute; inset: -6%;
  background: no-repeat center 58% / cover;
  filter: blur(11px) saturate(.45) brightness(.66) contrast(1.05);
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s var(--ease-out);
}
.hero-foto.con-foto { opacity: .85; }
/* El velo protege la lectura donde va el texto (izquierda) y se abre a la
   derecha, que es donde se ve el equipo. */
.capa-fondo::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 15, .55), rgba(10, 10, 15, .3) 42%, var(--bg) 97%),
    radial-gradient(64% 72% at 16% 48%, rgba(10, 10, 15, .9) 18%, rgba(10, 10, 15, .5) 55%, transparent 78%);
}
/* Baño cálido: la foto es de día y el sitio es de fuego */
.capa-fondo::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(90% 80% at 62% 55%, rgba(163, 28, 5, .34), rgba(122, 50, 8, .18) 55%, transparent 80%);
  mix-blend-mode: screen;
}
.hero-fuego::before {
  content: '';
  position: absolute; inset: auto -10% -30% -10%; height: 70%;
  z-index: -1;
  background: radial-gradient(60% 60% at 60% 100%, rgba(225, 6, 0, .28), rgba(255, 90, 31, .1) 45%, transparent 70%);
  pointer-events: none;
}

.capa-palabra {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  place-items: center;
  pointer-events: none;
  white-space: nowrap;
}
.capa-palabra span {
  display: block;
  font-family: var(--font-poster);
  font-size: clamp(120px, 24vw, 360px);
  line-height: .8;
  letter-spacing: -.01em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 183, 0, .09);
}

.hero-titulo {
  margin: 16px 0 18px;
  font-family: var(--font-poster);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(64px, 11vw, 150px);
  line-height: .86;
  letter-spacing: -.005em;
}
.hero-titulo .linea { display: block; overflow: hidden; padding-bottom: .05em; }
/* El rojo solo aparece aquí, en letra gigante: 3,98:1 sirve para texto grande */
.hero-titulo .fuego {
  background: var(--grad-fire);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 30px rgba(225, 6, 0, .35));
}
.hero-titulo .char { display: inline-block; will-change: transform; }
.hero-sub {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: clamp(13px, 1.4vw, 16px);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 14px;
}
.hero-fuego .lead { max-width: 500px; }

.volador {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 10px 28px rgba(255, 90, 31, .35));
}
/* Enmarcan la tarjeta sin taparla: una entra por la izquierda, las otras dos
   salen por fuera del borde derecho. */
.volador.v1 { width: 120px; left: -20%; top: 40%; }
.volador.v2 { width: 156px; right: -19%; top: -14%; }
.volador.v3 { width: 100px; right: -13%; bottom: -6%; }

/* --- Zarpazo entre secciones ----------------------------------------------- */

.zarpazo { position: relative; height: 90px; margin: 10px 0 -40px; pointer-events: none; }
.zarpazo svg { width: 100%; height: 100%; overflow: visible; }
.zarpazo path {
  fill: none;
  stroke: var(--ember);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: .75;
  filter: drop-shadow(0 0 10px rgba(255, 90, 31, .6));
}

/* --- Quiénes somos -------------------------------------------------------- */

.quienes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.titulo-seccion { font-size: clamp(32px, 4.8vw, 58px); margin-top: 16px; }
.titulo-seccion .palabra { display: inline-block; }
.lead-cuerpo { margin: 22px 0 26px; font-size: 16px; line-height: 1.75; color: var(--muted); max-width: 58ch; }
.quienes .pullquote { font-size: clamp(18px, 2.2vw, 24px); }

.valores { display: grid; gap: 4px; }
.valor {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 20px 0;
}
.valor-linea {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--grad-line);
  transform-origin: 0 50%;
}
.valor-ico {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 90, 31, .06);
  color: var(--gold);
  transition: background .6s var(--ease), box-shadow .6s var(--ease), color .6s;
}
.valor-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* "Se enciende": cuando entra en pantalla el ícono toma fuego */
.valor.encendido .valor-ico {
  background: var(--grad-gold);
  color: #140a04;
  box-shadow: 0 0 0 1px rgba(245, 183, 0, .3), 0 10px 34px rgba(255, 90, 31, .45);
}
.valor h3 { font-family: var(--font-ui); font-size: 17px; margin: 4px 0 6px; }
.valor p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* --- Logros: riel horizontal ------------------------------------------------ */

.logros { position: relative; padding: clamp(56px, 7.5vw, 108px) 0 0; }
.logros .figures { margin-bottom: 20px; }
.logros-pin { position: relative; overflow: hidden; padding: 40px 0 90px; }
.logros-riel {
  display: flex;
  gap: 20px;
  width: max-content;
  padding-inline: max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter)));
}
.hito {
  position: relative;
  width: min(380px, 78vw);
  flex: 0 0 auto;
  padding: 30px 28px 28px;
  border-radius: var(--r-l);
  border: 1px solid var(--line-soft);
  background: linear-gradient(165deg, var(--panel), var(--bg-2));
  overflow: hidden;
}
.hito::after {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--grad-fire);
}
.hito-ano { font-family: var(--font-poster); font-size: 64px; line-height: 1; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hito h3 { font-family: var(--font-ui); font-size: 19px; margin: 16px 0 8px; }
.hito p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.hito-medalla {
  position: absolute; right: 22px; top: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #ffe08a, #f5b700 45%, #b86e00);
  box-shadow: 0 6px 20px rgba(245, 183, 0, .35);
  color: #3a1d00; font-size: 20px;
}
.logros-guia { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.logros-guia i { flex: 0 0 120px; height: 2px; background: var(--line-soft); position: relative; overflow: hidden; }
.logros-guia i::after { content: ''; position: absolute; inset: 0; background: var(--grad-gold); transform-origin: 0 50%; transform: scaleX(var(--avance, 0)); }

/* --- Competencias con cuenta regresiva ------------------------------------- */

.comp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.comp {
  position: relative;
  padding: 24px;
  border-radius: var(--r-l);
  border: 1px solid var(--line-soft);
  background: linear-gradient(165deg, var(--panel), var(--bg-2));
  display: grid; gap: 14px;
  overflow: hidden;
  transition: border-color .3s, transform .4s var(--ease);
}
.comp:hover { border-color: rgba(255, 90, 31, .45); transform: translateY(-4px); }
.comp.principal { border-color: rgba(255, 90, 31, .4); box-shadow: 0 0 0 1px rgba(255, 90, 31, .12) inset, 0 24px 60px rgba(225, 6, 0, .14); }
.comp-tipo { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ember); }
.comp h3 { font-family: var(--font-ui); font-size: 20px; }
.comp-lugar { font-size: 13.5px; color: var(--muted); }
.cuenta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cuenta div { padding: 10px 4px; text-align: center; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-soft); }
.cuenta b { display: block; font-family: var(--font-poster); font-size: 28px; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.cuenta span { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }

/* --- Tryouts --------------------------------------------------------------- */

.tryouts { display: grid; grid-template-columns: 1fr 440px; gap: clamp(30px, 5vw, 64px); align-items: start; }
.pasos-try { display: grid; gap: 4px; margin: 28px 0 18px; padding: 0; list-style: none; }
.pasos-try li { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.pasos-try b { font-family: var(--font-poster); font-size: 30px; line-height: 1; color: var(--ember); }
.pasos-try h3 { font-family: var(--font-ui); font-size: 16px; margin-bottom: 4px; }
.pasos-try p { font-size: 13.5px; color: var(--muted); }
.prox-eval { font-size: 14px; color: var(--gold); font-weight: 700; }
.tryout-form { padding: 28px; display: grid; gap: 16px; }
.tryout-form h3 { font-size: 20px; font-family: var(--font-serif); font-weight: 500; }
.t-fila { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.t-link { font-size: 13px; color: var(--muted); text-align: center; }
.t-link:hover { color: var(--gold); }

/* --- Auspiciadores --------------------------------------------------------- */

.marquee-marcas { --dur: 36s; margin: 10px 0 40px; }
.marquee-marcas .marca {
  display: inline-grid; place-items: center;
  min-width: 220px; height: 84px;
  padding: 0 28px;
  border: 1px dashed rgba(245, 183, 0, .3);
  border-radius: 18px;
  font-family: var(--font-ui);
  font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted-2);
  -webkit-text-stroke: 0;
}
.marquee-marcas .marca::after { content: none; }
.marquee-marcas .marquee-track { gap: 18px; padding-right: 18px; }
.auspicio-beneficios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.auspicio-beneficios article { padding: 22px; border-radius: var(--r-m); border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .02); }
.auspicio-beneficios b { display: block; font-family: var(--font-ui); font-size: 16px; color: var(--gold); margin-bottom: 6px; }
.auspicio-beneficios p { font-size: 13.5px; color: var(--muted); }

/* --- Contacto -------------------------------------------------------------- */

.contacto { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 64px); align-items: stretch; }
.datos-contacto { display: grid; margin: 26px 0 22px; }
.datos-contacto li { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-soft); font-size: 15px; }
.datos-contacto span { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); padding-top: 3px; }
.datos-contacto a { color: var(--gold); }
.redes { display: flex; gap: 10px; flex-wrap: wrap; }
.redes a {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 700;
  transition: background .25s, border-color .25s;
}
.redes a:hover { background: rgba(255, 90, 31, .1); border-color: rgba(255, 90, 31, .5); }
.redes svg { width: 18px; height: 18px; fill: currentColor; }
.mapa { position: relative; min-height: 360px; overflow: hidden; padding: 0; }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
.mapa-fachada { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; padding: 24px; text-align: center; }
.mapa-fachada img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; z-index: -1; }
.mapa-fachada small { max-width: 34ch; font-size: 12px; color: var(--muted); }

/* --- Cursor propio (solo mouse, solo con movimiento permitido) -------------- */

.cursor-punto, .cursor-aro {
  position: fixed; left: 0; top: 0; z-index: 300;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-punto { width: 7px; height: 7px; background: var(--ember); }
.cursor-aro {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(245, 183, 0, .7);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s, border-color .25s;
}
.cursor-aro.sobre { width: 58px; height: 58px; background: rgba(255, 90, 31, .12); border-color: var(--ember); }
html.cursor-propio, html.cursor-propio a, html.cursor-propio button { cursor: none; }
html.cursor-propio input, html.cursor-propio textarea, html.cursor-propio select { cursor: auto; }

/* --- Lenis ----------------------------------------------------------------- */

html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

/* --- Adaptación ------------------------------------------------------------ */

@media (max-width: 1080px) {
  .quienes, .tryouts, .contacto { grid-template-columns: 1fr; }
  .volador.v1 { left: -6%; width: 104px; }
  .volador.v2 { right: -6%; width: 124px; }
  .volador.v3 { right: -4%; width: 86px; }
}

@media (max-width: 860px) {
  .auspicio-beneficios { grid-template-columns: 1fr; }
  .logros-riel { flex-direction: column; width: auto; }
  .hito { width: auto; }
  .logros-pin { padding-bottom: 50px; }
  .logros-guia { display: none; }
}

@media (max-width: 520px) {
  .hero-titulo { font-size: clamp(56px, 19vw, 84px); }
  /* En pantalla angosta el texto ocupa todo el ancho, así que el velo tiene que
     ser parejo y más fuerte: el radial de escritorio dejaba zonas claras. */
  .hero-foto.con-foto { opacity: .55; }
  .capa-fondo::after {
    background: linear-gradient(180deg, rgba(10, 10, 15, .8), rgba(10, 10, 15, .66) 45%, var(--bg) 97%);
  }
  .capa-fondo::before { opacity: .7; }

  /* En celular la tarjeta manda: las atletas se corren a las esquinas */
  .volador.v1 { width: 76px; left: -3%; top: auto; bottom: -8%; }
  .volador.v2 { width: 92px; right: -4%; top: -11%; }
  .volador.v3 { display: none; }
  /* La palabra gigante de fondo estorba la lectura en pantalla chica */
  .capa-palabra { display: none; }
  .t-fila { grid-template-columns: 1fr; }
  .cuenta b { font-size: 24px; }
  .datos-contacto li { grid-template-columns: 1fr; gap: 4px; }
  .zarpazo { height: 60px; margin-bottom: -30px; }
}

/* Hero: cuatro cifras en 2 × 2 en celular */
@media (max-width: 520px) {
  .hero-fuego .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
}

/* --- Semana de la categoría elegida (sección Equipos) -------------------- */

.semana-equipos { margin: 22px 0 26px; }
.semana-cab { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.semana-cab h3 { font-family: var(--font-ui); font-size: 15px; font-weight: 700; }
.semana-cab span { font-size: 12.5px; color: var(--muted-2); }
.semana-grilla { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.semana-dia {
  display: grid; gap: 6px; align-content: start;
  min-height: 108px; padding: 12px 10px;
  border-radius: 14px; border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .02);
}
.semana-dia.entrena { border-color: rgba(255, 90, 31, .35); background: rgba(255, 90, 31, .06); }
.semana-dia.hoy { outline: 1px solid var(--gold); }
.semana-dow { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.semana-dia.entrena .semana-dow { color: var(--ember); }
.semana-dia.hoy .semana-dow { color: var(--gold); }
.semana-bloque { display: grid; gap: 1px; padding: 7px 9px; border-radius: 9px; background: rgba(0, 0, 0, .3); }
.semana-bloque b { font-family: var(--font-ui); font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.semana-bloque span { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.semana-libre { font-size: 12px; color: var(--muted-2); opacity: .6; }

@media (max-width: 900px) {
  .semana-grilla { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .semana-grilla { grid-template-columns: 1fr 1fr; gap: 6px; }
  .semana-dia { min-height: 0; padding: 10px 9px; }
}
