/* Estilos generales */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 70px; /* Mismo valor que la altura del top-bar */
    background-color: #f8f9fa;
}

/* Estilos para productos destacados */
.featured-products {
    padding: 40px 0 40px 0;
    background: #fff !important;
    position: relative;
    border: none !important;
    box-shadow: none !important;
}

section.featured-products > h2 {
    color: #222 !important;
    text-align: left !important;
    font-size: 2.1rem !important;
    font-weight: 600 !important;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    padding-left: 60px !important;
    letter-spacing: 0.5px !important;
    position: relative;
    border-bottom: 1.5px solid #ececec;
    padding-bottom: 12px;
}

.carousel-container, .carousel-track, .product-item, .product-item *, .carousel-track * {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.carousel-container {
    overflow-x: hidden !important;
    padding: 0 40px !important;
    box-sizing: border-box;
    max-width: 100vw;
    margin: 0 auto;
    height: auto !important;
}

.carousel-track {
    display: flex;
    gap: 32px;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: stretch;
    height: auto !important;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.product-item {
    flex: 0 0 20%;
    max-width: none;
    min-width: 0;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.product-item img {
    width: 230px;
    height: 230px;
    object-fit: contain;
    margin-bottom: 18px;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.product-item h3 {
    font-size: 1.02rem;
    font-weight: 500;
    color: #222;
    margin: 0 0 18px 0;
    text-align: center;
    line-height: 1.4;
    min-height: 3.8em;
    max-height: 4.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    width: 100%;
    align-self: center;
    word-break: break-word;
}

.product-item p {
    font-size: 0.98rem;
    font-weight: 500;
    color: #888;
    margin: 0 0 10px 0;
    text-align: center;
    align-self: center;
    letter-spacing: 0.2px;
    position: static;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.carousel-btn:hover {
    background: #ff0000;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
    transition: fill 0.3s ease;
}

.carousel-btn.left {
    left: 0;
}

.carousel-btn.right {
    right: 0;
}

/* Estilos para la sección de marcas */
.marcas h2 {
    text-align: center;
    padding: 40px 0 20px;
}

.marcas .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.marcas .product-item img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Estilos para el footer */
footer {
    flex-shrink: 0;
}

/* Estilos para la ventana triangular */
.triangular-window-banner {
    position: relative;
    width: 100%;
    height: 100px;
    overflow: hidden;
    background: #f5f5f5;
}

.triangle-window {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 100px solid #fff;
    left: var(--pos);
    transform: translateX(-50%);
}

/* Media queries para responsividad */
@media (max-width: 1200px) {
    .featured-products h2 {
        font-size: 1.7rem;
        padding-left: 30px;
    }
    .product-item {
        flex: 0 0 25%;
    }
    .product-item img {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 992px) {
    .shop-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-item {
        flex: 0 0 33.33%;
    }
    .product-item img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .carousel-track {
        gap: 16px;
    }
    .product-item {
        flex: 0 0 50%;
    }
    .product-item img {
        width: 70px;
        height: 70px;
    }

}

@media (max-width: 576px) {
    .shop-category-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-products {
        padding: 20px 20px;
    }
    .product-item {
        flex: 0 0 50%; /* 2 productos */
        max-width: 100px;
    }
}

/* Estilos específicos para la página de inicio */

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 450px;
    overflow: hidden;
    margin-bottom: 40px;
}

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

.hero-slide {
    flex: 0 0 100%;
    position: relative;
    height: 100%;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 800px;
    z-index: 2;
}

.hero-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #ff0000;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid #ff0000;
}

.btn-primary:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,0,0,0.3);
}

.hero-buttons {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.hero-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-btn.active {
    background-color: white;
    transform: scale(1.2);
}

/* Categorías */
.categories {
    padding: 60px 5%;
    background-color: white;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.category-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 16/9;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    margin: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

/* Productos Destacados */
.featured-products h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #333;
}

.carousel-container {
    overflow-x: auto !important;
    padding: 0 40px !important;
    box-sizing: border-box;
    max-width: 100vw;
}

.carousel-track {
    display: flex;
    gap: 30px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 20px 0;
}

.product-item {
    flex: 0 0 300px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-item img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
}

.product-item h3 {
    font-size: 1.02rem;
    font-weight: 500;
    color: #222;
    margin: 0 0 18px 0;
    text-align: center;
    line-height: 1.4;
    min-height: 3.8em;
    max-height: 4.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    width: 100%;
    align-self: center;
    word-break: break-word;
}

.product-item p {
    font-size: 0.98rem;
    font-weight: 500;
    color: #888;
    margin: 0 0 10px 0;
    text-align: center;
    align-self: center;
    letter-spacing: 0.2px;
    position: static;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.carousel-btn:hover {
    background: #ff0000;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    fill: #333;
    transition: fill 0.3s ease;
}

.carousel-btn:hover svg {
    fill: white;
}

.carousel-btn.left {
    left: 0;
}

.carousel-btn.right {
    right: 0;
}

/* Banner Triangular */
.triangular-banner {
    background: linear-gradient(45deg, #ff0000, #ff6b6b);
    padding: 80px 5%;
    text-align: center;
    color: white;
    margin-top: 60px;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.banner-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: white;
    color: #ff0000;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

/* Media Queries */
@media (max-width: 1200px) {
    .hero-content h2 {
        font-size: 3rem;
    }
    
    .product-item {
        flex: 0 0 280px;
    }
}

@media (max-width: 992px) {
    .hero-slider {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .featured-products h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 40vh;
        min-height: 350px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .carousel-container {
        padding: 0 40px;
    }
    
    .product-item {
        flex: 0 0 180px;
    }
    
    .product-item img {
        width: 120px;
        height: 90px;
    }
    
    .banner-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 35vh;
        min-height: 250px;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Banner de Tienda */
.store-banner {
    background: linear-gradient(45deg, #000000, #333333);
    padding: 80px 5%;
    color: white;
    margin-top: 60px;
}

.banner-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.banner-content {
    text-align: center;
}

.banner-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.banner-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.store-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px auto;
    max-width: 1000px;
}

.store-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.store-image:hover {
    transform: scale(1.02);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2.5rem;
    background-color: #ff0000;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid #ff0000;
    margin-top: 20px;
}

.btn-secondary:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,0,0,0.3);
}

.btn-secondary svg {
    width: 24px;
    height: 24px;
}

/* Media Queries para el banner de tienda */
@media (max-width: 992px) {
    .store-banner {
        padding: 60px 5%;
    }

    .banner-content h2 {
        font-size: 2.4rem;
    }

    .store-images {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .store-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .banner-content h2 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 1.1rem;
    }

    .store-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .store-banner {
        padding: 40px 5%;
    }

    .banner-content h2 {
        font-size: 1.8rem;
    }

    .store-image {
        height: 200px;
    }

    .btn-secondary {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* Carrusel de Marcas */
.brand-carousel {
  width: 100%;
  overflow: hidden;
  background: #fff;
  padding: 90px 0 60px 0;
  margin: 0 auto 0 auto;
  position: relative;
  border: none;
  box-shadow: none;
}

.brand-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: scrollBrands 32s linear infinite;
}

.brand-track img {
  height: 140px;
  width: auto;
  filter: none;
  opacity: 1;
  transition: transform 0.3s;
  padding: 0 18px;
}

.brand-track img:hover {
  transform: scale(1.08);
}

@keyframes scrollBrands {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 600px) {
  .brand-track img {
    height: 90px;
    padding: 0 8px;
  }
}

.brand-logo-box {
  width: 240px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  flex-shrink: 0;
}

.brand-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
  padding: 0;
  margin: 0;
  box-shadow: none;
  border: none;
} 
