/* style/styles.css */

/* Estilos generales */
body {
  font-family: Arial, sans-serif;
  padding: 20px;
  margin: 0;
}

/* Componentes de formulario */
input, button {
  padding: 1rem;
  margin: 5px 0;
  font-size: 16px;
  font-weight: bold;
  box-sizing: border-box;
  width: 100%;
  max-width: 350px;
}

#vbusqueda::placeholder {
  font-weight: bold;
}

/* Sistema de banners y tracking */
#banner-placeholder, .status-banner, .timeline-step {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#banner-placeholder {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

#banner-placeholder.loaded {
  opacity: 1;
}

.status-banner {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  max-width: 800px;
}

.status-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.status-subtitle {
  font-size: 14px;
  color: #555;
}

/* Timeline de seguimiento */
.timeline {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  overflow-x: auto;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 80px;
}

.step-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 5px;
  object-fit: contain;
}

.line {
  flex-grow: 1;
  height: 2px;
  background-color: #ccc;
  margin: 0 5px;
}

/* Estados del timeline */
.completed {
  color: green;
}

.current {
  color: blue;
}

.pending {
  color: gray;
}

/* Animaciones */
.transit-icon {
  animation: moveShip 2s linear infinite;
}

.bodega-animation {
  animation: bodegaMove 3s ease-in-out infinite;
}

.bodega-icon {
  position: relative;
}

@keyframes moveShip {
  0% { transform: translateX(0); }
  100% { transform: translateX(50px); }
}

@keyframes bodegaMove {
  0% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(2deg); }
  50% { transform: translateY(0) rotate(0deg); }
  75% { transform: translateY(5px) rotate(-2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* Contenedor de tracking */
.tracking-info-box {
  max-width: 800px;
  width: 90%;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ddd;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  background-color: #fff;
  border-radius: 8px;
}

.tracking-info-box img.custom-gif {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 4px;
}

/* Sistema de navegación */
.nav-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px;
  background-color: #f4f4f4;
  border-radius: 10px;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.btn {
  flex: 1 1 calc(25% - 10px);
  max-width: calc(25% - 10px);
  padding: 12px 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 32px;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
  transition: all 0.3s ease;
}

.btn i {
  margin-right: 8px;
  font-size: 16px;
}

.btn:hover {
  background-color: #d8084d;
  transform: translateY(-2px);
}

/* Visor de iframe */
.iframe-container {
  margin: 30px auto;
  display: flex;
  justify-content: center;
  max-width: 1000px;
}

.iframe-wrapper {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#visor {
  width: 100%;
  height: 600px;
  border: none;
}

/* Responsive Design */
@media (max-width: 900px) {
  .btn {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
  
  .timeline {
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .btn {
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  .timeline-step {
    min-width: 60px;
  }
  
  body {
    padding: 10px;
  }
}

@media (max-width: 400px) {
  .status-banner {
    padding: 15px;
  }
  
  .timeline {
    font-size: 12px;
  }
}