/* ===== RECONOCIMIENTOS · ORGULLO CAMACHISTA ===== */
:root {
  --azul: #1a3a5c;
  --azul-osc: #13304d;
  --rojo: #c0392b;
  --tinta: #1f2933;
  --gris: #5b6670;
  --linea: #e1e5ea;
  --fondo: #f3f4f6;
  --papel: #fbfaf7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  font-family: 'Open Sans', sans-serif; color: var(--tinta);
  background: #dfe5ec url('../489339954_2844385799080509_8779621726153970281_n.jpg') center / cover no-repeat fixed;
  min-height: 100vh; display: flex; flex-direction: column;
}
h1, h2, h3, .tab, .chip, .btn, .anio { font-family: 'Montserrat', sans-serif; }
button { font: inherit; }
:focus-visible { outline: 3px solid #f1c40f; outline-offset: 2px; }

.rec {
  max-width: 1200px; width: calc(100% - 48px); margin: 30px auto 40px;
  background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
.rec-in { padding: 0 48px; }

/* ---------- INTRO ---------- */
.intro { padding-top: 46px; padding-bottom: 34px; }
.intro h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 900; color: var(--azul); line-height: 1.05; }
.intro p { margin-top: 12px; color: var(--gris); font-size: 1.03rem; line-height: 1.65; max-width: 64ch; }

/* ---------- DOCUMENTO DESTACADO (1933) ---------- */
.destacado {
  background: var(--azul); color: #fff;
  display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 40px; align-items: center;
  padding: 40px 48px;
}
.destacado-img {
  display: block; border: none; padding: 10px; background: #fff; cursor: zoom-in;
  box-shadow: 0 14px 30px rgba(0,0,0,.35); transform: rotate(-1.2deg); transition: transform .2s;
}
.destacado-img:hover { transform: rotate(0deg) scale(1.01); }
.destacado-img img { width: 100%; display: block; }
.destacado .anio { font-size: clamp(3.4rem, 9vw, 6rem); font-weight: 900; line-height: .9; color: rgba(255,255,255,.18); }
.destacado h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 900; line-height: 1.2; margin-top: -10px; }
.destacado .por { margin-top: 6px; color: rgba(255,255,255,.72); font-size: .9rem; }
.destacado p.desc { margin-top: 14px; line-height: 1.7; color: rgba(255,255,255,.88); max-width: 60ch; }
.destacado .cita {
  margin-top: 18px; padding-left: 16px; border-left: 3px solid var(--rojo);
  font-style: italic; color: #fff; line-height: 1.6; max-width: 56ch;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; cursor: pointer;
  background: var(--rojo); color: #fff; border: none; border-radius: 8px; text-decoration: none;
  font-size: .82rem; font-weight: 800; padding: 11px 22px; transition: background .15s;
}
.btn:hover { background: #a93226; }
.btn.claro { background: #fff; color: var(--azul); }
.btn.claro:hover { background: #e8eef5; }

/* ---------- PESTAÑAS ---------- */
.tabs-wrap { border-bottom: 1px solid var(--linea); position: sticky; top: 68px; z-index: 5; background: #fff; }
.tabs { display: flex; gap: 4px; overflow-x: auto; }
.tab {
  background: none; border: none; cursor: pointer; white-space: nowrap;
  padding: 18px 18px 15px; font-size: .92rem; font-weight: 800; color: var(--gris);
  border-bottom: 3px solid transparent; transition: color .15s, border-color .15s;
}
.tab small { font-weight: 600; color: #98a2ad; margin-left: 4px; }
.tab:hover { color: var(--azul); }
.tab[aria-selected="true"] { color: var(--azul); border-bottom-color: var(--rojo); }

.panel { padding-top: 34px; padding-bottom: 50px; }
.panel-intro { color: var(--gris); line-height: 1.6; max-width: 66ch; margin-bottom: 20px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  border: 1px solid #cfd6de; background: #fff; color: var(--tinta); border-radius: 20px; cursor: pointer;
  padding: 7px 14px; font-size: .78rem; font-weight: 700; transition: all .15s;
}
.chip:hover { border-color: var(--azul); }
.chip[aria-pressed="true"] { background: var(--azul); border-color: var(--azul); color: #fff; }

/* ---------- LÍNEA DE TIEMPO DE PREMIOS ---------- */
.linea { position: relative; }
.linea::before { content: ''; position: absolute; left: 104px; top: 6px; bottom: 6px; width: 2px; background: var(--linea); }
.hito { display: grid; grid-template-columns: 90px 30px 1fr; gap: 0; margin-bottom: 26px; }
.hito .anio { font-size: 1.7rem; font-weight: 900; color: var(--azul); text-align: right; line-height: 1; padding-top: 18px; }
.hito .anio.repetido { visibility: hidden; }
.hito .anio.sin { font-size: .8rem; color: var(--gris); padding-top: 24px; }
.hito .punto { position: relative; }
.hito .punto::after {
  content: ''; position: absolute; left: 8px; top: 22px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--rojo);
}
.premio {
  display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: start;
  border: 1px solid var(--linea); border-radius: 14px; padding: 16px; background: #fff;
}
.premio-img {
  border: none; padding: 0; background: var(--fondo); border-radius: 8px; overflow: hidden; cursor: zoom-in;
  aspect-ratio: 4 / 3; display: block; width: 100%;
}
.premio-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.premio-img:hover img { transform: scale(1.04); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--azul); background: #e8eef5; padding: 3px 10px; border-radius: 12px; }
.premio h3 { font-size: 1.1rem; font-weight: 800; margin: 8px 0 4px; line-height: 1.3; }
.premio .por { font-size: .84rem; color: var(--gris); }
.premio .fecha { font-size: .8rem; color: #8592a0; margin-top: 2px; }
.premio p.desc { margin-top: 10px; line-height: 1.6; font-size: .93rem; color: #3d4852; }
.enlace {
  background: none; border: none; color: var(--rojo); font-weight: 800; font-size: .8rem; cursor: pointer;
  padding: 0; margin-top: 12px; font-family: 'Montserrat', sans-serif;
}
.enlace:hover { text-decoration: underline; }

/* ---------- MEMORIA CAMACHISTA ---------- */
.grupo { margin-bottom: 40px; }
.grupo h3 { font-size: 1.15rem; font-weight: 900; color: var(--azul); margin-bottom: 4px; }
.grupo .nota { font-size: .86rem; color: var(--gris); margin-bottom: 16px; }
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }

/* Foto con borde de copia impresa, como las del álbum */
.foto {
  border: none; background: #fff; padding: 9px 9px 12px; cursor: zoom-in; text-align: left;
  box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 8px 18px rgba(0,0,0,.08); border-radius: 3px;
  transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
}
.foto:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(0,0,0,.1), 0 14px 28px rgba(0,0,0,.12); }
.foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #eee; }
.foto strong { display: block; font-family: 'Montserrat', sans-serif; font-size: .88rem; margin-top: 10px; line-height: 1.3; }
.foto small { display: block; font-size: .76rem; color: var(--gris); margin-top: 2px; }
.foto .reconoces { margin-top: 6px; font-size: .72rem; font-weight: 700; color: var(--rojo); }

/* Ayer y hoy: deslizador para comparar */
.galeria.comparar { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.comparacion { background: #fff; padding: 9px 9px 12px; box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 8px 18px rgba(0,0,0,.08); border-radius: 3px; }
.comp-marco { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; user-select: none; }
.comp-marco img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.comp-marco .despues { clip-path: inset(0 0 0 var(--pos, 50%)); }
.comp-linea { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.4); pointer-events: none; }
.comp-linea::after {
  content: '‹ ›'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--azul);
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.comp-et { position: absolute; top: 10px; padding: 3px 9px; border-radius: 4px; font-size: .7rem; font-weight: 800; color: #fff; background: rgba(0,0,0,.6); font-family: 'Montserrat', sans-serif; pointer-events: none; }
.comp-et.izq { left: 10px; } .comp-et.der { right: 10px; }
.comp-marco input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0;
}
.comp-marco input[type="range"]:focus-visible + .comp-linea::after { outline: 3px solid #f1c40f; }
.comparacion .pie { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-top: 10px; }
.comparacion strong { font-family: 'Montserrat', sans-serif; font-size: .9rem; }
.comparacion p { font-size: .8rem; color: var(--gris); margin-top: 3px; line-height: 1.45; }

.ayuda-memoria {
  margin-top: 10px; background: var(--fondo); border-radius: 14px; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.ayuda-memoria strong { font-family: 'Montserrat', sans-serif; color: var(--azul); }
.ayuda-memoria p { color: var(--gris); font-size: .9rem; margin-top: 3px; }
.ayuda-memoria .btn { margin-top: 0; }

/* ---------- HIMNO ---------- */
.himno-cab { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.himno h2 { font-size: 1.7rem; font-weight: 900; color: var(--azul); line-height: 1.2; }
.creditos { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin-top: 16px; font-size: .95rem; }
.creditos dt { color: var(--gris); }
.creditos dd { font-weight: 700; }
.himno .nota { margin-top: 18px; padding: 14px 18px; background: var(--papel); border-left: 3px solid var(--rojo); border-radius: 0 8px 8px 0; line-height: 1.6; font-size: .92rem; color: #3d4852; }
.letra { white-space: pre-line; line-height: 1.9; font-size: 1.02rem; color: #2d3742; }
.letra-pendiente { color: var(--gris); font-style: italic; }
.himno h3 { font-size: 1.05rem; font-weight: 900; color: var(--azul); margin: 34px 0 12px; }

.video-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: none; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: #000; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; display: block; }
.video-facade .play { position: absolute; inset: 0; margin: auto; width: 72px; height: 50px; border-radius: 12px; background: var(--rojo); }
.video-facade .play::after { content: ''; position: absolute; left: 30px; top: 14px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; display: block; }

.partituras-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.partituras-cab p { color: var(--gris); font-size: .92rem; line-height: 1.6; max-width: 60ch; }
.partituras-cab .btn { margin-top: 0; }
.familia { margin-top: 22px; }
.familia h4 { font-family: 'Montserrat', sans-serif; font-size: .85rem; color: var(--gris); margin-bottom: 10px; }
.hojas { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.hoja { border: 1px solid var(--linea); background: #fff; padding: 6px 6px 10px; cursor: zoom-in; border-radius: 4px; text-align: center; transition: box-shadow .2s, transform .2s; }
.hoja:hover { box-shadow: 0 8px 18px rgba(0,0,0,.12); transform: translateY(-2px); }
.hoja img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; display: block; }
.hoja span { display: block; margin-top: 8px; font-size: .78rem; font-weight: 700; font-family: 'Montserrat', sans-serif; }

/* ---------- VISOR (ventana para ampliar) ---------- */
.visor {
  border: none; padding: 0; width: min(1100px, 96vw); max-height: 94vh; margin: auto;
  border-radius: 14px; overflow: hidden; background: #111; color: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.visor::backdrop { background: rgba(8, 14, 22, .85); }
.visor[open] { display: grid; grid-template-columns: 1fr 340px; }
.visor-img { position: relative; display: flex; align-items: center; justify-content: center; min-height: 60vh; max-height: 94vh; overflow: auto; background: #0b0b0b; }
.visor-img img { max-width: 100%; max-height: 94vh; display: block; cursor: zoom-in; }
.visor-img.zoom { align-items: flex-start; justify-content: flex-start; }
.visor-img.zoom img { max-width: none; max-height: none; width: 200%; cursor: zoom-out; }
.visor-info { background: #fff; color: var(--tinta); padding: 26px 24px; overflow-y: auto; max-height: 94vh; }
.visor-info .badge { margin-bottom: 8px; }
.visor-info h3 { font-family: 'Montserrat', sans-serif; font-size: 1.15rem; font-weight: 900; line-height: 1.3; }
.visor-info .meta { font-size: .84rem; color: var(--gris); margin-top: 6px; line-height: 1.5; }
.visor-info .desc { margin-top: 14px; line-height: 1.65; font-size: .92rem; color: #3d4852; }
.visor-info details { margin-top: 16px; border-top: 1px solid var(--linea); padding-top: 12px; }
.visor-info summary { cursor: pointer; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: .85rem; color: var(--azul); }
.visor-info .trans { white-space: pre-line; font-size: .85rem; line-height: 1.6; margin-top: 10px; color: #333; background: var(--papel); padding: 12px 14px; border-radius: 8px; }
.visor-info .aviso-trans { font-size: .72rem; color: #8592a0; margin-top: 6px; }
.visor-miniaturas { display: flex; gap: 8px; margin-top: 14px; }
.visor-miniaturas button { border: 2px solid transparent; padding: 0; background: none; cursor: pointer; border-radius: 4px; overflow: hidden; }
.visor-miniaturas button[aria-current="true"] { border-color: var(--rojo); }
.visor-miniaturas img { width: 64px; height: 48px; object-fit: cover; display: block; }
.visor-reconoces { margin-top: 18px; background: #fdf3f2; border-radius: 10px; padding: 12px 14px; font-size: .85rem; line-height: 1.5; }
.visor-reconoces a { color: var(--rojo); font-weight: 800; }
.visor-cerrar, .visor-nav {
  position: absolute; z-index: 2; border: none; cursor: pointer; color: #fff; background: rgba(0,0,0,.55);
  width: 42px; height: 42px; border-radius: 50%; font-size: 1.3rem; line-height: 1;
}
.visor-cerrar { top: 12px; right: 12px; }
.visor-nav { top: 50%; transform: translateY(-50%); }
.visor-nav.ant { left: 12px; } .visor-nav.sig { right: 12px; }
.visor-cerrar:hover, .visor-nav:hover { background: rgba(0,0,0,.8); }
.visor-ayuda { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); font-size: .72rem; color: rgba(255,255,255,.6); pointer-events: none; }

footer { margin-top: auto; background: var(--azul-osc); color: rgba(255,255,255,.65); text-align: center; padding: 14px; font-family: 'Montserrat', sans-serif; font-size: 11.5px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .destacado { grid-template-columns: 1fr; gap: 24px; padding: 30px 24px; }
  .destacado-img { max-width: 300px; margin: 0 auto; }
  .himno-cab { grid-template-columns: 1fr; gap: 26px; }
  .visor[open] { grid-template-columns: 1fr; overflow-y: auto; }
  .visor-img { min-height: 45vh; max-height: 60vh; }
  .visor-img img { max-height: 60vh; }
  .visor-info { max-height: none; }
}
@media (max-width: 700px) {
  .rec { width: calc(100% - 20px); margin: 10px auto 24px; border-radius: 14px; }
  .rec-in { padding: 0 18px; }
  .linea::before { left: 9px; }
  .hito { grid-template-columns: 30px 1fr; }
  .hito .anio { grid-column: 2; text-align: left; padding: 0 0 8px; font-size: 1.4rem; }
  .hito .anio.repetido { display: none; }
  .hito .punto { grid-row: 1; grid-column: 1; }
  .hito .punto::after { left: 2px; top: 6px; }
  .hito .premio { grid-column: 2; }
  .premio { grid-template-columns: 1fr; }
  .tabs-wrap { top: 0; }
  .galeria.comparar { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .destacado-img { transform: none; }
}
