:root {
  --fondo: #ededec;
  --texto: #121212;
  --texto-suave: #5c5c5c;
  --pendiente-bg: #fff3df;
  --pendiente-borde: #e4b566;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: 'Oswald', Arial, sans-serif;
  line-height: 1.5;
}

.agenda {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 32px;
}

.agenda__header {
  margin-bottom: 24px;
}

.agenda__header-img {
  display: block;
  width: 100%;
  height: auto;
}

.agenda__intro {
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--texto);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 24px;
}

/* ---- Selector de vista (por horario / por categoría) + mapa ---- */
.agenda__controles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 24px;
  margin: 0 auto 20px;
}

.agenda__mapa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  height: 48px;
  padding: 0 22px;
  border: 2px solid var(--texto);
  border-radius: 999px;
  background: var(--texto);
  color: #fff;
  transition: opacity 0.15s ease;
}

.agenda__mapa:hover { opacity: 0.8; }

/* Menú arriba del header (página de prensa): mismos botones, pero con
   borde negro, fondo transparente y letra 2pt más chica. */
.agenda__menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin: 0 auto 20px;
}

.agenda__menu .agenda__mapa {
  height: 43px;
  background: transparent;
  color: var(--texto);
  font-size: calc(0.95rem - 2pt);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.agenda__menu .agenda-social .agenda-social__btn {
  width: 43px;
  height: 43px;
  background: transparent;
  border: 2px solid var(--texto);
  transition: background-color 0.15s ease;
}

.agenda__menu .agenda-social__btn svg {
  fill: var(--texto);
  transition: fill 0.15s ease;
}

/* Hover invertido: fondo negro y letra/ícono blancos */
.agenda__menu .agenda__mapa:hover,
.agenda__menu .agenda-social__btn:hover {
  opacity: 1;
  background: var(--texto);
  color: #fff;
}

.agenda__menu .agenda-social__btn:hover svg {
  fill: #fff;
}

/* Redes en la misma fila que los botones (página de prensa) */
.agenda__controles .agenda-social--en-linea,
.agenda__menu .agenda-social--en-linea {
  margin: 0;
  gap: 10px;
}

.agenda-social--en-linea .agenda-social__btn {
  width: 48px;
  height: 48px;
}

.agenda-social--en-linea .agenda-social__btn svg {
  width: 20px;
  height: 20px;
}

.agenda__mapa svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agenda__vista {
  display: flex;
  width: fit-content;
  padding: 3px;
  background: #fff;
  border: 2px solid var(--texto);
  border-radius: 999px;
}

.agenda__vista button {
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--texto);
  cursor: pointer;
}

.agenda__vista button[aria-pressed="true"] {
  background: var(--texto);
  color: #fff;
}

/* ---- Notas de prensa ---- */
.prensa__titulo {
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
  margin: 0 0 24px;
}

.prensa {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nota {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(18, 18, 18, 0.1);
  color: var(--texto);
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.nota:hover {
  box-shadow: 0 4px 14px rgba(18, 18, 18, 0.14);
  transform: translateY(-1px);
}

.nota__media {
  position: relative;
  overflow: hidden;
  flex: 0 0 38%;
  aspect-ratio: 16 / 10;
  background: #595959;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nota__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Imágenes con otra proporción (logos, afiches): enteras, sin recortar */
.nota__media--entera img {
  object-fit: contain;
  padding: 18px;
}

.nota__media--vacia svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nota__texto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
}

.nota__titulo {
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.nota__descripcion {
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--texto);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nota__leer {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--texto-suave);
}

.nota__leer::after { content: " →"; }

@media (max-width: 520px) {
  .nota { flex-direction: column; }
  .nota__media { flex-basis: auto; width: 100%; }
}

/* ---- Redes sociales ---- */
.agenda-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 0 0 32px;
}

.agenda-social__btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--texto);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease;
}

.agenda-social__btn svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.agenda-social__btn:hover {
  opacity: 0.8;
}

/* ---- Footer (participan / apoyan) ---- */
.agenda-footer {
  background: #fff;
}

.agenda-footer::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(
    to right,
    #e3c85d 0%, #e3c85d 12.5%,
    #df9745 12.5%, #df9745 25%,
    #c64436 25%, #c64436 37.5%,
    #a5763e 37.5%, #a5763e 50%,
    #85b859 50%, #85b859 62.5%,
    #6aafce 62.5%, #6aafce 75%,
    #235091 75%, #235091 87.5%,
    #574d8a 87.5%, #574d8a 100%
  );
}

.agenda-footer__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.agenda-footer__img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Categoría (nivel 1) ---- */
.categoria {
  border-radius: 18px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(18, 18, 18, 0.1);
}

.categoria > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 1.02rem;
  color: #fff;
  background: var(--accent);
}

.categoria > summary::-webkit-details-marker { display: none; }

.categoria__titulo-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.categoria__nota {
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.78rem;
  opacity: 0.9;
}

.categoria__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.categoria__count {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.categoria__chevron {
  width: 11px;
  height: 11px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.categoria[open] > summary .categoria__chevron {
  transform: rotate(-135deg);
}

.categoria__body {
  background: #fff;
  padding: 14px 16px 18px;
}

.categoria__vacio {
  color: var(--texto-suave);
  font-style: italic;
  font-weight: 300;
  padding: 6px 4px;
}

/* ---- Item (nivel 2, el "+") ---- */
.item {
  border-radius: 12px;
  margin-bottom: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(18, 18, 18, 0.08);
  transition: background-color 0.15s ease;
}

.item:hover,
.item[open] {
  background: var(--accent-10);
}

.item > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.item > summary::-webkit-details-marker { display: none; }

.item__titulo-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.item__titulo {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--texto);
}

.item__categoria {
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.item__linea2 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.item__subtitulo {
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--texto-suave);
  text-transform: uppercase;
}

.item__horario {
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--accent);
}

.item__toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

.item[open] > summary .item__toggle::before { content: "–"; }
.item__toggle::before { content: "+"; }

.item__body {
  padding: 2px 16px 16px;
  font-family: Arial, sans-serif;
  border-top: 1px solid #ededec;
}

/* ---- Actividad (dentro del item, sin acordeón propio) ---- */
.actividad {
  padding: 12px 0;
  border-top: 1px dashed #e2e2e0;
}

.actividad:first-child {
  border-top: none;
  padding-top: 4px;
}

.actividad__titulo {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--texto);
  margin: 0 0 4px;
}

.actividad__campo {
  margin: 4px 0;
  font-size: 0.88rem;
  color: var(--texto);
}

.actividad__campo strong {
  color: var(--texto);
  font-weight: 700;
}

.actividad__maps {
  display: inline-block;
  margin-left: 6px;
  color: var(--texto);
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.actividad__maps:hover {
  text-decoration-thickness: 2px;
}

.actividad__descripcion p {
  margin: 4px 0;
  font-size: 0.88rem;
  color: var(--texto);
}

.actividad__redes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
}

.actividad__redes a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
}

.actividad__redes a:hover { text-decoration: underline; }

.actividad__pendientes {
  margin-top: 8px;
  background: var(--pendiente-bg);
  border: 1px solid var(--pendiente-borde);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
}

.actividad__pendientes div {
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--texto);
}

.actividad__pendientes ul {
  margin: 0;
  padding-left: 18px;
  color: var(--texto);
}
