/* ============================================================
   CHARLY MATE — Landing v2
   Bento + kinetic typography + marquee + showcase carousel
   ============================================================ */

:root {
  --orange: #F37920;
  --orange-glow: rgba(243, 121, 32, 0.5);
  --ink: #0B0B0B;
  --ink-2: #131313;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.32);
  --muted: rgba(255, 255, 255, 0.55);
  --text: #F2F0EC;

  --yt: #FF0033;
  --ig: #E1306C;
  --tt: #FE2C55;
}

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

html { scroll-behavior: smooth; }

html, body {
  min-height: 100%;
  background: var(--ink);
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  cursor: default;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--orange); color: var(--ink); }

/* ============================================================
   CURSOR BLOB (desktop only)
   ============================================================ */

.cursor-blob {
  position: fixed;
  top: 0; left: 0;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 100;
  transform: translate3d(-50%, -50%, 0) scale(0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  opacity: 0;
  mix-blend-mode: screen;
  will-change: transform;
}

@media (hover: none) { .cursor-blob { display: none; } }

/* ============================================================
   HERO LAYOUT — flex column, fills viewport on desktop
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  gap: clamp(14px, 2vh, 22px);
  padding: clamp(18px, 2.6vh, 28px) clamp(20px, 4vw, 48px);
  isolation: isolate;
}

/* ============================================================
   BACKGROUND
   ============================================================ */

.bg-layer {
  position: absolute; inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--ink);
}

.bg-procedural {
  position: absolute; inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 18% 28%,
      rgba(243, 121, 32, 0.22) 0%,
      rgba(243, 121, 32, 0.05) 35%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 60% 50% at 82% 92%,
      rgba(243, 121, 32, 0.10) 0%,
      transparent 60%
    ),
    linear-gradient(180deg, #0B0B0B 0%, #0E0E0E 100%);
}

.bg-grain {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.42;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ============================================================
   TOP BAR
   ============================================================ */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  animation: fadeIn 0.6s ease 0.05s both;
}

.topbar-left { display: flex; align-items: baseline; gap: 14px; }

.brand-mini {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--text);
}

.brand-handle {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.topbar-right { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 22px); }

.contact-email {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s ease;
}
.contact-email:hover { color: var(--text); }

/* Topbar CTA — "En curso · 30 Mascotas NBA" (sustituye al email arriba) */
.topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  transition: all 0.3s ease;
}

.topbar-cta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  animation: livePulse 1.8s ease-in-out infinite;
}

.topbar-cta:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(243, 121, 32, 0.1);
}

/* Botón STATS — al lado del CTA, más discreto */
.topbar-stats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: all 0.3s ease;
}
.topbar-stats svg { transition: transform 0.3s ease; }
.topbar-stats:hover {
  color: var(--orange);
  border-color: var(--orange);
  background: rgba(243, 121, 32, 0.08);
}
.topbar-stats:hover svg { transform: translateY(-2px); }

.btn-mediakit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.btn-mediakit svg {
  width: 14px; height: 14px;
  stroke-width: 2.2;
  transition: transform 0.25s ease;
}

.btn-mediakit:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(243, 121, 32, 0.09);
  transform: translateY(-1px);
}
.btn-mediakit:hover svg { transform: translateY(2px); }

/* ============================================================
   BENTO — main grid (text left, showcase right)
   ============================================================ */

.bento {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 3vw, 56px);
  align-items: center;
  min-height: 0;
}

.bento-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 1.8vh, 18px);
  min-width: 0;
}

.bento-right {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 260px));
  gap: clamp(12px, 1.4vw, 22px);
  align-items: center;
  justify-self: center;
  min-width: 0;
}

/* ============================================================
   SERIES TAG — "En curso" pill
   ============================================================ */

.series-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  width: max-content;
  max-width: 100%;
  transition: all 0.3s ease;
  animation: fadeUp 0.7s ease 0.2s both;
}

.series-tag em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13.5px;
  margin-left: 2px;
}

.series-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  animation: livePulse 1.8s ease-in-out infinite;
}

.series-arrow {
  margin-left: 4px;
  transition: transform 0.25s ease;
}

.series-tag:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(243, 121, 32, 0.1);
}
.series-tag:hover em { color: var(--orange); }
.series-tag:hover .series-arrow { transform: translateX(4px); }

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(243, 121, 32, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(243, 121, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(243, 121, 32, 0); }
}

/* ============================================================
   WORDMARK — kinetic stagger entrance
   ============================================================ */

.wordmark {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: clamp(86px, 11vw, 200px);
  line-height: 0.86;
  letter-spacing: -0.025em;
  color: var(--text);
  display: flex;
  flex-direction: column;
  margin: clamp(4px, 0.5vh, 8px) 0 0;
}

.wordmark .line {
  display: flex;
  overflow: hidden;
  padding-bottom: 0.05em;
}

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

.wordmark .letter {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: letterIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Stagger delays */
.wordmark .line-1 .letter:nth-child(1) { animation-delay: 0.18s; }
.wordmark .line-1 .letter:nth-child(2) { animation-delay: 0.22s; }
.wordmark .line-1 .letter:nth-child(3) { animation-delay: 0.26s; }
.wordmark .line-1 .letter:nth-child(4) { animation-delay: 0.30s; }
.wordmark .line-1 .letter:nth-child(5) { animation-delay: 0.34s; }
.wordmark .line-1 .letter:nth-child(6) { animation-delay: 0.38s; }
.wordmark .line-2 .letter:nth-child(1) { animation-delay: 0.46s; }
.wordmark .line-2 .letter:nth-child(2) { animation-delay: 0.50s; }
.wordmark .line-2 .letter:nth-child(3) { animation-delay: 0.54s; }
.wordmark .line-2 .letter:nth-child(4) { animation-delay: 0.58s; }

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

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(6px, 1vh, 12px);
  animation: fadeUp 0.7s ease 0.85s both;
}

.rule {
  width: 64px;
  height: 3px;
  background: var(--orange);
  flex-shrink: 0;
}

.sub-italic {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(13px, 1.6vh, 15.5px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.sub-italic em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.2em;
  color: var(--text);
}

.pitch {
  max-width: 50ch;
  font-size: clamp(13.5px, 1.7vh, 16.5px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  animation: fadeUp 0.7s ease 0.95s both;
}

/* ============================================================
   SHOWCASE — rotating reels card on the right
   ============================================================ */

.showcase {
  position: relative;
  width: 100%;
  animation: fadeUp 0.9s ease 0.4s both;
  min-width: 0;
}

.showcase--ig { animation-delay: 0.45s; }
.showcase--yt { animation-delay: 0.55s; }
.showcase--tt { animation-delay: 0.65s; }

.showcase-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 12;
  max-height: 60vh;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--line-strong);
  background: var(--ink-2);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.5),
    0 4px 14px rgba(243, 121, 32, 0.08);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

/* Platform badge — overlay top-left inside the frame */
.showcase-platform {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px 5px 7px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  pointer-events: none;
}

.showcase-platform svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.showcase:hover .showcase-frame {
  border-color: var(--orange);
  transform: translateY(-3px);
}

.showcase-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 55%,
    rgba(0,0,0,0.72) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.reel {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease;
  pointer-events: none;
  cursor: pointer;
}

.reel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 6s ease-out;
}

.reel.reel-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.reel.reel-active img {
  transform: scale(1.04);
}

/* Caption overlay (sits on top of the active reel inside the frame) */
.showcase-tag {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  pointer-events: none;
}

.showcase-cap {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 11.5px;
  color: var(--text);
  letter-spacing: 0;
  line-height: 1.25;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

/* (YouTube ya tiene carousel real — el placeholder anterior se ha retirado) */

/* ============================================================
   MARQUEE — horizontal ticker
   ============================================================ */

.marquee {
  position: relative;
  overflow: hidden;
  padding: clamp(10px, 1.4vh, 14px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
  animation: fadeIn 0.8s ease 1.1s both;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.6vw, 38px);
  white-space: nowrap;
  animation: marqueeScroll 80s linear infinite;
  width: max-content;
}

.team-logo {
  height: clamp(34px, 4.6vh, 46px);
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  /* A color completo, con leve opacidad para integrarse con el fondo oscuro */
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.35s ease;
}

.team-logo:hover {
  opacity: 1;
  transform: scale(1.18);
}

/* Pausa el scroll al pasar el ratón por encima */
.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   SOCIAL CARDS — 3 grandes (YouTube, Instagram, TikTok)
   ============================================================ */

.socials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.2vw, 16px);
  animation: fadeUp 0.85s ease 1.2s both;
}

.social {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: clamp(16px, 1.8vh, 22px) clamp(16px, 1.6vw, 24px);
  min-height: clamp(82px, 11vh, 110px);
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  isolation: isolate;
  cursor: pointer;
}

.social-halo {
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: radial-gradient(circle at 30% 30%, var(--halo, transparent) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.social-icon {
  width: clamp(32px, 3.6vh, 40px);
  height: clamp(32px, 3.6vh, 40px);
  color: var(--text);
  transition: color 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.social-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.social-name {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 2.6vh, 28px);
  letter-spacing: -0.005em;
  line-height: 1;
}

.social-meta {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.social-arrow {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 16px;
  color: var(--muted);
  transition: color 0.3s ease, transform 0.3s ease;
}

.social--youtube    { --halo: rgba(255, 0, 51, 0.55); }
.social--instagram  { --halo: rgba(225, 48, 108, 0.55); }
.social--tiktok     { --halo: rgba(254, 44, 85, 0.55); }

.social:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.55);
}
.social:hover .social-halo { opacity: 1; }
.social:hover .social-icon { transform: scale(1.06); }
.social:hover .social-arrow { color: var(--text); transform: translate(2px, -2px); }

.social--youtube:hover    .social-icon { color: var(--yt); }
.social--instagram:hover  .social-icon { color: var(--ig); }
.social--tiktok:hover     .social-icon { color: var(--tt); }

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

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: clamp(2px, 0.8vh, 8px);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  animation: fadeIn 0.6s ease 1.4s both;
}

.contact-mini { color: var(--muted); transition: color 0.2s ease; }
.contact-mini:hover { color: var(--orange); }

/* ============================================================
   ANIMATIONS — base keyframes
   ============================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .series-dot, .marquee-track { animation: none !important; }
  .wordmark .letter { transform: none !important; opacity: 1 !important; }
}

/* ============================================================
   RESPONSIVE — tablet
   ============================================================ */

/* Tablet ancho */
@media (max-width: 1200px) {
  .wordmark { font-size: clamp(64px, 8.5vw, 130px); }
  .bento-right { grid-template-columns: repeat(3, minmax(0, 220px)); gap: clamp(10px, 1.2vw, 18px); }
}

/* Tablet estrecho — wordmark arriba, carouseles abajo */
@media (max-width: 900px) {
  .bento {
    grid-template-columns: 1fr;
    gap: 24px;
    justify-content: stretch;
  }
  .bento-right {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    justify-self: stretch;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
  }
  .wordmark { font-size: clamp(72px, 13vw, 130px); }
  .topbar-cta { font-size: 10px; padding: 6px 12px 6px 10px; }
}

/* ============================================================
   RESPONSIVE — móvil
   ============================================================ */

@media (max-width: 640px) {
  .hero {
    padding: 16px 18px 20px;
    gap: 14px;
  }

  .topbar { gap: 10px; }
  .topbar-left { flex-direction: column; align-items: flex-start; gap: 1px; }
  .brand-mini { font-size: 13px; }
  .brand-handle { font-size: 10px; }

  .topbar-right { gap: 6px; }

  /* En móvil, en lugar del CTA largo se muestra una versión compacta */
  .topbar-cta {
    font-size: 9.5px;
    padding: 5px 10px 5px 9px;
    gap: 6px;
    letter-spacing: 0.02em;
  }
  .topbar-cta span:last-child { display: none; }
  .topbar-cta::after {
    content: "Mascotas NBA →";
    font-weight: 600;
  }

  .topbar-stats {
    font-size: 9.5px;
    padding: 5px 10px 5px 8px;
    gap: 5px;
    letter-spacing: 0.02em;
  }
  .topbar-stats svg { width: 11px; height: 11px; }

  .bento {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .bento-right {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: none;
  }

  .showcase-platform {
    font-size: 8.5px;
    gap: 4px;
    padding: 4px 7px 4px 6px;
  }
  .showcase-platform svg { width: 10px; height: 10px; }
  .showcase-frame { border-radius: 10px; }
  .showcase-cap { font-size: 10px; }

  .wordmark {
    font-size: clamp(64px, 17vw, 96px);
    line-height: 0.86;
  }

  .rule { width: 50px; height: 2.5px; }

  .pitch { font-size: 13.5px; line-height: 1.5; }

  .marquee { padding: 10px 0; }
  .marquee-track { gap: 18px; animation-duration: 60s; }
  .team-logo { height: 26px; }

  .socials {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .social {
    padding: 14px 16px;
    min-height: 72px;
    border-radius: 14px;
  }
  .social-name { font-size: 21px; }
  .social-meta { font-size: 11px; }
  .social-icon { width: 30px; height: 30px; }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 10.5px;
  }
}

@media (max-width: 420px) {
  .wordmark { font-size: 56px; }
  .social-name { font-size: 19px; }
  .showcase-cap { font-size: 9.5px; }
  .topbar-cta { font-size: 9px; }
}

/* Pantallas con poca altura — comprimir */
@media (max-height: 720px) and (min-width: 900px) {
  .wordmark { font-size: clamp(56px, 7.5vw, 110px); }
}
