@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@1,600&display=swap');

:root {
  color-scheme: light;
  --ink: #1d2824;
  --muted: #66706c;
  --paper: #f8f4ed;
  --card: #fffdf9;
  --line: #ded8ce;
  --accent: #d85f3f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(216, 95, 63, .12), transparent 28rem),
    linear-gradient(135deg, #f9f5ef 0%, #eee9df 100%);
  font-family: "DM Sans", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

main {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: clamp(42px, 8vw, 120px);
  padding: 64px 0;
}

.intro { max-width: 520px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 700; }
.intro h1 { margin: 18px 0 24px; font-size: clamp(3.25rem, 7vw, 6.6rem); line-height: .88; letter-spacing: -.065em; }
.intro h1 em { color: var(--accent); font-family: "Playfair Display", serif; font-weight: 600; }
.intro p { max-width: 460px; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.benefits { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 32px; color: #4d5753; font-size: .82rem; font-weight: 600; }
.benefits span::before { content: "✓"; margin-right: 7px; color: var(--accent); }

.booking-shell {
  background: rgba(255, 253, 249, .86);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(55, 45, 34, .14);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.citas-widget { --widget-accent: var(--accent); padding: clamp(24px, 5vw, 42px); }
.widget-head { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.widget-head h2 { margin: 4px 0 0; font-size: 1.35rem; }
.widget-head p { margin: 4px 0 0; color: var(--muted); font-size: .83rem; }
.business-heading { display: flex; align-items: center; gap: 12px; }
.business-heading img { width: 48px; height: 42px; object-fit: contain; }
.step-count { align-self: center; color: var(--muted); font-size: .78rem; white-space: nowrap; }
.progress { height: 3px; margin: -2px 0 28px; background: #e7e1d9; }
.progress span { display: block; height: 100%; width: 33.333%; background: var(--widget-accent); transition: width .25s ease; }
.step h3 { margin: 0 0 18px; font-size: 1rem; }
.options { display: grid; gap: 10px; }
.option { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: transparent; text-align: left; font: inherit; cursor: pointer; transition: .18s ease; }
.option:hover, .option.selected { border-color: var(--widget-accent); transform: translateY(-1px); background: color-mix(in srgb, var(--widget-accent) 7%, white); }
.option strong { display: block; font-size: .9rem; }
.option small { color: var(--muted); }
.calendar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.date-option { padding: 12px 6px; border: 1px solid var(--line); border-radius: 12px; background: transparent; font: inherit; cursor: pointer; }
.date-option strong, .date-option span { display: block; }
.date-option span { margin-top: 4px; color: var(--muted); font-size: .72rem; text-transform: capitalize; }
.date-option.selected { color: white; border-color: var(--widget-accent); background: var(--widget-accent); }
.date-option.selected span { color: white; }
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.time-option { padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: transparent; font: inherit; cursor: pointer; }
.time-option.selected { color: white; border-color: var(--widget-accent); background: var(--widget-accent); }
.times-hint { grid-column: 1 / -1; margin: 4px 0; padding: 14px; border-radius: 10px; color: var(--muted); background: #f3efe8; font-size: .78rem; text-align: center; }
.fields { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: .78rem; font-weight: 600; }
input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: white; font: inherit; outline: none; }
input:focus { border-color: var(--widget-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--widget-accent) 14%, transparent); }
.actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; }
.btn { padding: 13px 18px; border: 0; border-radius: 12px; font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; }
.btn-primary { margin-left: auto; color: white; background: var(--widget-accent); }
.btn-secondary { color: var(--muted); background: #eee9e1; }
.success { padding: 25px 0 8px; text-align: center; }
.success-mark { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; color: white; background: var(--widget-accent); font-size: 1.5rem; }
.success h3 { margin-bottom: 8px; font-size: 1.3rem; }
.success p { color: var(--muted); line-height: 1.6; }
.error { margin: 10px 0 0; color: #a53f2e; font-size: .8rem; }

body[data-booking-theme="beauty"] {
  --ink: #38272f;
  --muted: #76636c;
  --paper: #fbf3f6;
  --card: #fffafd;
  --line: #ead7df;
  background:
    radial-gradient(circle at 14% 16%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 25rem),
    radial-gradient(circle at 88% 82%, #f2d9e3 0, transparent 28rem),
    linear-gradient(135deg, #fff9fb, #f7edf2);
}
body[data-booking-theme="beauty"] .intro h1 { font-family: "Playfair Display", serif; letter-spacing: -.045em; }
body[data-booking-theme="beauty"] .booking-shell { border-color: #fff; box-shadow: 0 34px 90px rgba(112, 65, 84, .16); }
.citas-widget[data-theme="beauty"] .option,.citas-widget[data-theme="beauty"] .date-option,.citas-widget[data-theme="beauty"] .time-option { border-radius: 18px; }

body[data-booking-theme="wellness"] { --ink:#24362e; --muted:#62736a; --paper:#f1f5ef; --card:#fbfdf9; --line:#d6dfd3; background:radial-gradient(circle at 15% 20%,#dbe9d7,transparent 28rem),linear-gradient(135deg,#f7faf5,#e9f0e5); }
body[data-booking-theme="wellness"] .booking-shell { box-shadow:0 30px 80px rgba(46,75,58,.14); }
.citas-widget[data-theme="wellness"] .option { border-radius:10px; }

body[data-booking-theme="professional"] { --ink:#17263a; --muted:#637083; --paper:#eef3f8; --card:#fbfdff; --line:#d8e0e8; background:radial-gradient(circle at 12% 12%,#d9e8f7,transparent 28rem),linear-gradient(135deg,#f8fafc,#e9eff5); }
body[data-booking-theme="professional"] .intro h1 { letter-spacing:-.045em; }
body[data-booking-theme="professional"] .booking-shell { border-radius:16px; box-shadow:0 28px 70px rgba(31,57,84,.15); }
.citas-widget[data-theme="professional"] .option,.citas-widget[data-theme="professional"] .date-option,.citas-widget[data-theme="professional"] .time-option { border-radius:8px; }

@media (max-width: 820px) {
  main { grid-template-columns: 1fr; padding: 52px 0; }
  .intro { text-align: center; margin: auto; }
  .intro p { margin-inline: auto; }
  .benefits { justify-content: center; }
}

@media (max-width: 480px) {
  main { width: min(100% - 24px, 1180px); padding: 34px 0; gap: 32px; }
  .intro h1 { font-size: 3.15rem; }
  .booking-shell { border-radius: 20px; }
  .calendar { grid-template-columns: repeat(2, 1fr); }
  .times { grid-template-columns: repeat(2, 1fr); }
}
