@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Great+Vibes&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,400&family=DM+Sans:wght@200;300;400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #050505;
  --card-bg:    #111111;
  --surface:    #1a1a1a;
  --surface2:   #222222;
  --text:       #ffffff;
  --text-dim:   #888888;
  --text-mid:   #aaaaaa;
  --border:     #2a2a2a;
  --border-md:  #3a3a3a;
  --border-hi:  #ffffff;
  --white:      #ffffff;
  --accent:     #ffffff;
}

html { scroll-behavior: smooth; }

body { background-color: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; min-height: 100vh; display: flex; justify-content: center; padding: 60px 20px 80px; }

.page-wrap { width: 100%; max-width: 480px; animation: fadeUp 0.8s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* HEADER LOGO RECREADO EXACTO (Horizontal) */
.site-header { text-align: center; margin-bottom: 50px; display: flex; flex-direction: column; align-items: center; }
.logo-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: clamp(24px, 6vw, 32px); letter-spacing: 12px; text-transform: uppercase; color: var(--white); margin-bottom: 12px; margin-right: -12px; }
.logo-separator { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 280px; margin: 0 auto; }
.logo-separator .line { flex: 1; height: 1px; background: #333; }
.logo-separator .diamond { width: 6px; height: 6px; background: #777; transform: rotate(45deg); margin: 0 16px; }
.logo-subtitle { font-family: 'Great Vibes', cursive; font-size: clamp(32px, 8vw, 42px); color: var(--white); margin-top: 10px; font-weight: 400; letter-spacing: 1px; }

/* CARD */
.card { background: var(--card-bg); border: 1px solid var(--border); padding: 40px 35px; border-radius: 4px; }
.step-panel { animation: stepIn 0.4s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }

.step-heading { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border); position: relative; }
.step-heading::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 40px; height: 1px; background: var(--white); }
.step-title { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 400; color: var(--text); letter-spacing: 0.5px; }
.step-sub { font-size: 10px; font-weight: 400; color: var(--text-dim); letter-spacing: 2px; text-transform: uppercase; margin-top: 8px; }

.field-label { display: block; font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-mid); margin-bottom: 12px; }
.form-group { margin-bottom: 25px; }

/* STAFF TOGGLE */
.staff-toggle { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border-md); }
.staff-btn { padding: 18px 10px; background: var(--surface); border: none; cursor: pointer; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); transition: all 0.2s; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.staff-btn + .staff-btn { border-left: 1px solid var(--border-md); }
.staff-btn:hover:not(.active) { background: var(--surface2); color: var(--text-mid); }
.staff-btn.active { background: var(--white); color: #111; }

/* CUSTOM DROPDOWN */
.custom-select-wrap { position: relative; }
.cs-display { width: 100%; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-bottom-color: var(--border-md); color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 300; cursor: pointer; display: flex; align-items: center; justify-content: space-between; transition: all 0.2s; }
.cs-display:hover, .cs-display.open { border-color: var(--border-hi); background: var(--surface2); }
.cs-arrow { color: var(--text-mid); transition: transform 0.3s; }
.cs-display.open .cs-arrow { transform: rotate(180deg); }
.cs-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border: 1px solid var(--border-md); z-index: 100; max-height: 0; opacity: 0; overflow: hidden; transition: all 0.3s; }
.cs-dropdown.open { max-height: 250px; opacity: 1; border-top: 1px solid var(--border-hi); }
.cs-option { padding: 14px 18px; font-size: 13px; font-weight: 300; color: var(--text-mid); cursor: pointer; border-bottom: 1px solid var(--border); transition: all 0.2s; }
.cs-option:hover { background: #2a2a2a; color: var(--white); padding-left: 24px; }

/* INPUTS */
input[type="text"], input[type="tel"] { width: 100%; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-bottom-color: var(--border-md); color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 300; outline: none; transition: all 0.2s; }
input:focus { border-color: var(--border-hi); background: var(--surface2); }
input::placeholder { color: #555; }
.phone-wrap { display: flex; gap: 10px; }
.phone-wrap .custom-select-wrap { width: 110px; flex-shrink: 0; }
.phone-wrap input { flex: 1; }

/* CALENDAR */
.calendar-section { margin-bottom: 24px; }
.calendar-wrap { border: 1px solid var(--border); background: var(--surface); }
.cal-nav { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px solid var(--border); }
.cal-nav-btn { background: none; border: none; color: var(--text-mid); cursor: pointer; font-size: 18px; transition: color 0.2s; }
.cal-nav-btn:hover { color: var(--white); }
#cal-month-label { font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 2px; color: var(--text); text-transform: uppercase; }
.cal-day-headers { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 9px; letter-spacing: 1px; color: var(--text-dim); padding: 10px 0; border-bottom: 1px solid var(--border); background: var(--card-bg); }
.cal-days-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 10px; background: var(--card-bg); }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 300; cursor: pointer; border: 1px solid transparent; color: var(--text-mid); transition: all 0.2s; }
.cal-day.past { color: #333; pointer-events: none; }
.cal-day.available:hover { border-color: var(--border-md); color: var(--white); }
.cal-day.selected { background: var(--white); color: #111; font-weight: 500; }

/* SLOTS Y LEYENDA */
.slots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.placeholder-text { grid-column: 1 / -1; text-align: center; font-size: 12px; color: var(--text-dim); padding: 15px 0; font-style: italic; }
.slot-btn { padding: 12px 0; background: var(--surface); border: 1px solid var(--border); color: var(--text-main); cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 300; transition: all 0.2s; }
.slot-btn:hover { border-color: var(--border-hi); color: var(--white); background: #222; }
.slot-btn.occupied { color: #555; border: 1px dashed #333; background: transparent; font-size: 12px; }
.slot-btn.occupied:hover { color: var(--text-mid); border-color: #555; }
.slots-legend { margin-top: 15px; padding: 14px 16px; background: rgba(255,255,255,0.03); border-left: 2px solid #555; display: flex; gap: 12px; align-items: center; }
.legend-icon { font-size: 16px; opacity: 0.8; }
.slots-legend p { font-size: 11px; color: #aaa; line-height: 1.5; font-weight: 300; }
.slots-legend strong { color: var(--white); font-weight: 500; }

/* SUMMARY CARD */
.summary-card { border: 1px solid var(--border); background: var(--surface); margin-bottom: 25px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; }
.summary-label { font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); }
.summary-value { font-family: 'Cormorant Garamond', serif; font-size: 18px; color: var(--white); }
.summary-divider { height: 1px; background: var(--border); margin: 0 20px; }

/* PRIVACY CHECKBOX */
.privacy-group { margin-top: 10px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.checkbox-label input[type="checkbox"] { display: none; }
.checkbox-custom { flex-shrink: 0; width: 16px; height: 16px; border: 1px solid #555; background: var(--surface); display: flex; align-items: center; justify-content: center; margin-top: 2px; transition: all 0.2s; }
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom { background: var(--white); border-color: var(--white); }
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after { content: ''; width: 4px; height: 8px; border: 2px solid #111; border-top: none; border-left: none; transform: rotate(45deg) translateY(-1px); }
.checkbox-text { font-size: 11px; font-weight: 300; color: var(--text-dim); line-height: 1.6; }
.privacy-link { color: var(--text-mid); text-decoration: underline; text-underline-offset: 2px; }
.privacy-link:hover { color: var(--white); }

/* BUTTONS */
.btn-primary { width: 100%; padding: 16px; background: var(--white); color: #111; border: none; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 3px; cursor: pointer; transition: all 0.3s; margin-top: 20px; }
.btn-primary:hover { background: #e0e0e0; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-link { background: none; border: none; color: var(--text-dim); text-transform: uppercase; font-size: 9px; font-weight: 600; letter-spacing: 2px; cursor: pointer; margin-bottom: 25px; transition: color 0.2s; }
.btn-link:hover { color: var(--white); }

/* ── NUEVO: ESTILOS PARA EL CÓDIGO OTP (CAJITAS) ── */
.verification-text { font-size: 13px; color: var(--text-mid); margin-bottom: 30px; line-height: 1.6; font-weight: 300; text-align: center; }
.verification-text strong { color: var(--white); font-weight: 600; letter-spacing: 1px; }

.otp-container { display: flex; gap: 8px; justify-content: space-between; margin-bottom: 30px; }
.otp-input { 
  width: 100%; height: 55px; 
  background: var(--surface); 
  border: 1px solid var(--border); 
  border-bottom-color: #444; 
  color: var(--text); 
  font-family: 'DM Sans', sans-serif; 
  font-size: 22px; 
  font-weight: 400; 
  text-align: center; 
  outline: none; 
  transition: all 0.2s; 
  border-radius: 2px; 
}
.otp-input:focus { border-color: var(--white); background: #222; }

/* SUCCESS */
.success-wrap { text-align: center; padding: 20px 0; }
.success-icon { font-size: 24px; width: 60px; height: 60px; border: 1px solid var(--border-hi); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--white); }
#success-title { font-family: 'Cormorant Garamond', serif; font-size: 32px; color: var(--white); margin-bottom: 12px; }
#success-details { color: var(--text-dim); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; line-height: 1.8; margin-bottom: 15px; }
#success-message { font-size: 13px; font-weight: 300; color: var(--text-dim); }

@media (max-width: 400px) {
  .card { padding: 30px 20px; }
  .slots-grid { grid-template-columns: repeat(3, 1fr); }
  .otp-input { height: 48px; font-size: 20px; }
}