* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --azul: #1f5cff;
  --azul-oscuro: #0d2c6c;
  --naranja: #ff9500;
  --texto: #6b7a96;
  --fondo: #f6f9ff;
  --blanco: #ffffff;
  --borde: rgba(31, 92, 255, 0.12);
  --sombra: 0 20px 50px rgba(13, 44, 108, 0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #edf4ff 0%, #f8fbff 45%, #fff7ee 100%);
  color: var(--azul-oscuro);
  overflow-x: hidden;
}

a { text-decoration: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

.bg-tech { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.bg-tech span { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(31,92,255,0.12), rgba(31,92,255,0.02)); animation: floatTech 12s infinite ease-in-out; }
.bg-tech span:nth-child(1) { width: 220px; height: 220px; left: 5%; top: 12%; }
.bg-tech span:nth-child(2) { width: 320px; height: 320px; right: 8%; top: 22%; animation-delay: 2s; }
.bg-tech span:nth-child(3) { width: 170px; height: 170px; left: 18%; bottom: 12%; animation-delay: 4s; }
.bg-tech span:nth-child(4) { width: 160px; height: 160px; right: 20%; bottom: 18%; animation-delay: 1s; }
.bg-tech span:nth-child(5) { width: 120px; height: 120px; left: 45%; top: 40%; animation-delay: 3s; }

@keyframes floatTech {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  50% { transform: translateY(-18px) translateX(12px) scale(1.04); }
}

.topbar, .header, .hero, .client-access, .quote-section, .services, .why-us, .footer { position: relative; z-index: 2; }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 40px; background: #1e4fc4; color: white; font-size: 14px;
}
.topbar-left  { display: flex; gap: 20px; align-items: center; }
.topbar-right { display: flex; align-items: center; gap: 20px; }

.btn-login-top {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 8px; border-radius: 999px;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.15);
  color: white; font-weight: 700; transition: 0.3s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.btn-login-top:hover { background: rgba(255,255,255,0.26); transform: translateY(-1px); }

.login-icon-wrap {
  width: 32px; height: 32px; min-width: 32px; border-radius: 50%;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.22);
}
.login-icon-wrap img { width: 18px; height: 18px; object-fit: contain; display: block; }
.horario { white-space: nowrap; }

.header { padding: 20px 0; }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 24px; }
.logo-mark { color: var(--naranja); font-size: 30px; }
.logo-text  { color: #1e4fc4; }

.menu { display: flex; align-items: center; gap: 30px; }
.menu a { color: var(--azul-oscuro); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle { display: none; border: none; background: transparent; font-size: 26px; cursor: pointer; color: var(--azul-oscuro); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 14px 28px; border-radius: 16px;
  font-weight: 700; transition: .3s ease; border: none; cursor: pointer;
  font-family: 'Montserrat', sans-serif;
}
.btn-primary  { background: linear-gradient(135deg, #ff9500, #ffa733); color: white; box-shadow: 0 12px 28px rgba(255,149,0,0.30); }
.btn-primary:hover  { transform: translateY(-3px); }
.btn-secondary { background: linear-gradient(135deg, #1f5cff, #3971ff); color: white; box-shadow: 0 12px 28px rgba(31,92,255,0.28); }
.btn-secondary:hover { transform: translateY(-3px); }
.full { width: 100%; }

.glass { background: rgba(255,255,255,0.68); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--borde); box-shadow: var(--sombra); }

.badge { display: inline-block; padding: 12px 18px; border-radius: 999px; background: rgba(31,92,255,0.08); border: 1px solid rgba(31,92,255,0.12); color: #1e4fc4; font-weight: 700; margin-bottom: 18px; }

/* ── HERO ─────────────────────────────────────────────── */
.hero { padding: 40px 0 70px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: 0; right: 0; width: 50%; height: 100%;
  background: url('/img/fondo_principal.png') no-repeat center right; background-size: cover;
  mask-image: linear-gradient(to left, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 70%, transparent 100%); z-index: 0;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 50px; position: relative; z-index: 2; }
.hero-text h1 { font-size: clamp(42px, 6vw, 74px); line-height: 0.98; margin-bottom: 22px; font-weight: 800; }
.hero-text h1 span { color: var(--naranja); }
.hero-text p { font-size: 20px; color: var(--texto); line-height: 1.7; max-width: 700px; }
.hero-buttons { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-features { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.feature-pill { padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,0.7); border: 1px solid rgba(31,92,255,0.12); color: var(--azul-oscuro); font-weight: 600; }
.hero-visual { min-height: 520px; }
.hero-card, .floating-box, .box1, .box2, .box3, .delivery-illustration { display: none !important; }

/* ── SECTION TITLE ────────────────────────────────────── */
.section-title { text-align: center; max-width: 850px; margin: 0 auto 40px; }
.section-title h2 { font-size: clamp(30px, 4.5vw, 50px); margin-bottom: 12px; font-weight: 800; }
.section-title h2 span { color: var(--naranja); }
.section-title p { color: var(--texto); font-size: 18px; line-height: 1.7; }

/* ── CLIENT ACCESS ────────────────────────────────────── */
.client-access { padding: 30px 0 80px; }
.client-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.client-card { padding: 40px 30px; border-radius: 28px; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.client-card:hover { transform: translateY(-8px); }
.client-icon { width: 78px; height: 78px; margin: 0 auto 20px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 32px; background: linear-gradient(135deg, rgba(31,92,255,0.12), rgba(255,153,0,0.10)); border: 1px solid rgba(24,78,204,0.12); }
.client-card h3 { font-size: 32px; color: var(--azul-oscuro); margin-bottom: 14px; }
.client-card p { font-size: 17px; line-height: 1.8; color: var(--texto); margin-bottom: 24px; }

/* ── QUOTE ────────────────────────────────────────────── */
.quote-section, .services, .why-us { padding: 80px 0; }
.quote-grid, .why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
.quote-form, .quote-tech-card, .why-panel { padding: 34px; border-radius: 28px; }
.quote-form h2, .quote-tech-card h3 { font-size: 34px; margin-bottom: 20px; font-weight: 800; }
.quote-tech-card p, .why-text p { color: var(--texto); line-height: 1.8; font-size: 17px; }
.input-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.input-group label { font-weight: 700; color: #123a88; }
.input-group input, .input-group select { width: 100%; height: 56px; border-radius: 16px; border: 1px solid rgba(31,92,255,0.14); background: rgba(255,255,255,0.92); padding: 0 16px; font-size: 15px; font-family: inherit; outline: none; }
.form-message { margin-top: 16px; font-weight: 600; color: #1e4fc4; }
.quote-total-box { background: #f8fbff; border: 1px solid #dfe8ff; border-radius: 22px; text-align: center; padding: 20px 16px; margin: 18px 0; }
.quote-total-box span { display: block; color: #6b7aa3; font-size: 1rem; margin-bottom: 8px; }
.quote-total-box h3 { color: #f7a51a; font-size: 2.2rem; font-weight: 800; }

/* ── MINI STATS ───────────────────────────────────────── */
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.stat { text-align: center; padding: 20px 12px; border-radius: 18px; background: rgba(255,255,255,0.76); border: 1px solid rgba(31,92,255,0.10); }
.stat strong { display: block; font-size: 28px; color: var(--naranja); margin-bottom: 6px; }
.stat span { color: var(--texto); font-weight: 600; }

/* ── SERVICES ─────────────────────────────────────────── */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { padding: 34px; border-radius: 26px; text-align: center; }
.service-icon { font-size: 42px; margin-bottom: 16px; }
.service-card h3 { font-size: 26px; margin-bottom: 12px; }
.service-card p { color: var(--texto); line-height: 1.7; }

/* ── WHY US ───────────────────────────────────────────── */
.why-text h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 18px; font-weight: 800; }
.why-text h2 span { color: var(--naranja); }
.why-list { list-style: none; margin: 24px 0 28px; }
.why-list li { position: relative; padding-left: 26px; margin-bottom: 14px; color: var(--texto); font-weight: 600; }
.why-list li::before { content: "✓"; position: absolute; left: 0; color: #1e4fc4; font-weight: 800; }
.panel-header { display: flex; gap: 10px; margin-bottom: 20px; }
.dot { width: 14px; height: 14px; border-radius: 50%; }
.dot.blue { background: #1f5cff; } .dot.orange { background: #ff9500; } .dot.white { background: #dce6ff; }
.progress-card { padding: 20px; border-radius: 18px; background: rgba(255,255,255,0.76); margin-bottom: 20px; }
.progress-card p { font-weight: 700; margin-bottom: 12px; }
.progress { width: 100%; height: 14px; background: #e8efff; border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.progress-bar { width: 82%; height: 100%; background: linear-gradient(135deg, #1f5cff, #ff9500); }
.cards-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.mini-card { padding: 18px; border-radius: 18px; background: rgba(255,255,255,0.76); }
.mini-card strong { display: block; font-size: 20px; margin-bottom: 6px; }
.mini-card span { color: var(--texto); }

/* ── LANGUAGE SWITCHER ────────────────────────────────── */
.language-switcher { display: flex; align-items: center; gap: 6px; margin-left: 16px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,0.7); backdrop-filter: blur(10px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.lang-btn { border: none; outline: none; cursor: pointer; padding: 6px 12px; border-radius: 10px; font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700; background: transparent; color: #1d3f91; transition: all 0.25s ease; }
.lang-btn:hover { background: rgba(29,63,145,0.08); transform: translateY(-1px); }
.lang-btn.active { background: linear-gradient(135deg, #ff9800, #ff7a00); color: #fff; box-shadow: 0 4px 12px rgba(255,152,0,0.35); }

/* ── FOOTER ───────────────────────────────────────────── */
.footer { background: #102d73; color: white; padding-top: 60px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 30px; }
.footer h4 { margin-bottom: 12px; font-size: 20px; }
.footer p, .footer a { color: rgba(255,255,255,0.84); line-height: 1.9; }
.footer-logo .logo-text { color: white; }
.footer-bottom { text-align: center; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.12); }

/* ── BOTÓN FLOTANTE RASTREO ───────────────────────────── */
.rastreo-fab {
  position: fixed; bottom: 28px; right: 28px;
  background: linear-gradient(135deg, #1B3F8B, #2B5CE6);
  color: white; display: flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; cursor: pointer;
  z-index: 999; box-shadow: 0 8px 28px rgba(27,63,139,0.35);
  transition: 0.3s; user-select: none;
}
.rastreo-fab:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(27,63,139,0.45); }

.rastreo-pulse {
  position: absolute; inset: 0; border-radius: 999px;
  background: rgba(43,92,230,0.4);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.4); opacity: 0; }
}

.rastreo-icon  { font-size: 20px; position: relative; z-index: 1; }
.rastreo-texto { font-size: 14px; font-weight: 700; position: relative; z-index: 1; }

/* ── MODAL RASTREO ────────────────────────────────────── */
.rastreo-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; backdrop-filter: blur(6px); padding: 20px;
}

.rastreo-modal {
  background: white; border-radius: 24px;
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  padding: 32px 28px; position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}

.rastreo-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: #F0F4FF; color: #64748B;
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.rastreo-header { text-align: center; margin-bottom: 24px; }
.rastreo-logo { font-size: 48px; margin-bottom: 12px; }
.rastreo-header h2 { font-size: 22px; font-weight: 800; color: #0D2257; margin-bottom: 8px; }
.rastreo-header p  { font-size: 14px; color: #64748B; line-height: 1.6; }

.rastreo-form { display: flex; gap: 10px; margin-bottom: 20px; }
.rastreo-form input {
  flex: 1; padding: 14px 16px;
  border: 2px solid rgba(27,63,139,0.15); border-radius: 12px;
  font-size: 14px; font-family: 'Montserrat', sans-serif;
  outline: none; color: #0D2257; font-weight: 600;
  letter-spacing: 0.5px; transition: 0.2s;
}
.rastreo-form input:focus { border-color: #2B5CE6; box-shadow: 0 0 0 3px rgba(43,92,230,0.1); }
.rastreo-form button {
  background: linear-gradient(135deg, #1B3F8B, #2B5CE6);
  color: white; border: none; padding: 14px 20px;
  border-radius: 12px; font-size: 14px; font-weight: 700;
  font-family: 'Montserrat', sans-serif; cursor: pointer; transition: 0.2s;
}
.rastreo-form button:hover { transform: translateY(-1px); }

.rastreo-loading { text-align: center; color: #64748B; padding: 20px; font-size: 14px; }
.rastreo-error   { text-align: center; color: #DC2626; padding: 16px; font-size: 14px; font-weight: 600; background: #FEF2F2; border-radius: 12px; }

.rastreo-card { border: 1px solid rgba(27,63,139,0.1); border-radius: 16px; overflow: hidden; }
.rastreo-codigo  { font-size: 16px; font-weight: 800; color: #0D2257; padding: 16px 18px 4px; }
.rastreo-empresa { font-size: 12px; color: #64748B; padding: 0 18px 12px; font-weight: 600; }
.rastreo-estado-badge { margin: 0 18px 16px; display: inline-block; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 700; }

.rastreo-pasos { padding: 0 18px 16px; display: flex; flex-direction: column; gap: 0; }
.rastreo-paso { display: flex; align-items: flex-start; gap: 12px; position: relative; opacity: 0.3; }
.rastreo-paso.done, .rastreo-paso.current { opacity: 1; }

.paso-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: #F0F4FF; display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
  border: 2px solid rgba(27,63,139,0.1); position: relative; z-index: 1;
}
.rastreo-paso.done .paso-icon    { background: #EEF3FF; border-color: #2B5CE6; }
.rastreo-paso.current .paso-icon { background: #1B3F8B; border-color: #1B3F8B; }

.paso-info { padding: 8px 0; }
.paso-info strong { font-size: 13px; color: #0D2257; font-weight: 700; display: block; }

.paso-line { position: absolute; left: 17px; top: 36px; width: 2px; height: 24px; background: rgba(27,63,139,0.12); }
.rastreo-paso.done .paso-line { background: #2B5CE6; }

.rastreo-info { border-top: 1px solid rgba(27,63,139,0.08); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; background: #F8FAFF; }
.rastreo-info-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rastreo-info-item span   { font-size: 12px; color: #94A3B8; font-weight: 600; flex-shrink: 0; }
.rastreo-info-item strong { font-size: 13px; color: #0D2257; font-weight: 700; text-align: right; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid, .quote-grid, .why-grid, .client-grid, .service-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 220px; }
}

@media (max-width: 768px) {
  .topbar { flex-direction: column; padding: 8px 16px; gap: 6px; text-align: center; }
  .topbar-left, .topbar-right { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .horario { display: none; }
  .menu-toggle { display: block; }
  .menu { position: absolute; top: 88px; right: 4%; width: min(320px, 92vw); background: rgba(255,255,255,0.95); border: 1px solid rgba(31,92,255,0.12); border-radius: 20px; box-shadow: var(--sombra); padding: 18px; display: none; flex-direction: column; gap: 16px; }
  .menu.active { display: flex; }
  .nav { position: relative; }
  .hero { padding-top: 20px; }
  .hero::before { width: 100%; left: 0; right: 0; opacity: 0.1; mask-image: none; -webkit-mask-image: none; background-position: center center; background-size: cover; }
  .hero-visual { display: none; }
  .hero-text h1 { font-size: 48px; }
  .hero-text p { font-size: 17px; }
  .client-card h3, .quote-form h2, .quote-tech-card h3, .why-text h2, .section-title h2 { font-size: 32px; }
  .mini-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cards-row { grid-template-columns: repeat(2, 1fr); }
  .hero-buttons { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .nav-actions .btn { display: none; }
  .quote-section, .services, .why-us { padding: 50px 0; }
  .client-access { padding: 20px 0 50px; }
  .quote-form, .quote-tech-card, .why-panel { padding: 24px 18px; }
  .client-card { padding: 28px 18px; }
  .service-card { padding: 24px 18px; }
  .rastreo-fab { bottom: 20px; right: 20px; padding: 12px 18px; }
  .rastreo-texto { display: none; }
  .rastreo-icon  { font-size: 24px; }
  .rastreo-modal { padding: 24px 20px; border-radius: 20px; }
  .rastreo-form  { flex-direction: column; }
  .language-switcher { width: 100%; justify-content: flex-start; margin-top: 12px; padding: 6px; }
  .lang-btn { flex: 1; text-align: center; }
}

@media (max-width: 480px) {
  .logo { font-size: 16px; gap: 5px; }
  .logo-mark { font-size: 20px; }
  .hero { padding: 12px 0 40px; }
  .hero-text h1 { font-size: 34px; line-height: 1.08; }
  .hero-text p { font-size: 15px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .feature-pill { font-size: 13px; padding: 8px 12px; }
  .section-title h2, .why-text h2, .client-card h3 { font-size: 26px; }
  .quote-form h2 { font-size: 22px; }
  .section-title p, .quote-tech-card p, .why-text p, .client-card p { font-size: 15px; }
  .btn { min-height: 48px; padding: 12px 18px; font-size: 15px; border-radius: 14px; }
  .quote-form, .quote-tech-card, .why-panel { padding: 18px 14px; }
  .client-card { padding: 22px 14px; }
  .service-card { padding: 20px 14px; }
  .mini-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .stat { padding: 12px 6px; }
  .stat strong { font-size: 20px; }
  .input-group input, .input-group select { height: 50px; font-size: 14px; }
  .badge { font-size: 13px; padding: 9px 14px; }
  .footer-grid { gap: 20px; }
  .topbar { font-size: 12px; }
  .btn-login-top { padding: 5px 12px 5px 6px; font-size: 13px; }
}
/* ── BOTÓN FLOTANTE RASTREO CREATIVO ─────────────────── */
.rastreo-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  display: flex; align-items: center;
  gap: 0; cursor: pointer;
  z-index: 999;
  user-select: none;
  transition: 0.3s;
}

.rastreo-fab:hover .rastreo-burbuja { 
  max-width: 180px; 
  opacity: 1;
  padding: 10px 16px;
}

.rastreo-fab:hover .rastreo-circulo {
  transform: scale(1.08);
  box-shadow: 0 12px 36px rgba(27,63,139,0.5);
}

.rastreo-burbuja {
  max-width: 0; opacity: 0;
  overflow: hidden; white-space: nowrap;
  background: white;
  color: #0D2257;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 700;
  border-radius: 999px 0 0 999px;
  padding: 10px 0;
  box-shadow: -4px 4px 20px rgba(13,34,87,0.15);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(27,63,139,0.1);
  border-right: none;
  margin-right: -2px;
}

.rastreo-circulo {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1B3F8B, #2B5CE6);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 28px rgba(27,63,139,0.4);
  transition: 0.3s;
  position: relative;
  flex-shrink: 0;
}

.rastreo-pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: rgba(43,92,230,0.35);
  animation: pulse-ring 2.5s ease-out infinite;
}

.rastreo-pulse-2 {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: rgba(43,92,230,0.2);
  animation: pulse-ring 2.5s ease-out infinite 0.8s;
}

@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.rastreo-emoji {
  position: relative; z-index: 1;
  animation: moto-bounce 1.5s ease-in-out infinite;
}

@keyframes moto-bounce {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%       { transform: translateY(-4px) rotate(5deg); }
}

/* ── MODAL RASTREO ────────────────────────────────────── */
.rastreo-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; backdrop-filter: blur(6px); padding: 20px;
}

.rastreo-modal {
  background: white; border-radius: 24px;
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  padding: 32px 28px; position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}

.rastreo-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: #F0F4FF; color: #64748B;
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.rastreo-header { text-align: center; margin-bottom: 24px; }
.rastreo-logo { font-size: 48px; margin-bottom: 12px; }
.rastreo-header h2 { font-size: 22px; font-weight: 800; color: #0D2257; margin-bottom: 8px; }
.rastreo-header p  { font-size: 14px; color: #64748B; line-height: 1.6; }

.rastreo-form { display: flex; gap: 10px; margin-bottom: 20px; }
.rastreo-form input {
  flex: 1; padding: 14px 16px;
  border: 2px solid rgba(27,63,139,0.15); border-radius: 12px;
  font-size: 14px; font-family: 'Montserrat', sans-serif;
  outline: none; color: #0D2257; font-weight: 600;
  letter-spacing: 0.5px; transition: 0.2s;
}
.rastreo-form input:focus { border-color: #2B5CE6; box-shadow: 0 0 0 3px rgba(43,92,230,0.1); }
.rastreo-form button {
  background: linear-gradient(135deg, #1B3F8B, #2B5CE6);
  color: white; border: none; padding: 14px 20px;
  border-radius: 12px; font-size: 14px; font-weight: 700;
  font-family: 'Montserrat', sans-serif; cursor: pointer; transition: 0.2s;
}
.rastreo-form button:hover { transform: translateY(-1px); }

.rastreo-loading { text-align: center; color: #64748B; padding: 20px; font-size: 14px; }
.rastreo-error   { text-align: center; color: #DC2626; padding: 16px; font-size: 14px; font-weight: 600; background: #FEF2F2; border-radius: 12px; }

.rastreo-card { border: 1px solid rgba(27,63,139,0.1); border-radius: 16px; overflow: hidden; }
.rastreo-codigo  { font-size: 16px; font-weight: 800; color: #0D2257; padding: 16px 18px 4px; }
.rastreo-empresa { font-size: 12px; color: #64748B; padding: 0 18px 12px; font-weight: 600; }
.rastreo-estado-badge { margin: 0 18px 16px; display: inline-block; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 700; }

.rastreo-pasos { padding: 0 18px 16px; display: flex; flex-direction: column; }
.rastreo-paso { display: flex; align-items: flex-start; gap: 12px; position: relative; opacity: 0.3; }
.rastreo-paso.done, .rastreo-paso.current { opacity: 1; }
.paso-icon { width: 36px; height: 36px; border-radius: 50%; background: #F0F4FF; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; border: 2px solid rgba(27,63,139,0.1); position: relative; z-index: 1; }
.rastreo-paso.done .paso-icon    { background: #EEF3FF; border-color: #2B5CE6; }
.rastreo-paso.current .paso-icon { background: #1B3F8B; border-color: #1B3F8B; }
.paso-info { padding: 8px 0; }
.paso-info strong { font-size: 13px; color: #0D2257; font-weight: 700; display: block; }
.paso-line { position: absolute; left: 17px; top: 36px; width: 2px; height: 24px; background: rgba(27,63,139,0.12); }
.rastreo-paso.done .paso-line { background: #2B5CE6; }

.rastreo-info { border-top: 1px solid rgba(27,63,139,0.08); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; background: #F8FAFF; }
.rastreo-info-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rastreo-info-item span   { font-size: 12px; color: #94A3B8; font-weight: 600; flex-shrink: 0; }
.rastreo-info-item strong { font-size: 13px; color: #0D2257; font-weight: 700; text-align: right; }

@media (max-width: 768px) {
  .rastreo-fab { bottom: 20px; right: 20px; }
  .rastreo-circulo { width: 56px; height: 56px; font-size: 24px; }
  .rastreo-modal { padding: 24px 20px; }
  .rastreo-form  { flex-direction: column; }
}