:root {
    --primary-color: #4361ee;
    --primary-dark: #3a0ca3;
    --secondary-color: #7209b7;
    --accent-color: #f72585;
    --dark-color: #14213d;
    --light-color: #f8f9fa;
    --gray-color: #8d99ae;
    --light-gray: #edf2f4;
    --dark-gray: #2b2d42;
    --success-color: #4cc9f0;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Barlow', 'Inter', sans-serif;
    --font-accent: 'Montserrat', sans-serif;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-effect: backdrop-filter: blur(10px) saturate(180%);
}
/* Reset y estilos base mejorados */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Tipografía mejorada */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Botones rediseñados */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 0.95rem;
    gap: 0.5rem;
}

    .btn:hover {
        background-color: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: var(--box-shadow);
    }

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

    .btn-outline:hover {
        background-color: var(--primary-color);
        color: white;
    }

.btn-empty {
    background-color: var(--danger-color);
}

    .btn-empty:hover {
        background-color: #d1005e;
    }

.btn i {
    font-size: 1rem;
}

/* Header profesional */
.header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--light-gray);
}

    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
    }

.logo a {
    font-family: var(--font-secondary);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

    .nav-links a {
        font-weight: 600;
        font-size: 0.95rem;
        position: relative;
        padding: 0.5rem 0;
    }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--primary-color);
            transition: var(--transition);
        }

        .nav-links a:hover::after {
            width: 100%;
        }

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-box {
    position: relative;
    width: 200px;
}

    .search-box input {
        width: 100%;
        padding: 0.6rem 1rem 0.6rem 2.5rem;
        border: 1px solid var(--light-gray);
        border-radius: var(--border-radius);
        font-size: 0.9rem;
        transition: var(--transition);
        background-color: var(--light-color);
    }

        .search-box input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
        }

    .search-box button {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        border: none;
        color: var(--gray-color);
        cursor: pointer;
    }

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--dark-color);
    transition: var(--transition);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--accent-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    line-height: 1;
    min-width: 18px;
    text-align: center;
}

.cart-icon:hover {
    color: var(--primary-color);
}

.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* Hero section profesional */
.hero {
    background: linear-gradient(135deg, rgba(1, 35, 90, 0.9), rgba(50, 1, 119, 0.8)), url('../images/ba.webp') no-repeat center center/cover;
    color: white;
    height: 500px;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Secciones mejoradas */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    color: var(--dark-color);
}

    .section-title::after {
        content: '';
        display: block;
        width: 80px;
        height: 4px;
        background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
        margin: 1rem auto 0;
        border-radius: 2px;
    }

/* Tarjetas de categorías */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.category-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: 1px solid var(--light-gray);
}

    .category-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--box-shadow-lg);
        border-color: var(--primary-color);
    }

    .category-card img {
        height: 180px;
        width: 100%;
        object-fit: cover;
    }

    .category-card h3 {
        padding: 1.5rem 1rem;
        font-size: 1.25rem;
    }

/* Productos - Diseño mejorado */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--light-gray);
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--box-shadow-lg);
        border-color: var(--primary-color);
    }

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.product-image {
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.03);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.product-description {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

    .product-actions .btn {
        flex: 1;
        padding: 0.75rem;
        font-size: 0.9rem;
    }


.featured {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.featured-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.featured-product {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    display: flex;
    transition: transform 0.3s ease;
}

    .featured-product:hover {
        transform: translateY(-5px);
        box-shadow: var(--box-shadow-lg);
    }

.featured-product-image {
    flex: 1;
    min-width: 150px;
    height: 180px;
    object-fit: cover;
}

.featured-product-info {
    flex: 2;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.featured-product-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.featured-product-price {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

    .featured-product-price del {
        font-size: 0.875rem;
        color: var(--gray-color);
        margin-left: 0.5rem;
    }
/* Filtros mejorados */
.filter-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background-color: white;
    border: 1px solid var(--light-gray);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.9rem;
}

    .filter-btn:hover {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

    .filter-btn.active {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

/* Newsletter profesional */
.newsletter {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

    .newsletter h2 {
        color: white;
        margin-bottom: 1.5rem;
    }

    .newsletter p {
        margin-bottom: 2rem;
        opacity: 0.9;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        font-size: 1.1rem;
    }

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background-color: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

    .newsletter-form input {
        flex: 1;
        padding: 0.9rem 1.5rem;
        border: none;
        outline: none;
        font-size: 1rem;
    }

    .newsletter-form button {
        border-radius: 0;
        background-color: var(--dark-color);
        padding: 0.9rem 2rem;
        white-space: nowrap;
    }

        .newsletter-form button:hover {
            background-color: #1a1a1a;
        }

/* Footer profesional */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 5rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1.25rem;
    margin-bottom: 1.75rem;
    position: relative;
    color: white;
}

    .footer-col h3::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 40px;
        height: 3px;
        background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
        border-radius: 2px;
    }

.footer-col p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transition: var(--transition);
        color: white;
    }

        .social-links a:hover {
            background-color: var(--primary-color);
            transform: translateY(-3px);
        }

.footer-col ul li {
    margin-bottom: 1rem;
}

    .footer-col ul li a {
        opacity: 0.8;
        transition: var(--transition);
        display: block;
        padding: 0.25rem 0;
    }

        .footer-col ul li a:hover {
            opacity: 1;
            color: var(--primary-color);
            transform: translateX(5px);
        }

    .footer-col ul li i {
        margin-right: 0.75rem;
        color: var(--primary-color);
        width: 20px;
        text-align: center;
    }

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Modal del carrito mejorado */
.cart-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

    .cart-modal.active {
        right: 0;
    }

.cart-header {
    padding: 1.75rem;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .cart-header h3 {
        font-size: 1.5rem;
        color: var(--dark-color);
    }

.close-cart {
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-color);
    background: none;
    border: none;
}

    .close-cart:hover {
        color: var(--danger-color);
        transform: rotate(90deg);
    }

.cart-body {
    flex: 1;
    padding: 1.75rem;
    overflow-y: auto;
}

.cart-items {
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 1px solid var(--light-gray);
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--light-color);
    border-radius: 50px;
    padding: 0.25rem 0.75rem;
}

    .cart-item-quantity button {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: transparent;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        transition: var(--transition);
        font-weight: 600;
        color: var(--dark-color);
    }

        .cart-item-quantity button:hover {
            background-color: var(--primary-color);
            color: white;
        }

.btn-empty {
    color: #fff;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background-color: var(--accent-color);
}

    .btn-empty hover {
        color: #d1005e;
    }

.empty-cart-message {
    text-align: center;
    padding: 2rem 0;
    color: var(--gray-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--light-gray);
    font-weight: 700;
    font-size: 1.25rem;
}

.cart-footer {
    padding: 1.75rem;
    border-top: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Modal de producto profesional */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

    .product-modal.active {
        opacity: 1;
        visibility: visible;
    }

.product-modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--box-shadow-lg);
    animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-product-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.75rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    color: var(--gray-color);
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

    .close-product-modal:hover {
        color: var(--danger-color);
        background-color: var(--light-gray);
    }

.product-modal-body {
    padding: 3rem;
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.product-details-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

    .product-details-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

.product-details-info h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.product-details-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.product-details-description {
    color: var(--gray-color);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.product-details-actions {
    display: flex;
    gap: 1rem;
}

    .product-details-actions .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

/* Notificaciones mejoradas */
.notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition);
    z-index: 1001;
    font-weight: 600;
}

    .notification.show {
        opacity: 1;
        bottom: 3rem;
    }

    .notification i {
        font-size: 1.5rem;
    }

    .notification.added-to-cart {
        background-color: var(--success-color);
        color: white;
    }

    .notification.success {
        background-color: var(--success-color);
        color: white;
    }

    .notification.warning {
        background-color: var(--warning-color);
        color: white;
    }

/* Media Queries para Responsive Design - Versión profesional */

/* Pantallas menores a 1200px */
@media (max-width: 1200px) {
    .product-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-details-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .featured-products {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets (768px - 992px) */
@media (max-width: 992px) {
    .header-actions .search-box {
        display: none;
    }

    .navbar {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 300px;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--box-shadow-lg);
        transition: var(--transition);
        z-index: 99;
    }

        .navbar.active {
            left: 0;
        }

    .nav-links {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hamburger-menu {
        display: block;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-product {
        flex-direction: column;
    }

    .featured-product-image {
        width: 100%;
        height: 150px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.75rem;
    }
}

/* Móviles (576px - 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .hero {
        height: 400px;
    }

        .hero h1 {
            font-size: 2.25rem;
        }

        .hero p {
            font-size: 1.1rem;
        }

    .product-modal-body {
        padding: 2rem;
    }

    .product-details-info h2 {
        font-size: 1.75rem;
    }



    .newsletter-form {
        flex-direction: column;
        border-radius: var(--border-radius);
    }

        .newsletter-form input {
            border-radius: var(--border-radius);
            margin-bottom: 0.75rem;
        }

        .newsletter-form button {
            border-radius: var(--border-radius);
        }
}

/* Móviles pequeños (menos de 576px) */
@media (max-width: 576px) {
    .header .container {
        padding: 0.75rem 1.25rem;
    }

    .logo a {
        font-size: 1.5rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .product-details-actions {
        flex-direction: column;
    }

        .product-details-actions .btn {
            width: 100%;
        }

    .featured-products {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-col {
        margin-bottom: 2rem;
    }

    .cart-modal {
        max-width: 100%;
    }

    .hero {
        height: 350px;
    }

        .hero h1 {
            font-size: 1.75rem;
        }

        .hero p {
            font-size: 1rem;
        }

    .btn {
        padding: 0.75rem 1.5rem;
    }
}
