/* Tema "Darién": negro, blanco y negro estricto, grano de película.
   Compartido por el home y /ferro/. */

:root {
  --bg: #050505;
  --ink: #e9e6e1;
  --soft: #c9c5bf;
  --muted: #8f8a84;
  --line: rgba(233, 230, 225, 0.14);
  --panel: rgba(255, 255, 255, 0.035);
}

html {
  background: var(--bg);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.font-serif {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
}

/* Grano de película sobre toda la página */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 60;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  17% { transform: translate(-3%, 2%); }
  34% { transform: translate(2%, -3%); }
  51% { transform: translate(-2%, -1%); }
  68% { transform: translate(3%, 3%); }
  85% { transform: translate(-1%, 2%); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}

::selection {
  background: #e9e6e1;
  color: #050505;
}

/* Etiqueta pequeña en mayúsculas espaciadas, como la portada */
.eyebrow {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.8rem;
  color: var(--muted);
}

.section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--soft);
}

.hairline {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--line) 20%,
    var(--line) 80%,
    transparent
  );
}

/* Imagen atmosférica con bordes que se funden en el negro */
.fade-edges {
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    #000 35%,
    transparent 78%
  );
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
}
.fade-bottom {
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

/* Botones */
.btn-light {
  background: var(--ink);
  color: #050505;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-light:hover {
  background: #fff;
  transform: translateY(-1px);
}
.btn-ghost {
  border: 1px solid rgba(233, 230, 225, 0.35);
  color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-ghost:hover {
  background: rgba(233, 230, 225, 0.08);
  border-color: rgba(233, 230, 225, 0.7);
}

/* Cuadros de catálogo y video: en gris, a color al pasar el mouse */
.mono {
  filter: grayscale(1) contrast(1.05) brightness(0.92);
  transition: filter 0.5s ease, transform 0.6s ease;
}
.release-card:hover .mono,
.visual-card:hover .mono,
.mono:hover {
  filter: grayscale(0) contrast(1) brightness(1);
}

.release-card {
  transition: transform 0.15s ease-out, background 0.3s ease;
}

.section-shell {
  border: 1px solid var(--line);
  background: var(--panel);
}

.platform-btn {
  background: rgba(233, 230, 225, 0.07);
  color: var(--ink);
  transition: background 0.15s ease;
}
.platform-btn:hover {
  background: rgba(233, 230, 225, 0.16);
}
/* Los logos de las plataformas, en blanco y negro como todo lo demás */
.platform-btn svg:not([fill="none"]),
.platform-btn svg:not([fill="none"]) path,
.social-icon svg,
.social-icon svg path {
  fill: currentColor;
}

.modal-overlay {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal-panel {
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.spotify-embed {
  border-radius: 12px;
}
.media-frame {
  aspect-ratio: 16 / 9;
}

/* Campos de formulario */
.field {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  padding: 0.75rem;
  font-size: 0.875rem;
  outline: none;
}
.field:focus {
  border-color: rgba(233, 230, 225, 0.6);
}
.field::placeholder {
  color: var(--muted);
}

/* Aparición lenta */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Sobre John: una columna; dos si hay imagen */
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
.about-text { max-width: 44rem; margin-inline: auto; }
@media (min-width: 768px) {
  .about-grid.has-art { grid-template-columns: 1fr 1fr; }
  .about-grid.has-art .about-text { max-width: none; margin: 0; }
}

/* Portada del home */
.hero-img { animation: drift 28s ease-in-out infinite alternate; transform-origin: 55% 45%; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .hero-img { animation: none; } }
.hero-shade {
  background:
    linear-gradient(180deg, rgba(5,5,5,0.35) 0%, rgba(5,5,5,0) 30%, rgba(5,5,5,0.55) 72%, #050505 100%);
}
.fade-y {
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0%, #000 25%, #000 70%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(180deg, transparent 0%, #000 25%, #000 70%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
}
