/* ===== Base ===== */
:root {
  --fondo: #eceee9; --tinta: #17262b; --suave: #4a5a5f;
  --titulo: "Archivo", "Arial Narrow", Arial, sans-serif;
  --texto: "Newsreader", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { background: var(--fondo); color: var(--tinta); font: 1.125rem/1.65 var(--texto); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; }
.contenedor { max-width: 1100px; margin: 0 auto; padding: 0 clamp(1rem, 5vw, 3rem); }
.seccion { padding: 4rem 0; }
.seccion.alt { background: #fff; }
.seccion h2 { font: 900 clamp(2rem, 6vw, 3.5rem)/1 var(--titulo); letter-spacing: -0.03em; margin-bottom: 1.25rem; }
.intro { max-width: 56ch; color: var(--suave); margin-bottom: 2rem; }

/* ===== Menú ===== */
.cabecera { position: sticky; top: 0; z-index: 20; background: var(--tinta); color: #fff; }
.barra { display: flex; justify-content: space-between; align-items: center; min-height: 4rem; }
.logo { font: 900 1.4rem var(--titulo); letter-spacing: -0.02em; text-decoration: none; }
.menu { display: flex; gap: 1.5rem; list-style: none; }
.menu a { font: 500 1rem var(--titulo); text-decoration: none; padding: .3rem 0; border-bottom: 3px solid transparent; }
.menu a:hover, .menu a.activo { border-color: #e2b93b; }
.boton-menu { display: none; background: none; color: #fff; 
  border: 2px solid #fff; border-radius: 6px; padding: .4rem .8rem; font: 600 1rem var(--titulo); cursor: pointer; }
@media (max-width: 759px) {
  .boton-menu { display: block; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; 
    flex-direction: column; gap: 0; background: var(--tinta); padding: .5rem clamp(1rem, 5vw, 3rem) 1rem; }
  .menu.abierto { display: flex; }
  .menu a { display: block; padding: .7rem 0; }
}

/* ===== Inicio ===== */
.inicio { padding: 3rem 0 4rem; }
.inicio .contenedor { display: grid; gap: 2rem; align-items: center; }
.inicio h1 { font: 900 clamp(3rem, 11vw, 7rem)/.92 var(--titulo); letter-spacing: -0.04em; }
.inicio p { max-width: 44ch; margin: 1.25rem 0 1.75rem; color: var(--suave); }
.cta { display: inline-block; background: var(--tinta); color: #fff; border: 0; border-radius: 999px; padding: .8rem 1.5rem; font: 600 1rem var(--titulo); text-decoration: none; cursor: pointer; }
.cta:hover { background: #a92a37; }
@media (min-width: 800px) { .inicio .contenedor { grid-template-columns: 1.2fr 1fr; } }

/* ===== Nosotros ===== */
.tarjetas { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tarjeta { border: 3px solid var(--tinta); padding: 1.25rem; }
.tarjeta h3 { font: 800 1.25rem var(--titulo); margin-bottom: .4rem; }

/* ===== Discos ===== */
.disco { display: grid; gap: 1.5rem; padding: 2.5rem 0; border-top: 3px solid var(--tinta); }
.lado { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.tapa {
  background: var(--c); color: var(--t);
  aspect-ratio: 1 / 1; padding: 1rem;
  display: flex; align-items: center; justify-content: center;
  text-align: center; text-wrap: balance;
  font: 900 1.8rem/1 var(--titulo); letter-spacing: -0.02em;
  font-size: clamp(1.4rem, 12cqw, 3rem);
  overflow-wrap: normal; word-break: normal; hyphens: none;
}
.foto { width: 100%; }
.detalle h2 { font: 800 clamp(1.7rem, 4vw, 2.4rem)/1.05 var(--titulo); letter-spacing: -0.02em; margin-bottom: 0; }
.artista { font: 500 1rem var(--titulo); margin: .35rem 0 1.25rem; color: var(--suave); }
.detalle p + p { margin-top: 1rem; }
.veredicto { margin-top: 1.5rem; padding: .9rem 1rem; border-left: 8px solid var(--c); background: #fff; font-style: italic; }
.alt .veredicto { background: var(--fondo); }
@media (min-width: 760px) { .disco { grid-template-columns: 280px 1fr; gap: 2.5rem; } .detalle { max-width: 62ch; } }
#hambre { --c: #e2b93b; --t: #17262b; }  #vaho { --c: #9cc3ba; --t: #17262b; }
#anttonias { --c: #ef6a84; --t: #17262b; }  #carne { --c: #a92a37; --t: #fff; }
#ahora { --c: #f2a65a; --t: #17262b; }  #neumonia { --c: #a7b1e6; --t: #17262b; }
a:link {
  color:dimgray;
}
a:visited {
  color: #a7b1e6;
}
a:hover {
  color: #f2a65a;
}
a:active {
  color: aquamarine;
}

/* ===== Galería ===== */
.galeria { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.galeria figure { border: 3px solid var(--tinta); background: #fff; overflow: hidden; }
.galeria figcaption { padding: .6rem .9rem; font: 500 1rem var(--titulo); }

/* ===== Contacto ===== */
.contacto { display: grid; gap: 2rem; }
.datos { list-style: none; display: grid; gap: .5rem; }
form { display: grid; gap: 1rem; }
label { display: grid; gap: .35rem; font: 600 1rem var(--titulo); }
input, textarea { font: 1.05rem var(--texto); padding: .7rem; border: 3px solid var(--tinta); background: #fff; color: inherit; border-radius: 0; }
textarea { min-height: 140px; resize: vertical; }
.enviar { justify-self: start; }
.mensaje { font-weight: 600; min-height: 1.6em; }
@media (min-width: 800px) { .contacto { grid-template-columns: 1fr 1.2fr; } }

/* ===== Pie ===== */
.pie { background: var(--tinta); color: #fff; padding: 1.75rem 0; font-size: 1rem; }

/* ===== Animaciones ===== */
.tapa, .foto, .galeria figure { transition: transform .3s ease, box-shadow .3s ease; }
.tapa:hover { box-shadow: 8px 8px 0 var(--tinta); }
.foto:hover { transform: translateY(-6px); box-shadow: 0 12px 0 var(--c); }
.galeria figure:hover { transform: translateY(-6px); box-shadow: 0 10px 0 var(--tinta); }
.progreso { position: fixed; top: 0; left: 0; width: 100%; height: 5px; background: #ef6a84; transform: scaleX(0); transform-origin: left; z-index: 30; }
@keyframes desde-izquierda { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes desde-abajo { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.js .disco:not(.visible) .tapa, .js .disco:not(.visible) .foto, .js .disco:not(.visible) .veredicto { opacity: 0; }
.js .disco.visible .tapa { animation: desde-izquierda .7s ease backwards; }
.js .disco.visible .foto { animation: desde-abajo .7s ease .15s backwards; }
.js .disco.visible .veredicto { animation: desde-izquierda .7s ease .35s backwards; }

/* ===== Menos movimiento (debe ir al final) ===== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .progreso { display: none; }
}
