.todo-optica-citas {
  --to-brand: #0b9c4c;
  --to-brand-dark: #13724f;
  --to-ink: #07160f;
  --to-ink-soft: rgba(7, 22, 15, 0.68);
  --to-paper: #fbfbf7;
  --to-radius-xl: 28px;
  --to-shadow-sm: 0 10px 30px rgba(7, 22, 15, 0.08);
  --to-shadow-md: 0 20px 60px rgba(7, 22, 15, 0.11);
  color: var(--to-ink);
  font-family: inherit;
  padding: clamp(54px, 8vw, 118px) 0;
}

.todo-optica-citas *,
.todo-optica-citas *::before,
.todo-optica-citas *::after {
  box-sizing: border-box;
}

.to-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.to-section-heading {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.to-eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--to-brand-dark);
}

.to-section-heading h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 0.98;
  letter-spacing: 0;
}

.to-section-heading p,
.todo-optica-citas p {
  color: var(--to-ink-soft);
}

.to-appointment-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.to-appointment-form,
.to-appointment-aside-card {
  background: rgba(251, 251, 247, 0.92);
  border: 1px solid rgba(7, 22, 15, 0.09);
  border-radius: var(--to-radius-xl);
  box-shadow: var(--to-shadow-sm);
}

.to-immersive-wizard {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 32px;
  padding: 32px;
  box-shadow: var(--to-shadow-md), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  overflow: hidden;
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.to-wizard-header {
  margin-bottom: 24px;
}

.to-wizard-progress-track {
  height: 6px;
  background: rgba(7, 22, 15, 0.06);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}

.to-wizard-progress-fill {
  height: 100%;
  background: var(--to-brand);
  width: 0%;
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.to-wizard-steps-indicator {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--to-ink-soft);
  text-transform: uppercase;
}

.to-wizard-slides-container {
  position: relative;
  flex: 1;
}

.to-wizard-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.to-wizard-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
  position: relative;
}

.to-wizard-slide.prev {
  transform: translateX(-30px);
}

.to-slide-nav {
  margin-bottom: 12px;
}

.to-btn-back {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--to-ink-soft);
  cursor: pointer;
}

.to-btn-back::before {
  content: "< ";
}

.to-slide-header {
  margin-bottom: 28px;
  text-align: center;
}

.to-slide-header h2 {
  font-size: 28px;
  margin: 0 0 8px;
}

.to-slide-header p {
  font-size: 16px;
  margin: 0;
}

.to-schedule-note {
  margin-top: 10px;
  font-size: 14px;
}

.to-center-picker-immersive {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.to-center-option,
.to-service-option {
  cursor: pointer;
  display: block;
  position: relative;
}

.to-center-option input,
.to-service-option input {
  position: absolute;
  opacity: 0;
}

.to-center-option-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(7, 22, 15, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.to-center-img {
  height: 120px;
  background: #f0f0f0;
}

.to-center-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.to-center-info {
  padding: 16px;
  text-align: center;
}

.to-center-city {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  color: var(--to-brand);
  background: rgba(11, 156, 76, 0.08);
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.to-center-option-card h3 {
  font-size: 18px;
  margin: 0 0 4px;
}

.to-center-option-card p {
  font-size: 14px;
  margin: 0;
}

.to-center-option:hover .to-center-option-card,
.to-center-option.is-selected .to-center-option-card,
.to-center-option input:checked + .to-center-option-card {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  border-color: var(--to-brand);
}

.to-service-grid-immersive {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.to-service-card-content {
  background: #fff;
  border: 1px solid rgba(7, 22, 15, 0.08);
  border-radius: 16px;
  padding: 20px 10px;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 92px;
}

.to-service-icon {
  display: grid;
  min-height: 28px;
  place-items: center;
  color: rgba(11, 88, 60, 0.9);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.to-service-option:hover .to-service-card-content,
.to-service-option input:checked + .to-service-card-content {
  border-color: var(--to-brand);
  background: rgba(11, 156, 76, 0.03);
  transform: scale(1.02);
}

.to-datetime-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 400px;
  margin: 0 auto;
}

.to-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}

.to-input-lg,
.to-input-std {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(7, 22, 15, 0.15);
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: var(--to-ink);
}

.to-input-std {
  padding: 12px;
  border-radius: 10px;
}

.to-slide-actions {
  margin-top: 32px;
  text-align: center;
}

.to-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.to-btn:hover {
  transform: translateY(-1px);
}

.to-primary {
  background: var(--to-brand);
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(11, 156, 76, 0.2);
}

.to-ghost {
  color: var(--to-brand-dark) !important;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(7, 22, 15, 0.12);
}

.to-small {
  min-height: 38px;
  padding: 9px 13px;
  font-size: 14px;
}

.to-full-width {
  width: 100%;
}

.to-summary-card {
  background: #fff;
  border: 1px dashed rgba(7, 22, 15, 0.2);
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 24px;
  font-size: 15px;
}

.to-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.to-summary-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.to-summary-label {
  color: var(--to-ink-soft);
}

.to-summary-value {
  font-weight: 700;
  text-align: right;
}

.to-user-details-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.to-consent-block {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(7, 22, 15, 0.12);
  background: rgba(255, 255, 255, 0.7);
  display: grid;
  gap: 12px;
}

.to-consent-block h3,
.to-form-success h3,
.to-appointment-aside-card h3 {
  margin: 0 0 8px;
}

.to-consent-block p {
  margin: 0;
  font-size: 13px;
}

.to-consent-list {
  display: grid;
  gap: 10px;
}

.to-checkbox-simple {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
}

.to-checkbox-simple input {
  margin-top: 3px;
}

.to-form-status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  background: rgba(7, 22, 15, 0.05);
  border: 1px solid rgba(7, 22, 15, 0.1);
}

.to-form-status:empty {
  display: none;
}

.to-form-status[data-state="success"] {
  background: rgba(11, 156, 76, 0.12);
  border-color: rgba(11, 156, 76, 0.3);
  color: #0a6b3a;
}

.to-form-status[data-state="error"] {
  background: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.3);
  color: #a71d2a;
}

.to-form-success {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(7, 22, 15, 0.12);
  background: rgba(255, 255, 255, 0.8);
}

.to-appointment-aside {
  display: grid;
  gap: 14px;
}

.to-appointment-aside-card {
  padding: 18px;
}

.to-appointment-aside-card-soft {
  background: rgba(255, 255, 255, 0.6);
}

.to-appointment-aside-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.to-appointment-aside-card-details summary {
  cursor: pointer;
  font-weight: 900;
}

.to-direct-contact {
  display: grid;
  gap: 18px;
  margin-top: 14px;
}

.to-direct-contact p + p {
  margin-top: 12px;
}

.todo-optica-citas .flatpickr-calendar {
  border-radius: 18px;
}

.flatpickr-disabled-red,
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: rgba(220, 53, 69, 0.5) !important;
}

@media (max-width: 900px) {
  .to-appointment-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .to-container {
    width: min(100% - 20px, 1180px);
  }

  .to-immersive-wizard,
  .to-appointment-aside-card {
    padding: 18px;
  }

  .to-service-grid-immersive {
    grid-template-columns: 1fr;
  }

  .to-section-heading h1 {
    font-size: 34px;
  }
}
