/* =============================
   🌐 Estilos generales del sitio
   ============================= */

body {
  background-color: #d9d9d94d;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;

}

/*
main {
  background-color: #d9d9d94d;
}
*/
h1, h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

/*
header, footer {
  background: #222;
  color: #fff;
  padding: 1rem;
  text-align: center;
}

nav a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
}




/* =============================
   🔒 Login
   ============================= */
.login-body {
  background: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-container {
  background: white;
  padding: 2rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  text-align: center;
}

.login-title {
  margin-bottom: 1rem;
}

.login-error {
  color: red;
  margin-bottom: 1rem;
}

.login-input {
  width: 100%;
  max-width: 300px;
  margin-bottom: 1rem;
  padding: 0.5rem;
}

.login-button {
  padding: 0.5rem 1.5rem;
  background: #222;
  color: white;
  border: none;
  cursor: pointer;
}

.login-options {
  text-align: left;
  margin-bottom: 1rem;
}

.remember-me {
  font-size: 0.9rem;
  color: #333;
}

/* =============================
   📊 Panel de administración
   ============================= */
.admin-dashboard {
  padding: 2rem;
}

.dashboard-title {
  font-size: 24px;
}

.dashboard-subtitle {
  color: #555;
}

.dashboard-menu {
  list-style: none;
  padding: 0;
}

.dashboard-menu li {
  margin-bottom: 10px;
}

.dashboard-link {
  text-decoration: none;
  color: #007BFF;
}

.admin-btn-delete {
  color: #c0392b;
  text-decoration: none;
  font-weight: bold;
}

.admin-btn-delete:hover {
  color: #e74c3c;
  text-decoration: underline;
}

/* =============================
   🚘 Página de detalle de vehículo
   ============================= */
.vehiculo-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.vehiculo-imagen-principal img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
}

.vehiculo-galeria {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.vehiculo-galeria img {
  height: 100px;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.vehiculo-galeria img:hover {
  transform: scale(1.1);
}

.vehiculo-info h1 {
  margin-bottom: 5px;
}

.vehiculo-precio {
  color: #27ae60;
  font-size: 24px;
  margin-bottom: 20px;
}

.vehiculo-info p {
  margin: 4px 0;
}

.vehiculo-descripcion {
  margin-top: 20px;
}

/* =============================
   🔻 Footer
   ============================= */
.footer-chitocars {
  background-color: #171717;
  padding: 1.5rem 2rem;
  font-size: 0.9rem;
  color: #fff;
  border-top: 1px solid #ddd;
}

.footer-contenido {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-chitocars a {
  color: #ffc107;
  text-decoration: none;
  font-weight: 500;
}

.footer-chitocars a:hover {
  text-decoration: underline;
}

.footer-redes a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ddd;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-left: 0.5rem;
  font-size: 1rem;
  color: #333;
  transition: background 0.3s;
}

.footer-redes a:hover {
  background: #ffc107;
  color: #fff;
}

/* =============================
   🏠 Banner principal
   ============================= */
.home-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 6rem 1rem;
  text-align: center;
  color: white;
}

.banner-overlay {
  background: rgba(0, 0, 0, 0.71);
  padding: 2rem;
  border-radius: 1rem;
  max-width: 80rem;
  margin: auto;
}

.home-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.home-banner .destacado {
  color: #ffc107;
}

/* =============================
   🔍 Buscador home (tabs y box)
   ============================= */
.buscador-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.buscador-tabs span {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  cursor: pointer;
  color: #fff;
  font-weight: 500;
  transition: all 0.3s ease;
}

.buscador-tabs span.activo {
  background: #ffc107;
  color: #111;
}

.buscador-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem;
  border-radius: 1rem;
  max-width: 70rem;
  margin: auto;
}

.buscador-box select,
.buscador-box button {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.buscador-box button {
  background-color: #ffc107 !important;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.buscador-box button:hover {
  background-color: #8a0000;
}

select:disabled {
  background-color: #f1f1f1;
  color: #999;
  cursor: not-allowed;
}

/* =============================
   🎠 Carruseles (Swiper)
   ============================= */

.swiper-carrusel-nuevos,
.swiper-carrusel-vistos,
.swiper-carrusel-sede {
  position: relative;
  padding-bottom: 40px;
  margin-bottom: 3rem;
}

.swiper-carrusel-nuevos .swiper-slide,
.swiper-carrusel-vistos .swiper-slide,
.swiper-carrusel-sede .swiper-slide {
  width: auto;
  max-width: 280px;
}

.card-carrusel {
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
  text-decoration: none;
  min-width: 250px;
}

.card-carrusel:hover {
  transform: translateY(-4px);
}

.card-carrusel img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-info {
  padding: 1rem;
}

.card-info h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  min-height: 3.5em;
  color: #222;
  font-weight: 600;
}

.card-info .precio {
  color: #cc0000;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.card-info .detalles {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 4px;
}

.card-info .badge {
  background-color: #ffc107;
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.8rem;
}
