/* ===================================================== */
/* CUPISSA — COMPONENTES */
/* ===================================================== */

/* ========================= */
/* GRID PRODUCTOS */
/* ========================= */

.productos-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  padding: 40px;
}

/* ========================= */
/* TARJETA PRODUCTO */
/* ========================= */

.producto-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-medium);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-medium),
              box-shadow var(--transition-medium);
}

.producto-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Imagen cuadrada */

.producto-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
}

.producto-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Badge */

.producto-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-pink);
  color: #fff;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 50px;
}

/* Info */

.producto-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.producto-nombre {
  font-size: 15px;
  font-weight: 500;
  min-height: 40px;
}

/* Botón agregar */

.btn-agregar {
  margin-top: auto;
  padding: 10px;
  border-radius: var(--radius-small);
  background: var(--color-pink);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
}

/* ========================= */
/* FILTROS */
/* ========================= */

.filtro-grupo {
  margin-bottom: 20px;
}

.filtro-titulo {
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
}

.filtro-contenido {
  display: none;
  flex-direction: column;
  gap: 8px;
}

.filtro-contenido.active {
  display: flex;
}

.filtro-opcion {
  padding: 6px 10px;
  border-radius: var(--radius-small);
  border: 1px solid var(--border-color);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.filtro-opcion.active {
  background: var(--color-pink);
  color: #fff;
  border: none;
}

/* ========================= */
/* MODAL */
/* ========================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
}

.modal {
  background: var(--bg-card);
  width: 90%;
  max-width: 900px;
  border-radius: var(--radius-medium);
  display: flex;
  overflow: hidden;
}

.modal-img {
  flex: 1;
}

.modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-content {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
}

.modal-select {
  padding: 10px;
  border-radius: var(--radius-small);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.modal-qty {
  width: 80px;
  padding: 8px;
}

/* ========================= */
/* WHATSAPP FLOAT */
/* ========================= */

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  color: #fff;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow-soft);
  z-index: 1200;
}

/* ========================= */
/* HERO */
/* ========================= */

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-soft);
  padding: 40px;
}

.hero-logo {
  max-width: 500px;
  width: 100%;
}

/* ========================= */
/* RASTREO TRANSPORTADORA PREMIUM */
/* ========================= */

.rastreo-container {
  padding: 120px 20px 80px 20px;
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.rastreo-card {
  background: linear-gradient(145deg, #0f0f0f, #181818);
  padding: 60px 40px;
  border-radius: 25px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.rastreo-id {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 60px;
  color: var(--color-pink);
}

/* Línea base */
.linea-progreso {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
}

.linea-progreso::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 4px;
  background: #2a2a2a;
  z-index: 0;
}

/* Línea animada */
.progreso-fill {
  position: absolute;
  top: 28px;
  left: 0;
  height: 4px;
  background: var(--color-pink);
  z-index: 1;
  transition: width 1s ease;
}

/* Pasos */
.paso {
  position: relative;
  z-index: 2;
  flex: 1;
  text-align: center;
}

.circulo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1e1e1e;
  margin: auto;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  transition: all 0.4s ease;
  border: 2px solid #2a2a2a;
}

.paso.activo .circulo {
  background: var(--color-pink);
  border: none;
 box-shadow: 0 0 20px rgba(219,19,122,0.5);
}

.paso span {
  font-size: 14px;
  color: var(--text-secondary);
}

.paso.activo span {
  color: var(--text-primary);
}

/* Datos */
.datos-cliente,
.datos-envio {
  margin-top: 30px;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
}

.datos-cliente strong,
.datos-envio strong {
  color: var(--color-pink);
}

.btn-principal {
  margin-top: 30px;
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--color-pink);
  color: #fff;
  font-weight: 500;
  transition: transform var(--transition-fast);
}

.btn-principal:hover {
  transform: scale(1.03);
}

/* ========================= */
/* BUSCADOR RASTREO PREMIUM */
/* ========================= */

.rastreo-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 40px 0 60px 0;
  flex-wrap: wrap;
}

/* ========================= */
/* BUSCADOR RASTREO AJUSTE PERFECTO */
/* ========================= */

.rastreo-box {
  display: flex;
  justify-content: center;
  align-items: stretch; /* clave */
  gap: 15px;
  margin: 40px 0 60px 0;
}

.rastreo-box input,
.rastreo-box button {
  height: 50px;
  box-sizing: border-box;
  font-size: 15px;
}

.rastreo-box input {
  width: 320px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: #111;
  color: var(--text-primary);
  line-height: normal;
}

.rastreo-box input:focus {
  outline: none;
  border-color: var(--color-pink);
  box-shadow: 0 0 15px rgba(219,19,122,0.3);
}

/* Eliminar cualquier margen heredado */
.rastreo-box input,
.rastreo-box button {
  margin: 0;
  vertical-align: middle;
}

.rastreo-box button {
  padding: 0 24px;
  border-radius: 12px;
  background: var(--color-pink);
  color: #fff;
  font-weight: 500;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rastreo-box button:hover {
  transform: scale(1.05);
}

.btn-consultar-guia {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 18px;
  border-radius: 10px;
  background: #222;
  color: #fff;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.btn-consultar-guia:hover {
  background: var(--color-pink);
  border: none;
}

@media (max-width: 768px) {

  .productos-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
  }

  .producto-card {
    border-radius: 14px;
  }

  .producto-info {
    padding: 10px;
    gap: 8px;
  }

  .producto-nombre {
    font-size: 13px;
    min-height: auto;
  }

  .modal-select,
  .modal-qty {
    font-size: 12px;
    padding: 6px;
  }

  .btn-agregar {
    font-size: 13px;
    padding: 8px;
  }

}

/* ========================= */
/* BOTONES CUPISSA */
/* ========================= */

.btn-primary,
.btn-secondary {
  padding: 14px 28px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
  display: inline-block;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--color-pink);
  color: #fff;
  box-shadow: 0 10px 25px rgba(219,19,122,0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(219,19,122,0.5);
}

.btn-secondary {
  border: 1px solid var(--color-pink);
  color: var(--color-pink);
  background: transparent;
}

.btn-secondary:hover {
  background: var(--color-pink);
  color: #000;
  transform: translateY(-3px);
}