/* Variables y Estilos Generales */
:root {
    --primary-dark: #0a0a1a;
    --primary: #1a1a3a;
    --primary-light: #2a2a5a;
    --accent-blue: #30c8e6;
    --accent-green: #7ed957;
    --accent-gradient: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    --text-light: #ffffff;
    --text-dark: #0a0a1a;
    --gray-light: #f5f5f5;
    --gray: #e0e0e0;
    --gray-dark: #888888;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Utilidades */
.btn-accent {
    background: var(--accent-gradient);
    border: none;
    color: var(--text-light);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: var(--text-light);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-accent {
    background: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-accent:hover {
    background: var(--accent-gradient);
    color: var(--text-light);
}

.bg-accent {
    background: var(--accent-gradient);
}

.section-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* Header y Navegación */
header {
    background-color: var(--primary-dark);
}

.navbar {
    padding: 1rem 0;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--accent-blue);
}

/* Carrusel Principal */
.hero-carousel {
    margin-bottom: 3rem;
}

.carousel-item {
    height: 500px;
    background-color: var(--primary-dark);
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.carousel-caption {
    bottom: 20%;
    text-align: left;
    max-width: 600px;
    left: 10%;
    right: auto;
}

.carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.video-container {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container video {
    max-height: 100%;
    max-width: 100%;
}

/* Productos */
.products-section {
    padding: 4rem 0;
}

.col-xl-2-4 {
    width: 20%;
}

@media (max-width: 1199.98px) {
    .col-xl-2-4 {
        width: 25%;
    }
}

@media (max-width: 991.98px) {
    .col-xl-2-4 {
        width: 33.333%;
    }
}

@media (max-width: 767.98px) {
    .col-xl-2-4 {
        width: 50%;
    }
}

@media (max-width: 575.98px) {
    .col-xl-2-4 {
        width: 100%;
    }
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.product-carousel {
    position: relative;
    overflow: hidden;
}

.product-carousel .carousel-item {
    height: 200px;
}

.product-carousel .carousel-control-prev,
.product-carousel .carousel-control-next {
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.product-carousel .carousel-control-prev {
    left: 10px;
}

.product-carousel .carousel-control-next {
    right: 10px;
}

.product-carousel .carousel-control-prev-icon,
.product-carousel .carousel-control-next-icon {
    width: 15px;
    height: 15px;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
    height: 2.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-stock {
    font-size: 0.85rem;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

.product-price {
    margin-bottom: 1rem;
    margin-top: auto;
}

.old-price {
    text-decoration: line-through;
    color: var(--gray-dark);
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.in-stock {
    background-color: var(--accent-green);
    color: white;
}

.out-of-stock {
    background-color: #ff4d4d;
    color: white;
}

/* Banner Promocional */
.promo-banner {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 4rem 0;
    margin: 3rem 0;
}

.promo-banner h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.promo-banner p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer p {
    opacity: 0.8;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--accent-blue);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-blue);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-gradient);
    transform: translateY(-3px);
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-info li i {
    margin-right: 0.75rem;
    color: var(--accent-blue);
}

.copyright, .terms {
    font-size: 0.9rem;
    margin: 0;
}

.terms a {
    color: var(--text-light);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.terms a:hover {
    opacity: 1;
    color: var(--accent-blue);
}

/* Modal de Notificación */
.modal-content {
    border-radius: 10px;
    overflow: hidden;
}

.modal-header {
    background: var(--accent-gradient);
    color: var(--text-light);
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
}

.btn-close {
    filter: brightness(0) invert(1);
}

#modalCarousel .carousel-item {
    height: 300px;
}

#modalCarousel .carousel-item img {
    object-fit: contain;
}

/* Carrito */
.cart-section {
    padding: 3rem 0;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--gray);
    margin-bottom: 1rem;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 1.5rem;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-light);
    border: none;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background-color: var(--gray);
}

.quantity-input {
    width: 40px;
    height: 30px;
    text-align: center;
    border: 1px solid var(--gray);
    border-radius: 5px;
    margin: 0 0.5rem;
}

.cart-item-remove {
    color: #ff4d4d;
    cursor: pointer;
    margin-left: 1rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.cart-item-remove:hover {
    color: #ff0000;
}

.cart-summary {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cart-summary h3 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.summary-item.total {
    font-weight: 700;
    font-size: 1.2rem;
    border-top: 1px solid var(--gray);
    padding-top: 1rem;
    margin-top: 1rem;
}

.checkout-btn {
    margin-top: 1.5rem;
}

/* Página de Productos */
.filters-sidebar {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

.filters-sidebar h3 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
}

.filter-checkbox input {
    margin-right: 0.5rem;
}

.price-range {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.price-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--gray);
    border-radius: 5px;
}

.search-bar {
    margin-bottom: 2rem;
}

.search-input {
    border: 1px solid var(--gray);
    border-radius: 5px;
    padding: 0.75rem 1rem;
    width: 100%;
}

.sort-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray);
    border-radius: 5px;
    background-color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Página de Detalle de Producto */
.product-detail {
    padding: 3rem 0;
}

.product-detail-carousel {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-detail-carousel .carousel-item {
    height: 400px;
}

.product-detail-info {
    padding: 0 1.5rem;
}

.product-detail-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.product-detail-price {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.product-detail-old-price {
    text-decoration: line-through;
    color: var(--gray-dark);
    font-size: 1.2rem;
    margin-right: 1rem;
}

.product-detail-current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.product-detail-stock {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.product-detail-description {
    margin-bottom: 2rem;
}

.product-detail-features {
    margin-bottom: 2rem;
}

.product-detail-features h3 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.features-list li i {
    color: var(--accent-blue);
    margin-right: 0.75rem;
}

.product-detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.quantity-control button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-light);
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quantity-control button:first-child {
    border-radius: 5px 0 0 5px;
}

.quantity-control button:last-child {
    border-radius: 0 5px 5px 0;
}

.quantity-control button:hover {
    background-color: var(--gray);
}

.quantity-control input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid var(--gray);
    border-left: none;
    border-right: none;
}

/* Responsive */
@media (max-width: 991.98px) {
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption {
        bottom: 15%;
    }
    
    .carousel-caption h2 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .product-detail-carousel .carousel-item {
        height: 300px;
    }
    
    .product-detail-info {
        padding: 1.5rem 0 0;
    }
}

@media (max-width: 767.98px) {
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption {
        bottom: 10%;
        left: 5%;
        right: 5%;
        text-align: center;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .promo-banner {
        text-align: center;
        padding: 3rem 0;
    }
    
    .promo-banner img {
        margin-top: 2rem;
    }
    
    .product-detail-actions {
        flex-direction: column;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-item-image {
        margin-bottom: 1rem;
        margin-right: 0;
    }
}

@media (max-width: 575.98px) {
    .carousel-item {
        height: 250px;
    }
    
    .carousel-caption h2 {
        font-size: 1.25rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .product-detail-carousel .carousel-item {
        height: 250px;
    }
    
    .product-detail-title {
        font-size: 1.5rem;
    }
    
    .product-detail-current-price {
        font-size: 1.5rem;
    }
}

/* Estilos para el visor de medios */
.video-container {
    position: relative;
    cursor: pointer;
}

.carousel-item img {
    cursor: pointer;
}

.expand-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px;
    border-radius: 5px;
    z-index: 10;
    transition: all 0.3s ease;
}

.expand-icon:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Estilos para paginación */
.pagination-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.pagination .page-link {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.pagination .page-link:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}

/* Estilos para el visor de medios */
.video-container {
    position: relative;
    cursor: pointer;
}

.carousel-item img {
    cursor: pointer;
}

.expand-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px;
    border-radius: 5px;
    z-index: 10;
    transition: all 0.3s ease;
}

.expand-icon:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Estilos adicionales para el carrito */
.remove-item {
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-item:hover {
    background-color: #ff0000;
    transform: scale(1.1);
}

.cart-item-total {
    font-weight: bold;
    color: #1a1a3a;
    font-size: 1.1rem;
}

.quantity-input {
    text-align: center;
    width: 50px;
}