/* Booking + admin styles — Cristina Peñaloza brand (violet / signal gold, Montserrat + Inter) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --anchor:   #291845;
  --violet:   #6B2BFF;
  --royal:    #7850C8;
  --gold:     #F5C200;
  --gold-warm:#F0DC91;
  --lavender: #7F77DD;
  --silver:   #AFA9EC;
  --ghost:    #EEEDFE;
  --white:    #FFFFFF;
  --line:     rgba(175,169,236,0.22);
  --card:     rgba(255,255,255,0.05);
  --muted:    rgba(255,255,255,0.62);
  --faint:    rgba(255,255,255,0.4);
  --danger:   #ff8b8b;

  --display: 'Montserrat', system-ui, sans-serif;
  --body:    'Inter', system-ui, sans-serif;

  --text-xs: clamp(0.72rem, 0.7rem + 0.15vw, 0.8rem);
  --text-sm: clamp(0.84rem, 0.8rem + 0.2vw, 0.94rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --text-xl: clamp(1.25rem, 1.05rem + 0.9vw, 1.7rem);
  --text-hero: clamp(2.1rem, 1rem + 4.2vw, 3.8rem);
  --radius: 10px;
  --ease: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

html { -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--body);
  color: var(--white);
  background: var(--anchor);
  line-height: 1.6;
  min-height: 100svh;
}
a { color: inherit; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: rgba(245,194,0,0.25); }

/* ─── Page shell ─── */
.page {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(4.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 3rem) 4rem;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(107,43,255,0.38) 0%, transparent 60%),
    radial-gradient(ellipse 50% 55% at 8% 90%, rgba(120,80,200,0.28) 0%, transparent 55%),
    var(--anchor);
}
.brand-tag {
  position: absolute; top: 1.5rem; left: clamp(1.25rem, 5vw, 3rem);
  font-family: var(--display); font-weight: 700; font-size: var(--text-xs);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-warm);
  text-decoration: none;
}
.footer-tag {
  position: absolute; bottom: 1.25rem; left: 0; right: 0; text-align: center;
  font-size: var(--text-xs); color: var(--faint); letter-spacing: 0.04em;
}

.content {
  width: 100%; max-width: 1000px;
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}

/* ─── Left: pitch ─── */
.label {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--display); font-weight: 600; font-size: var(--text-xs);
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.25rem;
}
.label::before { content: ''; width: 28px; height: 1px; background: var(--gold); }

.headline {
  font-family: var(--display); font-weight: 900;
  font-size: var(--text-hero); line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.headline em { font-style: normal; color: var(--gold); }

.subline { font-size: var(--text-base); color: var(--muted); max-width: 40ch; margin-bottom: 1.75rem; }

.meta, .perks { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.meta { margin-bottom: 1.75rem; }
.meta li { font-size: var(--text-sm); color: rgba(255,255,255,0.82); display: flex; gap: 0.7rem; align-items: baseline; }
.meta .ico { color: var(--gold); width: 1.1em; flex-shrink: 0; }
.perks li { font-size: var(--text-sm); color: var(--muted); display: flex; gap: 0.7rem; align-items: baseline; }
.perks li::before { content: '✦'; color: var(--gold); font-size: 0.6rem; }

.host {
  display: flex; align-items: center; gap: 0.9rem;
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
}
.host img {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 8%;
  border: 2px solid var(--gold-warm);
}
.host-name { font-family: var(--display); font-weight: 700; font-size: var(--text-sm); color: var(--gold-warm); }
.host-role { font-size: var(--text-xs); color: var(--faint); }

/* ─── Right: card ─── */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(1.4rem, 4vw, 2.25rem);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px rgba(10,4,30,0.4);
}
.card h2 { font-family: var(--display); font-weight: 800; font-size: var(--text-xl); line-height: 1.2; margin-bottom: 0.35rem; }
.card .sub { font-size: var(--text-sm); color: var(--muted); margin-bottom: 1.25rem; }

.tz-row { display: flex; align-items: center; gap: 0.6rem; font-size: var(--text-xs); color: var(--faint); margin-bottom: 1.25rem; flex-wrap: wrap; }
select, input, textarea {
  font-family: var(--body); font-size: var(--text-sm); color: var(--white);
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px; padding: 0.65em 0.9em; outline: none;
  transition: border-color var(--ease), background var(--ease);
}
select option { color: #1a0a3d; }
select:focus, input:focus, textarea:focus { border-color: rgba(245,194,0,0.6); background: rgba(255,255,255,0.1); }
.tz-row select { max-width: 100%; padding: 0.4em 0.7em; font-size: var(--text-xs); }

/* month grid */
.month-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.month-label { font-family: var(--display); font-weight: 700; font-size: var(--text-sm); }
.nav-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--white); cursor: pointer; font-size: 1rem;
  transition: background var(--ease), border-color var(--ease);
}
.nav-btn:hover:not(:disabled) { background: rgba(255,255,255,0.08); border-color: var(--silver); }
.nav-btn:disabled { opacity: 0.25; cursor: default; }
.dow, .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.dow { font-size: var(--text-xs); color: var(--faint); margin-bottom: 4px; letter-spacing: 0.06em; }
.day {
  aspect-ratio: 1; border-radius: 50%; border: 1px solid transparent; background: transparent;
  color: rgba(255,255,255,0.25); font-size: var(--text-sm); cursor: default;
}
.day.avail { color: var(--white); font-weight: 600; background: rgba(107,43,255,0.28); cursor: pointer; transition: all var(--ease); }
.day.avail:hover { background: rgba(107,43,255,0.55); }
.day.sel { background: var(--gold); color: var(--anchor); }
.day.blank { visibility: hidden; }

/* times */
.times-wrap { margin-top: 1.4rem; }
.times-title { font-family: var(--display); font-weight: 700; font-size: var(--text-sm); margin-bottom: 0.7rem; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; max-height: 240px; overflow-y: auto; padding-right: 4px; }
.time {
  padding: 0.65em 0.4em; border-radius: 8px; border: 1px solid rgba(245,194,0,0.4);
  background: transparent; color: var(--gold); font-weight: 600; font-size: var(--text-sm); cursor: pointer;
  transition: all var(--ease);
}
.time:hover { background: var(--gold); color: var(--anchor); }

.notice { font-size: var(--text-sm); color: var(--muted); padding: 1rem; border: 1px dashed var(--line); border-radius: 10px; }
.notice a { color: var(--gold-warm); }
.error-msg { color: var(--danger); font-size: var(--text-xs); margin-top: 0.4rem; display: none; }
.error-msg.show { display: block; }

/* details step */
.chosen { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.85rem 1rem; border: 1px solid rgba(245,194,0,0.35); border-radius: 10px; background: rgba(245,194,0,0.07);
  margin-bottom: 1.25rem; font-size: var(--text-sm); }
.chosen strong { font-family: var(--display); color: var(--gold); }
.chosen .refs { font-size: var(--text-xs); color: var(--faint); }
.link-btn { background: none; border: none; color: var(--silver); text-decoration: underline; cursor: pointer; font-size: var(--text-xs); }

.field { margin-bottom: 1rem; }
.field label { display: block; font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.4rem; font-weight: 600; }
.field input, .field textarea { width: 100%; }
.field textarea { resize: vertical; min-height: 84px; }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--text-xs); color: var(--faint); margin: 1rem 0 0.25rem; }
.consent input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--gold); flex-shrink: 0; padding: 0; }
.consent a { color: var(--gold-warm); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.btn {
  width: 100%; margin-top: 1.1rem; padding: 0.95em 1.5em; border: none; border-radius: 8px; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: var(--text-sm); letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--gold); color: var(--anchor); transition: all var(--ease);
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(245,194,0,0.28); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--gold); border: 1px solid rgba(245,194,0,0.5); }
.btn.violet { background: var(--violet); color: var(--white); }
.btn.small { width: auto; margin-top: 0; padding: 0.6em 1.1em; font-size: var(--text-xs); }
.spinner { width: 15px; height: 15px; border: 2px solid rgba(41,24,69,0.3); border-top-color: var(--anchor); border-radius: 50%; animation: spin 0.6s linear infinite; display: none; }
.btn.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* done */
.done { text-align: center; padding: 0.5rem 0; }
.done .tick { width: 62px; height: 62px; margin: 0 auto 1.1rem; border-radius: 50%; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 1.6rem; background: rgba(245,194,0,0.12); }
.done p { color: var(--muted); font-size: var(--text-sm); max-width: 36ch; margin: 0.5rem auto 0; }
.done .when { font-family: var(--display); font-weight: 700; color: var(--white); font-size: var(--text-base); margin-top: 1rem; }

.hidden { display: none !important; }
.skeleton { height: 220px; border-radius: 12px; background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.09), rgba(255,255,255,0.04)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 760px) {
  .content { grid-template-columns: 1fr; }
  .host { display: none; }
  .footer-tag { position: static; margin-top: 2rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
