/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e8e8e8;
    background-color: #121212;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #1f1f1f 0%, #2d1515 50%, #1f1f1f 100%);
    color: #e8e8e8;
    padding: 1rem 0;
    box-shadow: 0 2px 15px rgba(220, 38, 38, 0.3);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid #dc2626;
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-link {
    color: #e8e8e8;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.9rem;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
    transform: scale(1.05);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.8rem;
    padding: 0.8rem;
    border-radius: 50%;
    transition: all 0.3s;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon:hover {
    background-color: rgba(220, 38, 38, 0.2);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.5);
    border: 2px solid #1f1f1f;
}

/* Main Content */
.main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.section {
    display: none;
    padding: 1.5rem 0;
    color: #e8e8e8;
}

.section.active {
    display: block;
}

.section h2 {
    color: #e8e8e8;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1f1f1f 0%, #2d1515 50%, #1f1f1f 100%);
    color: #e8e8e8;
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid #333;
}

.hero-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #e8e8e8, #fca5a5, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #d1d5db;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: 1px solid #dc2626;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover,
.btn-primary:active {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.btn-secondary {
    background: #374151;
    color: #e8e8e8;
    border: 1px solid #4b5563;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover,
.btn-secondary:active {
    background: #4b5563;
    box-shadow: 0 4px 12px rgba(75, 85, 99, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    border: 1px solid #059669;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-success:hover,
.btn-success:active {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 0 0.5rem;
}

.product-card {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #333;
    position: relative;
}

.product-card:hover,
.product-card:active {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.3);
    border-color: #dc2626;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
    transition: left 0.6s;
    z-index: 1;
}

.product-card:hover::before {
    left: 100%;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

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

.product-info {
    padding: 1.2rem;
    position: relative;
    z-index: 2;
}

.product-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #e8e8e8;
    line-height: 1.3;
}

.product-description {
    color: #b3b3b3;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.product-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fca5a5;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

.product-sizes {
    margin-bottom: 1rem;
}

.product-sizes span {
    font-size: 0.8rem;
    color: #999;
}

.size-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.size-tag {
    background: #333;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    border: 1px solid #4b5563;
    color: #e8e8e8;
    transition: all 0.2s;
}

.size-tag:hover {
    background: #4b5563;
    border-color: #dc2626;
}

/* Size Pills */
.size-pills {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
}

.size-pill {
    padding: 0.8rem 1.2rem;
    border: 2px solid #4b5563;
    border-radius: 25px;
    background-color: #333;
    color: #e8e8e8;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
}

.size-pill:hover {
    border-color: #dc2626;
    background-color: rgba(220, 38, 38, 0.1);
    transform: scale(1.05);
}

.size-pill.selected {
    border-color: #dc2626;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    transform: scale(1.05);
}

.size-pill.selected:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    background: #333;
    border-radius: 25px;
    padding: 0.5rem;
    border: 2px solid #4b5563;
    width: fit-content;
    margin: 0 auto;
}

.quantity-btn {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.quantity-btn:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-btn:disabled {
    background: #4b5563;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.quantity-btn:disabled:hover {
    transform: none;
    background: #4b5563;
}

.quantity-display {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e8e8e8;
    min-width: 2rem;
    text-align: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    animation: fadeIn 0.3s;
    overflow-y: auto;
}

.modal-content {
    background-color: #1e1e1e;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 95%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-header {
    padding: 1.2rem;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #262626;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #e8e8e8;
    font-size: 1.1rem;
}

.close {
    color: #999;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem;
    border-radius: 50%;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close:hover,
.close:active {
    color: #fca5a5;
    background: rgba(220, 38, 38, 0.1);
    transform: scale(1.1);
}

.modal-body {
    padding: 1.2rem;
    color: #e8e8e8;
}

.modal-footer {
    padding: 1.2rem;
    border-top: 1px solid #333;
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    background: #262626;
    border-radius: 0 0 12px 12px;
    flex-wrap: wrap;
}

/* Product Details Modal */
.product-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.product-details img {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.product-info .price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fca5a5;
    margin: 1rem 0;
    text-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

.size-selector,
.quantity-selector {
    margin: 1rem 0;
}

.size-selector label,
.quantity-selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #e8e8e8;
    font-size: 0.9rem;
}

.size-selector select,
.quantity-selector input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #4b5563;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #333;
    color: #e8e8e8;
    min-height: 44px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8e8e8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

.size-selector select:focus,
.quantity-selector input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

/* Cart Items */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #333;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info h4 {
    margin: 0 0 0.3rem 0;
    color: #e8e8e8;
    font-size: 1rem;
}

.cart-item-info p {
    margin: 0;
    color: #b3b3b3;
    font-size: 0.85rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.quantity-btn {
    background: #333;
    border: 1px solid #4b5563;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #e8e8e8;
    font-size: 1.1rem;
    transition: all 0.2s;
    min-width: 44px;
    min-height: 44px;
}

.quantity-btn:hover,
.quantity-btn:active {
    background: #4b5563;
    border-color: #dc2626;
    transform: scale(1.05);
}

.cart-total {
    text-align: right;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid #dc2626;
    font-size: 1.3rem;
    color: #e8e8e8;
    font-weight: bold;
}

/* Form */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: bold;
    color: #e8e8e8;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #4b5563;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #333;
    color: #e8e8e8;
    min-height: 44px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
    background-color: #3a3a3a;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
    font-family: inherit;
}

.order-summary {
    background: #262626;
    padding: 1.2rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    border: 1px solid #404040;
}

.order-summary h4 {
    margin-bottom: 1rem;
    color: #e8e8e8;
    font-size: 1.1rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.8rem 0;
    border-bottom: 1px solid #404040;
    color: #e8e8e8;
    gap: 1rem;
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item div:first-child {
    flex: 1;
}

.checkout-item div:last-child {
    font-weight: bold;
    color: #fca5a5;
    white-space: nowrap;
}

.checkout-total {
    text-align: right;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 2px solid #dc2626;
    font-size: 1.3rem;
    color: #e8e8e8;
    font-weight: bold;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 0.8rem 0;
        backdrop-filter: blur(15px);
    }

    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .nav ul {
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-content h2 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

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

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }

    .product-card {
        margin: 0 0.5rem;
    }

    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 1rem;
    }

    .product-title {
        font-size: 1.1rem;
    }

    .product-price {
        font-size: 1.3rem;
    }

    .modal-content {
        width: 98%;
        margin: 1% auto;
        max-height: 95vh;
    }

    .product-details {
        gap: 1rem;
    }

    .product-details img {
        max-width: 250px;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        padding: 1.2rem 0;
    }

    .cart-item-quantity {
        align-self: flex-end;
    }

    .modal-footer {
        flex-direction: column;
        gap: 0.8rem;
    }

    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }

    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    .section {
        padding: 1rem 0;
    }

    .section h2 {
        font-size: 1.6rem;
        text-align: center;
        margin-bottom: 1.2rem;
    }

    /* Pills y controles responsive */
    .size-pills {
        justify-content: center;
        gap: 0.5rem;
    }

    .size-pill {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        min-width: 40px;
        min-height: 40px;
    }

    .quantity-controls {
        margin: 0 auto;
        gap: 0.8rem;
    }

    .quantity-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .quantity-display {
        font-size: 1.1rem;
    }
}
