/* GALERÍA */
.casella-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.casella-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .casella-gallery {
    grid-template-columns: 1fr;
  }
}

/* SEMANAS */
.weeks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.week-card {
  background: var(--bg-white);
  border: 2px solid var(--color-border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 160px;
}

.week-card:hover:not(.disabled) {
  transform: translateY(-8px);
  border-color: var(--color-primary);
  box-shadow: 0 12px 24px rgba(42, 127, 42, 0.1);
}

.week-card.selected {
  border-color: var(--color-primary);
  background-color: var(--bg-sage);
  box-shadow: 0 0 0 4px rgba(42, 127, 42, 0.15);
}

.week-num {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.status-libre { background: #e8f5e9; color: #2e7d32; }
.status-pre-reserva { background: #fff8e1; color: #f57f17; }
.status-reservado { background: #ffebee; color: #c62828; }
.status-no-disponible { background: #f5f5f5; color: #616161; }

.week-card.disabled {
  opacity: 0.5;
  filter: grayscale(1);
  cursor: not-allowed;
}

/* PESTAÑAS MESES */
.month-tabs {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.month-tab {
  background: var(--bg-white);
  border: 1px solid var(--color-border);
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all .3s ease;
  color: var(--color-text-muted);
}

.month-tab.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* CONTENEDORES MESES */
.month-container {
  display: none;
  animation: fadeIn 0.4s ease;
}

.month-container.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* AYUDAS CASELLA */
.casella-main {
  max-width: 1000px;
}

.casella-intro {
  margin-bottom: 2.5rem;
}

.intro-text {
  max-width: 720px; 
  margin: 0 auto 1.5rem;
}

.calendar-title, .form-title {
  margin-bottom: 2rem;
  text-align: center;
}

.selected-week-notice {
  text-align: center;
  padding: 10px;
  background: var(--bg-sage);
  border-radius: 8px;
  margin-bottom: 1rem;
  color: var(--color-primary-dark);
}

.reserva-form label {
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.error-list {
  margin-left: 1rem;
}
