/* ═══════════════════════════════════════════════════
   FÚTBOL SIN FRONTERAS — Jonatan Aquino
   css/styles.css
   ═══════════════════════════════════════════════════ */

/* ── Variables & Reset ─────────────────────────────── */
:root {
  --orange:       #F05A00;
  --orange-dark:  #C44B00;
  --orange-lite:  #FF7A2B;
  --white:        #FFFFFF;
  --off-white:    #FFFFFF;
  --black:        #0D0D0D;

  --bg:           #FFFFFF;
  --bg-card:      #FFFFFF;
  --bg-header:    #FFFFFF;
  --text-main:    #111111;
  --text-sub:     #555555;
  --text-muted:   #888888;
  --border:       #E8E0D8;
  --shadow:       0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 36px rgba(240,90,0,0.18);
  --section-texture-opacity: 0.75;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── FSF Nav (píldora flotante en hero) ────────────────── */
.fsf-nav {
  position: absolute;
  top: 24px;
  left: 7%;
  width: 46%;
  z-index: 10;
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #111;
  border-radius: 18px;
  padding: 6px 8px 6px 14px;
  gap: 0;
  line-height: 1;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-sep {
  color: #ccc;
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1;
  user-select: none;
}

/* Mobile separator: oculto en desktop */
.nav-sep--mobile { display: none; }

.nav-list {
  position: relative;
  display: flex;
  align-items: center;
  list-style: none;
  flex: 1;
  justify-content: center;
  padding: 4px 0;
  margin: 0 8px;
}

.nav-item {
  position: relative;
  z-index: 10;
  cursor: pointer;
  padding: 8px 16px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111111;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.nav-item:hover {
  color: #111111;
}

.nav-cursor {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 10px;
  background: var(--orange);
  opacity: 0;
  transition: left 0.2s ease, width 0.2s ease, opacity 0.15s ease;
  z-index: 0;
  pointer-events: none;
}

.nav-login-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-login {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: #111111;
  font-family: 'Roboto', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s;
  padding: 8px 10px;
}
.nav-login:hover { color: var(--orange); }
.nav-login svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Hero ──────────────────────────────────────────── */

/* Textura sucia negra en zona blanca del hero */
.dirty-texture {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 260px 260px;
  opacity: 0.1;
  mix-blend-mode: multiply;
}

.hero {
  position: relative;
  min-height: 100vh;
  background: #f5f5f5;
  overflow: hidden;
}

/* Estadio como <img>, desaturado, cubre todo el hero */
.stadium-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  filter: grayscale(100%) brightness(1.15);
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

/* Halftone puntos, esquina superior derecha */
.halftone {
  position: absolute;
  right: 4%;
  top: 7%;
  width: 280px;
  height: 280px;
  background-image: radial-gradient(circle, #999 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}

/* Texto vertical lado izquierdo */
.deco-lines {
  position: absolute;
  left: 3.5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
}

.deco-presenter-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  gap: 4px;
}

.deco-eyebrow {
  font-family: 'Roboto', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  line-height: 1;
}

.deco-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  color: #111111;
  line-height: 1;
}

.deco-name-orange {
  color: var(--orange);
}

/* ── Hero Layout ── */
.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1500px;
  min-height: 100vh;
  margin: 0 auto;
  /* padding izquierdo fluido: nunca menos de 32px, crece con la pantalla */
  padding: 0 0 0 clamp(32px, 7%, 120px);
  display: grid;
  /* columna izquierda: mínimo 280px, máximo 46% — nunca colapsa con zoom */
  grid-template-columns: minmax(280px, 46%) 1fr;
  align-items: center;
  gap: 0;
}

.hero-left {
  /* padding fluido: se reduce en proporción al viewport, no se rompe con zoom */
  padding: clamp(60px, 5vw, 100px) clamp(20px, 3vw, 60px) clamp(60px, 5vw, 100px) 0;
  position: relative;
  z-index: 4;
  /* asegura que el texto nunca quede detrás del presenter */
  min-width: 0;
}

.eyebrow {
  display: block;
  color: var(--orange);
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-left h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4.5rem, 7.5vw, 8.5rem);
  line-height: 0.88;
  color: #111111;
  letter-spacing: 0.01em;
}

.hero-left h1 .orange {
  color: var(--orange);
  display: block;
}

.hero-left p {
  margin-top: 28px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #444444;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 44px;
  padding: 18px 34px;
  border: 2px solid #0D0D0D;
  color: #111111;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.btn:hover {
  background: var(--orange);
  color: #fff;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 40px;
  background: transparent;
  flex-shrink: 0;
}
.btn-icon svg {
  width: 58px;
  height: 40px;
  display: block;
}

.hero-right {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.shapes-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-right: 160px;
}

.shape {
  position: absolute;
  transform: skewX(-25deg);
}

.shape-back {
  width: 520px;
  height: 700px;
  border: 3px solid rgba(240,90,0,.45);
  top: 60px;
}

.shape-front {
  width: 640px;
  height: 420px;
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(0,0,0,.55) 0%, transparent 65%),
    repeating-linear-gradient(
      -45deg,
      rgba(0,0,0,.13) 0px,
      rgba(0,0,0,.13) 1px,
      transparent 1px,
      transparent 7px
    ),
    linear-gradient(135deg,#ff7c2f,#f05a00);
  top: 220px;
  box-shadow: 0 25px 80px rgba(240,90,0,.25);
}

.presenter {
  position: absolute;
  bottom: 0;
  right: -8%;
  z-index: 3;
  /* height en vh escala proporcionalmente con el viewport en cualquier nivel de zoom.
     Sin max-width: el ancho lo determina el aspect ratio de la imagen.
     z-index: 3 < hero-left z-index: 4, por lo que el texto siempre queda encima. */
  height: 95vh;
  width: auto;
  pointer-events: none;
  object-fit: contain;
  object-position: bottom right;
}

@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    padding: 60px 6%;
    min-height: auto;
  }
  .hero-left {
    padding: 60px 0 30px;
    text-align: center;
  }
  .btn {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-right {
    height: 60vw;
    min-height: 300px;
  }
  .deco-lines { display: none; }
}

/* ── Sections shared ───────────────────────────────── */
.section { padding: 80px 0; }

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 6.5vw, 4.8rem);
  color: var(--text-main);
  line-height: 1.1;
  padding-top: 4px;
  overflow: visible;
  margin-bottom: 48px;
}

/* ── Video Section ─────────────────────────────────── */
.video-section {
  background-color: #FFFFFF;
  border-top: 1px solid rgba(13,13,13,0.10);
  border-bottom: 1px solid rgba(13,13,13,0.10);
  padding: 80px 0 60px;
}

.archivo-section .section-title span {
  color: var(--orange);
}

.video-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 6.5vw, 4.8rem);
  color: var(--text-main);
  line-height: 1.1;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 20px;
  padding-top: 6px;
  overflow: visible;
}

.video-section-title span {
  position: relative;
  display: inline-block;
  color: var(--orange);
}

.video-section-title span::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

.video-frame-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.video-frame-wrap::before {
  content: '';
  position: absolute;
  inset: -32px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 85% 50%, rgba(240,90,0,0.28) 0%, transparent 65%),
              radial-gradient(ellipse at 15% 50%, rgba(240,90,0,0.22) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  filter: blur(18px);
}

.video-frame {
  position: relative;
  z-index: 1;
  background: #000;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid #0D0D0D;
  border-radius: 10px;
  box-shadow: 0 0 0 2px #0D0D0D, 0 0 48px rgba(240,90,0,0.32), 10px 10px 0 #0D0D0D;
}

.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.video-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
  background: #111;
}

.video-loading p {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: #666;
  text-transform: uppercase;
}

.spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(240,90,0,0.2);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.video-info {
  max-width: 900px;
  margin: 28px auto 0;
}

.video-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.15;
}

.video-desc {
  color: var(--text-sub);
  font-size: 1.1rem;
  line-height: 1.65;
}


.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.6rem;
  color: var(--orange);
  line-height: 1;
}

.stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Homenaje al Abuelo ────────────────────────────── */
.tribute-section {
  background: var(--bg);
  border-top: 1px solid rgba(13,13,13,0.10);
  padding: 72px 0;
}

.tribute-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}

.tribute-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.tribute-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 20px;
}

.tribute-accent { color: var(--orange); }

.tribute-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--orange);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tribute-name-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tribute-desc {
  color: var(--text-sub);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 14px;
}

.tribute-legacy {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.5;
  border-left: 3px solid var(--orange);
  padding-left: 16px;
  margin-top: 24px;
}

.tribute-legacy strong { color: var(--orange); }

.tribute-photo-wrap {
  position: relative;
  display: inline-block;
}

.tribute-photo {
  width: 100%;
  max-width: 360px;
  height: 420px;
  object-fit: cover;
  object-position: top center;
  display: block;
  position: relative;
  z-index: 1;
  filter: grayscale(20%);
  transition: filter 0.4s;
}

.tribute-photo:hover { filter: grayscale(0%); }

.tribute-photo-deco {
  position: absolute;
  bottom: -14px; right: -14px;
  width: 100%; height: 100%;
  border: 3px solid #0D0D0D;
  z-index: 0;
  max-width: 360px;
}

/* ── Footer ────────────────────────────────────────── */
.site-footer {
  background: #111111;
  border-top: 1px solid rgba(13,13,13,0.10);
}

/* Cuerpo del footer */
.footer-body { padding: 52px 0 40px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr;
  gap: 40px;
  align-items: start;
}

/* Col 1: Marca */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0D0D0D;
  flex-shrink: 0;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1;
}

.footer-program {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: var(--orange);
  text-transform: uppercase;
}

/* Títulos de columna */
.footer-col-title {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #555;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2a2a2a;
}

/* Col 2: Redes */
.footer-social { display: flex; flex-direction: column; }

.social-links { display: flex; gap: 12px; }

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 2px solid #2a2a2a;
  color: #666;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s;
}

.social-link svg { width: 18px; height: 18px; }

.social-link:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(240,90,0,0.08);
  transform: translateY(-3px);
}

.social-link--yt:hover { border-color: #FF0000; color: #FF0000; background: rgba(255,0,0,0.08); }
.social-link--fb:hover { border-color: #1877F2; color: #1877F2; background: rgba(24,119,242,0.08); }

/* Col 3: Contacto */
.footer-contact { display: flex; flex-direction: column; }

.footer-contact-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 16px;
}

.footer-mail-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  border: 2px solid var(--orange);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 18px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  align-self: flex-start;
}

.footer-mail-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer-mail-btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; transform: translateY(-2px); }

/* Col 4: Donaciones */
.footer-donate { display: flex; flex-direction: column; }

.footer-donate-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 16px;
}

.mp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #009EE3;
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 4px;
  align-self: flex-start;
  transition: opacity 0.2s, transform 0.15s;
}

.mp-btn:hover { opacity: 0.88; transform: translateY(-2px); }

.mp-logo { width: 32px; height: 32px; flex-shrink: 0; }

/* ── Responsive ────────────────────────────────────── */

/* Responsive styles → css/mobile.css */

/* ══════════════════════════════════════════════════════
   MENÚ HAMBURGUESA
   ══════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════
   BOTÓN VOLVER ARRIBA
   ══════════════════════════════════════════════════════ */
.back-to-top {
  display: none;
  position: fixed;
  bottom: 24px; right: 20px;
  z-index: 999;
  width: 46px; height: 46px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.back-to-top svg { width: 22px; height: 22px; }
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ══════════════════════════════════════════════════════════
   SISTEMA DE AUTH / PERFIL — compartido todas las páginas
   ══════════════════════════════════════════════════════════ */

/* ── Área de usuario en nav ── */
#userNavArea { display: flex; align-items: center; }

.user-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-sub);
  background: transparent;
  border: none;
  padding: 6px 4px;
  cursor: pointer;
  transition: color 0.15s;
  white-space: nowrap;
}
.user-nav-btn:hover { background: transparent; color: var(--orange); }

.user-avatar-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.user-nav-avatar { border-color: var(--orange); color: var(--orange); }
.user-nav-avatar:hover { background: var(--orange); color: #fff; }

/* ── Overlay de auth ── */
/* ══════════════════════════════════════════════════════════
   AUTH MODAL — modo claro, diseño Radix-style
   ══════════════════════════════════════════════════════════ */
.auth-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.80);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.auth-overlay.open {
  display: flex;
  animation: authOverlayIn 0.2s ease;
}
@keyframes authOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.auth-dialog {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  width: 100%;
  max-width: 400px;
  padding: 28px 28px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
  animation: authDialogIn 0.22s cubic-bezier(0.22,1,0.36,1);
  overflow: hidden;
}
@keyframes authDialogIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Botón cerrar */
.auth-dialog-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  outline: none;
}
.auth-dialog-close:hover { background: #f3f4f6; color: #111; }
.auth-dialog-close:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* Header */
.auth-dialog-header { margin-bottom: 22px; }
.auth-dialog-title {
  font-family: 'Barlow', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.auth-dialog-desc {
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Panels: transición slide */
.auth-panels {
  position: relative;
  overflow: hidden;
}

.auth-panel {
  width: 100%;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22,1,0.36,1);
}

.auth-panel--hidden {
  display: none;
  opacity: 0;
  transform: translateX(32px);
}
.auth-panel--exit {
  opacity: 0;
  transform: translateX(-32px);
  pointer-events: none;
}
.auth-panel--enter {
  animation: panelEnter 0.28s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes panelEnter {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
.auth-panel--enter-back {
  animation: panelEnterBack 0.28s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes panelEnterBack {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Campos */
.auth-field {
  margin-bottom: 14px;
}
.auth-field label {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.auth-field input {
  width: 100%;
  padding: 10px 13px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #111;
  font-family: 'Barlow', sans-serif;
  font-size: 0.92rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.auth-field input::placeholder { color: #9ca3af; }
.auth-field input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(240,90,0,0.12);
}

/* Error */
.auth-error {
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  color: #dc2626;
  margin: -6px 0 10px;
  min-height: 18px;
}

/* Botón principal */
.auth-submit {
  width: 100%;
  padding: 11px;
  background: var(--orange);
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.15s, transform 0.1s;
}
.auth-submit:hover  { background: #d94e00; }
.auth-submit:active { transform: scale(0.98); }

/* ── Modal de perfil — modo claro ── */
.perfil-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.80);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.perfil-modal.open {
  display: flex;
  animation: authOverlayIn 0.2s ease;
}

.perfil-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  width: 100%;
  max-width: 480px;
  max-height: 82vh;
  overflow-y: auto;
  padding: 28px 28px 24px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
  animation: authDialogIn 0.22s cubic-bezier(0.22,1,0.36,1);
}

.perfil-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.perfil-title {
  font-family: 'Barlow', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #111;
}

#perfilInfo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 0 24px;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 20px;
}

.perfil-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.perfil-nombre {
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
}

.perfil-email {
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  color: #6b7280;
}

.perfil-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.historial-empty {
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem;
  color: #9ca3af;
  text-align: center;
  padding: 20px 0;
}

.historial-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  flex-wrap: wrap;
}
.historial-item:last-child { border-bottom: none; }

.historial-item-info { flex: 1; min-width: 160px; }
.historial-item-prod {
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 2px;
}
.historial-item-meta {
  font-family: 'Barlow', sans-serif;
  font-size: 0.74rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.historial-status {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(240,90,0,0.10);
  color: var(--orange);
}
.historial-item-total {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: #111;
}

.perfil-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #f3f4f6;
}

.perfil-btn {
  flex: 1;
  padding: 10px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: transparent;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.perfil-btn:hover { background: #f9fafb; }
.perfil-btn--danger { color: #dc2626; border-color: rgba(220,38,38,0.25); }
.perfil-btn--danger:hover { background: rgba(220,38,38,0.06); border-color: #dc2626; }

/* ── Toast ── */
.fsf-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #222;
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-left: 3px solid var(--orange);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 20000;
  white-space: nowrap;
  pointer-events: none;
}
.fsf-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.fsf-toast--success { border-color: #4ade80; }
.fsf-toast--warning { border-color: #facc15; }
.fsf-toast--error   { border-color: #f87171; }

/* ── Mobile: ocultar nombre de usuario en nav muy chico ── */
@media (max-width: 400px) {
  .user-nav-name { display: none; }
  .user-nav-btn  { padding: 6px 10px; }
}

/* ── Nav separator ── */
.nav-separator {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: var(--border);
  align-self: center;
  flex-shrink: 0;
}

/* ── Theme icon: blue ── */

/* ── Auth switch row (¿no tenés cuenta?) ── */
.auth-switch-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}
.auth-switch-text {
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem;
  color: #6b7280;
}
.auth-switch-btn {
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--orange);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-switch-btn:hover { color: #d94e00; }

/* ══════════════════════════════════════════════════════════
   MERCADOPAGO — preparado para API
   ══════════════════════════════════════════════════════════ */
.mp-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background: #009ee3;
  color: #fff;
  border: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 12px;
}
.mp-checkout-btn:hover    { background: #0080c0; transform: translateY(-2px); }
.mp-checkout-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.mp-checkout-btn svg      { width: 22px; height: 22px; flex-shrink: 0; }

.mp-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Contenedor donde MP inyecta su brick */
#mp-brick-container {
  margin-top: 16px;
  min-height: 60px;
}

/* Footer legal links */
.footer-legal-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal-link:hover { color: var(--orange); }

/* ── Centrados puntuales ────────────────────────────── */
.section-title--center { text-align: center; }
.video-title--center   { text-align: center; }
.video-desc--center    { text-align: center; max-width: 700px; margin-left: auto; margin-right: auto; }

/* ══════════════════════════════════════════════════════
   CAROUSEL HORIZONTAL — MÁS DE MIS ANÁLISIS
   ══════════════════════════════════════════════════════ */
.archivo-section {
  background-color: #FFFFFF;
  border-top: 1px solid rgba(13,13,13,0.10);
  border-bottom: 1px solid rgba(13,13,13,0.10);
}

.archivo-carousel-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin: 36px 0 32px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

/* Dos tracks: fila superior va → derecha, inferior va → izquierda */
.archivo-carousel-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 6px 0;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.archivo-carousel-track + .archivo-carousel-track {
  margin-top: 14px;
}

.archivo-carousel-card {
  flex-shrink: 0;
  width: clamp(280px, calc((100vw - 64px) / 4), 420px);
}

.archivo-carousel-link {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid #E8E0D8;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.archivo-carousel-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}

.archivo-carousel-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
  border-radius: 8px 8px 0 0;
}

.archivo-carousel-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.archivo-carousel-link:hover .archivo-carousel-thumb img { transform: scale(1.04); }

.archivo-carousel-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  transition: background 0.2s;
}

.archivo-carousel-link:hover .archivo-carousel-play { background: rgba(240,90,0,0.22); }

.archivo-carousel-play svg {
  width: 42px; height: 42px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s, transform 0.2s;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.archivo-carousel-link:hover .archivo-carousel-play svg {
  opacity: 1;
  transform: scale(1);
}

.archivo-carousel-info {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.archivo-carousel-date {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.archivo-carousel-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archivo-card-skeleton {
  flex-shrink: 0;
  width: clamp(280px, calc((100vw - 64px) / 4), 420px);
  aspect-ratio: 16 / 9;
  background: #E8E4E0;
  animation: skeletonPulse 1.4s ease-in-out infinite;
}

@keyframes skeletonPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.archivo-footer { display: flex; justify-content: center; padding: 0; }

.archivo-canal-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: #c00;
  padding: 16px 36px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.archivo-canal-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.archivo-canal-btn:hover { background: #a00; transform: translateY(-2px); }

/* ══════════════════════════════════════════════════════
   PATROCINIOS
   ══════════════════════════════════════════════════════ */
.patrocinios-section {
  background: #FFFFFF;
  border-top: 1px solid rgba(13,13,13,0.10);
  border-bottom: 1px solid rgba(13,13,13,0.10);
  padding: 28px 0 32px;
}

.patrocinios-header {
  text-align: center;
  margin-bottom: 20px;
}

.patrocinios-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-main);
  letter-spacing: 0.12em;
  line-height: 1;
  margin-bottom: 4px;
}

.patrocinios-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.patrocinios-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.patrocinio-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  will-change: transform;
}

.patrocinio-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.35s ease;
}

.patrocinio-link:hover,
.patrocinio-link:focus-visible {
  transform: scale(1.03);
}

.patrocinio-link:hover .patrocinio-logo,
.patrocinio-link:focus-visible .patrocinio-logo {
  transform: scale(1.05);
}

/* ══════════════════════════════════════════════════════
   ¿QUIÉN SOY? — nuevo layout tipo EthicalHero
   ══════════════════════════════════════════════════════ */
.quien-soy-section {
  background-color: #FFFFFF;
  border-top: 1px solid rgba(13,13,13,0.10);
  border-bottom: 1px solid rgba(13,13,13,0.10);
  padding: 80px 0 72px;
}

.video-section,
.archivo-section,
.quien-soy-section,
.patrocinios-section {
  position: relative;
  isolation: isolate;
  background-color: #FFFFFF;
}

.video-section::before,
.archivo-section::before,
.quien-soy-section::before,
.patrocinios-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url('../assets/bg-texture.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: var(--section-texture-opacity);
  pointer-events: none;
}

.video-section > *,
.archivo-section > *,
.quien-soy-section > *,
.patrocinios-section > * {
  position: relative;
  z-index: 2;
}

.qs-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header centrado ── */
.qs-header {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.qs-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.6rem, 6vw, 4rem);
  color: var(--text-main);
  line-height: 1;
  margin: 6px 0 20px;
}

.qs-subtitle {
  font-size: 1.05rem;
  color: var(--text-sub);
  line-height: 1.75;
}

.qs-subtitle strong { color: var(--text-main); font-weight: 700; }

/* ── Grid de cards ── */
.qs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

/* ── Card ── */
.qs-card {
  background: #fff;
  border: 1px solid #E8E0D8;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  /* animación spring equivalente a framer-motion whileHover scale(1.03) */
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.25s ease;
  cursor: default;
}

.qs-card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 32px rgba(0,0,0,0.13);
}

/* Imagen con zoom al hover — group-hover:scale-105 */
.qs-card-img-wrap {
  overflow: hidden;
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.qs-card-img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.qs-card:hover .qs-card-img {
  transform: scale(1.05);
}

/* Contenido de la card */
.qs-card-body {
  padding: 20px 22px 22px;
  display: none;
}

.qs-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.qs-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.qs-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Stats ── */
.qs-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  padding: 32px 0 36px;
  border-top: 1px solid rgba(13,13,13,0.10);
  border-bottom: 1px solid rgba(13,13,13,0.10);
  margin-bottom: 36px;
}

/* ── CTA ── */
.qs-cta-wrap {
  display: flex;
  justify-content: center;
}

.quien-soy-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.quien-soy-cta:hover { background: var(--orange-dark); transform: translateY(-2px); }
.quien-soy-cta svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Animación fade-up con delay por CSS var ── */
.qs-fade-up {
  opacity: 0;
  transform: translateY(14px);
  animation: qsFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes qsFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .qs-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .qs-stats { gap: 32px; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .qs-stats { gap: 24px; }
  .qs-cta-wrap .quien-soy-cta { width: 100%; justify-content: center; }
}

/* ── Typewriter Stats ─────────────────────────────── */
.qs-tw-stats {
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 36px 0 40px;
}

.tw-stat-block {
  text-align: center;
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tw-display {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--orange);
  line-height: 1;
  letter-spacing: 0.04em;
}

.tw-cursor {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--orange);
  line-height: 1;
  animation: tw-blink 0.75s step-end infinite;
  margin-left: 2px;
}

@keyframes tw-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════
   HOMENAJE AL ABUELO
   ═══════════════════════════════════════════════════════ */
.sm-tribute {
  background: var(--bg);
  border-top: 1px solid rgba(13,13,13,0.10);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.sm-tribute::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url('../assets/bg-texture.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: var(--section-texture-opacity);
  pointer-events: none;
}

.sm-tribute > * {
  position: relative;
  z-index: 2;
}

.sm-tribute-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}

.sm-tribute-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
  display: block;
}

.sm-tribute-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--text-main);
  margin-bottom: 20px;
}
.sm-tribute-accent { color: var(--orange); }

.sm-tribute-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: var(--text-main);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sm-tribute-role {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sm-tribute-desc {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 16px;
}

.sm-tribute-quote {
  margin-top: 28px;
  padding: 20px 24px;
  background: rgba(240,90,0,0.06);
  border-left: 3px solid var(--orange);
  position: relative;
}
.sm-tribute-quote p {
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-sub);
  line-height: 1.7;
  margin: 0;
}
.sm-tribute-quote strong { color: var(--text-main); }
.sm-tribute-heart {
  display: block;
  margin-top: 10px;
  font-size: 1.2rem;
}


/* Photo */
.sm-tribute-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}
.sm-tribute-photo {
  width: 100%;
  max-width: 500px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  display: block;
  position: relative;
  z-index: 2;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.1);
}
.sm-tribute-photo-deco {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 100%;
  height: 100%;
  max-width: 500px;
  aspect-ratio: 4 / 5;
  border: 2px solid var(--orange);
  z-index: 0;
  opacity: 0.3;
  border-radius: 6px;
  pointer-events: none;
}


/* ══════════════════════════════════════════════════════════════
   MOBILE-FIRST PREMIUM — Comprehensive additions (sitio principal)
   ══════════════════════════════════════════════════════════════ */

/* ── Sección hero: tipografía fluida ──────────────────────── */
@media (max-width: 768px) {
  .hero-left h1 {
    font-size: clamp(3rem, 10vw, 5rem);
    line-height: 0.92;
    text-align: center;
  }
  .hero-left p {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    text-align: center;
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto;
  }
  .hero-container {
    padding: 40px 5% 36px;
    gap: 0;
  }
  .hero-right { height: 55vw; min-height: 260px; }
  .hero-badge { font-size: 0.68rem; }
  .hero-buttons { justify-content: center; gap: 10px; }
  .hero-buttons .btn { flex: 1; min-width: 130px; max-width: 200px; text-align: center; }

  /* Secciones: menor padding */
  .section { padding: 52px 0 !important; }

  /* Tribute section */
  .sm-tribute-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .sm-tribute-photo-wrap { order: -1; }
  .sm-tribute-photo { max-width: 340px; margin: 0 auto; }
  .sm-tribute-photo-deco { display: none; }

  /* Touch targets */
  .nav-login, .hamburger, .close-btn { min-height: 44px; }

  /* Overflow sin scroll horizontal */
  body, main { overflow-x: hidden; }
}

@media (max-width: 640px) {
  /* Container con padding consistente */
  .container, .inner, .section-inner { padding-left: 16px !important; padding-right: 16px !important; }

  /* Hero */
  .hero-left h1 { font-size: clamp(2.6rem, 9vw, 4rem); }
  .hero-right { display: none; } /* En pantallas muy chicas ocultar shapes y presenter */

  /* Hero mobile: imagen propia, texto visible */
  .hero {
    background-image: url('../images/hero-mobile-x.webp');
    background-size: cover;
    background-position: center bottom;
    min-height: 100svh;
  }
  .stadium-bg { display: none; } /* Reemplazada por background-image */
  .presenter  { display: none; } /* Reemplazada por la imagen del hero mobile */
  .halftone   { display: none; }
  .dirty-texture { display: none; }
  .hero-container { padding: 40px 6%; min-height: 100svh; }
  .hero-left { padding: 60px 0 40px; text-align: left; }
  .hero-left h1 { color: #111; }
  .hero-left p  { color: #333; }
  .btn { margin-left: 0; }

  /* Secciones */
  .section-title { font-size: clamp(2.2rem, 8vw, 3.5rem); margin-bottom: 32px; }
  .section { padding: 40px 0 !important; }

  /* Tribute: imagen debajo de todo el texto en mobile */
  .sm-tribute { padding: 40px 0; }
  .sm-tribute-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sm-tribute-photo-wrap { order: 2; }  /* imagen al final */
  .sm-tribute-text { order: 1; }        /* texto primero */
  .sm-tribute-photo { max-width: 100%; aspect-ratio: 3/4; }
  .sm-tribute-photo-deco { display: none; }
  .sm-tribute-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .sm-tribute-quote { padding: 14px 16px; }
  .sm-tribute-quote p { font-size: 0.88rem; }

  /* Footer grid */
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .footer-brand { text-align: left; }
}

@media (max-width: 400px) {
  .container, .inner { padding-left: 12px !important; padding-right: 12px !important; }
  .hero-left h1 { font-size: 2.4rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { max-width: 100%; }
  .section-title { font-size: 2rem; }
}

/* ══════════════════════════════════════════════════════════════
   HAMBURGER NAV — Mobile principal
   ══════════════════════════════════════════════════════════════ */

/* Hamburger button — oculto en desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  flex-shrink: 0;
  margin-left: 4px;
}
.nav-hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: #111;
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay oscuro */
.mobile-nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 998;
  backdrop-filter: blur(2px);
}
.mobile-nav-overlay.open { display: block; }

/* Drawer lateral */
.mobile-nav-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(300px, 85vw);
  background: #fff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.12);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-nav-drawer.open { transform: translateX(0); }

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(13,13,13,0.1);
  flex-shrink: 0;
}
.mobile-nav-logo { height: 36px; width: auto; }
.mobile-nav-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none;
  color: #999; font-size: 1.4rem;
  cursor: pointer; border-radius: 8px;
  transition: color .2s, background .2s;
}
.mobile-nav-close:hover { color: #111; background: #f3f4f6; }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  flex: 1;
}
.mobile-nav-links a {
  display: block;
  padding: 16px 24px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid rgba(13,13,13,0.07);
  transition: color .15s, background .15s;
  min-height: 54px;
  display: flex;
  align-items: center;
}
.mobile-nav-links a:hover { color: #F05A00; background: rgba(240,90,0,.04); }

/* ══════════════════════════════════════════════════════════════
   MOBILE — Hero background + hamburger visible
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Navbar fija superior ── */
  .fsf-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: auto;
    border-radius: 0;
    border: none;
    border-bottom: 2px solid rgba(13,13,13,0.10);
    padding: 0 16px;
    height: 56px;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    justify-content: space-between;
  }
  .nav-brand { flex-shrink: 0; }
  .nav-list  { display: none; }
  .nav-sep:not(.nav-sep--mobile) { display: none; }
  .nav-sep--desktop { display: none !important; }
  .nav-sep--mobile  { display: inline-block !important; color: rgba(13,13,13,0.25); font-size:.8rem; }
  .nav-login-wrap   { display: flex; align-items: center; gap: 6px; margin-left: auto; }
  .nav-hamburger    { display: flex; order: 2; }
  .nav-logo-img     { height: 30px; }

  /* ── Fondo mobile: foto hero con zona clara a la izquierda ── */
  .hero {
    padding-top: 56px;
    background: #f4f4f4 url('../images/hero-mobile-x.webp') center bottom / cover no-repeat;
    min-height: 92svh;
    overflow: hidden;
  }
  /* Velo muy sutil, sólo pegado al texto — no debe "lavar" la foto.
     La columna de texto ya está dimensionada para caer dentro de la
     zona clara real de la imagen; esto es apenas un margen de seguridad. */
  .hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 52%;
    z-index: 1;
    background: linear-gradient(90deg,
      rgba(244,241,240,0.95) 0%,
      rgba(244,241,240,0.9) 38%,
      rgba(244,241,240,0.5) 48%,
      rgba(244,241,240,0) 58%
    );
    pointer-events: none;
  }
  .stadium-bg    { display: none; }
  .dirty-texture { display: none; }
  .halftone      { display: none; }
  .deco-lines    { display: none; }
  .presenter     { display: none; }
  .hero-right    { display: none; }
  .shapes-wrapper { display: none; }

  /* ── Hero container: texto arriba a la izquierda, donde la zona
     clara de la foto es más ancha (se angosta a medida que baja) ── */
  .hero-container {
    grid-template-columns: 1fr;
    padding: 40px 6.5% 36px;
    min-height: calc(92svh - 56px);
    align-items: start;
    justify-items: start;
    position: relative;
    z-index: 2;
  }
  .hero-left {
    text-align: left;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 50%;
  }
  .eyebrow           { font-size: .72rem; letter-spacing: .14em; margin-bottom: 10px; text-align: left; }
  .deco-presenter-name { display: none; }

  /* ANÁLISIS SIN FILTROS: fórmula fluida recalculada para la columna
     de 50% (validada contra el ancho real de "SIN FILTROS" en Bebas
     Neue para que nunca parta la palabra a la mitad).
     !important necesario: mobile.css define .hero h1 / .hero p con la
     misma especificidad y se carga después, y a ≤400px fuerza h1 con
     !important también. */
  .hero-left h1 {
    font-size: clamp(2.3rem, 11.5vw, 5.7rem) !important;
    line-height: .92 !important;
    text-align: left;
    margin-bottom: 14px;
  }
  .hero-left p {
    font-size: clamp(.8rem, 3vw, .95rem) !important;
    line-height: 1.5 !important;
    text-align: left;
    max-width: 88%;
    margin: 0 0 22px;
    color: #333;
  }
  /* El botón es un "chip" propio con fondo sólido: no depende del
     ancho angosto de la columna de texto (mobile.css lo fuerza a
     width:100% del padre si no se anula) y así puede convivir con
     la foto sin necesidad de que el texto se extienda sobre ella. */
  .btn {
    width: auto !important;
    background: rgba(244,241,240,0.97);
    font-size: clamp(.72rem, 2.6vw, .82rem);
    padding: 12px 18px;
    min-height: 46px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
  }
  .btn-icon     { width: 30px; height: 22px; flex-shrink: 0; }
  .btn-icon svg { width: 30px; height: 22px; }
}
