@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #9B1B20;
  --primaryHover: #7a1419;
  --primaryLight: #c93035;
  --accent: #9B1B20;
  --accentHover: #7a1419;
  --bg: #FAFAFA;
  --surface: #ffffff;
  --surfaceWarm: #F5F5F5;
  --text: #2D3436;
  --textMuted: #808B96;
  --border: #E8E8E8;
  --borderLight: #F0F0F0;
  --danger: #C0392B;
  --dangerHover: #96281B;
  --sunday: #9B1B20;
  --radiusSm: 8px;
  --radius: 12px;
  --radiusLg: 16px;
  --radiusPill: 24px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadowLg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadowHover: 0 8px 25px rgba(0, 0, 0, 0.1);
}

html {
  font-size: clamp(100%, 0.9rem + 0.3vw, 115%);
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: "Montserrat", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a, button {
  transition: all 0.2s ease;
}

/* Header — top bar */
.siteHeader {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  height: 70px;
  background:
    radial-gradient(ellipse at 0% 100%, rgba(155, 27, 32, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(155, 27, 32, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #f5efeb 0%, #ffffff 100%);
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 10;
  overflow: visible;
  clip-path: none;
  transition: transform 0.3s ease;
}

.siteHeader.headerHidden {
  transform: translateY(-100%);
}

.siteHeader::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), rgba(155, 27, 32, 0.15), transparent);
  pointer-events: none;
  z-index: 9;
}

.sidebarTop {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  border-bottom: none;
  gap: 0.6rem;
  flex-shrink: 0;
}

.logo {
  text-decoration: none;
  margin-bottom: 0;
}

.logoImgWrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logoImg {
  height: 120px;
  width: auto;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.15));
  transition: filter 0.3s, transform 0.3s;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
  position: relative;
  z-index: 11;
  margin-top: 12mm;
}

.logoImg:hover {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.22));
  transform: scale(1.05);
}

.logoText {
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.3px;
  line-height: 1.3;
  text-align: left;
  white-space: nowrap;
  margin-left: 0.5rem;
}

/* Hamburger button — hidden on desktop */
.hamburgerBtn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 4px;
  z-index: 15;
}

.hamburgerLine {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburgerBtn.active .hamburgerLine:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburgerBtn.active .hamburgerLine:nth-child(2) {
  opacity: 0;
}

.hamburgerBtn.active .hamburgerLine:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.headerNav {
  display: flex;
  flex-direction: row;
  gap: 0.25rem;
  padding: 0 0.75rem;
  flex: 1;
  align-items: center;
  justify-content: center;
}

.headerNav a {
  font-family: "Montserrat", sans-serif;
  color: var(--textMuted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  white-space: nowrap;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: transparent;
  border: none;
  overflow: hidden;
}

.headerNav a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(155, 27, 32, 0.4);
}

.headerNav a:hover {
  color: var(--primary);
  background: transparent;
  transform: none;
}

.headerNav a:hover::after {
  width: 60%;
}

.headerNav a:active {
  transform: scale(0.96);
}

.headerNav a.navActive {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(180deg, #c4292e 0%, #901519 100%);
  border-radius: 6px;
  padding: 0.35rem 0.9rem;
  box-shadow:
    0 3px 6px rgba(155, 27, 32, 0.25),
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.headerNav a.navActive::after {
  display: none;
}

.sidebarBottom {
  padding: 0 0.5rem;
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: center;
  flex-shrink: 0;
}

.headerUserRow {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
}

.btnLogoutSmall {
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
}

.headerUser {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  color: var(--textMuted);
  padding: 0.25rem 0.5rem;
  text-align: center;
  white-space: nowrap;
}

/* Notification Bell */
.notifBell {
  position: relative;
  display: flex;
  align-items: center;
}

.notifBellBtn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
  color: var(--textMuted);
  position: relative;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.notifBellBtn:hover {
  color: var(--primary);
}

.notifBadge {
  position: absolute;
  top: 0;
  right: -2px;
  background: var(--primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  font-family: "Montserrat", sans-serif;
}

.notifDropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-height: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadowLg);
  z-index: 200;
  overflow: hidden;
}

.notifDropdown.open {
  display: flex;
  flex-direction: column;
}

.notifDropdownHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--borderLight);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

.notifReadAll {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.notifReadAll:hover {
  text-decoration: underline;
}

.notifList {
  overflow-y: auto;
  max-height: 340px;
}

.notifItem {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--borderLight);
  cursor: pointer;
  transition: background 0.15s;
}

.notifItem:hover {
  background: var(--surfaceWarm);
}

.notifItem:last-child {
  border-bottom: none;
}

.notifItemUnread {
  background: rgba(155,27,32,0.04);
  border-left: 3px solid var(--primary);
}

.notifItemUnread .notifItemMsg {
  font-weight: 500;
}

.notifItemMsg {
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.15rem;
}

.notifItemTime {
  font-size: 0.68rem;
  color: var(--textMuted);
}

.notifEmpty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--textMuted);
  font-size: 0.82rem;
}

.btnLogout {
  font-family: "Montserrat", sans-serif;
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--textMuted);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: transparent;
  border: none;
  position: relative;
}

.btnLogout:hover {
  color: var(--primary);
}

.btnLogout:active {
  transform: scale(0.96);
}

.btnAdmin {
  font-family: "Montserrat", sans-serif;
  color: #fff;
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #c4292e 0%, #901519 100%);
  border: none;
  box-shadow:
    0 3px 6px rgba(155, 27, 32, 0.25),
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btnAdmin:hover,
.btnAdmin.navActive {
  background: linear-gradient(180deg, #d4393e 0%, #a01a1f 100%);
  box-shadow:
    0 5px 12px rgba(155, 27, 32, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
  transform: translateY(-1px);
  color: #fff;
}

.btnAdmin:active {
  transform: translateY(1px);
  box-shadow:
    0 1px 3px rgba(155, 27, 32, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.1) inset;
}

/* Scroll reveal animations */
.scrollReveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scrollRevealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sectionTitle.scrollReveal {
  transform: translateX(-20px);
  opacity: 0;
}

.sectionTitle.scrollRevealed {
  transform: translateX(0);
  opacity: 1;
}

.homeEventCard.scrollReveal { transition-delay: 0s; }
.homeEventCard.scrollReveal:nth-child(2) { transition-delay: 0.07s; }
.homeEventCard.scrollReveal:nth-child(3) { transition-delay: 0.14s; }
.homeEventCard.scrollReveal:nth-child(4) { transition-delay: 0.21s; }

.newsCard.scrollReveal { transition-delay: 0s; }
.newsCard.scrollReveal:nth-child(2) { transition-delay: 0.07s; }
.newsCard.scrollReveal:nth-child(3) { transition-delay: 0.14s; }

.homeEventsFooter.scrollReveal { transition-delay: 0.15s; }

.footerCol.scrollReveal { transition-delay: 0s; }
.footerCol.scrollReveal:nth-child(2) { transition-delay: 0.07s; }
.footerCol.scrollReveal:nth-child(3) { transition-delay: 0.14s; }
.footerCol.scrollReveal:nth-child(4) { transition-delay: 0.21s; }

/* Footer */
.siteFooter {
  margin-top: auto;
  padding: 2.5rem 2.5rem 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  border-top: none;
  background: var(--text);
  color: rgba(255,255,255,0.7);
  position: relative;
}

.siteFooter::before {
  content: "";
  position: absolute;
  top: -1.5mm;
  left: 0;
  right: 0;
  height: 3mm;
  background: radial-gradient(circle closest-side, var(--primary) 99%, transparent 100%) 0 center / 3mm 3mm repeat-x;
  pointer-events: none;
}

.footerGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.footerCol {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footerLogoImg {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.footerBottom {
  max-width: 1120px;
  margin: 1.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}

.footerTitle {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footerNav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footerNav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footerNav a:hover {
  color: #ffffff;
}

.footerContact {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.footerSocial {
  display: flex;
  gap: 0.75rem;
}

.footerSocialLink {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
}

.footerSocialLink:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Social popup */
.socialPopupOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.socialPopup {
  background: var(--surface);
  border-radius: var(--radiusLg);
  box-shadow: var(--shadowLg);
  min-width: 280px;
  max-width: 360px;
  width: 90vw;
  overflow: hidden;
}

.socialPopupHeader {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.socialPopupIcon {
  display: flex;
  color: var(--primary);
}

.socialPopupClose {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--textMuted);
  line-height: 1;
  padding: 0 0.2rem;
}

.socialPopupClose:hover {
  color: var(--text);
}

.socialPopupList {
  display: flex;
  flex-direction: column;
}

.socialPopupItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  border-bottom: 1px solid var(--borderLight);
  transition: background 0.15s;
}

.socialPopupItem:last-child {
  border-bottom: none;
}

.socialPopupItem:hover {
  background: var(--surfaceWarm);
  color: var(--primary);
}

.socialPopupItemArrow {
  color: var(--textMuted);
  font-size: 0.85rem;
}

/* Admin social groups */
.socialGroup {
  margin-bottom: 1rem;
}

.socialGroupHeader {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  color: var(--text);
}

.socialGroupIcon {
  display: flex;
  color: var(--primary);
}

/* Main content */
.mainContent {
  margin-top: calc(70px + 1.5rem);
  padding: 1.5rem clamp(0.75rem, 3vw, 2.5rem);
  flex: 1;
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mainContent > * {
  width: 100%;
  max-width: 1120px;
}

.mainContent > .adminLayout {
  max-width: none;
}

/* When admin layout is active, let it fill the width naturally */
.mainContent:has(.adminLayout) {
  padding: 0;
  margin-top: 70px;
  align-items: stretch;
}

.mainContent:has(.adminLayout) > .adminLayout {
  max-width: none;
}

.calendarToast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radiusPill);
  font-size: 0.88rem;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: var(--shadowLg);
  max-width: 90vw;
  text-align: center;
}

.calendarToastVisible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Calendar layout — desktop: calendar left + event list right */
.calendarLayout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  max-width: 1120px;
  margin: 0 auto;
}

.calendarMain {
  flex: 1;
  min-width: 0;
}

/* Auth modal */
.authOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.authBox {
  background: var(--surface);
  border-radius: var(--radiusLg);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadowLg);
  border-top: 3px solid var(--primary);
}

.authBox h2 {
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: var(--text);
}

.authBox input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
}

.authBox input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(155, 27, 32, 0.08);
}

.authBox .btnPrimary {
  width: 100%;
  margin-top: 0.25rem;
}

.authToggle {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--textMuted);
}

.authToggle a {
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}

.authError {
  color: var(--danger);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  min-height: 1.2em;
}

/* Buttons */
.btnPrimary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.3px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(155, 27, 32, 0.2);
}

.btnPrimary:hover {
  background: var(--primaryHover);
  box-shadow: 0 4px 12px rgba(155, 27, 32, 0.3);
  transform: translateY(-1px);
}

.btnAccent {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(155, 27, 32, 0.2);
}

.btnAccent:hover {
  background: var(--accentHover);
  transform: translateY(-1px);
}

.btnDanger {
  background: var(--danger);
  color: #fff;
  border: none;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.btnDanger:hover {
  background: var(--dangerHover);
}

.btnRevert {
  background: none;
  border: 1.5px solid #e67e22;
  color: #e67e22;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  white-space: nowrap;
}

.btnRevert:hover {
  background: #e67e22;
  color: #fff;
}

.btnRevert:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btnSecondary {
  background: var(--surface);
  border: 1.5px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s;
}

.btnSecondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(155, 27, 32, 0.04);
}

/* Calendar header */
.calendarHeader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto 1.25rem;
  background:
    radial-gradient(ellipse at 0% 100%, rgba(155, 27, 32, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(155, 27, 32, 0.04) 0%, transparent 50%),
    #ffffff;
  padding: 1.75rem 2rem;
  border-radius: var(--radiusLg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.calendarHeader::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), rgba(155, 27, 32, 0.15), transparent);
  pointer-events: none;
}

.calendarHeader h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  min-width: 250px;
  text-align: center;
  letter-spacing: -0.3px;
}

.calendarNav {
  background: var(--bg);
  border: 1.5px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--textMuted);
  transition: all 0.2s;
}

.calendarNav:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(155, 27, 32, 0.05);
}

/* Calendar grid */
.calendarGrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radiusLg);
  overflow: hidden;
  box-shadow: var(--shadow);
  table-layout: fixed;
}

.calendarDayName {
  background: #ffffff;
  color: var(--textMuted);
  padding: 0.6rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.calendarDayName.sunday {
  color: var(--primary);
}

.calendarDay {
  background: var(--surface);
  min-height: 80px;
  padding: 0.4rem;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
  overflow: hidden;
}

.calendarDay:hover {
  background: #F8F8F8;
}

.calendarDay.otherMonth {
  color: #CCD1D1;
  background: #FCFCFC;
}

.calendarDay.today {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
  background: rgba(155, 27, 32, 0.03);
}

.calendarDay.sundayCol {
  background: #FEFAFA;
}

.calendarDay.sundayCol.otherMonth {
  background: #FCFCFC;
}

.dayNumber {
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: inherit;
}

.sundayCol .dayNumber {
  color: var(--sunday);
}

.dayEvent {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 3px;
  margin-bottom: 2px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  cursor: pointer;
  line-height: 1.4;
}

.dayEventDot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 2px;
}

/* Side panel — events list */
.eventsSidebar {
  width: 300px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radiusLg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sidebarHeader {
  background:
    radial-gradient(ellipse at 0% 100%, rgba(155, 27, 32, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(155, 27, 32, 0.04) 0%, transparent 50%),
    #ffffff;
  color: var(--text);
  border-bottom: none;
  padding: 0.75rem 1rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebarHeader::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), rgba(155, 27, 32, 0.15), transparent);
  pointer-events: none;
}

.sidebarList {
  max-height: 480px;
  overflow-y: auto;
}

.sidebarEmpty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--textMuted);
  font-size: 0.85rem;
  font-style: italic;
}

.sidebarEventItem {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--borderLight);
  cursor: pointer;
  transition: background 0.15s;
  border-left: 4px solid transparent;
}

.sidebarEventItem:last-child {
  border-bottom: none;
}

.sidebarEventItem:hover {
  background: var(--surfaceWarm);
}

.sidebarEventDate {
  font-size: 0.72rem;
  color: var(--textMuted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 0.15rem;
}

.sidebarEventTitle {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.sidebarEventDesc {
  font-size: 0.75rem;
  color: var(--textMuted);
  margin-top: 0.1rem;
}

/* Event modal */
.eventOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.eventModal {
  background: var(--surface);
  border-radius: var(--radiusLg);
  padding: 1.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadowLg);
  border-top: 3px solid var(--primary);
}

.eventModalWide {
  max-width: 780px;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radiusLg);
  border-top: 3px solid var(--primary);
}

.eventModalHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background:
    radial-gradient(ellipse at 0% 100%, rgba(155, 27, 32, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(155, 27, 32, 0.04) 0%, transparent 50%),
    #ffffff;
  border-bottom: none;
  position: relative;
}

.eventModalHeader::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), rgba(155, 27, 32, 0.15), transparent);
  pointer-events: none;
}

.eventModalHeader h3 {
  color: var(--text);
  margin: 0;
  font-size: 0.95rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

.btnModalClose {
  background: none;
  border: none;
  color: var(--textMuted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
  transition: color 0.2s;
}

.btnModalClose:hover {
  color: var(--primary);
}

.eventModalBody {
  display: flex;
  min-height: 350px;
}

.eventModalLeft {
  flex: 1;
  padding: 1.25rem;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  max-height: 450px;
  background: var(--bg);
}

.eventModalLeftFull {
  border-right: none;
}

.eventModalLeft h4,
.eventModalRight h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  padding-left: 0;
  border-left: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.75rem;
  color: var(--textMuted);
}

.eventModalRight {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  max-height: 450px;
}

.eventModal h3 {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
}

.eventModal label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--textMuted);
}

.eventModal input,
.eventModal textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
}

.eventModal textarea {
  resize: vertical;
  min-height: 60px;
}

.eventModal input:focus,
.eventModal textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(155, 27, 32, 0.08);
}

.modalActions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

/* Form elements */
.formSelect {
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--surface);
  cursor: pointer;
}

.formSelect:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(155, 27, 32, 0.08);
}

.formRow {
  display: flex;
  gap: 0.75rem;
}

.formGroup {
  flex: 1;
}

.formGroup input {
  width: 100%;
}

/* Day events list in modal */
.dayEventsList {
  margin-bottom: 1rem;
}

.dayEventItem {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--borderLight);
  font-size: 0.85rem;
  gap: 0.5rem;
  border-left: 4px solid transparent;
  border-radius: 4px;
  margin-bottom: 0.25rem;
}

.dayEventItem:last-child {
  border-bottom: none;
}

.dayEventInfo {
  flex: 1;
  line-height: 1.5;
}

.dayEventDotInline {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.dayEventTypeBadge {
  display: inline-block;
  font-size: 0.65rem;
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
}

.dayEventTimeLabel {
  font-size: 0.75rem;
  color: var(--textMuted);
  margin-left: 6px;
}

.dayEventActions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
  padding-top: 0.1rem;
}

/* Sidebar extended */
.sidebarEventMeta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}

.sidebarEventDot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sidebarEventTime {
  font-size: 0.75rem;
  color: var(--textMuted);
  font-weight: 500;
  margin-top: 0.1rem;
}

.sidebarEventType {
  font-size: 0.72rem;
  font-weight: 600;
}

.dayEventMore {
  font-weight: 500;
  font-style: italic;
}

/* Important events */
.dayEventImportant {
  box-shadow: 0 0 6px rgba(155, 27, 32, 0.15);
  font-weight: 700;
}

.sidebarEventImportant {
  background: rgba(155, 27, 32, 0.06);
  border-left: 3px solid var(--accent);
}

.sidebarEventStar {
  color: var(--accent);
  font-size: 0.8rem;
}

/* Checkbox label */
.checkboxLabel {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.checkboxLabel input[type="checkbox"] {
  width: auto;
  margin-bottom: 0;
  cursor: pointer;
}

/* Export button */
.btnExport {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btnExport:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.exportMenu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 50;
  min-width: 160px;
  overflow: hidden;
}

.exportMenuItem {
  display: block;
  width: 100%;
  padding: 0.55rem 0.85rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.78rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}

.exportMenuItem:hover {
  background: var(--surfaceWarm);
  color: var(--primary);
}

.exportMenuItem + .exportMenuItem {
  border-top: 1px solid var(--border);
}

.exportPickerOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exportPickerBox {
  background: var(--surface);
  border-radius: var(--radiusLg);
  padding: 1.5rem;
  min-width: 300px;
  max-width: 90vw;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.exportPickerTitle {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.exportPickerLabel {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--textMuted);
  display: block;
  margin-bottom: 0.4rem;
}

.exportPickerInput {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
}

.exportPickerInput:focus {
  outline: none;
  border-color: var(--primary);
}

.exportPickerHint {
  font-size: 0.72rem;
  color: var(--textMuted);
  margin-top: 0.35rem;
  font-style: italic;
}

.exportPickerActions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

/* Admin user form */
.adminUserForm {
  margin-top: 0.5rem;
}

.adminFormRow {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.adminFormRow input[type="text"],
.adminFormRow input[type="email"],
.adminFormRow input[type="password"] {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-family: inherit;
  flex: 1;
}

.adminFormRow input:focus {
  outline: none;
  border-color: var(--primary);
}

.dayEventRecBadge {
  display: inline-block;
  font-size: 0.6rem;
  background: var(--surfaceWarm);
  color: var(--textMuted);
  border: 1px solid var(--border);
  padding: 0 5px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
}

/* Admin panel */
#adminContent {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

.authOverlayInline {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
  min-height: 50vh;
}

/* Admin Layout — Sidebar + Main */
.adminLayout {
  display: flex;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 70px - 3rem);
}

.adminSidebar {
  width: 220px;
  min-width: 220px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Hide scrollbar but keep scroll functionality */
.adminSidebar::-webkit-scrollbar { width: 0; }
.adminSidebar { scrollbar-width: none; }

.adminSidebarHeader {
  padding: 1rem 1.1rem 0.8rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex-shrink: 0;
}

.adminSidebarTitle {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.3px;
}

.adminSidebarRole {
  font-size: 0.68rem;
  color: var(--textMuted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.adminSidebarNav {
  display: flex;
  flex-direction: column;
  padding: 0.4rem 0;
  gap: 1px;
}

.adminSidebarBtn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  color: var(--textMuted);
  font-size: 0.78rem;
  font-family: inherit;
  font-weight: 450;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  border-left: 3px solid transparent;
  position: relative;
  white-space: nowrap;
}

.adminSidebarBtn:hover {
  background: var(--surfaceWarm);
  color: var(--text);
}

.adminSidebarBtn.active {
  background: rgba(155,27,32,0.06);
  color: var(--primary);
  font-weight: 550;
  border-left-color: var(--primary);
}

.adminSidebarBtn .pendingBadge {
  margin-left: auto;
}

.adminSidebarIcon {
  font-size: 0.9rem;
  width: 1.2rem;
  text-align: center;
  flex-shrink: 0;
}

.adminSidebarToggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radiusSm);
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 1rem;
  width: fit-content;
}

.adminMain {
  flex: 1;
  min-width: 0;
  padding: 1.25rem 1.5rem;
}

/* Old tab styles kept for backwards compat */
.adminTabs {
  display: none;
}

.adminTab {
  display: none;
}

.adminTabContent {
  display: none;
}

.adminTabContent.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.adminTabContent > .adminCard {
  width: 100%;
}

/* Manual de usuario */
.manualCard {
  max-width: 800px;
}

.manualTitle {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.manualSubtitle {
  color: var(--textMuted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--borderLight);
}

.manualSection {
  margin-bottom: 1.5rem;
}

.manualSection h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.manualSection h3::before {
  content: "";
  width: 4px;
  height: 1em;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.manualSection p {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.manualSection ul,
.manualSection ol {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.manualSection li {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text);
}

.manualSection a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

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

.manualTable {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  font-size: 0.92rem;
}

.manualTable th,
.manualTable td {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
}

.manualTable thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
}

.manualTable tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.03);
}

.manualTable tbody td:nth-child(2),
.manualTable tbody td:nth-child(3) {
  text-align: center;
}

.adminCard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radiusLg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.adminCard h3 {
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.adminCard h4 {
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.adminTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.adminTable th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--border);
  color: var(--textMuted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.adminTable td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--borderLight);
  vertical-align: middle;
}

.adminTable tbody tr {
  transition: background 0.15s;
}

.adminTable tbody tr:hover {
  background: var(--surfaceWarm);
}

.adminTable tr:last-child td {
  border-bottom: none;
}

.bulkActions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surfaceWarm);
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.bulkCount {
  font-size: 0.85rem;
  color: var(--textLight);
  font-weight: 500;
}

.btnBulkApprove,
.btnBulkReject {
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
}

.pendingCheckbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary);
}

#selectAllPending {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary);
}

.colorSwatch {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  vertical-align: middle;
  border: 1px solid var(--border);
}

.adminInlineForm {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.adminInlineForm input[type="text"] {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-family: inherit;
  flex: 1;
}

.adminInlineForm input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
}

.adminInlineForm input[type="color"] {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2px;
  cursor: pointer;
}

.roleBadge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
}

.roleBadgeuser {
  background: #eaf2f8;
  color: #2874a6;
}

.roleBadgeadmin {
  background: rgba(155, 27, 32, 0.06);
  color: var(--primary);
}

.roleSelect {
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
}

.adminMuted {
  font-size: 0.8rem;
  color: var(--textMuted);
  font-style: italic;
}

.adminEmpty {
  color: var(--textMuted);
  font-style: italic;
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

/* Audit log */
.auditFilters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.auditFilterSelect {
  width: auto;
  min-width: 160px;
  margin-bottom: 0;
}

.auditTable td {
  font-size: 0.78rem;
}

.auditDate {
  white-space: nowrap;
  color: var(--textMuted);
  font-size: 0.75rem;
}

.auditDetail {
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.73rem;
  color: var(--textMuted);
}

.auditIp {
  font-size: 0.72rem;
  color: var(--textMuted);
  font-family: monospace;
}

.auditActionBadge {
  display: inline-block;
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
  background: #eaf2f8;
  color: #2874a6;
  white-space: nowrap;
}

.auditActionFailed {
  background: #fdedec;
  color: var(--danger);
}

.auditActionDanger {
  background: #fef3e0;
  color: #ca6f1e;
}

.auditActionSuccess {
  background: #eafaf1;
  color: #1e8449;
}

.auditPagination {
  display: flex;
  gap: 0.25rem;
  margin-top: 1rem;
  justify-content: center;
}

.auditPageBtn {
  background: none;
  border: 1px solid var(--border);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
}

.auditPageBtn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.auditPageBtn:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}

/* Pending events */
.dayEventPending {
  opacity: 0.75;
  font-style: italic;
}

.sidebarEventPending {
  opacity: 0.7;
  border-left: 3px dashed var(--accent);
  background: var(--bg);
}

.sidebarPendingBadge {
  display: inline-block;
  font-size: 0.6rem;
  background: rgba(155, 27, 32, 0.06);
  color: var(--danger);
  border: 1px solid var(--danger);
  padding: 0 5px;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.dayEventPendingBadge {
  display: inline-block;
  font-size: 0.65rem;
  background: rgba(155, 27, 32, 0.06);
  color: var(--danger);
  border: 1px solid var(--danger);
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
  font-weight: 600;
}

.dayEventItemPending {
  opacity: 0.75;
  border-left: 3px dashed var(--accent);
  padding-left: calc(0.5rem - 3px);
}

/* Approval buttons */
.btnApprove {
  background: #1e8449;
  color: #fff;
  border: none;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.btnApprove:hover {
  background: #196f3d;
}

.btnReject {
  background: var(--danger);
  color: #fff;
  border: none;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.btnReject:hover {
  background: var(--dangerHover);
}

/* Pending count badge */
.pendingBadge {
  display: inline-block;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 9px;
  margin-left: 0.35rem;
  vertical-align: middle;
}

/* Contact page — palette: #B32025, #F8F9FA, #343A40, var(--border) */
.contactPage {
  max-width: 1120px;
  margin: 0 auto;
}

.contactHero {
  background:
    radial-gradient(ellipse at 0% 100%, rgba(155, 27, 32, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(155, 27, 32, 0.04) 0%, transparent 50%),
    #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radiusLg);
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contactHero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), rgba(155, 27, 32, 0.15), transparent);
  pointer-events: none;
}

.contactHeroContent {
  position: relative;
}

.contactHero h1 {
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.3px;
}

.contactHero p {
  color: var(--textMuted);
  font-size: 0.95rem;
  font-weight: 400;
}

.contactLayout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* Left column — info */
.contactInfo {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contactInfoMain {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radiusLg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.contactInfoMain .contactInfoIcon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--primary);
  border: 2px solid var(--border);
  border-radius: 50%;
  line-height: 1;
}

.contactInfoMain h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.contactInfoMain p {
  font-size: 0.82rem;
  color: var(--text);
  opacity: 0.65;
}

.contactInfoGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.contactInfoCard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radiusLg);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
}

.contactInfoCard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadowHover);
}

.contactInfoCardIcon {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 50%;
  line-height: 1;
}

.contactInfoCard h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.contactInfoCard p {
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.5;
}

/* Right column — form */
.contactFormWrap {
  flex: 1;
}

.contactFormCard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radiusLg);
  padding: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contactFormHeader {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}

.contactFormHeader h3 {
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.contactFormHeader p {
  font-size: 0.8rem;
  color: var(--text);
  opacity: 0.6;
}

.contactFormCard form {
  padding: 1.25rem 1.5rem 1.5rem;
}

.contactFormGroup {
  margin-bottom: 0.85rem;
}

.contactFormGroup label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.contactRequired {
  color: var(--primary);
}

.contactFormGroup input,
.contactFormGroup textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.contactFormGroup input::placeholder,
.contactFormGroup textarea::placeholder {
  color: var(--text);
  opacity: 0.4;
}

.contactFormGroup input:focus,
.contactFormGroup textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(155, 27, 32, 0.08);
  background: #fff;
}

.contactFormGroup textarea {
  resize: vertical;
  min-height: 110px;
}

.contactSubmitBtn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.25rem;
  box-shadow: 0 2px 8px rgba(155, 27, 32, 0.2);
  letter-spacing: 0.3px;
}

.contactSubmitBtn:hover {
  background: var(--primaryHover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(155, 27, 32, 0.3);
}

.contactSubmitBtn:active {
  transform: translateY(0);
}

.contactSuccess {
  background: #eafaf1;
  color: #1e8449;
  border: 1px solid #a9dfbf;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  margin: 0 1.5rem 0.5rem;
}

.contactFormCard .authError {
  margin: 0 1.5rem;
}

/* Admin contact messages */
.contactMessageItem {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: background 0.15s;
}

.contactMessageUnread {
  background: #fef9f0;
  border-left: 3px solid #ca6f1e;
}

.contactMessageHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  gap: 0.5rem;
}

.contactMessageFrom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.contactMessageFrom strong {
  font-size: 0.9rem;
}

.contactMessageEmail {
  font-size: 0.78rem;
  color: var(--textMuted);
}

.contactMessageNewBadge {
  display: inline-block;
  font-size: 0.6rem;
  background: #ca6f1e;
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
}

.contactMessageDate {
  font-size: 0.72rem;
  color: var(--textMuted);
  white-space: nowrap;
}

.contactMessageSubject {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.contactMessageBody {
  font-size: 0.82rem;
  color: var(--textMuted);
  line-height: 1.5;
  white-space: pre-wrap;
  margin-bottom: 0.5rem;
}

.contactMessageActions {
  display: flex;
  gap: 0.35rem;
}

/* Cronograma badge */
.cronogramaBadge,
.sidebarCronogramaBadge {
  display: inline-block;
  font-size: 0.6rem;
  background: #eaf2f8;
  color: #2874a6;
  border: 1px solid #aed6f1;
  padding: 0 5px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
  font-weight: 600;
  cursor: pointer;
}

.sidebarCronogramaBadge {
  margin-top: 0.2rem;
  font-size: 0.65rem;
}

.dayEventCronoIcon {
  font-size: 0.6rem;
  opacity: 0.85;
}

.btnCronograma {
  background: #2874a6;
  color: #fff;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  font-size: 0.72rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: background 0.2s;
}

.btnCronograma:hover {
  background: #1a5276;
}

/* Cronograma timeline */
.cronogramaTimeline {
  position: relative;
  padding-left: 12px;
  margin-top: 0.5rem;
}

.cronogramaTimeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.cronogramaTimelineItem {
  display: flex;
  gap: 0.6rem;
  padding: 0.4rem 0;
  position: relative;
}

.cronogramaTimelineTime {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.3;
}

.cronogramaTimeEnd {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--textMuted);
}

.cronogramaTimelineDot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
  position: relative;
  z-index: 1;
}

.cronogramaTimelineContent {
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.4;
}

.cronogramaTimelineContent strong {
  color: var(--text);
}

.cronogramaTimelineContent p {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--textMuted);
}

/* Cronograma editor */
.cronogramaEditor {
  margin-top: 0.5rem;
}

.cronogramaEditorItem {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.cronogramaEditorRow {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.cronogramaInputTime {
  width: 90px !important;
  padding: 0.3rem 0.4rem !important;
  font-size: 0.82rem !important;
  margin-bottom: 0 !important;
}

.cronogramaTimeSep {
  font-size: 0.78rem;
  color: var(--textMuted);
}

.cronogramaInputTitle {
  width: 100% !important;
  padding: 0.35rem 0.5rem !important;
  font-size: 0.85rem !important;
  margin-bottom: 0.25rem !important;
  font-weight: 500;
}

.cronogramaInputDesc {
  width: 100% !important;
  padding: 0.3rem 0.5rem !important;
  font-size: 0.78rem !important;
  margin-bottom: 0 !important;
  color: var(--textMuted);
}

.cronogramaRemoveBtn {
  padding: 0.2rem 0.5rem !important;
  font-size: 1rem !important;
  line-height: 1;
  flex-shrink: 0;
}

.cronogramaItemSaved {
  font-size: 0.65rem;
  color: #1e8449;
  margin-top: 0.2rem;
}

.cronogramaItemNew {
  font-size: 0.65rem;
  color: #2874a6;
  margin-top: 0.2rem;
}

.cronogramaAddBtn {
  width: 100%;
  margin-bottom: 0.5rem;
  font-size: 0.82rem !important;
  padding: 0.45rem !important;
}

.cronogramaSaveAllBtn {
  width: 100%;
  font-size: 0.82rem !important;
  padding: 0.45rem !important;
}

.cronogramaLoading {
  font-size: 0.85rem;
  color: var(--textMuted);
  font-style: italic;
  padding: 1rem 0;
}

.cronogramaExportBtns {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.cronogramaExportBtns .btnSecondary,
.cronogramaExportBtns .btnPrimary {
  font-size: 0.72rem;
  padding: 0.3rem 0.6rem;
}

/* Admin novedades */
.adminNovedadForm {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.adminNovedadForm input[type="text"],
.adminNovedadForm textarea {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-family: inherit;
  width: 100%;
}

.adminNovedadForm textarea {
  resize: vertical;
}

.adminNovedadForm input:focus,
.adminNovedadForm textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.adminNovedadForm .btnPrimary {
  align-self: flex-start;
}

#novedadEditorPanel {
  margin-top: 1rem;
  width: 100%;
}

#novedadEditorPanel h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

#novedadEditorPanel h4 {
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.novedadEditorMedia {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.novedadThumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.novedadThumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.novedadThumbRemove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  padding: 0;
  line-height: 1;
}

.novedadVideoItem {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--borderLight);
}

.novedadVideoLink {
  flex: 1;
  font-size: 0.82rem;
  color: var(--primary);
  word-break: break-all;
}

.novedadUploadArea {
  margin-top: 0.75rem;
}

.novedadUploadBtn {
  cursor: pointer;
  display: inline-block;
}

/* Sector badge */
.sectorBadge {
  display: inline-block;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 600;
  background: #eaf2f8;
  color: #2874a6;
  white-space: nowrap;
}

/* Galeria editor in admin */
#galeriaEditorPanel {
  margin-top: 1rem;
  width: 100%;
}

#galeriaEditorPanel h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

#galeriaEditorPanel h4 {
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

/* ========== HOME PAGE ========== */

/* Content wrapper for index page */
.homeContent {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

/* Hero Slider */
.heroSlider {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: var(--radiusLg);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
}

.heroSlides {
  position: relative;
  width: 100%;
  height: 100%;
}

.heroSlide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  background: linear-gradient(135deg, #FAFAFA 0%, #F0F0F0 50%, #E8E8E8 100%);
}

.heroSlide.active {
  opacity: 1;
  z-index: 1;
}

.heroSlideOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.2) 100%);
  pointer-events: none;
}

.heroSlideContent {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2.5rem;
  max-width: 600px;
}

.heroSlideContent h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.heroSlideContent p {
  font-size: 1.05rem;
  color: var(--textMuted);
  margin-bottom: 1.5rem;
  font-weight: 400;
  line-height: 1.6;
}

.heroSlideOverlayDark {
  background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 100%);
}

.heroSlideContentImage h1 {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.heroSlideContentImage p {
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.heroBtn {
  display: inline-block;
  text-decoration: none;
  padding: 0.75rem 2rem;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  border-radius: var(--radius);
}

.heroArrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.2s;
  opacity: 0.7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.heroArrow:hover {
  color: var(--primary);
  background: #ffffff;
  opacity: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.heroArrowPrev { left: 1rem; }
.heroArrowNext { right: 1rem; }

.heroDots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.heroDot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.heroDot.active {
  background: var(--primary);
}

/* Section titles */
.homeSection {
  margin-bottom: 3rem;
}

.sectionTitle {
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding: 0;
  background: none;
  border-left: none;
  border-radius: 0;
  letter-spacing: -0.3px;
  position: relative;
  padding-bottom: 0.75rem;
}

.sectionTitle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* News grid */
.newsGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.newsGridEmpty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--textMuted);
  font-size: 0.9rem;
  font-style: italic;
}

.newsCard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radiusLg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
}

.newsCard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadowHover);
}

.newsCardImg {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: #F5F5F5;
}

.newsCardImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.newsCardImgIcon {
  font-size: 3rem;
  opacity: 0.5;
}

.newsCardBody {
  padding: 1rem 1.15rem 1.25rem;
}

.newsCardDate {
  font-size: 0.7rem;
  color: var(--textMuted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.newsCardBody h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin: 0.35rem 0 0.5rem;
  line-height: 1.3;
}

.newsCardBody p {
  font-size: 0.82rem;
  color: var(--textMuted);
  line-height: 1.6;
}

.newsCardLink {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

/* Novedad detail page */
.novedadDetailContainer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
}

.novedadDetailBack {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  color: var(--textMuted);
  text-decoration: none;
  margin-bottom: 1.25rem;
  font-weight: 500;
  transition: all 0.2s;
}

.novedadDetailBack:hover {
  color: var(--primary);
  transform: translateX(-3px);
}

.novedadDetailArticle {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radiusLg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.novedadDetailHeader {
  background:
    radial-gradient(ellipse at 0% 100%, rgba(155, 27, 32, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(155, 27, 32, 0.04) 0%, transparent 50%),
    #ffffff;
  padding: 2rem 2rem;
  border-bottom: none;
  position: relative;
}

.novedadDetailHeader::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), rgba(155, 27, 32, 0.15), transparent);
  pointer-events: none;
}

.novedadDetailHeader h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
  letter-spacing: -0.3px;
}

.novedadDetailMeta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.novedadDetailDate {
  font-size: 0.8rem;
  color: var(--textMuted);
  font-weight: 500;
}

.novedadDetailSector {
  display: inline-block;
  font-size: 0.72rem;
  padding: 2px 10px;
  border-radius: 3px;
  font-weight: 600;
  background: #fff;
  color: #2874a6;
}

.novedadDetailGallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
  padding: 1.5rem;
}

.novedadDetailImgWrap {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  transition: transform 0.2s, box-shadow 0.2s;
}

.novedadDetailImgWrap:hover {
  transform: scale(1.02);
  box-shadow: var(--shadowLg);
}

.novedadDetailImgWrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.novedadDetailBody {
  padding: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}

.novedadDetailBody p {
  margin-bottom: 1rem;
}

.novedadDetailBody p:last-child {
  margin-bottom: 0;
}

.novedadDetailVideos {
  padding: 0 1.5rem 1.5rem;
  display: grid;
  gap: 1rem;
}

.novedadDetailVideo {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
}

.novedadDetailVideo iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.novedadDetailLoading,
.novedadDetailEmpty {
  text-align: center;
  padding: 3rem;
  color: var(--textMuted);
  font-size: 0.95rem;
}

/* Reflexiones grid */
.reflexionesGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.reflexionesGridEmpty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--textMuted);
  font-size: 0.9rem;
  font-style: italic;
}

.reflexionCard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radiusLg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.reflexionCard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadowHover);
}

.reflexionCardImg {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F5F5F5;
  overflow: hidden;
}

.reflexionCardImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reflexionCardIcon {
  font-size: 3rem;
  opacity: 0.4;
}

.reflexionCardBody {
  padding: 1rem 1.15rem 1.25rem;
}

.reflexionCardDate {
  font-size: 0.7rem;
  color: var(--textMuted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reflexionCardAuthor {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  margin-left: 0.5rem;
}

.reflexionCardBody h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0.35rem 0 0.5rem;
  line-height: 1.3;
}

.reflexionCardBody p {
  font-size: 0.82rem;
  color: var(--textMuted);
  line-height: 1.6;
}

/* Reflexion detail image */
.reflexionDetailImage {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
}

.reflexionDetailImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Reflexiones page — index + reader layout */
.reflexionesLayout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  max-width: 1120px;
  margin: 0 auto;
}

.reflexionesSidebar {
  width: 320px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radiusLg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.reflexionesSidebarHeader {
  background:
    radial-gradient(ellipse at 0% 100%, rgba(155, 27, 32, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(155, 27, 32, 0.04) 0%, transparent 50%),
    #ffffff;
  color: var(--text);
  padding: 0.75rem 1rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.reflexionesSidebarList {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.reflexionesSidebarEmpty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--textMuted);
  font-size: 0.85rem;
  font-style: italic;
}

.reflexionSidebarItem {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--borderLight);
  transition: all 0.2s ease;
}

.reflexionSidebarItem:hover {
  background: rgba(155, 27, 32, 0.04);
}

.reflexionSidebarItem:last-child {
  border-bottom: none;
}

.reflexionSidebarItemActive {
  border-left-color: var(--primary);
  background: rgba(155, 27, 32, 0.06);
}

.reflexionSidebarTitle {
  font-family: "Montserrat", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.reflexionSidebarItemActive .reflexionSidebarTitle {
  color: var(--primary);
}

.reflexionSidebarMeta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
}

.reflexionSidebarDate {
  color: var(--textMuted);
}

.reflexionSidebarAuthor {
  color: var(--primary);
  font-weight: 600;
}

.reflexionesMain {
  flex: 1;
  min-width: 0;
}

.reflexionReaderEmpty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--textMuted);
  font-size: 0.95rem;
  font-style: italic;
}

.reflexionReader {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radiusLg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.reflexionReaderImage {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
}

.reflexionReaderImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reflexionReaderContent {
  padding: 1.5rem 2rem 2rem;
}

.reflexionReaderTitle {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.reflexionReaderMeta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--borderLight);
}

.reflexionReaderDate {
  font-size: 0.8rem;
  color: var(--textMuted);
  font-weight: 500;
}

.reflexionReaderAuthor {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}

.reflexionReaderBody {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
}

.reflexionReaderBody p {
  margin-bottom: 1rem;
}

.reflexionReaderBody p:last-child {
  margin-bottom: 0;
}

/* Toggle switch */
.settingsToggleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--borderLight);
}

.settingsToggleRow:last-child {
  border-bottom: none;
}

.settingsToggleLabel {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.toggleSwitch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.toggleSwitch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggleSlider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  border-radius: 26px;
  transition: 0.3s;
}

.toggleSlider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggleSwitch input:checked + .toggleSlider {
  background: var(--primary);
}

.toggleSwitch input:checked + .toggleSlider::before {
  transform: translateX(22px);
}

/* Lightbox */
.lightboxOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightboxImg {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 4px;
}

.lightboxClose {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
}

.lightboxNav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  z-index: 1001;
  transition: background 0.2s;
}

.lightboxNav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightboxPrev {
  left: 1rem;
}

.lightboxNext {
  right: 1rem;
}

/* Home events */
.homeSectionEvents {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 3.5rem 2.5rem;
  margin-bottom: 3rem;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(155,27,32,0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(180,60,50,0.2) 0%, transparent 45%),
    radial-gradient(ellipse at 60% 80%, rgba(140,30,35,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 30%, rgba(200,80,70,0.12) 0%, transparent 40%),
    radial-gradient(ellipse at 90% 70%, rgba(155,27,32,0.15) 0%, transparent 45%),
    linear-gradient(135deg, #f2dede 0%, #e8c4c4 30%, #dbb0b0 60%, #d4a0a0 100%);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.parallaxBg {
  display: none;
}

.parallaxOverlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.75);
  z-index: 1;
}

.parallaxContent {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
}

.homeEvents {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.homeEventsLoading,
.homeEventsEmpty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--textMuted);
  font-size: 0.9rem;
  font-style: italic;
}

.homeEventCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radiusLg);
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
}

.homeEventCard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadowHover);
}

.homeEventDate {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  padding: 0.5rem 0.6rem;
  background: rgba(155, 27, 32, 0.06);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.homeEventDay {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.homeEventMonth {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
}

.homeEventDayName {
  font-size: 0.65rem;
  color: var(--textMuted);
  text-transform: capitalize;
}

.homeEventInfo h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.homeEventBadge {
  display: inline-block;
  font-size: 0.65rem;
  color: #fff;
  padding: 1px 7px;
  border-radius: 3px;
  font-weight: 600;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.homeEventTime {
  font-size: 0.78rem;
  color: var(--textMuted);
  vertical-align: middle;
}

.homeEventDesc {
  font-size: 0.78rem;
  color: var(--textMuted);
  margin-top: 0.2rem;
  line-height: 1.4;
}

.homeEventsFooter {
  margin-top: 1rem;
  text-align: center;
}

/* Gallery tabs */
.galleryTabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.galleryTab {
  background: var(--bg);
  border: 1.5px solid var(--border);
  padding: 0.5rem 1.25rem;
  font-size: 0.82rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  color: var(--textMuted);
  cursor: pointer;
  border-radius: var(--radiusPill);
  transition: all 0.2s;
}

.galleryTab:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.galleryTab.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
}

.galleryPane {
  display: none;
}

.galleryPane.active {
  display: block;
}

.galleryGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.galleryItem {
  border-radius: var(--radiusLg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
  aspect-ratio: 4 / 3;
}

.galleryItem:hover {
  transform: scale(1.03);
  box-shadow: var(--shadowHover);
}

.galleryItem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.galleryPlaceholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--textMuted);
  background: #FAFAFA;
  border-radius: var(--radiusLg);
  border: 2px dashed var(--border);
}

.galleryPlaceholder span {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.galleryPlaceholder p {
  font-size: 0.88rem;
  font-style: italic;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightboxBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.lightboxContent {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightboxContent img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.lightboxClose {
  position: absolute;
  top: -12px;
  right: -12px;
  background: var(--surface);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.lightboxClose:hover {
  background: rgba(155, 27, 32, 0.06);
  color: var(--primary);
  border-color: var(--primary);
}

.lightbox .lightboxNav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 210;
  transition: background 0.2s;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox .lightboxNav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox .lightboxPrev {
  left: -60px;
}

.lightbox .lightboxNext {
  right: -60px;
}

.lightboxCounter {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .lightbox .lightboxPrev {
    left: 8px;
  }
  .lightbox .lightboxNext {
    right: 8px;
  }
  .lightbox .lightboxNav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    padding: 0.5rem;
  }
}

/* Responsive — tablet and below */
@media (max-width: 1060px) {
  .contactLayout {
    flex-direction: column;
  }

  .contactInfoGrid {
    grid-template-columns: 1fr 1fr;
  }

  .contactHero {
    padding: 2rem 1.5rem;
  }

  .newsGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reflexionesGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .homeEvents {
    grid-template-columns: repeat(3, 1fr);
  }

  .galleryGrid {
    grid-template-columns: repeat(3, 1fr);
  }

  .heroSlider {
    height: 320px;
  }

  .novedadEditorMedia {
    grid-template-columns: repeat(3, 1fr);
  }

  .heroSlideContent h1 {
    font-size: 1.7rem;
  }

  .calendarLayout {
    flex-direction: column;
  }

  .eventsSidebar {
    width: 100%;
  }

  .sidebarList {
    max-height: 300px;
  }

  .calendarDay {
    min-height: 60px;
  }

  .reflexionesSidebar {
    width: 280px;
  }
}

/* Responsive — small laptops */
@media (max-width: 1280px) {
  .siteHeader {
    padding: 0 1.25rem;
  }

  .logoImg {
    height: 100px;
    margin-top: 8mm;
  }

  .logoText {
    font-size: 1.25rem;
  }

  .adminSidebar {
    width: 200px;
    min-width: 200px;
  }

  .adminSidebarBtn {
    font-size: 0.76rem;
    padding: 0.45rem 0.9rem;
  }

  .footerGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive — mobile */
@media (max-width: 768px) {
  /* Top bar — mobile adjustments */
  .siteHeader {
    position: relative;
    height: auto;
    padding: 0.75rem 0.75rem;
    flex-wrap: wrap;
    z-index: 100;
  }

  .siteHeader::after {
    bottom: 0;
    height: 3px;
  }

  .sidebarTop {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }

  .logoImg {
    height: 100px;
    margin-top: 0;
  }

  .logoText {
    font-size: 1.45rem;
    margin-left: 0;
    text-align: center;
  }

  .hamburgerBtn {
    display: flex;
    position: absolute;
    right: 1rem;
    top: 1rem;
  }

  .sidebarBottom {
    display: none;
  }

  .headerNav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--border);
    z-index: 20;
    gap: 0;
  }

  .headerNav.open {
    display: flex;
  }

  .headerNav a,
  .headerNav .btnLogout,
  .headerNav .btnAdmin {
    font-size: 0.85rem;
    padding: 0.65rem 1.25rem;
    width: 100%;
    color: var(--text);
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--borderLight);
    background: transparent;
    box-shadow: none;
    text-align: left;
    letter-spacing: 0.8px;
    position: relative;
  }

  .headerNav a::after {
    bottom: 6px;
    left: 1.25rem;
    transform: none;
  }

  .headerNav a:hover::after {
    width: 40%;
  }

  .headerNav a:hover,
  .headerNav .btnLogout:hover,
  .headerNav .btnAdmin:hover {
    background: rgba(155, 27, 32, 0.04);
    color: var(--primary);
    transform: none;
    box-shadow: none;
  }

  .headerNav a.navActive {
    color: var(--primary);
    background: rgba(155, 27, 32, 0.06);
    border-radius: 0;
    border-bottom: 1px solid var(--borderLight);
    box-shadow: none;
    text-shadow: none;
    font-weight: 700;
  }

  .headerNav a.navActive::after {
    display: block;
    width: 40%;
    bottom: 6px;
    left: 1.25rem;
    transform: none;
  }

  .headerNav .btnAdmin {
    background: linear-gradient(180deg, #c4292e 0%, #901519 100%);
    color: #fff;
    border-radius: 6px;
    margin: 0.5rem 0.75rem;
    width: auto;
    text-align: center;
    border-bottom: none;
    box-shadow: 0 3px 6px rgba(155, 27, 32, 0.25), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
  }

  /* Show user/logout inside mobile nav */
  .headerNav .headerUser,
  .headerNav .btnLogout {
    display: block;
  }

  .mainContent {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0;
    align-items: center;
  }

  .mainContent > * {
    max-width: 100%;
  }

  /* Notification bell mobile */
  .notifDropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 60vh;
    border-radius: var(--radiusLg) var(--radiusLg) 0 0;
  }

  .notifBell {
    position: static;
  }

  .authBox {
    margin: 0 auto;
    max-width: 90vw;
  }

  .authOverlayInline {
    padding: 2rem 0.75rem;
  }

  .heroSlider {
    height: 260px;
    border-radius: 0;
  }

  .heroSlideContent h1 {
    font-size: 1.3rem;
  }

  .heroSlideContent p {
    font-size: 0.9rem;
  }

  .homeSection {
    padding: 0 1mm;
  }

  .homeSectionEvents {
    padding: 2rem 1rem;
    background-attachment: scroll;
  }

  .homeEvents {
    grid-template-columns: 1fr;
  }

  .newsGrid {
    grid-template-columns: 1fr;
  }

  .reflexionesGrid {
    grid-template-columns: 1fr;
  }

  .reflexionesLayout {
    flex-direction: column;
  }

  .reflexionesSidebar {
    width: 100%;
  }

  .reflexionesSidebarList {
    max-height: 240px;
  }

  .reflexionReaderContent {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .reflexionReaderTitle {
    font-size: 1.3rem;
  }

  .novedadEditorMedia {
    grid-template-columns: repeat(2, 1fr);
  }

  .galleryGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .galleryTabs {
    flex-wrap: wrap;
  }

  .galleryTab {
    font-size: 0.82rem;
    padding: 0.5rem 0.85rem;
  }

  .siteFooter {
    padding: 2rem 1rem 1.5rem;
  }

  .footerGrid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  /* Contact page */
  .contactInfoGrid {
    grid-template-columns: 1fr;
  }

  .contactHero {
    padding: 1.5rem 1rem;
    border-radius: 0;
    margin-bottom: 1rem;
    border-left: none;
    border-right: none;
  }

  .contactHero h1 {
    font-size: 1.3rem;
  }

  .contactFormCard {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .contactFormCard form {
    padding: 1rem;
  }

  .contactPage {
    padding: 0;
  }

  .contactFormHeader {
    padding: 1rem;
  }

  .calendarLayout {
    gap: 0;
    padding: 0;
  }

  .calendarMain {
    width: 100%;
  }

  .calendarHeader {
    padding: 1rem 0.75rem 1.25rem;
    border-radius: 0;
    gap: 0.75rem;
    margin: 0;
    border-left: none;
    border-right: none;
  }

  .calendarHeader h2 {
    font-size: 1.1rem;
    min-width: auto;
  }

  .calendarNav {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .calendarGrid {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .calendarDayName {
    padding: 0.35rem 0.15rem;
    font-size: 0.65rem;
    letter-spacing: 0;
  }

  .calendarDay {
    min-height: 48px;
    padding: 0.2rem;
  }

  .dayNumber {
    font-size: 0.72rem;
    text-align: center;
    margin-bottom: 0.15rem;
  }

  .dayEvent {
    font-size: 0;
    padding: 0;
    margin-bottom: 1px;
    height: 5px;
    border-radius: 2px;
    border-left-width: 0 !important;
  }

  .dayEventDot {
    display: none;
  }

  .dayEventCronoIcon {
    display: none;
  }

  .dayEventMore {
    font-size: 0.55rem;
    font-style: normal;
  }

  .dayEventRecBadge,
  .dayEventPendingBadge {
    display: none;
  }

  .eventsSidebar {
    border-radius: 0;
    border-left: none;
    border-right: none;
    width: 100%;
  }

  .sidebarHeader {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem 0.65rem;
  }

  .sidebarList {
    max-height: 280px;
  }

  /* Modal */
  .eventModalBody {
    flex-direction: column;
  }

  .eventModalLeft {
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 220px;
  }

  .eventModalRight {
    max-height: 300px;
  }

  .eventModalWide {
    margin: 0.5rem;
    max-width: calc(100vw - 1rem);
    border-radius: 10px;
  }

  .eventModal {
    margin: 0.5rem;
    padding: 1rem;
    max-width: calc(100vw - 1rem);
  }

  .eventModal h3 {
    font-size: 0.95rem;
  }

  .eventModal label {
    font-size: 0.8rem;
  }

  .eventModal input,
  .eventModal textarea {
    font-size: 0.85rem;
    padding: 0.45rem 0.6rem;
  }

  .modalActions {
    flex-wrap: wrap;
  }

  .dayEventActions {
    flex-wrap: wrap;
  }

  .dayEventItem {
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
  }

  .dayEventTypeBadge {
    font-size: 0.6rem;
    padding: 1px 4px;
  }

  .dayEventTimeLabel {
    font-size: 0.7rem;
    margin-left: 4px;
  }

  /* Novedad detail responsive */
  .novedadDetailContainer {
    padding: 0;
  }

  .novedadDetailBack {
    margin: 0 0.75rem 0.5rem;
    display: inline-block;
  }

  .novedadDetailArticle {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .novedadDetailHeader {
    padding: 1rem;
  }

  .novedadDetailHeader h1 {
    font-size: 1.15rem;
  }

  .novedadDetailGallery {
    grid-template-columns: repeat(2, 1fr);
    padding: 0.5rem;
    gap: 0.35rem;
  }

  .novedadDetailImgWrap {
    aspect-ratio: 1/1;
  }

  .novedadDetailBody {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .novedadDetailVideos {
    padding: 0 0.5rem 1rem;
  }

  /* Admin panel responsive */
  #adminContent {
    padding: 0 1mm;
  }

  .adminLayout {
    flex-direction: column;
  }

  .adminSidebar {
    width: 250px;
    min-width: 250px;
    position: fixed;
    top: 0;
    left: -260px;
    height: 100vh;
    border-right: 1px solid var(--border);
    z-index: 100;
    transition: left 0.25s ease;
    box-shadow: var(--shadowLg);
  }

  .adminSidebar.open {
    left: 0;
  }

  .adminSidebarToggle {
    display: inline-flex;
  }

  .adminMain {
    padding: 0.75rem;
  }

  .mainContent:has(.adminLayout) {
    margin-top: 0;
    padding: 0;
  }

  .adminCard {
    padding: 0.75rem;
    border-radius: var(--radiusSm);
  }

  .adminCard h3 {
    font-size: 0.95rem;
  }

  .adminCard h4 {
    font-size: 0.85rem;
  }

  .adminTable {
    font-size: 0.75rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .adminTable th,
  .adminTable td {
    padding: 0.4rem 0.5rem;
    white-space: nowrap;
  }

  .adminInlineForm {
    flex-wrap: wrap;
  }

  .adminInlineForm input[type="text"] {
    font-size: 0.8rem;
    min-width: 0;
    flex: 1 1 150px;
  }

  .adminFormRow {
    flex-direction: column;
    gap: 0.4rem;
  }

  .adminFormRow input[type="text"],
  .adminFormRow input[type="email"],
  .adminFormRow input[type="password"] {
    width: 100%;
    font-size: 0.8rem;
  }

  .adminNovedadForm input[type="text"],
  .adminNovedadForm textarea,
  .adminNovedadForm .formSelect {
    font-size: 0.8rem;
  }

  .novedadEditorMedia {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .novedadThumb img {
    height: 80px;
  }

  .btnPrimary,
  .btnSecondary,
  .btnDanger {
    font-size: 0.78rem;
    padding: 0.4rem 0.75rem;
  }

  .auditFilters {
    gap: 0.35rem;
  }

  .auditFilterSelect {
    font-size: 0.78rem;
    padding: 0.35rem 0.5rem;
  }

  .auditDate {
    font-size: 0.7rem;
  }

  .pendingBadge {
    font-size: 0.6rem;
  }

  .sectorBadge {
    font-size: 0.6rem;
    padding: 1px 6px;
  }

  #galeriaEditorPanel {
    padding: 0.75rem;
  }
}

/* Responsive — small phones */
@media (max-width: 480px) {
  .logoImg {
    height: 75px;
  }

  .logoText {
    font-size: 1.15rem;
  }

  .heroSlider {
    height: 200px;
  }

  .heroSlideContent h1 {
    font-size: 1.1rem;
  }

  .calendarDayName {
    font-size: 0.6rem;
  }

  .calendarDay {
    min-height: 40px;
  }

  .dayNumber {
    font-size: 0.65rem;
  }

  .footerGrid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .adminSidebar {
    width: 100%;
    min-width: 100%;
    left: -105%;
  }

  .adminSidebar.open {
    left: 0;
  }
}

/* Reflexion verses blockquote */
.reflexionVerse {
  position: relative;
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem 1.25rem 2rem;
  border-left: 4px solid var(--primary);
  background: var(--surfaceWarm);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--textLight);
  white-space: pre-line;
}

.reflexionShareBar {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--borderLight);
}

.reflexionVerse::before {
  content: "\201C";
  position: absolute;
  top: -0.15rem;
  left: 0.4rem;
  font-size: 2.5rem;
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  opacity: 0.4;
  line-height: 1;
}
