/* Modal Bloqueo Nexxus */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30,40,60,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.2s;
}
.modal.hidden { display: none; }
.modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(30,40,60,0.18);
  padding: 36px 28px 28px 28px;
  max-width: 350px;
  text-align: center;
}
.modal-content h3 {
  color: var(--primary);
  margin-bottom: 12px;
}
.modal-content p {
  color: var(--text-main);
  margin-bottom: 24px;
  font-size: 1.05rem;
}
.modal-content .btn {
  width: 100%;
  margin: 0;
}
:root {
  /* Brand Colors */
  --primary: #FA8514;
  --primary-hover: #E67E22;
  --secondary: #3E4A60;
  --bg-color: #F4F6F9;
  --white: #FFFFFF;
  --success: #2ECC71;
  --error: #E74C3C;
  --text-main: #3E4A60;
  --text-muted: #64748B;
  
  /* UI Tokens */
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow-soft: 0 15px 35px rgba(0,0,0,0.05);
  --shadow-hover: 0 10px 25px rgba(250, 133, 20, 0.15);
  --font-main: 'Montserrat', sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
* { box-sizing: border-box; }
body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: 480px; margin: 0 auto; }

/* Cards & Layout */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  animation: fadeIn 0.5s ease-out;
}

.card-header {
  padding: 40px 30px 20px;
  text-align: center;
  background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
}

.brand-logo { width: 140px; margin-bottom: 20px; }

.card-body { padding: 0 30px 40px; }

/* Typography */
h1, h2, h3 { margin: 0 0 15px; color: var(--secondary); font-weight: 800; }
h2 { font-size: 1.5rem; color: var(--primary); }
p { margin-bottom: 20px; color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; }

/* Forms */
.form-group { margin-bottom: 20px; }
input.form-control, select.form-control {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #F0F2F5;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition);
  background: #FAFAFA;
}
input.form-control:focus, select.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(250, 133, 20, 0.1);
}

/* Buttons */
.btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn:active { transform: translateY(0); }
.btn:disabled { background: #CBD5E1; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-link {
  background: none;
  border: none;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
  padding: 15px;
  margin-top: 10px;
  font-size: 0.9rem;
}

/* Selection Cards */
.selection-grid { display: flex; flex-direction: column; gap: 15px; margin-bottom: 30px; }
.select-option {
  border: 2px solid #F0F2F5;
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.select-option:hover { border-color: #FECDA3; }
.select-option.selected {
  border-color: var(--primary);
  background: #FFF8F0;
  box-shadow: 0 5px 15px rgba(250, 133, 20, 0.05);
}

.radio-indicator {
  width: 22px; height: 22px;
  border: 2px solid #CBD5E1;
  border-radius: 50%;
  position: relative;
  margin-right: 15px;
  flex-shrink: 0;
}
.selected .radio-indicator { border-color: var(--primary); }
.selected .radio-indicator::after {
  content: ''; position: absolute;
  top: 4px; left: 4px;
  width: 10px; height: 10px;
  background: var(--primary);
  border-radius: 50%;
}

.option-details { flex: 1; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.amount { font-size: 1.2rem; font-weight: 800; color: var(--secondary); }

/* Sub Options */
.sub-options {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed rgba(250,133,20,0.3);
  display: none;
  flex-direction: column;
  gap: 10px;
}
.sub-btn {
  padding: 14px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  background: #FAFAFA;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}
.sub-btn:hover { background: #F1F5F9; }
.sub-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Timeline */
.timeline { margin: 25px 0 10px 10px; border-left: 2px solid #E2E8F0; padding-left: 25px; }
.timeline-item { position: relative; margin-bottom: 25px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker {
  width: 28px; height: 28px;
  background: #E2E8F0;
  color: var(--secondary);
  border-radius: 50%;
  position: absolute;
  left: -40px; top: 0;
  text-align: center;
  line-height: 28px;
  font-weight: 700;
  font-size: 12px;
  z-index: 2;
  border: 2px solid var(--white);
}
.timeline-item.final .timeline-marker { background: var(--primary); color: white; }
.t-title { font-size: 0.75rem; text-transform: uppercase; color: var(--primary); font-weight: 700; display: block; margin-bottom: 4px; }
.t-date { font-weight: 600; color: #64748B; font-size: 0.95rem; }
.t-amount { float: right; font-weight: 800; color: var(--secondary); font-size: 1rem; }

/* Utilities */
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Toast */
.toast-container { position: fixed; bottom: 30px; left: 0; right: 0; display: flex; justify-content: center; pointer-events: none; z-index: 1000; }
.toast {
  background: #333; color: white; padding: 12px 25px;
  border-radius: 50px; font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transform: translateY(100px); opacity: 0; transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.toast.visible { transform: translateY(0); opacity: 1; }
.toast.error { background: var(--error); }
.toast.success { background: var(--success); }

/* Modal */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(62, 74, 96, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex; justify-content: center; align-items: center;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--white);
  width: 90%; max-width: 420px;
  padding: 35px;
  border-radius: 25px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  transform: scale(0.9); transition: var(--transition);
}
.modal-overlay.open .modal-box { transform: scale(1); }
