.sidebar {
    width: 240px;
    background: #2c3e50;
    color: #fff;
    transition: width 0.3s;
    overflow: hidden;
}

.sidebar.collapsed {
    width: 70px;
}

/* botón */
.toggle {
    width: 100%;
   /* padding: 15px;*/
    background: #1a252f;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* menú */

.menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 15px;
  background: #77DD77;
}

.menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #ecf0f1;
    text-decoration: none;
}


/* ocultar texto */
.sidebar.collapsed .text {
    display: none;
}

/* flecha */
.arrow {
    margin-left: auto;
    transition: transform 0.3s;
}

/* submenú */
.submenu:hover .submenu-list {
  display: block;
}
.submenu-list {
    position: absolute;
    display: none;
    background: #1e1e1e;
    z-index: 999;
}
.submenu-list a:hover {
  text-decoration: none;
  text-decoration-color: #00bcd4;
}
.submenu-list a {
  color: #FFFFFF;
  text-decoration: none;
  margin: 0 5px;
}
a {
  text-decoration: none;
  position: relative;
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: #FFFFFF;
  transition: width 0.3s;
}

a:hover::after {
  width: 100%;
}
.submenu.active > .submenu-list {
    display: block;
}

.submenu.active .arrow {
    transform: rotate(180deg);
}

/* submenú en colapsado */
.sidebar.collapsed .submenu-list {
    position: absolute;
    left: 70px;
    top: auto;
    min-width: 180px;
    z-index: 999;
}

.supercont-of-slider {
    position: relative;
    width: 100%;
    height: 490px;
}

.cont-of-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider1 {
    width: 100%;
    height: 100%;
    display: flex;
    transition: .3s;
}

.slider-screen {
    background-image: url(./Fotos/marcas.webp);
    background-position: center;
    background-size: contain;
    height: 100%;
    min-width: 100%;
    position: relative;
}

    .slider-screen:nth-child(2) {
        background-image: url(./Fotos/car.png);
        background-position: center;
        background-size: cover;
        height: 100%;
        min-width: 100%;
    }
    .slider-screen:nth-child(3) {
        background-image: url(./Fotos/chc.png);
        background-position: center;
        background-size: cover;
        height: 100%;
        min-width: 100%;
    }
    .slider-screen:nth-child(4) {
        background-image: url(./Fotos/chp.png);
        background-position: center;
        background-size: cover;
        height: 100%;
        min-width: 100%;
    }
body {padding-top: 100px; margin: 0; font-family: Arial; }

.container { 
    top:145px;
    padding: 20px; }

@media (max-width: 600px) {
  header { text-align: center; }
}
.footer {
  background: #1e1e1e;
  color: #ccc;
  padding: 20px;
  text-align: center;
}

.footer a {
  color: #00bcd4;
  text-decoration: none;
  margin: 0 5px;
}

.footer a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .submenu:hover .submenu-list {
    display: none;
  }
}
.btn-car {
  width: 200px;
  /*padding: 10px;*/
  background: #1e1e1e;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.btn-car:hover {
  background: #16a085;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.producto {
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

.producto img {
  width: 100%;
  height: 550px;
  object-fit: contain;
}

.producto img:hover {
  width: 100%;  
  height: 600px;
  object-fit: contain;
}

.btn-agregar {
  background:  #1e1e1e;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-agregar:hover {
  background: #16a085;
}
.-center {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.caption {
    height: 40%;
    max-width: 75%;
    text-align: center;
    top: 45%;
    padding: 3%;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.45); /* 
            backdrop-filter: blur(7px);*/
   /* border: 2px solid white;*/
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.95);
}

    .caption h1 {
        padding: 10%;
        color: white;
        font-family: 'Roboto';
        font-size: 7vh;
        font-weight: 300;
        letter-spacing: .5vw;
        line-height: 1em;
        text-shadow: 0 5px 10px black;
        /* background-color: rgba(0, 4, 255, 0.4); */
    }
    .slider2 {
    position: relative;
    overflow: hidden;
}

.slide2 {
    display: none;
}

.slide2.active {
    display: block;
}

/*  columnas dentro del slide */
.galeria2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
.navbar {
    position: relative;
    top:20px;
    width: 100%;
    height: 100px;
    background: #006400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    z-index: 1000;
}
.top-bar {
    position: relative;
    top: 0;
    width: 100%;
    height: 30px;
    background-color: red;
    color: white;
    text-align: center;
    line-height: 30px;
    font-size: 14px;
    z-index: 1100;
}
.top-bar {
    overflow: hidden;
}

.top-bar span {
    display: flex;
    padding-right: 1px;
    animation: mover 10s linear infinite;
}
.bar-n {
    width: 100%;
    overflow: hidden;
    background: #111;
}
.bar-n .track {
    display: flex;
    width: max-content;
    animation: mover1 5s linear infinite;
}
.bar-n span {
    white-space: nowrap;
    padding-right: 1200px;
    color: #fff;
}
@keyframes mover1 {
    100% {
        transform: translateX(0%);
    }
    0% {
        transform: translateX(-50%);
    }
}
.logo {
    width: 85px;
    height: 85px;
    border: 80px solid #0000FF;
    border-top: 80px solid #FF0000;
    border-bottom: 80px solid #006400;
    border-radius: 50%;
    animation: girar 1s linear infinite;
}

@keyframes girar {
    100% {
        transform: rotate(360deg);
    }
}
@keyframes mover {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}
.top-bar .item {
    margin-right: 62px; /* ajustá el espacio */
}
/* Botón flotante */
.btn-carrito {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #ff4081;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

/* Panel flotante */
.carrito {
    position: fixed;
    right: -350px;
    top: 50;
    width: 310px;
    height: 100%;
    background-image: url(./Fotos/fon3.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    /*padding: 15px;*/
    transition: 0.3s;
    overflow-y: auto;
    z-index: 9999;
}

.carrito.active {
    right: 0;
}

.cerrar {
    float: right;
    cursor: pointer;
    font-size: 20px;
}
.ok {
    float: left;
    cursor: pointer;
    font-size: 20px;
    color: white;
    background: #ff4081;
} 
button {
    cursor: pointer;
}
.form-group {
    display: flex;
    gap:10px;
}
@media (max-width: 250px) {
    .form-group {
        flex-direction: column;
    }
}
