/* ============================================================
   Teatro Corfú 7 — Landing de lanzamiento
   ============================================================ */

:root{
  --black: #000000;
  --white: #ffffff;
  --lime: #C7CC00;
  --blue: #019EC7;
  --teal: #12A38C;

  --ink-dim: rgba(255,255,255,.62);
  --ink-faint: rgba(255,255,255,.38);
  --hairline: rgba(255,255,255,.16);

  --display: "tt-modernoir", sans-serif;
  --body: "futura-100", sans-serif;
  --tiny: "cofo-sans-pixel", sans-serif;

  --container: 1160px;
  --ease: cubic-bezier(.16,.8,.24,1);
}

*, *::before, *::after{ box-sizing: border-box; }

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

html, body{
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body{
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection{ background: var(--teal); color: var(--black); }

a{ color: inherit; }

:focus-visible{
  outline: 1.5px solid var(--white);
  outline-offset: 4px;
  border-radius: 2px;
}

img{ max-width: 100%; display: block; }

h1, h2{
  font-family: var(--display);
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

p{ margin: 0; }

/* ---------- Announcement bar ---------- */
.announce-bar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: clamp(24px, 3.2vh, 32px);
  display: flex;
  align-items: center;
  background: #0a0b0f;
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}
.announce-track{
  display: flex;
  flex-shrink: 0;
  width: max-content;
  will-change: transform;
  animation: announce-scroll 32s linear infinite;
}
.announce-track p{
  font-family: var(--tiny);
  font-size: clamp(.58rem, .3vw + .52rem, .7rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
  /* padding-right igual en ambas copias garantiza el loop sin gap */
  padding: 0 4em;
  flex-shrink: 0;
}
.announce-track,
.announce-track p{
  pointer-events: auto;
}
.announce-link{
  text-decoration: underline;
  text-underline-offset: 2px;
  color: inherit;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: rgba(255,255,255,.15);
  transition: color .2s;
}
.announce-link:hover{ color: var(--white); }

@keyframes announce-scroll{
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* ---------- Animated backdrop ---------- */
.backdrop{
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  /* gradiente base permanente: nunca queda en negro puro */
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(1,158,199,.18) 0%, transparent 70%),
    radial-gradient(ellipse 70% 55% at 85% 80%, rgba(18,163,140,.16) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(1,158,199,.08) 0%, transparent 60%),
    #08090d;
}

.blob-wrap{
  position: absolute;
  inset: 0;
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}

.blob{
  position: absolute;
  border-radius: 50%;
  filter: blur(85px) saturate(1.7);
  opacity: .68;
  will-change: transform;
}

.blob-a{
  width: 48vw; height: 48vw;
  top: 5%; left: 5%;
  background: var(--blue);
  animation: drift-a 28s ease-in-out infinite;
}
.blob-b{
  width: 42vw; height: 42vw;
  top: 30%; left: 40%;
  background: var(--teal);
  opacity: .7;
  animation: drift-b 36s ease-in-out infinite;
}
.blob-c{
  width: 32vw; height: 32vw;
  top: 10%; left: 55%;
  background: var(--lime);
  opacity: .35;
  animation: drift-c 44s ease-in-out infinite;
}

/* Blob azul: recorre diagonal top-left → bottom-right y vuelve */
@keyframes drift-a{
  0%   { transform: translate(0,     0)     scale(1);    opacity: .68; }
  18%  { transform: translate(22vw,  8vh)   scale(1.18); opacity: .72; }
  35%  { transform: translate(38vw,  28vh)  scale(0.88); opacity: .60; }
  52%  { transform: translate(28vw,  52vh)  scale(1.22); opacity: .75; }
  70%  { transform: translate(8vw,   62vh)  scale(0.92); opacity: .64; }
  85%  { transform: translate(-4vw,  38vh)  scale(1.14); opacity: .70; }
  100% { transform: translate(0,     0)     scale(1);    opacity: .68; }
}

/* Blob verde-azul: movimiento lento y amplio, más vertical */
@keyframes drift-b{
  0%   { transform: translate(0,     0)     scale(1);    opacity: .70; }
  22%  { transform: translate(-18vw, -14vh) scale(1.20); opacity: .55; }
  44%  { transform: translate(-32vw, 10vh)  scale(0.85); opacity: .75; }
  66%  { transform: translate(-14vw, 34vh)  scale(1.15); opacity: .60; }
  88%  { transform: translate(6vw,   18vh)  scale(0.90); opacity: .68; }
  100% { transform: translate(0,     0)     scale(1);    opacity: .70; }
}

/* Blob lima: más pequeño y rápido, baila en el tercio derecho */
@keyframes drift-c{
  0%   { transform: translate(0,     0)     scale(1);    opacity: .35; }
  25%  { transform: translate(-12vw, 18vh)  scale(1.25); opacity: .50; }
  50%  { transform: translate(-22vw, 42vh)  scale(0.80); opacity: .28; }
  75%  { transform: translate(-6vw,  28vh)  scale(1.18); opacity: .45; }
  100% { transform: translate(0,     0)     scale(1);    opacity: .35; }
}

.grain{
  position: absolute; inset: 0;
  opacity: .04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Ambiente teatral: focos y polvo ---------- */
.stage-glow{
  position: fixed;
  top: 30%; left: 50%;
  width: 130vmax; height: 130vmax;
  background: radial-gradient(circle, rgba(199,204,0,.1) 0%, rgba(1,158,199,.12) 32%, transparent 62%);
  animation: glow-pulse 14s ease-in-out infinite, glow-drift 100s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}
@keyframes glow-pulse{
  0%,100%{ opacity: .78; }
  50%{ opacity: .92; }
}
@keyframes glow-drift{
  0%{ transform: translate(calc(-50% - 1%), calc(-50% - .8%)); }
  100%{ transform: translate(calc(-50% + 1%), calc(-50% + 1%)); }
}

.dust{
  position: fixed; inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.dust span{
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  box-shadow: 0 0 6px rgba(199,204,0,.5);
  animation: dust-float linear infinite;
}
@keyframes dust-float{
  0%{ transform: translateY(0); opacity: 0; }
  12%{ opacity: .6; }
  88%{ opacity: .35; }
  100%{ transform: translateY(-62vh); opacity: 0; }
}

/* ---------- Telón ---------- */
.curtain{
  position: fixed;
  top: 0;
  width: 50%; height: 100%;
  z-index: 50;
  background-color: #14161c;
  background-image:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,.34) 0px,
      rgba(255,255,255,.09) 20px,
      rgba(255,255,255,.16) 34px,
      rgba(255,255,255,.03) 52px,
      rgba(0,0,0,.24) 72px,
      rgba(0,0,0,.38) 92px),
    repeating-linear-gradient(90deg,
      rgba(255,255,255,.04) 0px,
      rgba(0,0,0,.14) 66px,
      rgba(255,255,255,.04) 142px),
    linear-gradient(180deg, #0a0c11 0%, #191d26 45%, #0a0c11 100%);
  filter: blur(.6px) brightness(1.8);
  box-shadow: inset 0 0 120px rgba(0,0,0,.65);
  pointer-events: none;
}
.curtain-left{
  left: 0;
  transform-origin: top right;
  box-shadow: inset -46px 0 80px rgba(0,0,0,.6);
}
.curtain-right{
  right: 0;
  transform-origin: top left;
  box-shadow: inset 46px 0 80px rgba(0,0,0,.6);
}

.is-ready .curtain-left{
  animation: curtain-open-left 1.7s ease-in-out forwards;
}
.is-ready .curtain-right{
  animation: curtain-open-right 1.7s ease-in-out forwards;
}

@keyframes curtain-open-left{
  0%{ transform: translate(0,0) rotate(0deg) scale(1,1); filter: blur(.6px) brightness(1.8); }
  100%{ transform: translate(-100%,0) rotate(10deg) scale(.1,1.5); filter: blur(.6px) brightness(1); }
}
@keyframes curtain-open-right{
  0%{ transform: translate(0,0) rotate(0deg) scale(1,1); filter: blur(.6px) brightness(1.8); }
  100%{ transform: translate(100%,0) rotate(-10deg) scale(.1,1.5); filter: blur(.6px) brightness(1); }
}

@media (prefers-reduced-motion: reduce){
  .stage-glow, .dust span{ display: none; }
}

/* ---------- Reveal on load ---------- */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.is-ready .reveal{
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Single screen layout ---------- */
.screen{
  position: relative;
  z-index: 10;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding:
    calc(clamp(20px, 2.6vh, 28px) + clamp(8px, 1vh, 12px))
    clamp(20px, 5vw, 56px)
    calc(clamp(40px, 5.5vh, 56px) + clamp(8px, 1vh, 12px));
  max-width: 1320px;
  margin: 0 auto;
}

/* ---------- Center group: brand + event card, vertically centered as a unit ---------- */
.center-group{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3.8vh, 54px);
}

/* ---------- Brand block (logo / eyebrow / headline / tags) ---------- */
.brand-block{
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.hero-logo{
  width: clamp(120px, min(28vw, 20vh), 400px);
  height: auto;
  filter: invert(1);
}

.hero-tag{
  font-family: var(--tiny);
  font-size: clamp(.76rem, .9vh + .36rem, 1.15rem);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: clamp(10px, 1.6vh, 20px);
}

.hero-title{
  font-size: clamp(1.3rem, 2.2vh + 1vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--white);
  margin-top: clamp(6px, 1.1vh, 13px);
}

.hero-categories{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5em;
  font-family: var(--tiny);
  font-size: clamp(.62rem, .55vh + .39rem, .84rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: clamp(10px, 1.5vh, 18px);
}
.hero-categories span[aria-hidden]{ color: var(--hairline); }

/* ---------- Peek slider ---------- */
.peek-wrap{
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.4vh, 18px);
  width: 100%;
}

.peek-slider{
  width: 100%;
  /* constrain by both viewport width and height so the card never overflows */
  max-width: min(clamp(300px, 58vw, 560px), clamp(280px, 54vh, 480px));
  overflow: visible;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 16%, black 84%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 16%, black 84%, transparent 100%);
}

.peek-track{
  display: flex;
  gap: clamp(10px, 1.4vw, 14px);
  will-change: transform;
  transition: transform .7s cubic-bezier(.16, 1, .3, 1);
}

.peek-slide{
  flex: 0 0 66%;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 8px 28px -8px rgba(0,0,0,.65);
  opacity: .5;
  transform: scale(.9);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1), box-shadow .7s cubic-bezier(.16,1,.3,1);
  cursor: pointer;
}
.peek-slide--active{
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 18px 44px -10px rgba(0,0,0,.8);
  cursor: default;
}

.peek-slide img{
  width: 100%;
  height: auto;
  display: block;
}

.peek-cta{
  min-width: clamp(160px, 40vw, 260px);
}

/* ---------- Ubicación (fixed bottom bar) ---------- */
.ubicacion-strip{
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
  padding: clamp(7px, .9vh, 11px) clamp(16px, 4vw, 40px);
  background: #0a0b0f;
  border-top: 1px solid var(--hairline);
}
.ubicacion-direccion{
  font-family: var(--tiny);
  font-size: clamp(.68rem, .4vw + .58rem, .82rem);
  letter-spacing: .04em;
  line-height: 1.3;
  color: var(--ink-dim);
}
@media (max-width: 600px) {
  .ubicacion-strip{ gap: 10px; padding: 10px 16px; flex-wrap: nowrap; }
  .ubicacion-direccion{ font-size: .62rem; }
}

.social-icon{
  flex: 0 0 auto;
  width: clamp(36px, 4vh, 44px);
  height: clamp(36px, 4vh, 44px);
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,.03);
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.social-icon svg{ width: 55%; height: 55%; }
.social-icon:hover{
  transform: translateY(-3px);
  color: var(--black);
  border-color: transparent;
  background: linear-gradient(135deg, var(--lime), var(--teal) 55%, var(--blue));
  box-shadow: 0 10px 26px -8px rgba(18,163,140,.55);
}

/* ---------- Buttons ---------- */
.btn{
  font-family: var(--tiny);
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1em 2.2em;
  border-radius: 2px;
  transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}

.btn-primary{
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--white);
  box-shadow: 0 8px 24px -12px rgba(1,158,199,.4);
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-primary::before{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .45s ease;
}
.btn-primary:hover::before{ transform: translateX(120%); }
.btn-primary:hover{
  color: var(--black);
  border-color: transparent;
  background: linear-gradient(100deg, var(--lime), var(--teal) 55%, var(--blue));
  box-shadow: 0 16px 40px -10px rgba(1,158,199,.55), 0 0 0 1px rgba(255,255,255,.08);
  transform: translateY(-3px) scale(1.015);
}

.btn-secondary{
  color: var(--ink-dim);
  background: transparent;
  border: 1px solid var(--hairline);
}
.btn-secondary:hover{
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-compact{
  font-size: clamp(.62rem, .4vw + .52rem, .76rem);
  padding: clamp(.7em, 1.4vh, .95em) clamp(1.1em, 2vw, 1.6em);
  white-space: nowrap;
}


/* ============================================================
   Responsive breakpoints
   ============================================================ */

/* --- Pantallas muy cortas (≤ 580px alto): ocultar secundarios --- */
@media (max-height: 580px) {
  .hero-tag{ display: none; }
  .hero-categories{ display: none; }
  .hero-logo{ width: clamp(72px, 13vh, 120px); }
  .hero-title{ font-size: clamp(.95rem, 1.6vh + .5vw, 1.6rem); margin-top: clamp(4px, .6vh, 6px); }
  .center-group{ gap: clamp(8px, 1.2vh, 16px); }
  .peek-wrap{ gap: clamp(8px, 1vh, 12px); }
}

/* --- Móvil portrait (≤ 600px ancho) --- */
@media (max-width: 600px) {
  .hero-logo{
    width: clamp(110px, 32vw, 180px);
  }
  .hero-title{
    font-size: clamp(1.2rem, 5.5vw, 1.8rem);
    margin-top: clamp(4px, .8vh, 8px);
  }
  .hero-tag{
    font-size: clamp(.7rem, 2.2vw, .95rem);
    margin-top: clamp(6px, 1vh, 12px);
  }
  .hero-categories{
    font-size: clamp(.58rem, 1.6vw, .74rem);
    margin-top: clamp(6px, 1vh, 12px);
  }
  .peek-slide{
    flex: 0 0 clamp(130px, 56vw, 220px);
  }
  .ubicacion-strip{ gap: 10px; padding: 7px 16px; flex-wrap: nowrap; }
  .ubicacion-direccion{ font-size: .6rem; }
}
