/* ==========================================================================
   Heresy Metal Media — hoja de estilos principal
   ========================================================================== */

:root {
  --color-bg: #0a0a09;
  --color-bg-alt: #131211;
  --color-bg-card: #17151388;
  --color-text: #f3f1ea;
  --color-muted: #a39d92;
  --color-line: rgba(243, 241, 234, 0.16);
  --color-accent: #7a1414;
  --color-accent-bright: #a11d1d;

  --font-display: "Pirata One", "UnifrakturMaguntia", serif;
  --font-body: "Barlow Condensed", "Arial Narrow", sans-serif;

  --container: 1160px;
  --nav-h: 108px;
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0 0 1em; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ---- fondo: textura real (background-1) + viñeta ---- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255,255,255,0.05), transparent 55%),
    radial-gradient(ellipse at 50% 110%, rgba(0,0,0,0.75), transparent 60%),
    radial-gradient(ellipse at 50% 50%, transparent 25%, rgba(0,0,0,0.7) 100%),
    url("assets/img/background-1.jpg") repeat;
  background-size: auto, auto, auto, 480px auto;
}

/* ---- grano fino sobre todo ---- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
}
main, header, footer { position: relative; z-index: 1; }

/* ---- eyebrow / crack divider (recreación del recurso "grieta" del sitio original) ---- */
.divider {
  width: 100%;
  height: 14px;
  margin: 0 auto;
  opacity: 0.55;
}
.divider svg { width: 100%; height: 100%; display: block; }
.divider path { stroke: var(--color-text); stroke-width: 1; fill: none; }

.eyebrow {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 10px;
}

/* ---- header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* La textura "top-1" (si Leo la sube a assets/img/) se ve en capas junto al degradado;
     si el archivo no existe todavía, esa capa queda transparente y no rompe nada. */
  background:
    url("assets/img/top-1.jpg") top center / cover no-repeat,
    linear-gradient(to bottom, rgba(8,8,7,0.96), rgba(8,8,7,0.86));
  border-bottom: 1px solid var(--color-line);
}
.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { white-space: nowrap; }
.brand-fallback {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.03em;
}
.brand-fallback span { display: block; font-family: var(--font-body); font-size: 9px; letter-spacing: 0.4em; color: var(--color-muted); margin-top: 2px; }
.hero-logo .brand-fallback { font-size: clamp(3.2rem, 11vw, 8rem); line-height: 0.95; }
.hero-logo .brand-fallback span { font-size: 15px; letter-spacing: 0.5em; text-transform: uppercase; margin-top: 18px; }

.nav-links {
  display: flex;
  gap: 34px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-text);
  border-color: var(--color-accent-bright);
}

.socials { display: flex; gap: 16px; align-items: center; }
.socials a {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  color: var(--color-text);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.socials a:hover { border-color: var(--color-accent-bright); transform: translateY(-2px); }
.socials svg { width: 15px; height: 15px; }

.nav-toggle {
  display: none;
  background: none; border: 0; color: var(--color-text);
  font-size: 26px; cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(8,8,7,0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav-links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-toggle { display: block; }
  .site-header .socials { display: none; }
}

/* ---- hero ---- */
.hero {
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 80px;
}
.hero-word {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 11vw, 8rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}
.hero-tagline {
  margin-top: 18px;
  font-size: 15px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.hero-copy {
  max-width: 640px;
  margin: 30px auto 0;
  color: var(--color-muted);
  font-size: 19px;
}
.hero-copy strong { color: var(--color-text); font-weight: 600; }

/* ---- sections ---- */
.section { padding: 90px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-top: 14px;
}
.section-sub {
  max-width: 720px;
  margin: 18px auto 0;
  text-align: center;
  color: var(--color-muted);
}

.section-alt { background: linear-gradient(to bottom, transparent, var(--color-bg-alt), transparent); }

/* ---- service / offering cards ---- */
.services-list { display: grid; gap: 1px; background: var(--color-line); border: 1px solid var(--color-line); }
.service-row {
  background: var(--color-bg);
  padding: 40px clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  align-items: start;
}
.service-num {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--color-accent-bright);
  opacity: 0.85;
}
.service-row h3 {
  font-size: 15px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.service-row p { color: var(--color-muted); margin: 0; }
@media (max-width: 600px) {
  .service-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ---- buttons ---- */
button.btn {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  border-radius: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  border: 1px solid var(--color-text);
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--color-text); color: var(--color-bg); }
.btn-accent { border-color: var(--color-accent-bright); }
.btn-accent:hover { background: var(--color-accent-bright); border-color: var(--color-accent-bright); color: var(--color-text); }

/* ---- image placeholder (a reemplazar por Leo con material real) ---- */
.media-slot {
  position: relative;
  aspect-ratio: 16/9;
  border: 1px dashed var(--color-line);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.03) 25%, transparent 25%) 0 0/24px 24px,
    linear-gradient(315deg, rgba(255,255,255,0.03) 25%, transparent 25%) 0 0/24px 24px,
    var(--color-bg-alt);
  display: grid;
  place-items: center;
  color: var(--color-muted);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
}

/* ---- timeline (historia) ---- */
.timeline { display: grid; gap: 46px; max-width: 780px; margin: 0 auto; }
.timeline-item { display: grid; grid-template-columns: 90px 1fr; gap: 24px; }
.timeline-year {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--color-accent-bright);
}
.timeline-item h3 { font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; }
.timeline-item p { color: var(--color-muted); margin: 0; }
@media (max-width: 560px) {
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
}

/* ---- roster / band lists ---- */
.roster {
  columns: 2;
  column-gap: 40px;
  max-width: 760px;
  margin: 0 auto;
  color: var(--color-muted);
}
.roster li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid var(--color-line); font-size: 16px; }
@media (max-width: 560px) { .roster { columns: 1; } }

/* ---- contacto ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--color-line);
  color: var(--color-text);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 16px;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-accent-bright);
}
.field textarea { resize: vertical; min-height: 120px; }

.form-note { font-size: 13px; color: var(--color-muted); margin-top: 10px; }
.form-status { margin-top: 14px; font-size: 14px; }

.contact-card { border-top: 1px solid var(--color-line); padding: 26px 0; }
.contact-card h3 { font-size: 14px; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 6px; }
.contact-card p { color: var(--color-muted); margin: 0 0 4px; }
.contact-card a:hover { color: var(--color-accent-bright); }

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 56px 0 40px;
  text-align: center;
}
.site-footer .socials { justify-content: center; margin-bottom: 20px; }
.site-footer p { color: var(--color-muted); font-size: 13px; letter-spacing: 0.05em; }

/* ---- logo con fallback (usa la imagen real si existe; si no, el wordmark tipográfico) ---- */
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo img { height: 84px; width: auto; }
@media (max-width: 860px) { .brand-logo img { height: 60px; } }
.brand-logo .brand-fallback { display: none; }
.hero-logo { display: inline-block; }
.hero-logo img { height: clamp(140px, 25vw, 265px); width: auto; margin: 0 auto; }
.hero-logo .brand-fallback { display: none; }

/* ---- separador con isologo / triángulo (con fallback a línea dibujada) ---- */
.iso-divider { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 40px 0; }
.iso-divider img { height: 34px; width: auto; opacity: 0.9; }
.iso-divider .iso-fallback { display: none; font-size: 20px; color: var(--color-muted); }

/* ---- pull quote ("nuestra pasión es el metal") ---- */
.pull-quote {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.6;
  color: var(--color-muted);
}
.pull-quote strong {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.3em;
  color: var(--color-text);
  font-weight: 700;
  margin-bottom: 6px;
}

/* ---- fotos en fila horizontal, una debajo de la otra ---- */
.photo-stack { display: flex; flex-direction: column; gap: 18px; max-width: 720px; margin: 0 auto; }
.photo-stack figure { margin: 0; aspect-ratio: 16/9; overflow: hidden; border: 1px solid var(--color-line); }
.photo-stack img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- fila final de 2 fotos lado a lado ---- */
.photo-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.photo-row-2 figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; border: 1px solid var(--color-line); }
.photo-row-2 img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 560px) { .photo-row-2 { grid-template-columns: 1fr; } }

/* ---- historia: texto corrido, no timeline con viñetas ---- */
.historia-text { max-width: 720px; margin: 0 auto; color: var(--color-muted); }
.historia-text p { margin-bottom: 1.3em; }
.historia-text strong { color: var(--color-text); }

/* ---- galería horizontal tipo Wix (swipe) ---- */
.gallery-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  -webkit-overflow-scrolling: touch;
}
.gallery-scroll .media-slot,
.gallery-scroll figure {
  flex: 0 0 auto;
  width: min(78vw, 380px);
  aspect-ratio: 4/3;
  scroll-snap-align: start;
}
.gallery-scroll::-webkit-scrollbar { height: 6px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: var(--color-line); }

/* ---- videos destacados ---- */
.video-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.video-grid .video-embed:first-child { grid-row: span 2; }
@media (max-width: 760px) {
  .video-grid { grid-template-columns: 1fr; }
  .video-grid .video-embed:first-child { grid-row: auto; }
}
.video-embed { position: relative; aspect-ratio: 16/9; background: var(--color-bg-alt); border: 1px solid var(--color-line); overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed .video-tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--color-accent-bright);
  color: var(--color-text);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 10px;
}

/* ---- shows / tickets ---- */
.shows-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 24px; margin-top: 50px; }
.show-card { border: 1px solid var(--color-line); }
.show-card .media-slot { aspect-ratio: 3/4; border: 0; border-bottom: 1px solid var(--color-line); }
.show-card-info { padding: 16px; text-align: center; }
.show-card-info p { margin: 0; color: var(--color-muted); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

.ticket-note {
  max-width: 620px;
  margin: 26px auto 0;
  text-align: center;
  color: var(--color-muted);
  font-size: 15px;
}
.ticket-note strong { color: var(--color-text); }

/* ---- banner "seguinos en instagram" con foto de fondo ---- */
.ig-banner {
  position: relative;
  display: block;
  aspect-ratio: 21/9;
  overflow: hidden;
}
.ig-banner img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.ig-banner:hover img { transform: scale(1.04); }
.ig-banner-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(to bottom, rgba(8,8,7,0.35), rgba(8,8,7,0.75) 75%, rgba(8,8,7,0.92));
  padding: 24px;
}
.ig-banner-overlay .btn { pointer-events: none; }
@media (max-width: 640px) { .ig-banner { aspect-ratio: 4/3; } }

/* ---- grilla de fotos reales (Quiénes somos) ---- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  align-content: start;
}
.photo-grid img,
.gallery-scroll img,
.show-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-grid figure { margin: 0; aspect-ratio: 3/4; overflow: hidden; border: 1px solid var(--color-line); }
.photo-grid figure:nth-child(3n+1) { aspect-ratio: 1/1; }

.gallery-scroll figure { margin: 0; }
.gallery-scroll img { aspect-ratio: 4/3; }

.show-card figure { margin: 0; aspect-ratio: 4/5; overflow: hidden; border-bottom: 1px solid var(--color-line); }
.show-card-info { text-align: left; padding: 18px; }
.show-card-info h3 { font-size: 15px; letter-spacing: 0.08em; text-transform: none; color: var(--color-text); margin-bottom: 8px; line-height: 1.3; }
.show-card-info p { text-transform: none; letter-spacing: 0.02em; font-size: 14px; margin-bottom: 4px; }
.show-card-info .btn { margin-top: 12px; padding: 10px 20px; font-size: 12px; }

/* ---- misc ---- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--color-accent-bright); outline-offset: 3px; }
