/* =====================================================
   VARIABLES GLOBALES
   ===================================================== */
:root {
  --primary: #00a9ff; /* Un azul eléctrico vibrante */
  --primary-light: rgba(0, 169, 255, 0.2);
  --dark-bg: #0b0f19;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-main: #e0e0e0;
  --text-secondary: #a0a0a0;
  --success: #28a745;
  --error: #dc3545;
  --surface-1: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(0, 0, 0, 0.25);
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 12px;
}

/* =====================================================
   ESTILOS BASE
   ===================================================== */
* {
  box-sizing: border-box;
  font-family: "Plus Jakarta Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

body {
  margin: 0;
  background: var(--dark-bg);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 15% 50%, var(--primary-light), transparent 30%),
    radial-gradient(
      circle at 85% 30%,
      rgba(200, 100, 255, 0.1),
      transparent 40%
    );
}

/* =====================================================
   PANTALLA DE CARGA
   ===================================================== */
#loader-wrapper {
  position: fixed;
  inset: 0;
  background: url("https://www.veritas.org.mx/Publicacion/img/transferencias-bancarias-beneficios-de-incluir-el-concepto")
    no-repeat center center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#loader-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(11, 15, 25, 0.85) 0%,
    rgba(11, 15, 25, 0.98) 100%
  );
  backdrop-filter: blur(4px);
}

.loader-content {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 450px;
  text-align: center;
}

.loader-brand {
  margin-bottom: 40px;
  animation: fadeInDown 0.8s ease-out;
}

.loader-brand h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

/* Reusable brand gradient for titles (same as loader) */
.brand-gradient,
.panel-header .panel-title {
  background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: -1px;
}

.loader-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 5px;
}

/* Contenedor de Información */
.loader-info-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
  margin-bottom: 30px;
}

#loader-status-text {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 15px;
  height: 20px;
  display: block;
}

/* Barra de Progreso */
.progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #00d4ff);
  box-shadow: 0 0 15px var(--primary-light);
  border-radius: 10px;
  transition: width 0.4s ease;
}

.progress-percentage {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 700;
}

/* Tips de seguridad / Info */
.loader-tips {
  height: 40px;
  margin-top: 20px;
}

.tip-item {
  font-size: 0.85rem;
  color: var(--text-main);
  opacity: 0.8;
  display: none;
  animation: fadeInUp 0.5s ease;
}

.tip-item.active {
  display: block;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* =====================================================
   HEADER
   ===================================================== */
header {
  width: 100%;
  height: 100vh;
  position: relative;
  background: url("https://wradio.com.mx/resizer/v2/5H7CUKBXCNFO7ESAWOSHMITTJA.jpg?auth=e2ad10b7961f3c681dfe28894636b486aa0b77be3b35f44afcb8f176283666c9&width=760&height=570&quality=70&smart=true")
    no-repeat center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

/* Scrim + blur uniforme (igual al modal) */
header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 25, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Asegura que el contenido quede sobre el scrim */
header > * {
  position: relative;
  z-index: 1;
}

header h1 {
  font-size: clamp(3rem, 10vw, 5rem);
  margin: 0;
  font-weight: 800;
  letter-spacing: -3px;
  text-shadow:
    0 6px 15px rgba(0, 0, 0, 0.85),
    0 14px 45px rgba(0, 0, 0, 0.65),
    0 0 2px rgba(0, 0, 0, 0.9);
}

header p {
  font-size: 1rem;
  text-shadow:
    0 6px 15px rgba(0, 0, 0, 0.85),
    0 14px 45px rgba(0, 0, 0, 0.65),
    0 0 2px rgba(0, 0, 0, 0.9);
}

/* =====================================================
   CALCULADORA HERO
   ===================================================== */
.hero-calculator {
  margin-top: 30px;
  width: 100%;
  max-width: 550px;
  padding: 0 15px;
  animation: fadeIn 0.8s ease-out;
}

.calc-card {
  background: var(--surface-1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 25px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* =====================================================
   TARJETA UNIFICADA (HERO + MODALES)
   ===================================================== */
.surface-card {
  background: var(--surface-1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* Aplicar misma tarjeta a los componentes existentes */
.calc-card,
.modal-content {
  background: var(--surface-1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* Fila de Inputs */
.calc-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.input-field {
  flex: 1;
  text-align: left;
  min-width: 0;
}

.input-field label {
  /* Unificamos con el sistema global de formularios */
  display: block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.input-field input {
  /* Unificamos con el sistema global de inputs */
  width: 100%;
  padding: 15px;
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 1.05rem;
  font-weight: 800;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Icono de intercambio */
.swap-icon {
  font-size: 1.2rem;
  color: var(--primary);
  background: rgba(0, 169, 255, 0.1);
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-top: 18px;
  flex-shrink: 0;
}

/* Detalles (Grilla) */
.calc-details {
  display: grid;
  gap: 12px;
  background: rgba(0, 0, 0, 0.15);
  padding: 15px;
  border-radius: 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.exchange-rate-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.exchange-rate-label {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.exchange-rate-value {
  color: white;
  font-size: 1.05rem;
  font-weight: 800;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-item span {
  color: var(--text-secondary);
  font-size: 0.7rem;
  margin-bottom: 2px;
}

.detail-item strong {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
}

/* El total ocupa las dos columnas para resaltar */
.detail-item.total {
  grid-column: span 2;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  margin-top: 5px;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.detail-item.total strong {
  color: var(--success);
  font-size: 1.1rem;
}

/* Botón Principal */
.btn-hero-send {
  /* Mantener compatibilidad si se usa en otra vista,
       pero alineado con el sistema .btn + .btn-next */
  width: 100%;
  min-height: 44px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--primary);
  color: white;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    box-shadow 0.15s ease;
  box-shadow: 0 8px 20px rgba(0, 169, 255, 0.25);
}

.btn-hero-send:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 12px 28px rgba(0, 169, 255, 0.32);
}

/* =====================================================
   BOTÓN FLOTANTE (FAB)
   ===================================================== */
.fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background: var(--primary);
  border-radius: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 169, 255, 0.3);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: pulse 2s infinite ease-in-out;
}

.fab:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 15px 40px rgba(0, 169, 255, 0.5);
  animation-play-state: paused;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Burbuja de notificación del FAB */
.fab-badge-notification {
  position: absolute;
  right: 80px;
  bottom: 10px;
  background: white;
  color: var(--dark-bg);
  padding: 12px 18px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  animation: floatingBubble 3s infinite ease-in-out;
  border: 1px solid var(--primary);
}

/* Flechita del bocadillo */
.fab-badge-notification::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid white;
}

/* Animación de entrada y balanceo */
@keyframes floatingBubble {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-10px);
  }
}

/* =====================================================
   MODALES
   ===================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.7);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-content {
  width: 100%;
  max-width: 500px;
  padding: 35px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay[style*="display: flex;"] {
  opacity: 1;
}
.modal-overlay[style*="display: flex;"] .modal-content {
  transform: scale(1);
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 10px;
}

.step {
  display: none;
}
.step.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.input-group,
.input-field {
  margin-bottom: 22px;
}

.modal-content h2 {
  margin: 0 0 10px 0;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.modal-content p,
.modal-content ul {
  margin: 0 0 18px 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.nav-buttons {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.swal2-container {
  z-index: 10000 !important;
}

/* =====================================================
   FORMULARIOS
   ===================================================== */
label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  padding: 15px;
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: rgba(224, 224, 224, 0.45);
}

/* =====================================================
   CUSTOM SELECT (Provincia / Municipio)
   ===================================================== */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select.disabled .custom-select-trigger {
  cursor: not-allowed;
  opacity: 0.5;
  background: var(--surface-1);
}

.custom-select-trigger {
  width: 100%;
  padding: 15px;
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
}

.custom-select-label {
  opacity: 0.9;
}

.custom-select-placeholder {
  color: rgba(224, 224, 224, 0.45);
}

.custom-select-arrow {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform-origin: center;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary);
}

.custom-select:focus-within .custom-select-trigger {
  outline: none;
  background: rgba(0, 169, 255, 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.custom-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 220px;
  overflow-y: auto;
  background: rgba(20, 24, 38, 0.98);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
  padding: 6px;
  z-index: 20;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.custom-select.open .custom-select-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.custom-select-option {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-main);
  text-align: left;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.1s ease;
}

.custom-select-option:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(2px);
}

.custom-select-option.is-selected {
  background: rgba(0, 169, 255, 0.12);
  color: white;
}

.custom-select-option.is-selected::after {
  content: "✓";
  font-size: 0.8rem;
  color: var(--primary);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  background: rgba(0, 169, 255, 0.1);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

input[type="file"] {
  padding: 12px;
  cursor: pointer;
}

input[readonly] {
  opacity: 0.9;
  cursor: default;
}

input[type="file"]::-webkit-file-upload-button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 10px;
  transition: 0.2s ease;
}

input[type="file"]::-webkit-file-upload-button:hover {
  opacity: 0.9;
}

/* Para navegadores WebKit (Chrome, Safari, Edge) 
Elimina los botones de incremento y decremento para todos los inputs number 
*/
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* =====================================================
   BOTONES
   ===================================================== */
.btn {
  /* Usabilidad */
  min-height: 44px; /* touch target */
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
  flex: 1;
  font-size: 1rem;
  line-height: 1.1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}
.btn:active {
  transform: translateY(0px);
  filter: brightness(0.98);
}

.btn:focus {
  outline: none;
}
.btn:focus-visible {
  box-shadow:
    0 0 0 3px rgba(11, 15, 25, 0.65),
    0 0 0 6px var(--primary-light),
    0 10px 22px rgba(0, 0, 0, 0.25);
}

.btn-next {
  background: var(--primary);
  color: white;
}

.btn-prev {
  background: rgba(255, 255, 255, 0.06);
  color: white;
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-cancel {
  background: rgba(220, 53, 69, 0.12);
  color: #ff6b77;
  border-color: rgba(220, 53, 69, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-small {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 900;
  flex: 0 0 auto;
}

/* Respeta preferencias de accesibilidad (reduce motion) */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .fab {
    transition: none !important;
    animation: none !important;
  }
  .btn:hover,
  .btn:active,
  .fab:hover {
    transform: none !important;
    filter: none !important;
  }
}

.calc-box {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 25px;
  border: 1px solid var(--glass-border);
}

.text-muted {
  color: var(--text-secondary);
}

.text-success-amount {
  color: var(--success);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.2px;
}

.divider {
  border: none;
  height: 1px;
  background: var(--glass-border);
  margin: 10px 0;
}

.zelle-account {
  font-size: 1.2rem;
  font-weight: 900;
  color: white;
  letter-spacing: -0.2px;
}

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

/* =====================================================
   UTILIDADES Y CLASES AUXILIARES
   ===================================================== */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.text-small-uppercase {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.btn-block {
  width: 100%;
}

.btn-spaced {
  margin-top: 15px;
}

.mt-25 {
  margin-top: 25px;
}

.mt-10 {
  margin-top: 10px;
}

.mb-10 {
  margin-bottom: 10px;
}

.text-center {
  text-align: center;
}

.zelle-box {
  text-align: center;
  border: 1px dashed var(--primary);
}

.zelle-box-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.calc-box-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

/* FAB específico para tracking */
#tracking-fab {
  bottom: 105px;
  background: #6c757d;
  font-size: 24px;
}

/* Contenedor de resultados de tracking (inicialmente oculto) */
#tracking-results {
  margin-top: 25px;
  display: none;
}

/* =====================================================
   COMPONENTES DE RASTREO
   ===================================================== */
.tracking-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 15px;
  margin-bottom: 12px;
  transition: transform 0.2s;
}

.tracking-card:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.08);
}

.status-pill {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Colores de estados */
.status-pendiente {
  background: #ffc107;
  color: #000;
}
.status-completada {
  background: #28a745;
  color: #fff;
}
.status-cancelada {
  background: #dc3545;
  color: #fff;
}
.status-procesando {
  background: var(--primary);
  color: #fff;
}

.tracking-info {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

/* Fix para la visibilidad del modal */
.modal-overlay.active {
  display: flex !important;
  opacity: 1;
}

/* =====================================================
   BARRA DE PROGRESO PRINCIPAL
   ===================================================== */
#main-progress-bar {
  height: 6px;
  width: 0%;
  background-color: #4caf50;
  border-radius: 3px;
  transition: width 0.5s ease-in-out;
}

#progress-bar-container {
  width: 100%;
  height: 6px;
  background-color: #333;
  border-radius: 3px;
  overflow: hidden;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (min-width: 481px) {
  .calc-details {
    grid-template-columns: repeat(3, 1fr);
  }
  .detail-item.total {
    grid-column: span 1;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
  }
}

/* Móviles Pequeños (iPhone SE, etc) */
@media (max-width: 480px) {
  .modal-content {
    padding: 25px;
    border-radius: 20px;
  }
  header h1 {
    font-size: 2.5rem;
  }
  .fab {
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
  }

  .fab-badge-notification {
    font-size: 0.75rem;
    padding: 8px 12px;
    right: 70px;
  }

  .calc-input-row {
    flex-direction: column;
    gap: 0;
  }

  .input-field {
    width: 100%;
  }

  .swap-icon {
    transform: rotate(90deg);
    margin: 10px auto;
  }

  input,
  select,
  textarea {
    padding: 12px;
  }

  .hero-calculator {
    margin-top: 20px;
  }

  .calc-card {
    padding: 20px;
  }
}

/* =====================================================
   INDICADOR DE ESTADO
   ===================================================== */
#status-indicator {
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =====================================================
   BOTONES SECUNDARIOS Y DETALLES
   ===================================================== */
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: white;
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-details {
  background: rgba(0, 169, 255, 0.2);
  color: #00a9ff;
  border: 1px solid #00a9ff;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

.btn-details:hover {
  background: rgba(0, 169, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 169, 255, 0.3);
}
