body {
  margin: 0;
  background-color: #rgb(249, 249, 249);
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.menu-lateral {
  width: 220px;
  background-color: #000;
  color: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-lateral .titulo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #F31010;
  margin-bottom: 20px;
}

.menu-lateral nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  padding: 8px 0;
  display: block;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
}

.menu-lateral nav a:hover {
  color: #F31010;
  border-left: 4px solid #F31010;
  background-color: #111;
  padding-left: 12px;
}

.contenido-principal {
  flex: 1;
  padding: 40px;
}
.catalogo-admin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}


.vehiculo-card {
  background-color: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border: 1px solid #dcdcdc;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}


.vehiculo-card:hover {
  transform: translateY(-4px);
}

.vehiculo-imagen {
  position: relative;
}

.vehiculo-imagen img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}


.cucarda {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #F31010, #a00000);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.vehiculo-info {
  padding: 24px;
  flex-grow: 1;
}

.vehiculo-info h3 {
  font-size: 1.2rem;
  margin: 0 0 6px;
  color: #111;
  font-weight: 600;
}

.vehiculo-info p {
  margin: 4px 0;
  font-size: 0.85rem;
  color: #555;
}

.vehiculo-info .precio {
  font-size: 1rem;
  font-weight: bold;
  color: #F31010;
  margin-top: 10px;
}

.acciones {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid #eee;
  //*background-color: #1e1e2f;*//
}

.btn-editar,
.btn-eliminar {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.7rem;
}

.btn-editar,
.btn-eliminar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #000;
  color: #fff;
  padding: 10px 15px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.7rem;
  transition: background-color 0.3s ease;
}

.btn-editar:hover {
  background-color: #333;
}

.btn-eliminar {
  background-color: #f31010c9;
}

.btn-eliminar:hover {
  background-color: #c90e0e;
}

.novedades {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}

.novedad {
  background-color: #fff;
  border-left: 6px solid #F31010;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.novedad h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: #000;
}

.novedad p {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
}

.menu-lateral a {
  display: block;
  padding: 14px 16px;
  color: #000;
  text-decoration: none;
  border-radius: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.menu-lateral a:hover {
  background-color: black;
}

.menu-lateral a.activo {
  background: linear-gradient(90deg, #000 0%, #c90e0e 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(243, 16, 16, 0.3);
}

.menu-lateral a.activo::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(100%);
  width: 6px;
  height: 60%;
    border-radius: 4px;
}


.submenu {
  display: flex;
  flex-direction: column;
}

.submenu-toggle {
  background: none;
  border: none;
  color: inherit;
  text-align: left;
  padding: 10px;
  cursor: pointer;
  font-size: 1rem;
}

.submenu-items {
  display: none;
  flex-direction: column;
  margin-left: 15px;
}

.submenu-items a {
  padding: 5px 10px;
  font-size: 0.95rem;
}

.submenu.open .submenu-items {
  display: flex;
}
/* Layout general */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #f4f6f9;
}

/* Menú lateral */
.menu-lateral {
  width: 240px;
  background: #1f2937;
  color: #fff;
  padding: 20px;
}

.menu-lateral .titulo {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.menu-lateral nav a,
.menu-lateral .submenu-toggle {
  display: block;
  padding: 10px 12px;
  margin-bottom: 6px;
  border-radius: 6px;
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.menu-lateral nav a:hover,
.menu-lateral .submenu-toggle:hover {
  background: #374151;
  color: #fff;
}

.menu-lateral nav a.activo,
.menu-lateral .submenu-toggle.activo {
  background: #1f2937;
  color: #fff;
}

/* Submenú */
.submenu-items {
  margin-left: 10px;
  margin-top: 5px;
}
.submenu-items a {
  font-size: 0.9rem;
  padding-left: 20px;
}

/* Contenido principal */
.contenido-principal {
  flex: 1;
  padding: 30px;
}
.contenido-principal h1 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #1e1e2f;
}

.btn-volver {
  display: inline-block;
  padding: 8px 16px;
  background-color: #ccc;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s;
}
.btn-volver:hover {
  background-color: #bbb;
}
/* Fondo oscuro detrás del popup */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-overlay.show {
  display: flex;
}
.popup-overlay.oculto { 
  display: none;

  }

/* Caja del popup */
.popup-box {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Loader circular */
.circle-loader {
  margin: 0 auto 15px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #28a745;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

.circle-loader.complete {
  animation: none;
  border-color: #28a745;
}

/* Checkmark */
.checkmark {
  display: none;
  width: 30px;
  height: 60px;
  border-right: 4px solid #28a745;
  border-bottom: 4px solid #28a745;
  transform: rotate(45deg);
  margin: -50px auto 15px;
}

.checkmark.draw {
  display: block;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.campanita-flotante {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 28px;
  color: #333;
  cursor: pointer;
  z-index: 200;
}

.campanita-flotante .badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
}

/* Animación cuando hay notificaciones */
.campanita-flotante.animada i {
  animation: campana-move 1s infinite;
  transform-origin: top center;
}

@keyframes campana-move {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(-15deg); }
  50%  { transform: rotate(15deg); }
  75%  { transform: rotate(-15deg); }
  100% { transform: rotate(0deg); }
}

.dropdown-notif {
  position: fixed;
  top: 60px;
  right: 20px;
  background: #fff;
  border: 1px solid #ccc;
  width: 280px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 201;
}

.dropdown-notif.oculto { display: none; }

.dropdown-notif ul { list-style: none; margin: 0; padding: 10px; }
.dropdown-notif li { padding: 5px 0; border-bottom: 1px solid #eee; font-size: 14px; }
.dropdown-notif li small { display: block; color: #888; font-size: 12px; }

.dropdown-notif .ver-todas {
  display: block;
  padding: 8px;
  text-align: center;
  background: #f5f5f5;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.campanita-flotante {
  position: fixed;
  top: 20px;
  right: 20px;
  cursor: pointer;
  z-index: 200;
}

.icono-campana {
  width: 25px;
  height: 25px;
  fill: #333;
}

.campanita-flotante .badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
}

/* Animación cuando hay notificaciones */
.campanita-flotante.animada .icono-campana {
  animation: campana-move 1s infinite;
  transform-origin: top center;
}

@keyframes campana-move {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(-15deg); }
  50%  { transform: rotate(15deg); }
  75%  { transform: rotate(-15deg); }
  100% { transform: rotate(0deg); }
}

.dropdown-notif {
  position: fixed;
  top: 60px;
  right: 20px;
  background: #fff;
  border: 1px solid #ccc;
  width: 280px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 201;
}

.dropdown-notif.oculto { display: none; }

.dropdown-notif ul { list-style: none; margin: 0; padding: 10px; }
.dropdown-notif li { padding: 5px 0; border-bottom: 1px solid #eee; font-size: 14px; }
.dropdown-notif li small { display: block; color: #888; font-size: 12px; }

.dropdown-notif .ver-todas {
  display: block;
  padding: 8px;
  text-align: center;
  background: #f5f5f5;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.card-flotante {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 300;
}
.card-flotante.oculto { display: none; }

.card-contenido {
  background: #1e1e2f;
  padding: 20px;
  width: 420px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  position: relative;
}
.card-contenido h2 { margin-top: 0; }
.card-contenido .cerrar {
  position: absolute; top: 10px; right: 15px;
  font-size: 22px; cursor: pointer;
}
.card-contenido .acciones {
  margin-top: 15px;
  display: flex; gap: 10px; justify-content: flex-end;
}
.card-contenido .acciones button {
  padding: 6px 12px;
  border: none; border-radius: 4px;
  cursor: pointer;
}
.card-contenido .acciones button:first-child { background: #25D366; color: #fff; }
.card-contenido .acciones button:nth-child(2) { background: #0072c6; color: #fff; }
.card-contenido .acciones button:last-child { background: #ccc; }

.vehiculo-card.vendido {
  background-color: #5959593b;
  opacity: 0.7;
}
.btn-vendido {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f31010c9;
  color: #fff;
  padding: 10px 15px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.7rem;
  transition: background-color 0.3s ease;
}
.btn-vendido:hover {
  background-color: #ad2929;
}
.btn-reactivar {
  background-color: #ad2929;
  color: #fff;
  background-color: #329719e3;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.7rem;
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float img {
  width: 42px;
  height: 42px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  }

/* footer */

.footer-maxiauto {
  background: #1e211f;
  color: #eee;
  padding: 40px 20px 20px;
  font-size: 0.9rem;
}

.footer-contenedor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 20px;
}

.footer-col h3, .footer-col h4 {
  color: #fff;
  margin-bottom: 12px;
}

.footer-col p, .footer-col a {
  color: #ccc;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
}

.footer-social {
  margin-top: 10px;
  display: flex;
  gap: 12px;
}

.footer-social img {
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
    width: 32px;   /* tamaño base */
  height: auto;
  transition: transform 0.3s ease;
}

.footer-social img:hover {
  transform: scale(1.1);
}

.footer-copy {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 15px;
  font-size: 0.8rem;
  color: #aaa;
}

.tabla-contacto {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-family: 'Poppins', sans-serif;
}

.tabla-contacto th, .tabla-contacto td {
  padding: 12px;
  text-align: left;
  background-color: darkslategray;
}

.tabla-contacto th {
  background: #0055aa;
  color: #fff;
  font-weight: 600;
}

.tabla-contacto tr:nth-child(even) {
  background: #f9f9f9;
}

.tabla-contacto tr:hover {
  background: #eef6ff;
}
.btn-ver {
  padding: 6px 14px;
  background: transparent;
  color: #0055aa;
  border: 2px solid #0055aa;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-ver:hover {
  background: #0055aa;
}
