/* ============================================================
   BLOOD — Productora de fiestas urbanas · Junín, Buenos Aires
   Paleta y tipografías fieles al diseño importado.
   ============================================================ */

:root {
  --bg:        #0a0a0b;
  --bg-warm:   #140507;
  --ink:       #f4efee;
  --ink-soft:  #e8dedd;
  --red:       #ff1440;
  --red-2:     #ff2b4d;
  --red-3:     #ff3a5f;
  --wine:      #8b0a1e;
  --muted:     #b3a8a7;
  --muted-2:   #a89a9c;
  --muted-3:   #8a7d7f;
  --muted-4:   #7a7071;
  --muted-5:   #5f5758;

  --font-display: 'Anton', sans-serif;
  --font-gothic:  'UnifrakturCook', serif;
  --font-body:    'Manrope', sans-serif;

  --shadow-cta:   0 0 40px rgba(255,20,64,0.55);
  --shadow-cta-h: 0 0 56px rgba(255,20,64,0.75);
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--red); color: var(--bg); }

img { max-width: 100%; }

a { color: inherit; }

/* --- Foco accesible --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   KEYFRAMES (del diseño original)
   ============================================================ */
@keyframes bloodPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.9; } }
@keyframes drip { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes splashPulse { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ============================================================
   LOADING SPLASH
   ============================================================ */
#splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 60% 50% at 50% 45%, #180507, #0a0a0b 75%);
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}
#splash .drop {
  width: 84px;
  height: 84px;
  animation: splashPulse 1.4s ease-in-out infinite;
  filter: drop-shadow(0 0 22px rgba(255,20,64,0.65));
}
#splash .ring {
  position: absolute;
  width: 128px;
  height: 128px;
  border: 2px solid rgba(255,20,64,0.18);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spinSlow 1.1s linear infinite;
}
/* Doble red de seguridad: se auto-oculta aunque el JS no cargue */
body.loaded #splash,
#splash.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 20, 64, 0.18);
}
.nav__logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 20, 64, 0.5));
  transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav__logo:hover { filter: drop-shadow(0 0 16px rgba(255, 20, 64, 0.8)); transform: translateY(-1px); }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  flex-wrap: wrap;
}
.nav__link {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover { color: var(--red); }
.nav__link:hover::after { transform: scaleX(1); }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.28s var(--ease), box-shadow 0.28s var(--ease),
              transform 0.28s var(--ease), border-color 0.28s var(--ease), color 0.28s var(--ease);
}
.btn--pill-sm {
  background: var(--red);
  color: var(--bg);
  font-weight: 800;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 100px;
  box-shadow: 0 0 24px rgba(255, 20, 64, 0.45);
}
.btn--pill-sm:hover { background: var(--red-3); transform: translateY(-2px); box-shadow: 0 6px 28px rgba(255, 20, 64, 0.6); }

.btn--hero {
  background: var(--red);
  color: var(--bg);
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  font-size: 16px;
  padding: 16px 36px;
  border-radius: 100px;
  box-shadow: var(--shadow-cta);
}
.btn--hero:hover { background: var(--red-3); box-shadow: var(--shadow-cta-h); transform: translateY(-2px); }

.btn--ghost {
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  font-size: 16px;
  padding: 16px 36px;
  border-radius: 100px;
  border: 1px solid rgba(244, 239, 238, 0.3);
}
.btn--ghost:hover { border-color: var(--red); color: var(--red-2); transform: translateY(-2px); }

.btn--card {
  align-self: flex-start;
  color: var(--bg);
  background: var(--red);
  font-weight: 800;
  font-size: 13px;
  padding: 10px 22px;
  border-radius: 100px;
  margin-top: 8px;
}
.btn--card:hover { background: var(--red-3); transform: translateX(3px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 20px 80px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 38%, rgba(255, 20, 64, 0.28), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(139, 10, 30, 0.35), transparent 60%);
  pointer-events: none;
  will-change: transform;
}
.hero__scan {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg,
    rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px,
    transparent 1px, transparent 3px);
  pointer-events: none;
  opacity: 0.5;
}
.hero__logo {
  position: relative;
  width: min(560px, 80vw);
  height: auto;
  object-fit: contain;
  margin-bottom: 8px;
  animation: bloodPulse 4s ease-in-out infinite;
}
.hero__mascot {
  position: absolute;
  right: clamp(-40px, 2vw, 40px);
  bottom: 0;
  width: min(260px, 32vw);
  height: auto;
  object-fit: contain;
  opacity: 0.9;
  pointer-events: none;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.6));
  will-change: transform;
}
.hero__lede {
  position: relative;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  margin: 20px 0 36px;
}
.hero__cta {
  position: relative;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Marquee --- */
.marquee {
  position: relative;
  width: 100vw;
  margin: 12px 0 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 20, 64, 0.25);
  border-bottom: 1px solid rgba(255, 20, 64, 0.25);
  padding: 10px 0;
  background: rgba(20, 5, 7, 0.4);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 16s linear infinite;
}
.marquee__item {
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: clamp(22px, 3.6vw, 36px);
  color: var(--red-2);
  text-shadow: 0 0 12px rgba(255, 20, 64, 0.65);
  padding: 0 28px;
  white-space: nowrap;
}

/* ============================================================
   SECCIONES
   ============================================================ */
section { scroll-margin-top: 90px; }

.eventos {
  padding: 96px clamp(20px, 5vw, 64px);
  background: linear-gradient(180deg, #0a0a0b 0%, #140507 100%);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}
.section-head__eyebrow { color: var(--muted-4); font-size: 14px; margin: 0; }

.h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  color: var(--ink);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.h2--accent { color: var(--red); }

.eventos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.event-card {
  position: relative;
  background: linear-gradient(160deg, #1a0a0d 0%, #0d0607 100%);
  border: 1px solid rgba(255, 20, 64, 0.22);
  border-radius: 4px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.event-card:hover {
  border-color: rgba(255, 20, 64, 0.55);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 20, 64, 0.15);
}
.event-card__blob {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 20, 64, 0.25), transparent 70%);
  pointer-events: none;
}
.event-card__date {
  color: var(--red-2);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.event-card__title {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--ink);
  margin: 0;
  text-transform: uppercase;
  line-height: 1.15;
}
.event-card__venue { color: var(--muted-2); font-size: 14px; margin: 0; line-height: 1.5; }
.event-card__lineup { color: var(--muted-3); font-size: 13px; margin: 0; }

/* ============================================================
   GALERÍA — placeholders de diseño (sin fotos aún)
   ============================================================ */
.galeria { padding: 96px clamp(20px, 5vw, 64px); background: var(--bg); }
.galeria__sub {
  color: var(--muted-4);
  font-size: 15px;
  margin: 0 0 40px;
  max-width: 560px;
}
.galeria__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-auto-rows: 220px;
  gap: 16px;
}
.gal-cell {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 20, 64, 0.2);
}
.gal-cell--wide { grid-column: span 2; }
.gal-cell--big  { grid-column: span 2; grid-row: span 2; }

/* Placeholder visual intencional */
.ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 20px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 20, 64, 0.18), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(139, 10, 30, 0.28), transparent 60%),
    linear-gradient(160deg, #170609 0%, #0b0405 100%);
  overflow: hidden;
  transition: transform 0.5s var(--ease);
}
/* Textura de líneas finas */
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg,
    rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px,
    transparent 1px, transparent 7px);
  opacity: 0.6;
  pointer-events: none;
}
/* Splash/glow sutil que late */
.ph::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 20, 64, 0.35), transparent 70%);
  filter: blur(6px);
  animation: bloodPulse 5s ease-in-out infinite;
  pointer-events: none;
}
.gal-cell:hover .ph { transform: scale(1.04); }

.ph__drop { width: 30px; height: 30px; position: relative; z-index: 1; filter: drop-shadow(0 0 10px rgba(255,20,64,0.6)); }
.ph__label {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: clamp(14px, 2vw, 18px);
  color: var(--ink);
}
.ph__hint {
  position: relative;
  z-index: 1;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted-4);
  max-width: 80%;
  line-height: 1.4;
  text-transform: uppercase;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto {
  padding: 96px clamp(20px, 5vw, 64px);
  background: linear-gradient(180deg, #140507 0%, #0a0a0b 100%);
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  justify-content: space-between;
}
.contacto__col { flex: 1 1 320px; max-width: 480px; }
.contacto__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  color: var(--ink);
  margin: 0 0 16px;
  text-transform: uppercase;
  line-height: 1.1;
}
.contacto__lede { color: var(--muted-2); font-size: 15px; line-height: 1.6; margin: 0 0 32px; }
.contacto__links { display: flex; flex-direction: column; gap: 16px; }
.social {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: color 0.25s var(--ease);
}
.social__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 20, 64, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--red-2);
  flex-shrink: 0;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.social:hover { color: var(--red-2); }
.social:hover .social__icon { background: rgba(255, 20, 64, 0.12); border-color: var(--red); transform: scale(1.06); }

.contacto__media { flex: 1 1 320px; max-width: 480px; display: flex; align-items: stretch; }
.contacto__map {
  position: relative;
  width: 100%;
  min-height: 280px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 20, 64, 0.2);
}
.ph--map .ph__pin {
  position: relative;
  z-index: 1;
  height: 64px;
  width: auto;
  opacity: 0.9;
  filter: drop-shadow(0 6px 18px rgba(255, 20, 64, 0.4));
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 40px clamp(20px, 5vw, 64px);
  border-top: 1px solid rgba(255, 20, 64, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__logo { height: 32px; width: auto; object-fit: contain; opacity: 0.9; }
.footer__copy { color: var(--muted-5); font-size: 13px; margin: 0; }
.footer__links { display: flex; gap: 20px; }
.footer__link {
  color: var(--muted-4);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.25s var(--ease);
}
.footer__link:hover { color: var(--red-2); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* Red de seguridad: si el observer no corre, nada queda invisible */
.no-js .reveal { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .hero__mascot { width: min(180px, 40vw); opacity: 0.8; }
  .gal-cell--big { grid-row: span 1; }
  .contacto { gap: 40px; }
}

/* Respetar usuarios que piden menos movimiento (solo animaciones intrusivas) */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .hero__logo, #splash .drop, .ph::after { animation: none; }
  .reveal { transition-duration: 0.001s; }
  html { scroll-behavior: auto; }
}
