/* ══════════════════════════════════════════════════════════════
   PARCHE MUNDIAL 2026 — mundial-styles.css
   Para eliminar: borrar carpeta /mundial2026/ y las líneas
   marcadas MUNDIAL 2026 START/END en index.html
   ══════════════════════════════════════════════════════════════ */

/* ── OVERLAY ─────────────────────────────────────────────────── */

.mw26-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(8, 8, 8, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: opacity 0.65s ease;
  overflow: hidden;
}

.mw26-overlay.mw26-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Franjas MX (watermark) */
.mw26-stripes {
  position: absolute;
  inset: 0;
  display: flex;
  pointer-events: none;
  z-index: 0;
}
.mw26-stripe        { flex: 1; }
.mw26-stripe-green  { background: #006847; opacity: 0.03; }
.mw26-stripe-white  { background: #ffffff; opacity: 0.02; }
.mw26-stripe-red    { background: #C8102E; opacity: 0.03; }

/* Botón cerrar */
.mw26-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  color: #666;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 4;
  padding: 6px 10px;
  transition: color 0.2s;
  font-family: sans-serif;
}
.mw26-close:hover { color: #ffffff; }

/* Balón — contenedor del viaje */
.mw26-ball-wrap {
  position: absolute;
  top: 38%;
  left: 0;
  z-index: 2;
  pointer-events: none;
}

.mw26-ball-anim {
  animation: mw26-ball-travel 3.5s linear both;
}

@keyframes mw26-ball-travel {
  0%   { transform: translateX(-140px) translateY(40px) rotate(0deg);   filter: blur(0.8px); }
  10%  { filter: blur(0.3px); }
  50%  { transform: translateX(calc(50vw - 60px)) translateY(-55px) rotate(280deg); filter: blur(0px); }
  90%  { filter: blur(0.3px); }
  100% { transform: translateX(calc(100vw + 140px)) translateY(40px) rotate(560deg); filter: blur(0.8px); }
}

/* Texto central */
.mw26-overlay-text {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
}

.mw26-ov-label {
  font-size: 11px;
  letter-spacing: 6px;
  color: #C9A84C;
  font-weight: 300;
  text-transform: uppercase;
  opacity: 0;
  animation: mw26-fadein 0.45s ease 0.5s forwards;
}
.mw26-ov-title {
  font-size: clamp(38px, 7vw, 52px);
  font-weight: 100;
  color: #ffffff;
  letter-spacing: 8px;
  line-height: 1;
  opacity: 0;
  animation: mw26-fadein 0.45s ease 0.7s forwards;
}
.mw26-ov-sub {
  font-size: 14px;
  color: #AAAAAA;
  font-weight: 300;
  letter-spacing: 0.5px;
  opacity: 0;
  animation: mw26-fadein 0.45s ease 0.9s forwards;
}

@keyframes mw26-fadein {
  to { opacity: 1; }
}

/* Confeti */
.mw26-confetti-piece {
  position: absolute;
  width: 3px;
  height: 8px;
  border-radius: 1px;
  top: -12px;
  z-index: 1;
  pointer-events: none;
  animation: mw26-fall linear both;
}
@keyframes mw26-fall {
  0%   {
    transform: translateY(0) rotate(var(--mwrot));
    opacity: var(--mwop);
  }
  100% {
    transform: translateY(110vh) translateX(var(--mwdrift)) rotate(calc(var(--mwrot) + 720deg));
    opacity: 0;
  }
}

/* ── REDUCED MOTION ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .mw26-ball-anim           { animation: none !important; opacity: 0 !important; }
  .mw26-confetti-piece      { animation: none !important; display: none !important; }
  .mw26-ov-label,
  .mw26-ov-title,
  .mw26-ov-sub              { animation: none !important; opacity: 1 !important; }
  .mw26-overlay             { transition: none !important; }
}

/* ── SECCIÓN MUNDIAL ─────────────────────────────────────────── */

#mundial-2026 {
  background: #0A0A0A;
  padding: 96px 24px 80px;
  position: relative;
  overflow: hidden;
}

.mw26-section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

/* Badge */
.mw26-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #006847;
  border-radius: 100px;
  padding: 5px 18px;
  font-size: 11px;
  letter-spacing: 3px;
  color: #006847;
  text-transform: uppercase;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
  margin-bottom: 30px;
}

/* Título */
.mw26-section-title {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 100;
  letter-spacing: -1px;
  line-height: 1.12;
  color: #ffffff;
  margin-bottom: 40px;
  max-width: 720px;
}
.mw26-gold { color: #C9A84C; }

/* Hero: texto + playera lado a lado en desktop */
.mw26-hero {
  display: flex;
  align-items: center;
  gap: 64px;
  margin-bottom: 72px;
}
.mw26-hero-text {
  flex: 1;
  min-width: 0;
}

/* Countdown */
.mw26-countdown {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  margin-bottom: 0;
}
.mw26-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.mw26-unit-val {
  font-size: 52px;
  font-weight: 400;
  font-family: 'Courier New', Courier, monospace;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -2px;
  min-width: 100px;
  text-align: center;
}
.mw26-unit-lbl {
  font-size: 10px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: #444;
  font-weight: 400;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
}
.mw26-countdown-sep {
  font-size: 38px;
  color: #2a2a2a;
  font-weight: 100;
  margin-top: 6px;
  font-family: serif;
  user-select: none;
}
.mw26-started {
  font-size: 20px;
  font-weight: 300;
  color: #C9A84C;
  letter-spacing: 1px;
  display: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
}

/* Separador tricolor */
.mw26-sep {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    #006847 22%,
    #ffffff 50%,
    #C8102E 78%,
    transparent 100%
  );
  opacity: 0.55;
  margin-bottom: 52px;
}

/* Tarjetas */
.mw26-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 52px;
}
.mw26-card {
  background: #141414;
  border: 1px solid #1a3a1a;
  border-radius: 12px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.mw26-card:hover {
  border-color: #006847;
  box-shadow: 0 0 24px rgba(0, 104, 71, 0.12);
}
.mw26-card-icon    { font-size: 26px; line-height: 1; }
.mw26-card-name    { font-size: 17px; font-weight: 700; color: #ffffff; letter-spacing: -0.2px; }
.mw26-card-desc    { font-size: 13px; color: #555; line-height: 1.6; flex: 1; }
.mw26-card-benefit { font-size: 12px; color: #C9A84C; font-weight: 600; letter-spacing: 0.2px; }
.mw26-card-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 7px 16px;
  border: 1px solid #1e4a1e;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: #5a9a5a;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  align-self: flex-start;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
}
.mw26-card-btn:hover {
  background: #006847;
  color: #ffffff;
  border-color: #006847;
}

/* CTA */
.mw26-cta-wrap { text-align: center; padding-top: 8px; }
.mw26-cta-btn {
  display: inline-block;
  background: #006847;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 16px 44px;
  border-radius: 6px;
  transition: background 0.25s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
}
.mw26-cta-btn:hover { background: #004d33; }

/* Separador de cierre */
.mw26-bottom-sep {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    #006847 22%,
    #ffffff 50%,
    #C8102E 78%,
    transparent 100%
  );
  opacity: 0.4;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 920px) {
  .mw26-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  #mundial-2026       { padding: 64px 20px 56px; }
  .mw26-cards         { grid-template-columns: 1fr; }
  .mw26-hero          { flex-direction: column; gap: 28px; align-items: flex-start; }
  .mw26-jersey-wrap   { width: 100px; height: 117px; align-self: center; }
  .mw26-jersey-logo   { width: 36px; top: 21px; }
  .mw26-countdown     { gap: 20px; }
  .mw26-unit-val      { font-size: 40px; min-width: 76px; }
  .mw26-countdown-sep { font-size: 30px; }
  .mw26-section-title { margin-bottom: 28px; }
  .mw26-ov-title      { letter-spacing: 5px; }
}

/* ══════════════════════════════════════════════════════════════
   NAV IDENTITY — "WE ARE SENSEPOT"
   Inyectado como <li> en .nav-links por mundial-overlay.js
   ══════════════════════════════════════════════════════════════ */

@keyframes mw26-nav-enter {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}

.mw26-nav-identity {
  display: flex;
  align-items: center;
  gap: 7px;
  position: relative;
  cursor: default;
  /* queda pegado al logo (izquierda) y empuja nav-links a la derecha */
  margin-left: 14px;
  margin-right: auto;
  animation: mw26-nav-enter 0.6s ease 0.8s both;
}

/* separador vertical dorado entre el logo y este elemento */
.mw26-nav-identity::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 1px;
  height: 16px;
  background: rgba(201, 168, 76, 0.35);
  margin-right: 2px;
}

.mw26-nav-ball {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.mw26-nav-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.1;
}

.mw26-nav-we {
  font-family: Impact, 'Arial Narrow', Arial, sans-serif;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.mw26-nav-sp {
  font-family: Impact, 'Arial Narrow', Arial, sans-serif;
  font-size: 11px;
  color: #C9A84C;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  transition: text-shadow 0.3s ease;
}

.mw26-nav-identity:hover .mw26-nav-sp {
  text-shadow:
    0 0 10px rgba(201, 168, 76, 0.85),
    0 0 24px rgba(201, 168, 76, 0.3);
}

.mw26-nav-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #0d0d0d;
  color: #555;
  font-size: 10px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  border: 1px solid #1e1e1e;
  z-index: 9999;
}

.mw26-nav-identity:hover .mw26-nav-tooltip {
  opacity: 1;
}

.mw26-nav-fifa {
  height: 36px;
  width: auto;
  margin-left: 8px;
  opacity: 0.9;
  pointer-events: none;
  user-select: none;
  flex-shrink: 0;
}

/* tablet/mobile: solo balón + logo FIFA (sin texto ni separador) */
@media (max-width: 920px) {
  .mw26-nav-identity::before { display: none; }
  .mw26-nav-text             { display: none; }
  .mw26-nav-identity         { margin-left: 8px; }
}
/* mobile pequeño: reducir el logo FIFA para no saturar el nav */
@media (max-width: 480px) {
  .mw26-nav-fifa  { height: 28px; margin-left: 4px; }
  .mw26-nav-ball svg { width: 16px; height: 16px; }
}

/* ══════════════════════════════════════════════════════════════
   CAMISETA SENSEPOT — sección Mundial
   ══════════════════════════════════════════════════════════════ */

.mw26-jersey-wrap {
  position: relative;
  width: 200px;
  height: 234px;
  flex-shrink: 0;
  filter: drop-shadow(0 20px 48px rgba(0, 104, 71, 0.5));
}

.mw26-jersey-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.mw26-jersey-logo {
  position: absolute;
  width: 72px;
  height: auto;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  mix-blend-mode: screen;
  opacity: 0.88;
  pointer-events: none;
  user-select: none;
}
