/* ========================= */
/* 🌐 BASE GENERAL */
/* ========================= */
body {
  font-family: Arial, sans-serif;
  background: 
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url("fondo.png") no-repeat center center fixed;
  background-size: cover;
  margin: 0;
}

/* ========================= */
/* 🏷️ TÍTULO */
/* ========================= */
.titulo {
  text-align: center;
  color: white;
  font-size: 56px;
  margin-top: 30px;
  margin-bottom: 10px;
  text-shadow: 0 5px 15px rgba(0,0,0,0.6);
}

.titulo span {
  display: block;
  font-size: 44px;
  color: #ff5252;
  letter-spacing: 2px;
  margin-top: 5px;
}

.titulo::after {
  content: "";
  display: block;
  width: 120px;
  height: 4px;
  background: #ff5252;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ========================= */
/* 🚒 CONTENEDOR */
/* ========================= */
.camion-container {
  position: relative;
  width: 900px;
  margin: 70px auto;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border-radius: 40px;
  padding: 25px;

  box-shadow: 0 20px 40px rgba(0,0,0,0.3);

  animation: fadeIn 0.8s ease;
}

/* ========================= */
/* 🚒 IMAGEN */
/* ========================= */
.camion {
  width: 100%;
  display: block;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.4));
  transition: transform 0.4s ease;
}

.camion-container:hover .camion {
  transform: scale(1.01);
}

/* ========================= */
/* 🔲 ZONAS INTERACTIVAS */
/* ========================= */
.zona {
  position: absolute;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;

  border: 2px dashed rgba(255,255,255,0.15);
}

/* HOVER */
.zona:hover {
  background: rgba(255, 0, 0, 0.2);
  box-shadow: 
    0 0 10px rgba(255,0,0,0.6),
    0 0 20px rgba(255,0,0,0.4);

  border: 2px dashed rgba(255,255,255,0.4);
}

/* ACTIVO */
.zona.active {
  background: rgba(255, 0, 0, 0.35);
  box-shadow: 
    0 0 15px rgba(255,0,0,0.8),
    0 0 30px rgba(255,0,0,0.6);

  border: 2px solid #ff5252;
}

/* DESTACADA (opcional) */
.zona.destacada {
  animation: pulso 2s infinite;
}

/* ========================= */
/* 🧾 TOOLTIP */
/* ========================= */
.tooltip {
  position: absolute;
  background: linear-gradient(135deg, #ffffff, #f5f5f5);
  padding: 18px;
  border-radius: 14px;
  width: 280px;

  box-shadow: 0 25px 50px rgba(0,0,0,0.35);

  border-left: 6px solid #d32f2f;
  font-size: 14px;
  z-index: 10;
  display: none;

  animation: aparecer 0.35s ease;
}

/* TITULO TOOLTIP */
.tooltip b {
  display: block;
  font-size: 17px;
  color: #d32f2f;
  margin-bottom: 6px;
}

/* SEPARADOR */
.tooltip hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, #d32f2f, transparent);
  margin: 8px 0;
}

/* TEXTO */
.tooltip br {
  line-height: 1.8;
}

/* ========================= */
/* ✨ ANIMACIONES */
/* ========================= */
@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(25px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulso {
  0% { box-shadow: 0 0 0 rgba(255,0,0,0.6); }
  50% { box-shadow: 0 0 20px rgba(255,0,0,1); }
  100% { box-shadow: 0 0 0 rgba(255,0,0,0.6); }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================= */
/* 📱 RESPONSIVE */
/* ========================= */
@media (max-width: 768px) {
  .camion-container {
    width: 100%;
    padding: 10px;
  }

  .tooltip {
    width: 90%;
  }
}