.calendario { 
    background: var(--cal-bg, #fdfaf5); 
    padding: 60px 0;
}

.calendario .section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.calendario .section-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.calendario .section-label {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cal-label, #1eb660);
    margin-bottom: 8px;
}

.calendario .section-title {
    font-family: 'Barlow', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--cal-title, #0d3d2b);
    line-height: 1.1;
}

.months-scroll {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.months-scroll::-webkit-scrollbar { display: none; }

.month-selector-mobile {
  display: none;
  margin-bottom: 24px;
}
.month-selector-mobile select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid #eeeeee;
  background-color: #ffffff;
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--cal-accent, #0d3d2b);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230d3d2b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .months-scroll { display: none; }
  .month-selector-mobile { display: block; }
  
  .calendario .section-title { font-size: 28px; }
  .events-panel-header { padding: 16px 20px; }
  .event-item { 
    padding: 16px 20px; 
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
  }
  .event-day-box { width: 44px; height: 44px; border-radius: 10px; }
  .event-day-num { font-size: 16px; }
  .event-name { font-size: 15px; }
}

.month-tab {
  flex-shrink: 0;
  padding: 10px 22px;
  border-radius: 100px;
  border: 1.5px solid #e0e0e0;
  background: #ffffff;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #666666;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.month-tab:hover {
  border-color: var(--cal-accent, #1eb660);
  color: var(--cal-accent, #1eb660);
  background: #f0faf5;
}
.month-tab.active {
  background: var(--cal-accent, #0d3d2b);
  border-color: var(--cal-accent, #0d3d2b);
  color: #ffffff;
}

.events-panel {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.events-panel-header {
  background: var(--cal-accent, #0d3d2b);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-month-name {
  font-family: 'Barlow', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -.01em;
}
.panel-count {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: .05em;
}

.event-list { padding: 10px 0; }

.event-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px 32px;
  border-bottom: 1px solid #f5f5f5;
  text-decoration: none;
  color: #333333;
  transition: background .2s;
}
.event-item:last-child { border-bottom: none; }
.event-item:hover { background: #f9fbf9; }
.event-item.no-link { 
    cursor: default; 
}
.event-item.no-link:hover {
    background: transparent;
}

.event-day-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f8f4ee;
  border: 1px solid #eeeeee;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .2s;
}
.event-item:hover .event-day-box {
  background: #e0f2ea;
  border-color: var(--cal-accent, #1eb660);
}
.event-day-num {
  font-family: 'Barlow', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--cal-accent, #0d3d2b);
  line-height: 1;
}
.event-day-label {
  font-family: 'Barlow', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #888888;
  margin-top: 2px;
}

.event-tag {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cal-accent, #1eb660);
  margin-bottom: 4px;
}
.event-name {
  font-family: 'Barlow', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--cal-accent, #0d3d2b);
  line-height: 1.3;
}

.event-arrow {
  color: #dddddd;
  font-size: 18px;
  transition: all .2s;
  flex-shrink: 0;
}
.event-item:hover .event-arrow {
  color: var(--cal-accent, #1eb660);
  transform: translateX(5px);
}

.cal-empty {
  padding: 60px 40px;
  text-align: center;
  color: #999999;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
}

.wp-block-uel-calendario .is-selected {
    box-shadow: 0 0 0 1px var(--wp-admin-theme-color);
}
