/* CONFIGURACIÓN BÁSICA DE UN ARCHIVO CSS */

/* 1. TIPOGRAFÍAS */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Delius&display=swap');

/* 2. ICONOS */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

/* 3. ESTILOS GENERALES */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Pacifico", cursive;
}

p,
a,
button,
li,
label,
input,
select,
textarea,
span {
    font-family: "Delius", cursive;
}

/* 4. VARIABLES */

:root {

    --primary-color: #2563eb;
    --background-color: #f9fafb;
    --text-principal-color: #111827;
    --label-color: #6b7280;
}

/* 5. DESKTOP */

body {
    background: #b8b8b872;
    overflow-x: hidden ;
}

#form {
    background: var(--background-color);
    border-radius: 20px;
    padding: 50px;
    
}

#form h2 {
    color: var(--text-principal-color);
    padding-bottom: 20px;
    text-align: center;
}

#vehiculo-form label {
    font-size: 20px;
    color: var(--label-color);
}

#vehiculo-form input {
    border: 1px solid var(--primary-color);
    background: var(--background-color);
    color: var(--primary-color);


}

#vehiculo-form input::placeholder {
    color: var(--primary-color);
}

#vehiculo-form .btn {
    margin-top: 2px;
    background: var(--primary-color);
    box-shadow: 0 4px 8px 0 var(--primary-color);
}

#cont-cards {
   
    border-radius: 20px;
    padding: 50px;
}

#cont-cards h2 {
    text-align: center;
    color: var(--text-principal-color);
    padding-bottom: 20px;
}

#contenedor-tarjetas {
    padding: 30px;
}

#contenedor-tarjetas .item-vehiculo {
    padding: 20px;
}

#contenedor-tarjetas .tarjeta {
    background: var(--background-color);
    box-shadow: 0 4px 8px 0 var(--primary-color);
    border: 1px solid var(--primary-color);
}

#contenedor-tarjetas .tarjeta .card-body {
    padding: 20px;
}

.tarjeta .card-body .card-title {
    margin-bottom: 15px;
    color: var(--text-principal-color);
    font-size: 20px;
}

.tarjeta .card-body .card-subtitle {
    margin-bottom: 15px;
    font-size: 20px;
}

.tarjeta .card-body .card-text {
    margin-top: 15px;
    font-size: 20px;
}

.tarjeta .card-body .text-success {
    color: #2563eb !important;
    font-size: 20px;
}

.card-body .contenedor-botones #comprar {
    box-shadow: 0 4px 8px 0 #198754;
}

.card-body .contenedor-botones #eliminar {
    box-shadow: 0 4px 8px 0 #dc3545;
}

#btn-carrito {
    width: 40px;
    height: 40px;
    position: absolute;
    right: 20px;
    top: 20px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: #fff;
    z-index: 999;
}

#cont-carrito {
 background: var(--background-color);
 width: 30%;
 height: 100vh;
 position: absolute;
 right: -470px;
 padding: 40px;
 z-index: 1;
 top: 0;
}

.product-card {
    display: flex;               
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;   
    border-radius: 10px;         
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
    padding: 10px 15px;
    margin-bottom: 10px;         
    transition: transform 0.2s;  
}

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

.product-card img.car-img {
    width: 100px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.cont-info {
    flex: 1;                     
    margin-left: 50px;
}

.cont-info h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.cont-info h3 {
    margin: 2px 0 5px 0;
    font-size: 1rem;
    color: #777;
}

.button {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.button h4 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color:var(--primary-color);
}

.button .btn-danger {
    background-color: #ff4d4f;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.button .btn-danger:hover {
    background-color: #e04344;
}

#cont-carrito.active{
    right: 0;
    z-index: 1;
    transition: .5s;
}


#cont-carrito p {
    font-size: 20px;
    color: var(--text-principal-color);
    position: absolute;
    bottom: 0;
}

.btn-carro {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(135deg, #0d6efd, #0a58ca); /* Azul degradado */
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  margin-top: 20px;
}

.btn-carro:hover {
  background: linear-gradient(135deg, #084298, #052c65); /* Azul más oscuro */
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

.btn-carro:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.cont-productos {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

