/* ===== CORES PADRÃO ===== */
:root {
  --azul: #004aad;
  --azul-claro: #0a74da;
  --amarelo: #ffd400;
  --branco: #ffffff;
  --cinza: #f4f4f4;
  --texto: #1a1a1a;
  --cinza-escuro: #6b6b6b;
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

html, body {
  height: 100%;
}

body {
  background: linear-gradient(to bottom, #ffffff, #f2f8ff);
  color: var(--texto);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER ===== */
.header {
  width: 100%;
  background: linear-gradient(90deg, var(--azul), var(--azul-claro));
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-bottom: 6px solid var(--amarelo);
}

.logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-box {
  width: 240px;
  height: 200px;
  background: transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}



.header-text h1 {
  color: white;
  font-size: 22px;
  font-weight: bold;
}

.header-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin-top: 4px;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 15px;
  flex: 1;
  width: 100%;
}

/* ===== CARD ===== */
.card {
  background: var(--branco);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(0, 74, 173, 0.08);
}

.card h2 {
  font-size: 22px;
  color: var(--azul);
  margin-bottom: 10px;
}

.subtext {
  color: var(--cinza-escuro);
  margin-bottom: 20px;
  font-size: 14px;
}

/* ===== FORM ===== */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: var(--azul);
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 2px solid rgba(0, 74, 173, 0.2);
  outline: none;
  font-size: 15px;
  transition: 0.2s;
}

.form-group input:focus {
  border-color: var(--azul-claro);
  box-shadow: 0px 0px 10px rgba(10, 116, 218, 0.15);
}

/* ===== BOTÃO PULSANTE ===== */
.btn-rastrear {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: bold;
  background: var(--amarelo);
  color: var(--azul);
  cursor: pointer;
  transition: 0.2s;
  animation: pulse 1.2s infinite;
  box-shadow: 0px 8px 20px rgba(255, 212, 0, 0.5);
}

.btn-rastrear:hover {
  transform: scale(1.03);
  background: #ffdf33;
}

/* ANIMAÇÃO PULSO */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0px 0px 0px rgba(255, 212, 0, 0.6);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0px 0px 20px rgba(255, 212, 0, 0.8);
  }
  100% {
    transform: scale(1);
    box-shadow: 0px 0px 0px rgba(255, 212, 0, 0.6);
  }
}

.info-msg {
  margin-top: 15px;
  font-size: 12px;
  color: var(--cinza-escuro);
  text-align: center;
}

/* ===== LOADING ===== */
.loading-box {
  text-align: center;
  padding: 30px;
}

.spinner {
  width: 70px;
  height: 70px;
  border: 8px solid rgba(0, 74, 173, 0.2);
  border-top: 8px solid var(--azul);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.loading-time {
  margin-top: 10px;
  font-weight: bold;
  color: var(--azul);
}

/* ===== TIMELINE ===== */
.timeline {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 18px;
  border-radius: 16px;
  transition: 0.3s;
}

.timeline-item .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-top: 6px;
}

/* FEITO */
.timeline-item.done {
  background: rgba(10, 116, 218, 0.08);
  border-left: 5px solid var(--azul-claro);
}

.timeline-item.done .dot {
  background: var(--azul-claro);
}

/* PENDENTE */
.timeline-item.pending {
  background: rgba(255, 212, 0, 0.15);
  border-left: 5px solid var(--amarelo);
}

.timeline-item.pending .dot {
  background: var(--amarelo);
}

.timeline-item h3 {
  font-size: 16px;
  color: var(--azul);
}

.timeline-item.pending h3 {
  color: #a87c00;
}

.timeline-item p {
  font-size: 13px;
  margin-top: 4px;
  color: var(--cinza-escuro);
}

/* ===== CÓDIGO DE RASTREIO MOSTRADO ===== */
.codigo-info {
  margin-top: 8px;
  font-size: 14px;
  font-weight: bold;
  color: var(--azul);
  background: rgba(0, 74, 173, 0.08);
  padding: 12px;
  border-radius: 12px;
}

/* ===== BOTÃO VOLTAR ===== */
.btn-voltar {
  margin-top: 25px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: var(--azul);
  color: white;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-voltar:hover {
  background: var(--azul-claro);
  transform: scale(1.02);
}

/* ===== ESCONDER ===== */
.hidden {
  display: none;
}

/* ===== FOOTER FIXO NO FINAL ===== */
.footer {
  margin-top: auto;
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: white;
  background: var(--azul);
  width: 100%;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    text-align: center;
    padding: 25px 15px;
  }

  .logo-box {
    width: 320px;
    height: 120px;
  }

  .logo-img {
    max-width: 100%;
    max-height: 100%;
  }

  .card {
    padding: 22px;
  }
}
/* ============================= */
/* ===== PAGINA 2 POSIÇÃO ===== */
/* ============================= */



/* ===== QUADRO DA PAGINA 2 ===== */
.pagina2 {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
/* ===== FUNDO REAL DA PAGINA 2 (SEM ZOOM) ===== */
.pagina2{
  position:relative;
  width:100%;
  height:100vh;
  overflow:hidden;
  background:#fff;
}

/* imagens empilhadas */
.bg1, .bg2{
  position:absolute;
  top:50%;
  left:50%;
  width:100vw;
  height:100vh;
  transform:translate(-50%, -50%);
  object-fit:contain; /* impede zoom */
  pointer-events:none;
}

.bg1{ z-index:1; }
.bg2{ z-index:2; }

/* textos sempre acima */
.label, .valor, .statusTxt{
  position:absolute;
  z-index:5;
}
