/* ═══════════════════════════════════════════════════════ */
/* COMMON.CSS — Estilos compartidos módulo de reservas    */
/* ═══════════════════════════════════════════════════════ */

:root {
  --bg: #F7F5F0;
  --bg-card: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-secondary: #6B6560;
  --text-muted: #A09A93;
  --accent: #2D6A4F;
  --accent-light: #40916C;
  --accent-glow: rgba(45, 106, 79, 0.12);
  --accent-hover: #1B4332;
  --border: #E8E4DE;
  --border-focus: #2D6A4F;
  --stepper-inactive: #D4CFC8;
  --stepper-done: #2D6A4F;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  height: 100%;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ═══════════════════════════════════════ */
/* STEPPER                                */
/* ═══════════════════════════════════════ */
.stepper-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 18px 16px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid var(--stepper-inactive);
  color: var(--text-muted);
  background: var(--bg-card);
  position: relative;
  flex-shrink: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.step-circle:hover {
  border-color: var(--text-secondary);
  color: var(--text-secondary);
  transform: scale(1.08);
}

.step-circle.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px var(--accent-glow);
  transform: scale(1.1);
}

.step-circle.done {
  border-color: var(--stepper-done);
  background: var(--stepper-done);
  color: #fff;
}

.step-circle.done::after {
  content: '✓';
  font-size: 15px;
  font-weight: 700;
}

.step-circle.done span { display: none; }

.step-line {
  flex: 1;
  height: 2px;
  background: var(--stepper-inactive);
  max-width: 60px;
  min-width: 20px;
  transition: background var(--transition);
}

.step-line.done {
  background: var(--stepper-done);
}

/* ═══════════════════════════════════════ */
/* MAIN CONTENT                           */
/* ═══════════════════════════════════════ */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px 40px;
  animation: fadeUp 0.5s ease-out both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  text-align: center;
  letter-spacing: -0.3px;
}

.screen-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  text-align: center;
  max-width: 360px;
  line-height: 1.5;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

/* ═══════════════════════════════════════ */
/* FORM ELEMENTS                          */
/* ═══════════════════════════════════════ */
.field-group {
  margin-bottom: 28px;
}

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

/* ═══════════════════════════════════════ */
/* CTA BUTTON                             */
/* ═══════════════════════════════════════ */
.cta-btn {
  width: 100%;
  margin-top: 28px;
  padding: 16px 24px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.cta-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(45, 106, 79, 0.25);
}

.cta-btn:hover::before { opacity: 1; }

.cta-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.2);
}

.cta-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cta-btn .btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-btn .btn-text svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.cta-btn:hover:not(:disabled) .btn-text svg {
  transform: translateX(3px);
}

/* ═══════════════════════════════════════ */
/* FOOTER                                 */
/* ═══════════════════════════════════════ */
.footer {
  text-align: center;
  padding: 16px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}

/* ═══════════════════════════════════════ */
/* RESPONSIVE                             */
/* ═══════════════════════════════════════ */
@media (max-width: 420px) {
  .content {
    padding: 24px 16px 32px;
  }
  .card {
    padding: 22px 18px 26px;
    border-radius: var(--radius-md);
  }
  .screen-title {
    font-size: 24px;
  }
  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
}
