/* ═════════════════════════════════════════════════════════════
   FOOTER CSS
   
   Estilos para:
   - Footer sticky con resumen de cita
   - Botón CTA principal (Continuar/Confirmar)
   - Utilidades de footer
═════════════════════════════════════════════════════════════ */

/* ── FOOTER ── */
.footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-top: 1px solid var(--gray-200);
  padding: 16px 20px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 50
}

@media(min-width:768px) {
  .footer {
    position: sticky;
    bottom: 0;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .06);
    z-index: 10;
  }
}

.footer-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px
}

.footer-label {
  font-size: 12px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px
}

.footer-label svg {
  width: 14px;
  height: 14px;
  color: var(--primary)
}

.footer-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  margin-top: 2px
}

.footer-change {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin: -8px
}

.footer-empty {
  text-align: center;
  padding: 4px 0;
  margin-bottom: 14px
}

.footer-empty-text {
  font-size: 14px;
  color: var(--gray-400)
}

/* ── CTA BUTTON ── */
.cta-btn {
  width: 100%;
  padding: 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-family: inherit
}

.cta-btn:active {
  transform: scale(.98);
  background: var(--primary-dark)
}

.cta-btn:disabled {
  background: var(--gray-300);
  cursor: not-allowed;
  transform: none
}

.cta-btn svg {
  width: 20px;
  height: 20px
}

/* ── Responsive ── */
@media (min-width: 1024px) {
  .footer {
    position: sticky;
    bottom: 0;
    z-index: 10;
    border-top: 1px solid var(--gray-200);
    padding: 20px 36px;
    background: var(--gray-50);
    flex-shrink: 0
  }

  .footer-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 14px 20px;
    margin-bottom: 14px
  }

  .footer-change {
    background: rgba(26,58,92,.08);
    padding: 8px 16px;
    border-radius: 20px
  }
}
