@use 'sass:list'; $priceColor: #5abf5a; $primaryColor: ( #FE8D90, #FD6266, #FC3F44, #F00D13, #B5060A ); $secondaryFirstColor: ( #9384D8, #6D5AC2, #513CB0, #361DA7, #27137E ); @mixin grid($columns) { display: grid; grid-template-columns: repeat($columns, 1fr); } @media (min-width: 1250px) { .grid { @include grid(4); } } @media (min-width: 1120px) and (max-width: 1250px) { .grid { @include grid(3); } } @media (min-width: 600px) and (max-width: 1120px) { .grid { @include grid(2); } } p.price { color: $priceColor; font-size: 1.2em; } .card { .card-img-top { height: 250px; object-fit: cover; object-position: center; } } .card-producto { &:hover { transform: translate(10px, 10px); box-shadow: -10px -10px #5d5d5d30; transition: transform 0.25s, box-shadow 0.25s; } transition: transform 0.25s, box-shadow 0.25s; } .container-fluid { .header { background-color: list.nth($secondaryFirstColor, 3); color: #FFF; justify-content: center; align-items: center; img { width: 50%; border-radius: 10px; } } } .navbar.header { background-color: list.nth($secondaryFirstColor, 3) !important; color: #FFF; .navbar-brand img { border-radius: 10px; } .navbar-brand { color: #FFF !important; } .navbar-toggler { border-color: #FFF !important; .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FFF' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); } } .nav-link { color: #FFF !important; } .btn-outline-primary { color: #FFF !important; border-color: #FFF !important; &:hover { background-color: rgba(255, 255, 255, 0.1) !important; color: #FFF !important; } } .btn-outline-secondary { color: #FFF !important; border-color: #FFF !important; &:hover { background-color: rgba(255, 255, 255, 0.1) !important; color: #FFF !important; } } .btn-primary { background-color: rgba(255, 255, 255, 0.2) !important; border-color: #FFF !important; color: #FFF !important; &:hover { background-color: rgba(255, 255, 255, 0.3) !important; color: #FFF !important; } } } @media (max-width: 1450px) { #sidebar { position: fixed; left: -300px; top: 0; height: 100vh; width: 280px; background: white; z-index: 1050; transition: left 0.3s ease; overflow-y: auto; padding: 2rem 1rem; box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1); &.active { left: 0; } } .sidebar-toggle { display: inline-block !important; margin-right: 0.5rem; .navbar-toggler-icon { font-size: 1.2rem; font-style: normal; } } .sidebar-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 1040; opacity: 0; transition: opacity 0.3s ease; &.active { display: block; opacity: 1; } } .sidebar-close { position: absolute; top: 1rem; right: 1rem; background: transparent; border: none; font-size: 2rem; color: list.nth($primaryColor, 3); cursor: pointer; padding: 0; width: 30px; height: 30px; line-height: 1; transition: transform 0.3s ease; &:hover { transform: rotate(90deg); } } } @media (min-width: 1451px) { .sidebar-toggle { display: none !important; } .sidebar-close { display: none; } .sidebar-overlay { display: none !important; } } // Estilos para categorías #sidebar { .categorias-titulo { color: list.nth($secondaryFirstColor, 4); font-weight: 700; margin-bottom: 1.2rem; padding-bottom: 0.5rem; border-bottom: 3px solid list.nth($primaryColor, 3); text-transform: uppercase; letter-spacing: 1px; } .categorias-lista { border: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); border-radius: 10px; overflow: hidden; } .categoria-item { border: none; border-bottom: 1px solid #f0f0f0; padding: 1rem 1.2rem; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 0.8rem; &:last-child { border-bottom: none; } .categoria-icono { font-size: 1.5rem; transition: transform 0.3s ease; } span { font-weight: 500; color: #333; transition: color 0.3s ease; } &:hover { background: linear-gradient(135deg, list.nth($primaryColor, 1) 0%, list.nth($primaryColor, 3) 100%); color: white; transform: translateX(5px); box-shadow: 0 4px 12px rgba(list.nth($primaryColor, 3), 0.3); span { color: white; } .categoria-icono { transform: scale(1.2); } } &:active { transform: translateX(3px) scale(0.98); } } } #footer { background-color: rgb(149, 141, 141); color: black; } // Estilos para el carrusel de productos #carouselProducto { .carousel-inner { height: 500px; background-color: #f8f9fa; } .carousel-item { height: 500px; img { height: 100%; object-fit: contain; object-position: center; } } } // Estilos para el footer .footer-link { color: inherit; text-decoration: none; &:hover { text-decoration: underline; } } // Estilos para páginas legales / informativas .legal-container { max-width: 860px; margin: 2rem auto; padding: 0 1rem; h1 { margin-bottom: 1.5rem; } } .legal-section { margin-bottom: 2rem; h2 { font-size: 1.2rem; margin-bottom: 0.75rem; border-bottom: 1px solid #dee2e6; padding-bottom: 0.25rem; } h3 { font-size: 1rem; font-weight: 600; margin-top: 1rem; margin-bottom: 0.4rem; } } .legal-footer { margin-top: 2rem; color: #6c757d; }