/* Estilos dedicados para la Página de Calendario (según redelae-calendario.html) */

/* Barra de Año y Meses Sticky */
.yearbar {
  position: sticky;
  top: 66px;
  z-index: 40;
  background: rgba(255, 248, 251, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linea, rgba(28, 14, 46, .14));
  padding: .9rem 0;
  transition: top .2s ease;
}

body.admin-bar .yearbar {
  top: calc(66px + 32px);
}
@media screen and (max-width: 782px) {
  body.admin-bar .yearbar {
    top: calc(66px + 46px);
  }
}

.yearbar-in {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.yr-sel {
  display: flex;
  gap: .4rem;
  align-items: center;
}

.yr-sel .y {
  font-family: var(--serif, "Instrument Serif", Georgia, serif);
  font-size: 1.8rem;
  color: var(--tinta, #1C0E2E);
  padding: 0 .4rem;
  min-width: 4.5rem;
  text-align: center;
  line-height: 1;
}

.yr-sel .chip {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border-radius: 50%;
  border: 1px solid var(--linea, rgba(28, 14, 46, .14));
  background: #fff;
  color: var(--tinta, #1C0E2E);
  cursor: pointer;
  transition: all .15s ease;
}
.yr-sel .chip:hover:not(:disabled) {
  background: var(--papel-2, #F4E8F0);
  border-color: var(--magenta, #E2005D);
  color: var(--magenta, #E2005D);
}
.yr-sel .chip:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.meses {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.meses .chip {
  font-size: .82rem;
  border: 1px solid var(--linea, rgba(28, 14, 46, .14));
  background: #fff;
  color: #453a52;
  padding: .38rem .85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
  font-weight: 500;
}
.meses .chip:hover {
  border-color: var(--magenta, #E2005D);
  color: var(--magenta, #E2005D);
}
.meses .chip.on {
  background: var(--tinta, #1C0E2E);
  color: #fff;
  border-color: var(--tinta, #1C0E2E);
  font-weight: 600;
}

/* Sección Agenda */
.agenda {
  padding: clamp(2rem, 5vh, 3.2rem) 0 5rem;
}
.agenda .note {
  font-size: .84rem;
  color: #9a8aa2;
  font-style: italic;
  margin-bottom: 1.8rem;
}

.month {
  margin-bottom: 2.4rem;
}
.month h2 {
  font-family: var(--serif, "Instrument Serif", Georgia, serif);
  font-size: 1.75rem;
  font-weight: 400;
  border-bottom: 2px solid var(--tinta, #1C0E2E);
  padding-bottom: .45rem;
  margin-bottom: .2rem;
  display: flex;
  gap: .6rem;
  align-items: baseline;
  color: var(--tinta, #1C0E2E);
}
.month h2 .yr {
  font-size: .95rem;
  color: var(--magenta, #E2005D);
  font-weight: 700;
  font-family: var(--sans, "Archivo", sans-serif);
}

/* Filas de eventos / miembros */
.ev {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--linea, rgba(28, 14, 46, .14));
  text-decoration: none;
  color: inherit;
  transition: background .15s ease, padding .15s ease;
}
.ev:first-of-type {
  border-top: 0;
}
.ev:hover {
  background: rgba(226, 0, 93, 0.02);
}

.ev .logo {
  width: 72px;
  height: 48px;
  border: 1px solid var(--linea, rgba(28, 14, 46, .14));
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
}
.ev .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.ev .logo .logo-placeholder {
  font-family: var(--serif, "Instrument Serif", Georgia, serif);
  font-size: 1.6rem;
  color: #b8adc4;
}

.ev .mid {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.ev .mid h3 {
  font-family: var(--serif, "Instrument Serif", Georgia, serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--tinta, #1C0E2E);
  margin: 0;
  transition: color .15s ease;
}
.ev:hover .mid h3 {
  color: var(--magenta, #E2005D);
}

.ev .mid .loc {
  font-size: .82rem;
  color: #8a85a0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.ev .mid .loc .dates-pill {
  color: var(--magenta, #E2005D);
  font-weight: 600;
  background: rgba(226, 0, 93, 0.07);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: .78rem;
}

.ev .go {
  font-size: .82rem;
  font-weight: 700;
  color: var(--magenta, #E2005D);
  white-space: nowrap;
  transition: transform .15s ease;
}
.ev:hover .go {
  transform: translateX(4px);
}

/* Empty state */
.empty-cal {
  text-align: center;
  padding: 3.5rem 1rem;
  color: #8a85a0;
  font-size: 1.05rem;
  background: #fff;
  border-radius: 16px;
  border: 1px dashed var(--linea, rgba(28, 14, 46, .14));
}

@media(max-width: 860px) {
  .meses {
    margin-left: 0;
    width: 100%;
  }
}
@media(max-width: 600px) {
  .ev {
    grid-template-columns: auto 1fr;
    gap: .8rem;
  }
  .ev .go {
    display: none;
  }
}
