/* Colores */
:root {
  --primary: #a20449;
  --secondary: #fd920e;
}

/* Contenedor */
.ci-calendar-container {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Filtros */
.ci-filters {
  background: rgba(255,255,255,0.8);
  border-radius: 12px;
  padding: 1.25rem;
}

/* Header */
.ci-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Calendario */
.ci-grid {
  background: rgba(255,255,255,0.9);
  border-radius: 16px;
  padding: 1.5rem;
}

.ci-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  color: #666;
  font-weight: 500;
}

.ci-weekday {
  text-align: center;
  padding: 0.5rem 0;
}

.ci-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

/* Días */
/* Días - NUEVA ESTRUCTURA */
.ci-day {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 0.30rem 0px;
  background: white;
  cursor: pointer;
  min-height: 85px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;  /* ← CENTRA TODO HORIZONTAL */
  text-align: center;
  transition: all 0.2s;
  gap: 0.25rem;  /* ← espacio entre elementos */
}

.ci-day:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.ci-day-empty {
  background: transparent;
  border: none;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ci-day-today {
  border-color: var(--secondary);
  background: rgba(253,146,14,0.15);
}

.ci-day-available {
  border: 1px solid #28a745;
  background: rgba(40,167,69,0.05);
}

.ci-day-number {
  font-weight: 700;
  font-size: 1.2rem;  /* ← más grande */
  color: #333;
  flex-shrink: 0;
  width: 100%;
}

.ci-availability {
  font-size: 0.75rem;
  font-weight: 500;
  color: #666;
  flex-shrink: 0;
  width: 100%;
  margin: 0;
}

.ci-no-spaces {
  color: #dc3545;
}

.ci-btn {
  width: 90%;  /* ← ocupa casi todo el ancho */
  border: none;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
}

.ci-btn-book {
  background: #28a745;
  color: white;
}

.ci-btn-ask {
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid #dee2e6;
}


/* Modal */
.ci-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1060;
  padding: 1rem;
}

.ci-modal.show {
  display: flex;
}

.ci-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 450px;
  width: 90%;
  max-height: 70vh;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.ci-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
}

.ci-modal-title {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .ci-calendar-container {
    margin: 0 1rem;
    padding: 1.5rem;
  }
}
