/* ===================================
   VARIABLES Y RESET
   =================================== */
:root {
    --color-primary: #1561F0;
    --color-primary-dark: #0051D5;
    --color-dark: #131313;
    --color-gray-dark: #2B2B2B;
    --color-gray-medium: #86868B;
    --color-white: #FFFFFF;
    --color-success: #34C759;
    --color-warning: #FF9500;
    --color-danger: #FF3B30;
    --color-info: #5AC8FA;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-dark);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   HEADER Y NAVEGACIÓN
   =================================== */
.header {
    background-color: rgba(19, 19, 19, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(134, 134, 139, 0.2);
    transition: var(--transition);
    height: 80px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo-img {
    height: 200px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 3px 15px rgba(21, 97, 240, 0.6));
    position: absolute;
    top: -100px;
    z-index: 10;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 25px rgba(21, 97, 240, 0.8));
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.5px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--color-gray-medium);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a:hover {
    color: var(--color-white);
}

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

.cart-btn {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

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

.cart-count {
    background-color: var(--color-danger);
    color: var(--color-white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* ===================================
   HERO SECTION MODERNO Y ESPECTACULAR
   =================================== */
.hero-modern {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowZoom 30s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(19, 19, 19, 0.95) 0%,
        rgba(2, 2, 2, 0.3) 50%,
        rgba(19, 19, 19, 0.95) 100%
    );
    backdrop-filter: blur(2px);
}

.hero-content-modern {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(21, 97, 240, 0.2);
    border: 1px solid rgba(21, 97, 240, 0.5);
    border-radius: 50px;
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    animation: fadeIn 1s ease-out 0.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-title-modern {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--color-white);
    letter-spacing: -2px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.highlight-text {
    background: linear-gradient(135deg, #1561F0 0%, #5AC8FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle-modern {
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 50px;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.btn-large {
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
    transform: translateY(-2px);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
}

.feature-icon {
    width: 28px;
    height: 28px;
    background: rgba(21, 97, 240, 0.3);
    border: 1px solid rgba(21, 97, 240, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s ease-in-out infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.scroll-indicator svg {
    opacity: 0.6;
}

/* Hero antiguo - mantener por compatibilidad */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-gray-dark) 100%);
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(21, 97, 240, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-30px, 30px) rotate(240deg); }
}

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

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -2px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gray-medium) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--color-gray-medium);
    margin-bottom: 40px;
    font-weight: 400;
}

/* ===================================
   BOTONES
   =================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 980px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(21, 97, 240, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(21, 97, 240, 0.4);
}

.btn-secondary {
    background-color: var(--color-gray-dark);
    color: var(--color-white);
    border: 1px solid rgba(134, 134, 139, 0.3);
}

.btn-secondary:hover {
    background-color: #3a3a3a;
    border-color: var(--color-gray-medium);
}

.btn-buy {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 10px 20px;
    font-size: 13px;
}

.btn-buy:hover {
    background-color: var(--color-primary-dark);
}

.btn-buy:disabled {
    background-color: var(--color-gray-medium);
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-add-cart {
    background-color: var(--color-success);
    color: var(--color-white);
    padding: 10px 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.btn-add-cart:hover {
    background-color: #2aa74a;
}

/* ===================================
   SECCIONES
   =================================== */
.featured-section,
.products-section {
    padding: 80px 0;
}

.contact-section {
    padding: 80px 0;
    background-color: var(--color-gray-dark);
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

/* ===================================
   CONTROLES DE PRODUCTOS
   =================================== */
.products-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    background-color: var(--color-gray-dark);
    border: 1px solid rgba(134, 134, 139, 0.3);
    border-radius: 25px;
    color: var(--color-white);
    font-size: 14px;
    font-family: var(--font-family);
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(21, 97, 240, 0.1);
}

.search-box input::placeholder {
    color: var(--color-gray-medium);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    pointer-events: none;
}

.view-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.sort-select {
    padding: 10px 35px 10px 15px;
    background-color: var(--color-gray-dark);
    border: 1px solid rgba(134, 134, 139, 0.3);
    border-radius: 20px;
    color: var(--color-white);
    font-size: 14px;
    font-family: var(--font-family);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2386868B' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.sort-select:hover,
.sort-select:focus {
    border-color: var(--color-primary);
    outline: none;
}

.view-mode-btns {
    display: flex;
    gap: 8px;
    background-color: var(--color-gray-dark);
    padding: 5px;
    border-radius: 20px;
}

.view-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 15px;
    color: var(--color-gray-medium);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.view-btn.active,
.view-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ===================================
   FILTROS
   =================================== */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background-color: var(--color-gray-dark);
    color: var(--color-gray-medium);
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(134, 134, 139, 0.2);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 97, 240, 0.3);
}

.results-count {
    text-align: center;
    color: var(--color-gray-medium);
    font-size: 14px;
    margin-bottom: 20px;
}

/* ===================================
   PRODUCTOS GRID
   =================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    transition: var(--transition);
}

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

.product-card {
    background-color: var(--color-gray-dark);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(134, 134, 139, 0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

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

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }

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

.product-card.featured {
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 20px rgba(21, 97, 240, 0.2);
}

.products-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 250px 1fr auto;
    gap: 25px;
    align-items: center;
}

.product-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--color-dark);
}

.products-grid.list-view .product-image {
    height: 180px;
    width: 250px;
}

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

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

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    background-color: var(--color-primary);
    color: var(--color-white);
    backdrop-filter: blur(10px);
    z-index: 1;
}

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

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

.badge-featured {
    background-color: var(--color-success);
}

.product-info {
    padding: 25px;
}

.products-grid.list-view .product-info {
    padding: 15px;
}

.product-category {
    font-size: 12px;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 20px;
    font-weight: 600;
    margin: 10px 0;
    color: var(--color-white);
}

.product-description {
    font-size: 14px;
    color: var(--color-gray-medium);
    margin-bottom: 20px;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.products-grid.list-view .product-footer {
    flex-direction: column;
    align-items: flex-end;
    padding: 15px;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-white);
}

.product-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-gray-medium);
    grid-column: 1 / -1;
}

/* ===================================
   IMAGEN CLICKEABLE EN CARD
   =================================== */
.product-image-clickable {
    cursor: pointer;
}

.product-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(21, 97, 240, 0.0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0;
}

.product-image-overlay span {
    background: var(--color-primary);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transform: translateY(10px);
    transition: var(--transition);
}

.product-image-clickable:hover .product-image-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.35);
}

.product-image-clickable:hover .product-image-overlay span {
    transform: translateY(0);
}

/* En móvil mostrar ícono de lupa permanente */
@media (hover: none) {
    .product-image-overlay {
        opacity: 1;
        background: transparent;
        align-items: flex-end;
        justify-content: flex-end;
        padding: 10px;
    }

    .product-image-overlay span {
        transform: translateY(0);
        padding: 6px 12px;
        font-size: 12px;
        background: rgba(21, 97, 240, 0.85);
        backdrop-filter: blur(4px);
    }
}

.product-name-link {
    cursor: pointer;
    transition: color 0.2s;
}

.product-name-link:hover {
    color: var(--color-primary);
}

/* ===================================
   MODAL DETALLE PRODUCTO
   =================================== */
.product-modal-content {
    max-width: 900px;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.product-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: var(--transition);
}

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

.product-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.product-modal-image-wrap {
    position: relative;
    height: 450px;
    background: var(--color-dark);
    overflow: hidden;
}

.product-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-modal-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.product-modal-info {
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    max-height: 450px;
}

.product-modal-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-white);
}

.product-modal-desc {
    font-size: 15px;
    color: var(--color-gray-medium);
    line-height: 1.7;
    flex: 1;
}

.product-modal-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.product-modal-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-white);
}

.product-modal-stock {
    font-size: 13px;
    font-weight: 600;
}

.product-modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

.modal-qty {
    background: var(--color-gray-dark);
    border-color: rgba(134,134,139,0.4);
}

.btn-modal-add {
    flex: 1;
    padding: 14px 20px;
    font-size: 15px;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .product-modal-body {
        grid-template-columns: 1fr;
    }

    .product-modal-image-wrap {
        height: 260px;
    }

    .product-modal-info {
        padding: 25px 20px;
        max-height: none;
    }

    .product-modal-title {
        font-size: 20px;
    }

    .product-modal-price {
        font-size: 26px;
    }
}

/* ===================================
   SELECTOR CANTIDAD EN CARD
   =================================== */
.add-to-cart-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.card-qty-selector {
    display: flex;
    align-items: center;
    background-color: var(--color-dark);
    border: 1px solid rgba(134, 134, 139, 0.3);
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
}

.card-qty-btn {
    background: none;
    border: none;
    color: var(--color-white);
    width: 30px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
}

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

.card-qty-input {
    width: 32px;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    padding: 0;
    font-family: var(--font-family);
    -moz-appearance: textfield;
}

.card-qty-input::-webkit-inner-spin-button,
.card-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.add-to-cart-row .btn-add-cart {
    flex: 1;
    min-width: 0;
    justify-content: center;
}

/* ===================================
   CARRITO MODAL
   =================================== */
.cart-modal-content {
    max-width: 700px;
}

.cart-body {
    padding: 30px;
    max-height: 400px;
    overflow-y: auto;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-gray-medium);
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 15px;
    background-color: var(--color-dark);
    border-radius: 12px;
    margin-bottom: 15px;
    align-items: center;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

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

.cart-item-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 14px;
    color: var(--color-primary);
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    background-color: var(--color-gray-dark);
    border: 1px solid rgba(134, 134, 139, 0.3);
    color: var(--color-white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

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

.qty-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.remove-item {
    background: none;
    border: none;
    color: var(--color-danger);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
}

.remove-item:hover {
    transform: scale(1.2);
}

.cart-footer {
    padding: 25px 30px;
    border-top: 1px solid rgba(134, 134, 139, 0.2);
    background-color: var(--color-dark);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.total-amount {
    font-size: 24px;
    color: var(--color-primary);
}

.cart-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* ===================================
   CONTACTO
   =================================== */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 18px;
    color: var(--color-gray-medium);
    margin-bottom: 30px;
}

.contact-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background-color: var(--color-dark);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(134, 134, 139, 0.2);
}

.footer p {
    color: var(--color-gray-medium);
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-note {
    font-size: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.footer-links a {
    color: var(--color-gray-medium);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-primary);
}

/* ===================================
   SCROLL TO TOP
   =================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ===================================
   LOADING
   =================================== */
.loading-indicator {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.loading-indicator.active {
    display: block;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(134, 134, 139, 0.3);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===================================
   ADMIN (mantener estilos existentes)
   =================================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background-color: var(--color-gray-dark);
    border-right: 1px solid rgba(134, 134, 139, 0.2);
    padding: 30px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-logo {
    padding: 0 30px 30px;
    border-bottom: 1px solid rgba(134, 134, 139, 0.2);
}

.admin-logo h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.admin-subtitle {
    font-size: 12px;
    color: var(--color-gray-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-nav {
    padding: 20px 0;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 30px;
    color: var(--color-gray-medium);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.admin-nav-link span {
    font-size: 18px;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background-color: rgba(21, 97, 240, 0.1);
    color: var(--color-primary);
}

.admin-main {
    flex: 1;
    margin-left: 280px;
    background-color: var(--color-dark);
}

.admin-header {
    background-color: var(--color-gray-dark);
    padding: 25px 40px;
    border-bottom: 1px solid rgba(134, 134, 139, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-size: 28px;
    font-weight: 700;
}

.admin-user {
    color: var(--color-gray-medium);
    font-size: 14px;
}

.admin-section {
    padding: 40px;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-section-title {
    font-size: 24px;
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--color-gray-dark);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(134, 134, 139, 0.2);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-card.warning {
    border-color: var(--color-warning);
}

.stat-card.danger {
    border-color: var(--color-danger);
}

.stat-icon {
    font-size: 36px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-white);
}

.stat-label {
    font-size: 13px;
    color: var(--color-gray-medium);
    font-weight: 500;
}

.admin-table-container {
    background-color: var(--color-gray-dark);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(134, 134, 139, 0.2);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background-color: var(--color-dark);
}

.admin-table th {
    padding: 18px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-gray-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 18px 20px;
    border-top: 1px solid rgba(134, 134, 139, 0.1);
    font-size: 14px;
}

.admin-table tbody tr {
    transition: var(--transition);
}

.admin-table tbody tr:hover {
    background-color: rgba(21, 97, 240, 0.05);
}

.table-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.price-cell {
    font-weight: 600;
    color: var(--color-primary);
}

.stock-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.stock-badge.success {
    background-color: rgba(52, 199, 89, 0.2);
    color: var(--color-success);
}

.stock-badge.warning {
    background-color: rgba(255, 149, 0, 0.2);
    color: var(--color-warning);
}

.stock-badge.danger {
    background-color: rgba(255, 59, 48, 0.2);
    color: var(--color-danger);
}

.toggle-destacado {
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-destacado:hover {
    transform: scale(1.2);
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.btn-icon:hover {
    transform: scale(1.2);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--color-gray-dark);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(134, 134, 139, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(134, 134, 139, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--color-gray-medium);
    cursor: pointer;
    transition: var(--transition);
}

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

.modal-footer {
    padding: 25px 30px;
    border-top: 1px solid rgba(134, 134, 139, 0.2);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.admin-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-white);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--color-dark);
    border: 1px solid rgba(134, 134, 139, 0.3);
    border-radius: 10px;
    color: var(--color-white);
    font-size: 14px;
    font-family: var(--font-family);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(21, 97, 240, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--color-gray-medium);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 3000;
    opacity: 0;
    transform: translateX(400px);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

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

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

/* ===================================
   RESPONSIVE — TABLET (≤1024px)
   =================================== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .products-grid.list-view .product-card {
        grid-template-columns: 200px 1fr;
    }

    .products-grid.list-view .product-footer {
        padding: 10px;
    }
}

/* ===================================
   RESPONSIVE — MÓVIL GRANDE (≤768px)
   =================================== */
@media (max-width: 768px) {

    /* — HEADER — */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(13, 13, 13, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        transition: var(--transition);
        z-index: 999;
        gap: 0;
        border-left: none;
        border-top: 1px solid rgba(134, 134, 139, 0.15);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        width: 100%;
        padding: 18px 10px;
        border-bottom: 1px solid rgba(134, 134, 139, 0.1);
        font-size: 18px;
        color: var(--color-white);
    }

    .cart-btn {
        margin-top: 16px;
        width: 100%;
        justify-content: center;
        padding: 14px;
    }

    .logo-img {
        height: 130px;
        top: -65px;
    }

    /* — HERO — */
    .hero-modern {
        min-height: 90vh;
    }

    .hero-content-modern {
        padding: 30px 20px;
    }

    .hero-title-modern {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .hero-subtitle-modern {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 35px;
    }

    .btn-large {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 16px 28px;
    }

    .hero-features {
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .feature-item {
        font-size: 13px;
    }

    /* — SECCIONES — */
    .section-title {
        font-size: 26px;
        margin-bottom: 35px;
    }

    .featured-section,
    .products-section,
    .contact-section {
        padding: 45px 0;
    }

    /* — PRODUCTOS GRID 2 columnas — */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .products-grid.list-view .product-card {
        grid-template-columns: 1fr;
    }

    .products-grid.list-view .product-image {
        height: 200px;
        width: 100%;
    }

    .product-image {
        height: 170px;
    }

    .product-info {
        padding: 12px;
    }

    .product-name {
        font-size: 14px;
        margin: 5px 0;
        line-height: 1.3;
    }

    .product-description {
        font-size: 12px;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: var(--color-gray-medium);
    }

    .product-price {
        font-size: 17px;
    }

    .product-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .add-to-cart-row {
        flex-direction: column;
        gap: 8px;
    }

    .add-to-cart-row .btn-add-cart {
        width: 100%;
        justify-content: center;
        padding: 10px;
        font-size: 13px;
    }

    .card-qty-selector {
        justify-content: center;
    }

    /* — BÚSQUEDA Y FILTROS — */
    .products-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .search-box {
        max-width: 100%;
        min-width: unset;
    }

    .sort-select {
        flex: 1;
    }

    .view-controls {
        justify-content: space-between;
    }

    .filters {
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-left: 2px;
    }

    .filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 13px;
    }

    /* — CARRITO (bottom sheet) — */
    .cart-modal-content {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 20px 20px 0 0;
        max-width: 100%;
        max-height: 92vh;
        width: 100%;
    }

    .cart-body {
        padding: 15px;
        max-height: 40vh;
    }

    .cart-footer {
        padding: 15px;
    }

    .cart-total {
        font-size: 16px;
    }

    .total-amount {
        font-size: 20px;
    }

    .cart-actions {
        flex-direction: column;
        gap: 10px;
    }

    .cart-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .cart-item {
        gap: 10px;
        padding: 10px;
    }

    .cart-item-image {
        width: 55px;
        height: 55px;
        flex-shrink: 0;
    }

    .cart-item-name {
        font-size: 14px;
    }

    .qty-btn {
        width: 32px;
        height: 32px;
    }

    /* — MODAL PRODUCTO (pantalla completa en móvil) — */
    .product-modal-content {
        position: fixed;
        inset: 0;
        margin: 0;
        border-radius: 0;
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        height: 100%;
        overflow-y: auto;
    }

    .product-modal-body {
        grid-template-columns: 1fr;
        min-height: 100%;
    }

    .product-modal-image-wrap {
        height: 50vw;
        min-height: 200px;
        max-height: 300px;
    }

    .product-modal-info {
        padding: 20px;
        max-height: none;
        overflow-y: visible;
    }

    .product-modal-title {
        font-size: 20px;
    }

    .product-modal-price {
        font-size: 26px;
    }

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

    .btn-modal-add {
        width: 100%;
    }

    /* — NOTIFICACIONES — */
    .notification {
        left: 15px;
        right: 15px;
        top: auto;
        bottom: 20px;
        transform: translateY(100px);
        text-align: center;
        max-width: none;
    }

    .notification.show {
        transform: translateY(0);
    }

    /* — ADMIN — */
    .admin-sidebar {
        width: 60px;
    }

    .admin-main {
        margin-left: 60px;
    }

    .admin-logo h2,
    .admin-subtitle,
    .admin-nav-link span:last-child {
        display: none;
    }

    .admin-nav-link {
        justify-content: center;
        padding: 15px;
    }

    .admin-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

/* ===================================
   RESPONSIVE — MÓVIL PEQUEÑO (≤480px)
   =================================== */
@media (max-width: 480px) {

    .container {
        padding: 0 12px;
    }

    /* — HEADER — */
    .logo-img {
        height: 90px;
        top: -45px;
    }

    /* — HERO — */
    .hero-modern {
        min-height: 95vh;
    }

    .hero-content-modern {
        padding: 25px 12px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 7px 14px;
        margin-bottom: 16px;
    }

    .hero-title-modern {
        font-size: 28px;
        letter-spacing: -0.5px;
        margin-bottom: 16px;
    }

    .hero-subtitle-modern {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .hero-buttons {
        gap: 10px;
        margin-bottom: 28px;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 15px;
    }

    .hero-features {
        gap: 10px;
    }

    .feature-item {
        font-size: 11px;
        gap: 6px;
    }

    .feature-icon {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .scroll-indicator {
        display: none;
    }

    /* — SECCIONES — */
    .section-title {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .featured-section,
    .products-section,
    .contact-section {
        padding: 35px 0;
    }

    /* — PRODUCTOS 1 columna — */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-image {
        height: 230px;
    }

    .product-info {
        padding: 15px;
    }

    .product-name {
        font-size: 16px;
        margin: 6px 0;
    }

    .product-description {
        font-size: 13px;
        -webkit-line-clamp: 3;
        margin-bottom: 12px;
    }

    .product-price {
        font-size: 22px;
    }

    .product-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .add-to-cart-row {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .card-qty-selector {
        flex-shrink: 0;
    }

    .add-to-cart-row .btn-add-cart {
        flex: 1;
        padding: 10px;
        font-size: 13px;
    }

    /* — BÚSQUEDA — */
    .sort-select {
        width: 100%;
    }

    /* — CARRITO — */
    .cart-item {
        gap: 8px;
    }

    .cart-item-image {
        width: 48px;
        height: 48px;
    }

    .cart-item-name {
        font-size: 13px;
    }

    .cart-item-price {
        font-size: 12px;
    }

    /* — FOOTER — */
    .footer {
        padding: 30px 0;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    /* — SCROLL TO TOP — */
    .scroll-to-top {
        width: 42px;
        height: 42px;
        bottom: 16px;
        right: 12px;
        font-size: 16px;
    }

    /* — ADMIN en móvil pequeño — */
    .admin-sidebar {
        display: none;
    }

    .admin-main {
        margin-left: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
