/* ============================================================
   ALTEFEM v2.0 — Landing publica
   Traduccion del diseno de Lovable a CSS puro.
   Se carga DESPUES de app.css y solo afecta la landing publica.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

:root {
  --v2-gold:        #f2c94c;
  --v2-gold-deep:   #e8a800;
  --v2-shadow-gold: 0 8px 30px -8px rgba(242,201,76,.35);
  --v2-display:     "Bebas Neue", system-ui, sans-serif;
}

/* ---------- Rayas aurinegras ---------- */
.stripes-aurinegras {
  background: repeating-linear-gradient(45deg,
    #000 0px, #000 10px,
    var(--v2-gold) 10px, var(--v2-gold) 20px);
}

/* ---------- Reveal al scrollear ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-in { opacity: 1; transform: translateY(0); }

/* ---------- Animaciones base ---------- */
@keyframes v2Ticker  { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes v2Marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes v2Float   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes v2FadeIn  { from { opacity:0; transform: translateY(18px); } to { opacity:1; transform: translateY(0); } }
@keyframes v2PulseRing {
  0%,100% { box-shadow: 0 0 0 0 rgba(242,201,76,.4); }
  50%     { box-shadow: 0 0 0 10px rgba(242,201,76,0); }
}
.v2-fade-in    { animation: v2FadeIn .9s ease-out forwards; }
.v2-float      { animation: v2Float 5s ease-in-out infinite; }
.v2-pulse-ring { animation: v2PulseRing 2s infinite; }

/* ---------- Tipografia display ---------- */
.v2 h1, .v2 h2, .v2 h3,
.v2 .display { font-family: var(--v2-display); font-weight: 400; letter-spacing: .01em; }

.v2-gold-shine {
  background: linear-gradient(100deg, var(--v2-gold) 10%, #fff3c4 45%, var(--v2-gold) 75%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ============================================================
   NAV
   ============================================================ */
.v2-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, var(--bg), transparent);
  padding: 16px 0;
  transition: all .5s ease;
}
.v2-nav.scrolled {
  border-bottom-color: rgba(242,201,76,.4);
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(18px);
  padding: 8px 0;
}
.v2-nav__inner {
  max-width: 1280px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.v2-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.v2-brand__mark {
  width: 36px; height: 36px; border-radius: 4px; flex: none;
  transition: transform .5s ease;
}
.v2-brand:hover .v2-brand__mark { transform: rotate(12deg); }
.v2-brand__kicker {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: .3em;
  text-transform: uppercase; color: var(--v2-gold);
}
.v2-brand__name {
  display: block; font-family: var(--v2-display); font-size: 1.15rem;
  text-transform: uppercase; line-height: 1.1;
}
.v2-nav__links { display: none; align-items: center; gap: 28px; }
@media (min-width: 860px) { .v2-nav__links { display: flex; } }
.v2-nav__right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.v2-nav__social { display: flex; gap: 10px; align-items: center; }
.v2-nav__actions { display: flex; gap: 8px; align-items: center; }
@media (max-width: 640px) {
  .v2-nav__right { flex-direction: column; align-items: center; gap: 8px; }
}
.v2-nav__link {
  position: relative; font-size: .82rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: rgba(240,236,228,.8); text-decoration: none;
  transition: color .3s ease;
}
.v2-nav__link:hover { color: var(--v2-gold); }
.v2-nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  background: var(--v2-gold); transform: scaleX(0); transform-origin: right;
  transition: transform .3s ease;
}
.v2-nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.v2-nav__cta {
  border: none; border-radius: 6px; background: var(--v2-gold); color: #120d00;
  padding: 9px 18px; font-size: .8rem; font-weight: 700; text-transform: uppercase;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: transform .3s ease;
}
.v2-nav__cta:hover { transform: scale(1.05); }

/* ============================================================
   HERO
   ============================================================ */
.v2-hero { position: relative; height: 92vh; min-height: 560px; overflow: hidden; }
.v2-hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1);
  transition: opacity 1.6s ease-out, transform 1.6s ease-out;
}
.v2-hero__img.active { opacity: 1; transform: scale(1.05); }
.v2-hero { cursor: grab; touch-action: pan-y; user-select: none; }
.v2-hero:active { cursor: grabbing; }

.v2-lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.92);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.v2-lightbox.show { opacity: 1; pointer-events: auto; }
.v2-lightbox__img {
  max-width: 92vw; max-height: 88vh; object-fit: contain;
  border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.v2-lightbox__close {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.1); color: #fff; font-size: 1.1rem; cursor: pointer;
  transition: background .2s ease;
}
.v2-lightbox__close:hover { background: rgba(255,255,255,.2); }
.v2-lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.1); color: #fff; font-size: 1.6rem; cursor: pointer;
  transition: background .2s ease;
}
.v2-lightbox__nav:hover { background: rgba(255,255,255,.2); }
.v2-lightbox__prev { left: 20px; }
.v2-lightbox__next { right: 20px; }
@media (max-width: 640px) {
  .v2-lightbox__nav { width: 40px; height: 40px; font-size: 1.3rem; }
}
.v2-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg), rgba(10,10,10,.7) 45%, rgba(10,10,10,.3));
}
.v2-hero__content {
  position: absolute; inset: auto 0 0 0; max-width: 1280px; margin: 0 auto;
  padding: 0 16px 80px;
}
.v2-hero__eyebrow {
  margin: 0 0 12px; font-size: .72rem; font-weight: 700; letter-spacing: .4em;
  text-transform: uppercase; color: var(--v2-gold);
}
.v2-hero h1 {
  margin: 0; max-width: 46ch;
  font-size: clamp(2.8rem, 8vw, 5rem); line-height: .95; text-transform: uppercase;
}
.v2-hero p {
  margin: 20px 0 0; max-width: 44ch; color: var(--text-muted); line-height: 1.6;
}
.v2-hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.v2-btn {
  display: inline-block; border-radius: 6px; padding: 13px 26px; cursor: pointer;
  font-weight: 700; text-transform: uppercase; font-size: .85rem; text-decoration: none;
  transition: transform .3s ease, background .3s ease;
  border: none;
}
.v2-btn--gold { background: var(--v2-gold); color: #120d00; box-shadow: var(--v2-shadow-gold); }
.v2-btn--gold:hover { transform: translateY(-4px); }
.v2-btn--ghost {
  background: transparent; color: var(--v2-gold);
  border: 1px solid rgba(242,201,76,.5);
}
.v2-btn--ghost:hover { transform: translateY(-4px); background: rgba(242,201,76,.1); }
.v2-hero__dots {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.v2-dot {
  height: 6px; width: 16px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(240,236,228,.3); transition: all .5s ease;
}
.v2-dot:hover { background: rgba(240,236,228,.6); }
.v2-dot.active { width: 40px; background: var(--v2-gold); }

/* ============================================================
   TICKER
   ============================================================ */
.v2-ticker {
  border-block: 1px solid rgba(242,201,76,.3);
  background: rgba(242,201,76,.1);
  padding: 12px 0; overflow: hidden;
}
.v2-ticker__track {
  display: flex; width: max-content; gap: 40px; white-space: nowrap;
  animation: v2Ticker 25s linear infinite;
}
.v2-ticker__item {
  font-size: .82rem; font-weight: 700; letter-spacing: .3em;
  text-transform: uppercase; color: rgba(242,201,76,.9);
}
.v2-ticker__item i { color: rgba(240,236,228,.4); font-style: normal; }

/* ============================================================
   STATS
   ============================================================ */
.v2-stats {
  max-width: 1000px; margin: 0 auto; padding: 64px 16px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
}
@media (min-width: 700px) { .v2-stats { grid-template-columns: repeat(4, 1fr); } }
.v2-stat { text-align: center; }
.v2-stat__num { font-family: var(--v2-display); font-size: clamp(2.4rem, 6vw, 3.2rem); line-height: 1; }
.v2-stat__label {
  margin-top: 6px; font-size: .68rem; text-transform: uppercase;
  letter-spacing: .25em; color: var(--text-muted);
}

/* ============================================================
   SECCIONES
   ============================================================ */
.v2-section { max-width: 1280px; margin: 0 auto; padding: 64px 16px; }
.v2-sec-head { margin-bottom: 32px; }
.v2-sec-head__eyebrow {
  margin: 0; font-size: .72rem; font-weight: 600; letter-spacing: .35em;
  text-transform: uppercase; color: var(--v2-gold);
}
.v2-sec-head h2 {
  margin: 8px 0 0; font-size: clamp(2rem, 5vw, 3rem); text-transform: uppercase;
}
.v2-sec-head__rule {
  margin-top: 16px; height: 4px; width: 96px; border-radius: 999px;
}

/* ---------- Noticias ---------- */
/* ---------- Cuerpo tecnico ---------- */
.v2-staff-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .v2-staff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .v2-staff-grid { grid-template-columns: repeat(3, 1fr); } }
.v2-staff-card {
  overflow: hidden; border-radius: 12px; border: 1px solid var(--border);
  background: var(--card); text-align: center; padding: 24px 20px; cursor: pointer;
  transition: transform .3s ease, border-color .3s ease;
}
.v2-staff-card:hover { transform: translateY(-6px); border-color: rgba(242,201,76,.5); }
.v2-staff-card__foto {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 14px; display: block; border: 2px solid rgba(242,201,76,.35);
}
.v2-staff-card__foto--placeholder {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--v2-display); font-size: 2.2rem; color: var(--v2-gold);
  background: var(--surface);
}
.v2-staff-card__nombre { margin: 0 0 4px; font-size: 1.1rem; text-transform: uppercase; }
.v2-staff-card__bio-wrap {
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.2,.9,.25,1);
}
.v2-staff-card.is-open .v2-staff-card__bio-wrap { max-height: 400px; }
.v2-staff-card__bio { margin: 10px 0 0; font-size: .85rem; color: var(--text-muted); line-height: 1.5; }
.v2-staff-card__hint {
  display: block; margin-top: 8px; font-size: .72rem; letter-spacing: .05em;
  color: var(--v2-gold); text-transform: uppercase;
}
.v2-staff-card__hint-arrow { display: inline-block; transition: transform .3s ease; }
.v2-staff-card.is-open .v2-staff-card__hint-arrow { transform: rotate(180deg); }


.v2-news-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .v2-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .v2-news-grid { grid-template-columns: repeat(3, 1fr); } }
.v2-news {
  overflow: hidden; border-radius: 12px; border: 1px solid var(--border);
  background: var(--card); cursor: pointer; text-align: left; padding: 0;
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.v2-news:hover {
  transform: translateY(-8px);
  border-color: rgba(242,201,76,.6);
  box-shadow: var(--v2-shadow-gold);
}
.v2-news__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface); }
.v2-news__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.v2-news:hover .v2-news__media img { transform: scale(1.1); }
.v2-news__scrim {
  position: absolute; inset: 0; opacity: .8;
  background: linear-gradient(to top, var(--card), transparent 60%);
}
.v2-news__tag {
  position: absolute; left: 12px; top: 12px; border-radius: 4px;
  background: var(--v2-gold); color: #120d00; padding: 4px 8px;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.v2-news__body { padding: 20px; }
.v2-news__date { margin: 0; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.v2-news__title {
  margin: 8px 0 0; font-size: 1.35rem; text-transform: uppercase; color: var(--text);
  transition: color .3s ease;
}
.v2-news:hover .v2-news__title { color: var(--v2-gold); }
.v2-news__text { margin: 8px 0 0; font-size: .88rem; color: var(--text-muted); }
.v2-news__more {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; text-transform: uppercase; color: var(--v2-gold);
}
.v2-news__more span { transition: transform .3s ease; }
.v2-news:hover .v2-news__more span { transform: translateX(4px); }

/* ---------- Plantel ---------- */
.v2-plantel { position: relative; padding: 64px 0; }
.v2-plantel__bg { position: absolute; inset: 0; opacity: .06; pointer-events: none; }
.v2-plantel__inner { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.v2-cats { margin-bottom: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.v2-cat {
  border-radius: 999px; border: 1px solid var(--border); background: transparent;
  padding: 9px 20px; font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-muted); cursor: pointer;
  transition: all .3s ease;
}
.v2-cat:hover { border-color: rgba(242,201,76,.6); color: var(--v2-gold); }
.v2-cat.active {
  transform: scale(1.05); border-color: var(--v2-gold);
  background: var(--v2-gold); color: #120d00; box-shadow: var(--v2-shadow-gold);
}
.v2-squad {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 20px;
  max-width: 760px;
}
@media (min-width: 640px) { .v2-squad { grid-template-columns: repeat(3, 1fr); } }

.v2-player-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 4px; border-bottom: 1px solid var(--border);
  animation: v2FadeIn .5s ease-out backwards;
  transition: border-color .3s ease, transform .2s ease;
}
.v2-player-row:hover { border-color: rgba(242,201,76,.5); transform: translateX(4px); }
.v2-player-row__avatar {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  font-family: var(--v2-display); font-size: 1.05rem; color: var(--v2-gold);
  border: 1px solid rgba(242,201,76,.35);
}
.v2-player-row__name {
  font-size: .86rem; font-weight: 600; letter-spacing: .02em;
  text-transform: uppercase; color: var(--text);
}

/* ---------- Galeria ---------- */
.v2-gallery { position: relative; display: flex; overflow: hidden; touch-action: pan-y; }
.v2-gallery__track { display: flex; width: max-content; gap: 16px; will-change: transform; }
.v2-gallery__hint {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.55); color: #fff; font-size: .7rem; padding: 4px 12px;
  border-radius: 999px; opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.v2-gallery.is-paused .v2-gallery__hint { opacity: 1; }
.v2-gallery__item {
  position: relative; height: 224px; width: 320px; flex: none; border-radius: 12px;
  overflow: hidden; cursor: pointer; background: var(--surface, #1a1a1a);
}
.v2-gallery__item img, .v2-gallery__item video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1); transition: all .5s ease;
}
.v2-gallery__item:hover img { transform: scale(1.05); filter: grayscale(0); }
.v2-gallery__item--video {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--gold-soft, rgba(242,201,76,.12)), var(--surface2, #222));
}
.v2-gallery__play--big {
  position: static; width: 56px; height: 56px; font-size: 1.3rem;
  background: rgba(242,201,76,.9); color: #150f00;
}
.v2-gallery__videolabel { color: var(--gold-text, #f2c94c); font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.v2-gallery__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.55);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; pointer-events: none;
}
@media (min-width: 640px) { .v2-gallery__item { height: 288px; width: 384px; } }

/* ---------- Inscripcion ---------- */
.v2-cta-box {
  position: relative; overflow: hidden; border-radius: 18px;
  border: 1px solid rgba(242,201,76,.4); background: var(--card);
  padding: 32px;
}
@media (min-width: 640px) { .v2-cta-box { padding: 56px; } }
.v2-cta-box__glow {
  position: absolute; right: -96px; top: -96px; height: 288px; width: 288px;
  border-radius: 50%; background: rgba(242,201,76,.15); filter: blur(60px);
  pointer-events: none;
}
.v2-cta-box__inner {
  position: relative; display: grid; gap: 40px; align-items: center;
}
@media (min-width: 820px) { .v2-cta-box__inner { grid-template-columns: 1.4fr 1fr; } }
.v2-cta-box h2 { margin: 12px 0 0; font-size: clamp(2rem,5vw,3rem); text-transform: uppercase; }
.v2-cta-box p { margin: 16px 0 0; max-width: 48ch; color: var(--text-muted); line-height: 1.6; }
.v2-qr { margin: 0 auto; width: 192px; border-radius: 12px; background: #fff; padding: 12px; }

/* ---------- Footer ---------- */
.v2-footer { border-top: 1px solid var(--border); }
.v2-footer__stripe { height: 4px; width: 100%; }
.v2-footer__inner {
  max-width: 1280px; margin: 0 auto; padding: 40px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
.v2-footer__title { margin: 0; font-family: var(--v2-display); font-size: 1.6rem; text-transform: uppercase; }
.v2-footer__links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.v2-footer__link {
  border-radius: 999px; border: 1px solid var(--border); padding: 9px 18px;
  font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none; transition: all .3s ease;
}
.v2-footer__link:hover { transform: translateY(-2px); border-color: var(--v2-gold); color: var(--v2-gold); }
.v2-version { font-size: .68rem; color: var(--text-dim); letter-spacing: .1em; }

/* ---------- Accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
