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

:root {
  --green-dark:   #1E3A2F;
  --green-mid:    #2D5140;
  --green-accent: #4A7C5F;
  --green-btn:    #3D6B50;
  --green-btn-h:  #2D5140;
  --green-light:  #E8F2EC;
  --green-sel:    #4A7C5F;
  --gray-100:     #F7F8F6;
  --gray-200:     #EDEEED;
  --gray-300:     #D4D7D4;
  --gray-400:     #9AA39A;
  --gray-600:     #5A6360;
  --gray-800:     #2A2F2C;
  --white:        #FFFFFF;
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --shadow-sm:    0 1px 4px rgba(0,0,0,.06);
  --shadow-md:    0 4px 16px rgba(0,0,0,.08);
  --transition:   .18s ease;
}

html, body {
  min-height: 100vh;
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--gray-800);
  font-size: 15px;
  line-height: 1.55;
}

/* ─── LAYOUT ────────────────────────────────────────────────────────── */
.layout {
  display: flex;
  min-height: 100vh;
}

.pull-right {
  margin-left: 100px;
}

/* LEFT PANEL */
.panel-left {
  width: 340px;
  flex-shrink: 0;
  background: linear-gradient(165deg, var(--green-dark) 0%, var(--green-mid) 60%, var(--green-accent) 100%);
  padding: 40px 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.panel-left::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.panel-left::after {
  content: '';
  position: absolute;
  bottom: 60px; left: -60px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,.03);
  border-radius: 50%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
  text-decoration: none;
}
.logo svg { width: 44px; height: 44px; }
.logo-text { color: var(--white); font-size: 17px; font-weight: 700; line-height: 1.1; }
.logo-sub { color: rgba(255,255,255,.5); font-size: 9px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }

.panel-headline {
  color: var(--white);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
  position: relative;
}
.panel-desc {
  color: rgba(255,255,255,.65);
  font-size: 13.5px;
  margin-bottom: 52px;
}

/* STEPS */
.steps { display: flex; flex-direction: column; gap: 0; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  left: 15px; top: 32px;
  width: 1px; bottom: 8px;
  background: rgba(255,255,255,.15);
}
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 0;
  position: relative;
  z-index: 1;
}
.step-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.4);
  font-size: 13px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  background: transparent;
}
.step-item.active .step-circle {
  background: var(--white);
  border-color: var(--white);
  color: var(--green-dark);
}
.step-item.done .step-circle {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.5);
  color: var(--white);
}
.step-label { padding-top: 4px; }
.step-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  transition: var(--transition);
}
.step-item.active .step-title,
.step-item.done .step-title { color: var(--white); }
.step-sub {
  font-size: 12px;
  color: rgba(255,255,255,.3);
  transition: var(--transition);
}
.step-item.active .step-sub { color: rgba(255,255,255,.6); }

.panel-footer {
  margin-top: auto;
  color: rgba(255,255,255,.3);
  font-size: 11px;
  position: relative; z-index: 1;
}

/* RIGHT PANEL */
.panel-right {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 64px;
  overflow-y: auto;
  background: var(--white);
}

.step-content { width: 100%; max-width: 720px; display: none; }
.step-content.active { display: block; animation: fadeUp .25s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── TYPOGRAPHY ────────────────────────────────────────────────────── */
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 6px;
}
.section-sub {
  font-size: 14px;
  color: var(--gray-400);
  margin-bottom: 32px;
}

/* ─── STEP 1 — INTERESES ────────────────────────────────────────────── */
.interests-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 36px;
}

.interest-card {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  background: var(--white);
  user-select: none;
}
.interest-card:hover {
  border-color: var(--green-accent);
  background: var(--green-light);
  box-shadow: var(--shadow-sm);
}
.interest-card.selected {
  border-color: var(--green-sel);
  background: var(--green-light);
}
.interest-card input[type="checkbox"] { display: none; }

.interest-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}
.interest-card.selected .interest-icon { background: rgba(74,124,95,.15); }
.interest-icon svg { width: 20px; height: 20px; color: var(--gray-600); }
.interest-card.selected .interest-icon svg { color: var(--green-sel); }

.interest-info { flex: 1; min-width: 0; }
.interest-name { font-size: 14px; font-weight: 600; color: var(--gray-800); }
.interest-desc { font-size: 12px; color: var(--gray-400); }

.interest-check {
  width: 20px; height: 20px;
  border: 2px solid var(--gray-300);
  border-radius: 5px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.interest-card.selected .interest-check {
  border-color: var(--green-sel);
  background: var(--green-sel);
}
.interest-check svg { display: none; }
.interest-card.selected .interest-check svg { display: block; }

/* FULL WIDTH CARD */
.interest-card.full { grid-column: 1 / -1; }

/* ─── STEP 2 — FECHA Y HORA ─────────────────────────────────────────── */
.datetime-wrapper {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 32px;
  align-items: start;
}

/* CALENDAR */
.calendar-box { }
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.cal-month-label { font-size: 16px; font-weight: 700; color: var(--gray-800); }
.cal-nav {
  display: flex; gap: 8px;
}
.cal-nav-btn {
  width: 30px; height: 30px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-600);
  font-size: 13px;
  transition: all var(--transition);
}
.cal-nav-btn:hover { border-color: var(--green-accent); color: var(--green-accent); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-day-name {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  padding: 6px 0 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cal-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 13.5px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--gray-800);
  font-weight: 500;
  border: 1.5px solid transparent;
}
.cal-day:hover:not(.disabled):not(.empty):not(.selected) {
  background: var(--green-light);
  border-color: var(--green-accent);
  color: var(--green-accent);
}
.cal-day.selected {
  background: var(--green-sel);
  color: var(--white);
  font-weight: 700;
}
.cal-day.today:not(.selected) {
  border-color: var(--green-accent);
  color: var(--green-accent);
}
.cal-day.disabled {
  color: var(--gray-300);
  cursor: not-allowed;
}
.cal-day.empty { cursor: default; }

/* HOURS */
.hours-panel { }
.hours-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 14px;
}
.hours-title svg { width: 15px; height: 15px; color: var(--gray-400); }
.hours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.hour-btn {
  padding: 9px 4px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
}
.hour-btn:hover:not(.taken):not(.selected) {
  border-color: var(--green-accent);
  color: var(--green-accent);
  background: var(--green-light);
}
.hour-btn.selected {
  background: var(--green-sel);
  border-color: var(--green-sel);
  color: var(--white);
  font-weight: 700;
}
.hour-btn.taken {
  color: var(--gray-300);
  cursor: not-allowed;
  background: var(--gray-100);
}

.schedule-note {
  margin-top: 24px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.schedule-note svg { width: 16px; height: 16px; color: var(--gray-400); flex-shrink: 0; margin-top: 1px; }
.schedule-note-text { font-size: 12.5px; color: var(--gray-600); line-height: 1.5; }

/* ─── STEP 3 — DATOS ────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 13px; font-weight: 600; color: var(--gray-700); }

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 14px;
  width: 16px; height: 16px;
  color: var(--gray-400);
  pointer-events: none;
}
.form-input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--green-accent);
  box-shadow: 0 0 0 3px rgba(74,124,95,.1);
}
.form-input::placeholder { color: var(--gray-300); }
textarea.form-input {
  resize: vertical;
  min-height: 90px;
  padding-top: 11px;
  padding-left: 14px;
  line-height: 1.5;
}

/* RESUMEN */
.summary-box {
  background: var(--green-light);
  border: 1.5px solid rgba(74,124,95,.2);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.summary-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(74,124,95,.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.summary-icon svg { width: 18px; height: 18px; color: var(--green-sel); }
.summary-title { font-size: 14px; font-weight: 700; color: var(--gray-800); margin-bottom: 4px; }
.summary-row { font-size: 13px; color: var(--gray-600); line-height: 1.6; }

/* ─── NAVIGATION BUTTONS ────────────────────────────────────────────── */
.btn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  outline: none;
  text-decoration: none;
}
.btn-secondary {
  background: var(--gray-200);
  color: var(--gray-600);
}
.btn-secondary:hover { background: var(--gray-300); }

.btn-primary {
  background: var(--green-btn);
  color: var(--white);
  margin-left: auto;
}
.btn-primary:hover:not(:disabled) { background: var(--green-btn-h); }
.btn-primary:disabled {
  background: var(--gray-300);
  color: var(--gray-400);
  cursor: not-allowed;
}

/* ─── VALIDATION ERROR ──────────────────────────────────────────────── */
.val-error {
  font-size: 12px;
  color: #C0392B;
  display: none;
  margin-top: 4px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ─── RESPONSIVE ────────────────────────────────────────────────────── */
.mobile-topbar {
  display: none;
}

@media (max-width: 900px) {
  .panel-left { display: none; }
  
  .panel-right {
    padding: 0;
    display: flex;
    flex-direction: column;
  }
  
  /* Barra superior móvil */
  .panel-right::before {
    content: '';
    display: block;
  }
  
  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 10;
  }
  
  .mobile-logo {
    display: block;
    height: 36px;
    width: auto;
  }
  .mobile-logo svg { width: 34px; height: 34px; }
  .mobile-logo-text { font-size: 15px; font-weight: 700; color: var(--green-dark); line-height: 1.1; }
  .mobile-logo-sub { font-size: 8px; font-weight: 500; color: var(--gray-400); letter-spacing: .1em; text-transform: uppercase; }
  
  .mobile-step-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
  }
  .mobile-step-label span {
    color: var(--green-sel);
    font-weight: 700;
  }
  
  .step-content { padding: 28px 20px; }
  
  .interests-grid { grid-template-columns: 1fr; }
  .interest-card.full { grid-column: 1; }
  .datetime-wrapper { grid-template-columns: 1fr; }
  .hours-grid { grid-template-columns: repeat(4, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
}

@media (max-width: 480px) {
  .section-title { font-size: 22px; }
  .hours-grid { grid-template-columns: repeat(3, 1fr); }
}