/* ===============================
   🎯 Reset y Base
=================================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background-color: transparent; /* ⚡ Para que la hero se vea */
  color: #212529;
  overflow-x: hidden;
}

/* ===============================
   🔴 Navbar
=================================*/
.navbar {
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.btn-outline-light:hover {
  background-color: #fff;
  color: #c82333; /* Ajustado de #c05a5a */
}

/* ===============================
   🔽 Botones
=================================*/
/* La clase .btn-danger de Bootstrap se sobrescribe con el color principal */
.btn-danger {
  background-color: #c82333; /* Ajustado de #00b7ff */
  border-color: #c82333; /* Ajustado de #01b7ff */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-danger:hover {
  transform: scale(1.05);
  /* Mantenemos el box-shadow con el color primario de Gruas Pino */
  box-shadow: 0 6px 20px rgba(200, 35, 51, 0.4);
}

/* ===============================
   🖼️ Hero (Index)
=================================*/
.hero {
  position: relative;
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25); /* overlay sutil */
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  border-left: 4px solid #c82333; /* Ajustado de #ff0000 */
  padding: 3rem 2rem;
  max-width: 550px;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  animation: slideIn 1.2s ease-out;
}

.hero-logo {
  margin: 0 auto 1.5rem auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 5px solid #990000; /* Ajustado de #960606 */
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: #e0e0e0;
}

.hero-content ul {
  list-style: none;
  padding-left: 0;
  font-size: 1rem;
  text-align: left;
  margin-bottom: 1rem;
}

.hero-content ul li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  color: #f8f9fa;
}

.hero-content ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #c82333; /* Color principal */
}

.tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: #990000; /* Rojo más oscuro/secundario */
  margin-top: 1rem;
  animation: moveTagline 3s infinite ease-in-out;
}

/* ===============================
   🔐 Login
=================================*/
.login-bg {
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-card {
  width: 100%;
  max-width: 400px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
}

.login-card .form-control {
  border-radius: 10px;
  padding: 12px;
}

.login-card button {
  border-radius: 10px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.login-card button:hover {
  background-color: #990000; /* Rojo secundario */
}

/* ===============================
   📋 Dashboard
=================================*/
body.dashboard {
  background-color: #f8f9fa;
}

.card {
  border-radius: 10px;
}

.table thead th {
  background-color: #c82333; /* Rojo principal */
  color: #fff;
  border-color: #990000; /* Rojo oscuro */
}

.table tbody td {
  vertical-align: middle;
}

.table-hover tbody tr:hover {
  background-color: #ffe6e6;
}

.badge {
  font-size: 0.85rem;
  padding: 0.4em 0.6em;
}

/* ===============================
   🔴 Modal Ver Vehículo
=================================*/
#modalVerVehiculo .modal-content {
  border-radius: 12px;
}

#detalleVehiculo img {
  max-height: 300px;
  object-fit: contain;
}

/* 🖼️ Pantalla completa */
#modalImagenCompleta img {
  max-height: 90vh;
  object-fit: contain;
}

/* 📊 Contadores */
.contador-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 16px;
}
.contador-card:hover {
  transform: scale(1.05);
  /* Mantenemos el box-shadow con el color primario de Gruas Pino */
  box-shadow: 0 8px 25px rgba(200, 35, 51, 0.4);
}

/* ===============================
   ⚡ Animaciones
=================================*/
@keyframes slideIn {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes moveTagline {
  0% { transform: translateX(0); }
  50% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

/* ===============================
   📱 Responsive
=================================*/
@media (max-width: 992px) {
  .hero-content {
    max-width: 90%;
    padding: 2rem 1.5rem;
  }

  .hero-logo {
    width: 140px;
    height: 140px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-content {
    padding: 2rem 1rem;
  }

  .hero-logo {
    width: 120px;
    height: 120px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }
}

/* ===============================
   🔴 Footer
=================================*/
footer {
  background: #c82333; /* Rojo principal */
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  margin-top: auto;
  position: relative;
  bottom: 0;
  width: 100%;
}
