.cloe-agenda {
  max-width: 860px;
  margin: 32px auto;
  font-family: inherit;
}

.cloe-agenda__form {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
}

.cloe-agenda__header {
  margin-bottom: 24px;
}

.cloe-agenda__header h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
}

.cloe-agenda__header p {
  margin: 0;
  color: #4b5563;
}

.cloe-agenda__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cloe-agenda label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
  color: #111827;
}

.cloe-agenda input,
.cloe-agenda select,
.cloe-agenda textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  min-height: 52px;
  line-height: 1.35;
  padding: 13px 14px;
  font: inherit;
  font-weight: 400;
  background: #ffffff;
  color: #111827;
  box-sizing: border-box;
}

.cloe-agenda select {
  appearance: auto;
  -webkit-appearance: menulist;
  padding-right: 42px;
}

.cloe-agenda textarea {
  min-height: 112px;
}

.cloe-agenda__turnstile {
  margin-top: 20px;
}


.cloe-agenda input:focus,
.cloe-agenda select:focus,
.cloe-agenda textarea:focus {
  outline: none;
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.12);
}

.cloe-agenda__full {
  grid-column: 1 / -1;
}

.cloe-agenda__actions {
  margin-top: 24px;
}

.cloe-agenda button {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: #111827;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cloe-agenda button:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.cloe-agenda__message {
  display: none;
  margin-top: 18px;
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 700;
}

.cloe-agenda__message.is-success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.cloe-agenda__message.is-error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

@media (max-width: 720px) {
  .cloe-agenda__form {
    padding: 20px;
    border-radius: 18px;
  }

  .cloe-agenda__grid {
    grid-template-columns: 1fr;
  }
}

/* Calendario visual para bloquear días sin agenda */
#ui-datepicker-div {
  z-index: 999999 !important;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.16);
  font-family: inherit;
}

#ui-datepicker-div .ui-datepicker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 4px 10px;
}

#ui-datepicker-div .ui-datepicker-title {
  font-weight: 800;
  text-align: center;
  flex: 1;
}

#ui-datepicker-div .ui-datepicker-prev,
#ui-datepicker-div .ui-datepicker-next {
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  color: #111827;
}

#ui-datepicker-div table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

#ui-datepicker-div th,
#ui-datepicker-div td {
  text-align: center;
  padding: 3px;
}

#ui-datepicker-div th {
  color: #6b7280;
  font-size: 12px;
}

#ui-datepicker-div td a,
#ui-datepicker-div td span {
  display: block;
  min-width: 36px;
  min-height: 34px;
  line-height: 34px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

#ui-datepicker-div td a {
  color: #111827;
  background: #f3f4f6;
}

#ui-datepicker-div td a:hover {
  background: #111827;
  color: #ffffff;
}

#ui-datepicker-div .ui-datepicker-unselectable span,
#ui-datepicker-div .cloe-datepicker-disabled span {
  color: #9ca3af;
  background: #f9fafb;
  text-decoration: line-through;
  cursor: not-allowed;
}

#ui-datepicker-div .ui-datepicker-current-day a {
  background: #111827;
  color: #ffffff;
}

.cloe-agenda__conversion {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 16px;
  margin: 0 0 22px;
}

.cloe-agenda__next,
.cloe-agenda__benefits {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 18px;
  padding: 16px;
}

.cloe-agenda__next strong {
  display: block;
  margin-bottom: 8px;
  color: #111827;
}

.cloe-agenda__benefits {
  margin: 0;
  padding-left: 34px;
  color: #111827;
  font-weight: 700;
}

.cloe-agenda__benefits li { margin: 5px 0; }

.cloe-agenda__slot-pills {
  display: grid;
  gap: 10px;
}

.cloe-agenda__slot-day span {
  display: block;
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}

.cloe-agenda__slot-pill {
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid #d1d5db !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  margin: 0 6px 6px 0;
  font-weight: 800;
}

.cloe-agenda__slot-pill:hover {
  background: #111827 !important;
  color: #ffffff !important;
}

.cloe-agenda__urgency {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.cloe-agenda__next-empty {
  color: #6b7280;
}

.cloe-agenda__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cloe-agenda__whatsapp {
  display: inline-block;
  border-radius: 999px;
  padding: 13px 20px;
  background: #ecfdf5;
  color: #065f46;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid #a7f3d0;
}

@media (max-width: 720px) {
  .cloe-agenda__conversion { grid-template-columns: 1fr; }
}

/* v1.7.1: flujo limpio sin panel de próximas horas */
.cloe-agenda__conversion,
.cloe-agenda__next,
#cloe-agenda-next-slots {
  display: none !important;
}
.cloe-agenda__benefits--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 16px 0 22px;
  padding: 0;
  list-style: none;
}
.cloe-agenda__benefits--inline li {
  margin: 0;
  font-weight: 600;
}
.cloe-agenda__benefits--inline li::before {
  content: "✓";
  margin-right: 6px;
}
