:root { --primary:#2563eb; --bg:#f6f7fb; --text:#222; }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; background: var(--bg); color: var(--text);}
.wrap { max-width: 1000px; margin: 32px auto; padding: 0 16px; }
h1 { margin: 12px 0 18px; }

#calendar {
  min-height: 650px;
  background:#fff;
  border-radius:12px;
  padding:12px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
}
.panel { margin-top:12px; padding:10px; background:#fff; border:1px dashed #aaa; border-radius:8px; }
.alert { background:#fee2e2; color:#991b1b; padding:10px 12px; border-radius:8px; margin:10px 0 16px; }

/* Modal */
.modal { position:fixed; inset:0; z-index:9999; background:rgba(0,0,0,.45); display:none; align-items:center; justify-content:center; padding:20px; }
.modal.open { display:flex; }
.modal-content { width:100%; max-width:460px; background:#fff; border-radius:12px; padding:18px; box-shadow:0 10px 30px rgba(0,0,0,.2); }


.field { margin:10px 0; }
.field input { width:100%; padding:10px; border:1px solid #ddd; border-radius:8px; }
.summary { margin:10px 0; padding:10px; background:#f6f7fb; border-radius:8px; }
.price { margin-top:8px; font-size:1.1rem; }
.modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:14px; }
.primary { background: var(--primary); color:#fff; border:1px solid var(--primary); padding:10px 14px; border-radius:10px; cursor:pointer; }
button { padding:10px 14px; border-radius:10px; border:1px solid #ddd; background:#fff; cursor:pointer; }


/* Intensidad del sombreado para bg-events (selección provisional) */
.fc .fc-bg-event {
  opacity: 0.7; /* por defecto suele ser ~0.3 */
}



/* Chip de precio en cada slot (para eventos de fondo de grupo 'prices') */
.fc .price-cell {
  position: relative;
  opacity: 1 !important;
}
.fc .price-cell::after {
  content: attr(data-price);
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255,0.95);
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1px 5px;
  line-height: 1.2;
  pointer-events: none; /* no bloquea clic/arrastre */
}




/* Chip base (ya lo tenías) */
.fc .price-cell {
  position: relative;
  opacity: 1 !important;
}
.fc .price-cell::after {
  content: attr(data-price);
  position: absolute;
  top: 2px; right: 2px;
  font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,0.95);
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1px 5px;
  line-height: 1.2;
  pointer-events: none;
}

/* Colores por tarifa */
.fc .price-cell[data-kind="20"]::after {
  background: #dcfce7;      /* verde claro */
  border-color: #86efac;
  color: #065f46;
}
.fc .price-cell[data-kind="26"]::after {
  background: #fef9c3;      /* ámbar */
  border-color: #fde68a;
  color: #92400e;
}
.fc .price-cell[data-kind="30"]::after {
  background: #fee2e2;      /* rojo claro */
  border-color: #fecaca;
  color: #991b1b;
}
.fc .price-cell[data-kind="festivo"]::after {
  background: #ede9fe;      /* morado claro */
  border-color: #ddd6fe;
  color: #5b21b6;
}

/* (opcional) oculta chip si no hay precio */
.fc .price-cell[data-kind="0"]::after { content: ""; border-color: transparent; background: transparent; }



/* Contenedor */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}
@media (max-width: 768px) {
  .wrap { padding: 12px; }
}

/* Calendario: que no desborde */
#calendar {
  background: var(--fc-page-bg, #fff);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

/* Modal responsive */
.modal {
  position: fixed; inset: 0; display: none; place-items: center;
  background: rgba(0,0,0,.35); z-index: 9999; padding: 16px;
}
.modal[aria-hidden="false"] { display: grid; }
.modal-content {
  width: 100%; max-width: 520px; background: #fff; color: #111;
  border-radius: 12px; padding: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
@media (max-width: 480px) {
  .modal-content { border-radius: 10px; padding: 14px; }
}

/* Campos */
.field { display: grid; gap: 6px; margin: 10px 0; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%; padding: 10px 12px;
  border: 1px solid #e5e7eb; border-radius: 8px;
}

/* Aceptación */
.field.agree {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
}

/* Botones */
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
button.primary {
  background: #111827; color: #fff; border: 0; padding: 10px 14px; border-radius: 8px;
}
button { cursor: pointer; }

/* FullCalendar tweaks: compactar en móvil */
@media (max-width: 768px) {
  .fc .fc-toolbar.fc-header-toolbar { padding: 6px; }
  .fc .fc-toolbar-title { font-size: 1.1rem; }
  .fc .fc-button { padding: 4px 8px; font-size: .9rem; }
}


.toolbar-extra input[type="date"] {
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #111;
}

.toolbar-extra button {
  appearance: none;
  border: 1px solid #111827;
  border-radius: 6px;
  background: #111827;
  color: #fff;               /* 👈 asegura contraste */
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
}

.toolbar-extra button:disabled {
  opacity: .6; cursor: not-allowed;
}
