/* ─── Fonts ────────────────────────────────────────────── */
@font-face {
  font-family: 'Ophelia';
  src: url('/fonts/ophelia-personal-use-only.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ABC Social';
  src: url('/fonts/ABCSocial-Book-Trial.woff2') format('woff2'),
       url('/fonts/ABCSocial-Book-Trial.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ABC Social';
  src: url('/fonts/ABCSocial-Light-Trial.woff2') format('woff2'),
       url('/fonts/ABCSocial-Light-Trial.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ABC Social';
  src: url('/fonts/ABCSocial-Bold-Trial.woff2') format('woff2'),
       url('/fonts/ABCSocial-Bold-Trial.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ─── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'ABC Social', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  background: #E3DFDB;
  color: #847F7B;
  line-height: 1.5;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }

/* ─── Layout ───────────────────────────────────────────── */
.header {
  background: #F2F0ED;
  border-bottom: 1px solid #CCC4BC;
  padding: 18px 24px;
  text-align: center;
}
.header h1 { font-size: 14px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: #847F7B; }

.container {
  max-width: 780px;
  margin: 32px auto;
  padding: 0 16px;
}

/* ─── Hero Title ───────────────────────────────────────── */
.hero-title {
  font-family: 'Ophelia', 'Georgia', serif;
  font-size: 60px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #847F7B;
  text-align: center;
  margin-bottom: 16px;
  line-height: 0.9;
}

.welcome-text {
  text-align: center;
  color: #847F7B;
  margin-bottom: 36px;
  font-size: 16px;
}

/* ─── Session Cards (Home) ─────────────────────────────── */
.sessions-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.session-card {
  background: #F2F0ED;
  border: 1px solid #CCC4BC;
  cursor: pointer;
  transition: box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}
.session-card:hover { box-shadow: 0 2px 12px rgba(132,127,123,0.15); }

.session-card .cover-img {
  width: 100%;
  height: 200px;
  background: #D8D4CF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #9A9490;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.session-card .card-body {
  padding: 20px;
}
.session-card .card-body h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #847F7B;
}
.session-card .card-body .description {
  color: #847F7B;
  font-size: 16px;
  margin-bottom: 16px;
}

.meta-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #847F7B;
}
.meta-item .icon { font-size: 15px; }

/* ─── Session Page ─────────────────────────────────────── */
.session-page { display: flex; flex-direction: column; gap: 0; }

.component-box {
  background: #F2F0ED;
  border: 1px solid #CCC4BC;
  padding: 28px;
}
.component-box + .component-box { border-top: none; }

.hero-img {
  width: 100%;
  height: 240px;
  background: #D8D4CF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #9A9490;
  margin-bottom: 20px;
}

.session-title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.session-title-row h2 { font-size: 20px; font-weight: 600; color: #847F7B; }
.session-title-row .tag {
  font-size: 12px;
  color: #9A9490;
  border: 1px solid #CCC4BC;
  padding: 2px 8px;
  border-radius: 2px;
}

.session-description {
  color: #847F7B;
  font-size: 16px;
  margin: 16px 0 20px;
}

.btn-read-more {
  display: inline-block;
  padding: 9px 20px;
  border: 1px solid #847F7B;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #847F7B;
  transition: background 0.15s, color 0.15s;
}
.btn-read-more:hover { background: #847F7B; color: #F2F0ED; }

/* ─── Calendar ─────────────────────────────────────────── */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cal-month-label { font-weight: 600; font-size: 15px; color: #847F7B; }
.cal-nav {
  background: none;
  border: 1px solid #CCC4BC;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 16px;
  color: #847F7B;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s;
}
.cal-nav:hover:not(:disabled) { background: #E3DFDB; }
.cal-nav:disabled { color: #CCC4BC; cursor: default; border-color: #D8D4CF; }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day-name {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #9A9490;
  padding: 4px 0;
  text-transform: uppercase;
}
.cal-day {
  text-align: center;
  padding: 8px 4px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 2px;
  color: #847F7B;
  transition: background 0.12s;
}
.cal-day:hover:not(.disabled):not(.empty) { background: #E3DFDB; }
.cal-day.empty { cursor: default; }
.cal-day.past  { color: #CCC4BC; cursor: default; }
.cal-day.sunday { color: #CCC4BC; cursor: default; }
.cal-day.today { font-weight: 700; }
.cal-day.disabled { pointer-events: none; }
.cal-day.selected { background: #847F7B; color: #F2F0ED; border-radius: 2px; }

/* ─── Current date & timezone ──────────────────────────── */
.date-tz-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.current-date-label { font-size: 13px; font-weight: 600; color: #847F7B; }

.tz-select {
  font-size: 12px;
  padding: 5px 8px;
  border: 1px solid #CCC4BC;
  background: #F2F0ED;
  cursor: pointer;
  color: #847F7B;
  max-width: 240px;
}

/* ─── Time Slots ───────────────────────────────────────── */
.slots-label {
  font-size: 12px;
  color: #9A9490;
  margin-bottom: 10px;
}
.slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.slot-btn {
  padding: 8px 14px;
  border: 1px solid #CCC4BC;
  background: #F2F0ED;
  cursor: pointer;
  font-size: 13px;
  color: #847F7B;
  transition: background 0.12s, border-color 0.12s;
  min-width: 80px;
  text-align: center;
}
.slot-btn:hover { border-color: #847F7B; }
.slot-btn.selected { background: #847F7B; color: #F2F0ED; border-color: #847F7B; }
.slot-btn.booked {
  background: #E3DFDB;
  color: #CCC4BC;
  border-color: #D8D4CF;
  cursor: not-allowed;
  text-decoration: line-through;
}

.slots-empty {
  font-size: 13px;
  color: #9A9490;
  font-style: italic;
}

/* ─── Continue Button ──────────────────────────────────── */
.btn-continuar {
  display: block;
  width: 100%;
  padding: 15px;
  background: #847F7B;
  color: #F2F0ED;
  border: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.8px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.15s;
  margin-top: 0;
  border: 1px solid #847F7B;
  border-top: none;
}
.btn-continuar:hover:not(:disabled) { background: #6E6A67; border-color: #6E6A67; }
.btn-continuar:disabled {
  background: #CCC4BC;
  border-color: #CCC4BC;
  cursor: not-allowed;
}

/* ─── Modal ────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(132,127,123,0.5);
  z-index: 100;
  overflow-y: auto;
  padding: 40px 16px;
}
.modal-overlay.active { display: flex; align-items: flex-start; justify-content: center; }

.modal-box {
  background: #F2F0ED;
  width: 100%;
  max-width: 620px;
  padding: 32px;
  position: relative;
  border: 1px solid #CCC4BC;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #9A9490;
  line-height: 1;
}
.modal-close:hover { color: #847F7B; }

.modal-box h2 { font-size: 20px; font-weight: 600; margin-bottom: 6px; color: #847F7B; }
.modal-box .modal-sub {
  font-size: 13px;
  color: #9A9490;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-section { margin-bottom: 22px; }
.modal-section h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9A9490;
  margin-bottom: 8px;
  border-bottom: 1px solid #CCC4BC;
  padding-bottom: 4px;
}
.modal-section p, .modal-section li { font-size: 14px; color: #847F7B; }
.modal-section ul { padding-left: 18px; }
.modal-section ul li { margin-bottom: 4px; }

.price-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.price-table td { padding: 6px 0; color: #847F7B; }
.price-table tr:last-child td { font-weight: 700; border-top: 1px solid #CCC4BC; padding-top: 8px; }
.price-table td:last-child { text-align: right; }

/* ─── Continuar Page ───────────────────────────────────── */
.page-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9A9490;
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #D8D4CF;
}
.detail-row:last-child { border-bottom: none; }
.detail-row .label { color: #9A9490; font-size: 13px; }
.detail-row .value { font-weight: 600; text-align: right; color: #847F7B; }

.summary-title { font-size: 17px; font-weight: 600; margin-bottom: 16px; color: #847F7B; }

.price-summary { margin-top: 16px; }
.price-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 5px 0;
  color: #847F7B;
}
.price-summary-row.total {
  font-weight: 700;
  font-size: 15px;
  color: #847F7B;
  border-top: 1px solid #CCC4BC;
  margin-top: 6px;
  padding-top: 10px;
}

/* ─── Form ─────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid .full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 12px; font-weight: 600; color: #9A9490; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input,
.form-group textarea {
  padding: 10px 12px;
  border: 1px solid #CCC4BC;
  font-size: 14px;
  font-family: inherit;
  color: #847F7B;
  transition: border-color 0.15s;
  background: #F2F0ED;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: #847F7B; }
.form-group textarea { resize: vertical; min-height: 90px; }

/* ─── Final Page ───────────────────────────────────────── */
.success-banner {
  background: #847F7B;
  color: #F2F0ED;
  padding: 20px 28px;
  margin-bottom: 0;
}
.success-banner h2 { font-size: 18px; font-weight: 700; color: #F2F0ED; }
.success-banner p { font-size: 13px; margin-top: 4px; color: #D8D4CF; }

.bank-item { margin-bottom: 8px; font-size: 14px; }
.bank-item .bank-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #9A9490; display: block; margin-bottom: 2px; }
.bank-item .bank-value { font-weight: 600; color: #847F7B; }

.whatsapp-instruction {
  margin-top: 20px;
  padding: 14px 16px;
  background: #E3DFDB;
  border-left: 3px solid #847F7B;
  font-size: 14px;
  line-height: 1.6;
  color: #847F7B;
}
.whatsapp-instruction a { color: #847F7B; font-weight: 700; text-decoration: underline; }

/* ─── Error / Loading states ───────────────────────────── */
.loading { text-align: center; color: #9A9490; font-size: 14px; padding: 20px 0; }
.error-msg { color: #b04040; font-size: 13px; margin-top: 8px; }
.info-msg { color: #9A9490; font-size: 13px; font-style: italic; }

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 540px) {
  .hero-title { font-size: 40px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: 1; }
  .meta-row { flex-direction: column; gap: 8px; }
  .date-tz-row { flex-direction: column; align-items: flex-start; }
}
