@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
    @import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

/* ---- Estilos generales ---- */
*{
  scrollbar-width: none;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Botón cambio de tema */
#change-style {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

#change-style:hover {
    background: #084298;
}

/* ---- Carrito flotante ---- */
#carrito {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #198754;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

#carrito:hover {
    background: #146c43;
}

/* Panel lateral del carrito */
.panel {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100%;
    background: white;
    box-shadow: -4px 0px 10px rgba(0,0,0,0.3);
    padding: 20px;
    transition: right 0.4s ease;
    z-index: 999;
}

.panel.active {
    right: 0;
}

.panel h2 {
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: bold;
}

#carritos {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #dc3545;
    cursor: pointer;
}

.cont-carrito {
    max-height: 80%;
    overflow-y: auto;
}

/* ---- Formulario ---- */
#form {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
}

#form h2 {
    color: #0d6efd;
    font-weight: bold;
}

/* ---- Tarjetas de vehículos ---- */
#cont-cards h2 {
    color: #198754;
    font-weight: bold;
}

.card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.card img {
    height: 180px;
    object-fit: cover;
}

.cont-carrito {
    max-height: none;
    overflow-y: visible;
}

.panel .colImg img{
    width: 100px !important;
    height: auto !important;
    margin-top: 20px !important;
}

/* ---- Tema oscuro ---- */
body.dark-mode {
    background-color: #121212;
    color: #eaeaea;
}

/* Botón de cambio de tema */
body.dark-mode #change-style {
    background: #ffc107;
    color: #212529;
}

/* Panel del carrito */
body.dark-mode .panel {
    background: #1e1e1e;
    color: #f1f1f1 !important;
    box-shadow: -4px 0px 10px rgba(0,0,0,0.6);
}

body.dark-mode .panel h4 {
    color: #f1f1f1 !important;
}
body.dark-mode .card-carrito{
  border-radius: 20px;
}
body.dark-mode h4 {
    color: #f1f1f1 !important;
}

body.dark-mode #carritos {
    color: #f87171;
}
/* boton para la tienda */
#tienda {
  position: fixed;
  bottom: 1rem;
  right: 5rem;
  z-index: 1100;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25),
              inset 0 2px 6px rgba(255, 255, 255, 0.2);

  cursor: pointer;
  transition: all 0.3s ease;
}

/* Ícono dentro */
#tienda i {
  font-size: 1.6rem;
  color: var(--text-color);
  pointer-events: none;
  transition: transform 0.3s ease;
}

/* Hover */
#tienda:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35),
              0 0 12px var(--secondary-color);
}

#tienda:hover i {
  transform: scale(1.2);
  color: var(--accent-color);
}

/* Estado activo (click) */
#tienda:active {
  transform: scale(0.95);
}

/* Modo noche: realce de neon */
body.dark-mode #tienda {
  background: linear-gradient(135deg, #86f07c, #198754);
  box-shadow: 0 0 15px rgba(124, 92, 255, 0.8),
              0 0 25px rgba(0, 240, 255, 0.6);
}

/* Formulario */
body.dark-mode #form {
    background: #1e1e1e;
    color: #f1f1f1;
    box-shadow: 0px 4px 12px rgba(255,255,255,0.05);
}

body.dark-mode #form h2 {
    color: #0d99ff;
}

/* Contenedor de cards */
body.dark-mode #cont-cards h2 {
    color: #4ade80;
}

body.dark-mode .card {
    background: #2a2a2a;
    color: #eaeaea;
    box-shadow: 0px 4px 10px rgba(255,255,255,0.05);
}

body.dark-mode .card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 14px rgba(255,255,255,0.08);
}

.cont-carrito {
  max-height: 550px;
  overflow-y: auto;
  padding-right: 5px; 
}

/* ---- Tabla del carrito ---- */
#carritoCompra {
  padding: 30px;
  max-width: 900px;
  margin: 50px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
}

#carritoCompra h1 {
  font-size: 26px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
  color: #0d6efd;
}

#carritoCompras {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  text-align: center;
}

#carritoCompras thead {
  background: #0d6efd;
  color: white;
  font-weight: bold;
}

#carritoCompras th,
#carritoCompras td {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
}

#carritoCompras tbody tr:hover {
  background-color: #f1f1f1;
  transition: background 0.3s ease;
}

#carritoCompras img {
  width: 80px;
  height: auto;
  border-radius: 8px;
}
#tienda {
  position: fixed;
  bottom: 1rem;
  right: 5rem;
  z-index: 1100;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25),
              inset 0 2px 6px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

#tienda a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#tienda i {
  font-size: 1.6rem;
  color: var(--text-color);
  pointer-events: none;
}

/* Contador */
#contador-tienda {
  position: absolute;
  top: -6px;
  right: -8px;
  background: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Botón eliminar en la tabla */
#carritoCompras .btn-delete {
  background: #dc3545;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

#carritoCompras .btn-delete:hover {
  background: #b02a37;
}

/* ---- Versión oscura ---- */
body.dark-mode #carritoCompra {
  background: #1e1e1e;
  color: #eaeaea;
  box-shadow: 0px 4px 12px rgba(255,255,255,0.05);
}

body.dark-mode #carritoCompras thead {
  background: #0d99ff;
}

body.dark-mode #carritoCompras tbody tr:hover {
  background-color: #2a2a2a;
}

body.dark-mode #carritoCompras .btn-delete {
  background: #f87171;
  color: #1e1e1e;
}

body.dark-mode #carritoCompras .btn-delete:hover {
  background: #ef4444;
}
/* ---- Botón volver a tienda ---- */
#indez {
  position: fixed;
  top: 20px;
  left: 20px;
  background: #198754;
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

#indez:hover {
  background: #146c43;
  transform: scale(1.1);
}

/* ---- Tema oscuro botón tienda ---- */
body.dark-mode #indez {
  background: #4ade80;
  color: #1e1e1e;
}

body.dark-mode #indez:hover {
  background: #22c55e;
}
