body{
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: #f6f6f6;
}

.main{
  gap: 2.5rem;
}

a{
    text-decoration: none;
    color: inherit;
}

/*Carousel*/

.carousel-container {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
  width: 100%;
}

.carousel-image {
  flex-shrink: 0;
  width: 100vw;
  height: 90vh;
  object-fit: fill;
}


button.prev,
button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
}
.prev { left: 10px; }
.next { right: 10px; }

@media (orientation: portrait) {
  .carousel-track {
    flex-direction: column;
  }
  .carousel-image {
    width: 100vw;
    height: 90vh;
    object-fit: none;
  }
}



.descripcion {
  text-align: center;
  margin: 40px 0 20px;
}

.resultados-busqueda {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.resultados-busqueda h2{
    text-align: center;
    font-size: 3rem;
    color: #17b2c4;
    font-weight: bold;
    font-family: "Nunito", sans-serif;
    margin: 0;
}
.resultados-busqueda h3{
    text-align: center;
    font-size: 2rem;
    color: #00aff0;
    font-weight: bold;
    font-family: "Nunito", sans-serif;
    margin: 0;
}

.productos-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin-top: 20px;
}

/*Cards de Productos*/

.producto-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    padding: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.producto-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.producto-card h3 {
    font-size: 1.2rem;
    margin: 10px 0 5px;
    color: #17b2c4;
    font-family: "Nunito", sans-serif;
}

.producto-card .precio {
    font-size: 1.1rem;
    font-weight: bold;
    color: #0a4565;
    margin: 5px 0 15px;
}

.producto-card button {
    background: #17b2c4;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: "Nunito", sans-serif;
}

.producto-card button:hover {
    background: #0a4565;
}

@media (orientation: portrait) {
    .productos-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
}