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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    min-height: 100vh;
    color: #333;
}

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

/* Header */
header {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5em;
    color: #8B4513;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
    color: #666;
}

/* Layout principal */
main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* Sección del menú */
.menu-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.menu-section h2 {
    color: #8B4513;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.menu-item {
    background: #fff;
    border: 2px solid #D2691E;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.menu-item h3 {
    color: #8B4513;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.menu-item .price {
    font-size: 1.5em;
    font-weight: bold;
    color: #D2691E;
    margin: 10px 0;
}

.menu-item .quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.quantity-btn {
    background: #D2691E;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: background 0.3s ease;
}

.quantity-btn:hover {
    background: #8B4513;
}

.quantity-display {
    font-size: 1.2em;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

/* Botones */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary {
    background: #8B4513;
    color: white;
}

.btn-primary:hover {
    background: #654321;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #D2691E;
    color: white;
}

.btn-secondary:hover {
    background: #B8860B;
    transform: translateY(-2px);
}

.add-to-cart {
    width: 100%;
    margin-top: 10px;
}

/* Sección del carrito */
.cart-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.cart-section h2 {
    color: #8B4513;
    margin-bottom: 20px;
    font-size: 1.8em;
}

#cart-items {
    margin-bottom: 20px;
}

.cart-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #D2691E;
}

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

.cart-item-name {
    font-weight: bold;
    color: #8B4513;
    margin-bottom: 5px;
}

.cart-item-details {
    color: #666;
    font-size: 0.9em;
}

.cart-item-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8em;
}

.cart-item-remove:hover {
    background: #c82333;
}

.empty-cart {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

#cart-total {
    border-top: 2px solid #D2691E;
    padding-top: 15px;
    margin-bottom: 20px;
}

#cart-total h3 {
    color: #8B4513;
    font-size: 1.5em;
    text-align: center;
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
}

.close:hover {
    color: #8B4513;
}

.modal h2 {
    color: #8B4513;
    margin-bottom: 20px;
}

#purchase-summary {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #D2691E;
}

/* Responsive */
@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    header h1 {
        font-size: 2em;
    }

    .container {
        padding: 10px;
    }

    .cart-actions {
        flex-direction: column;
    }
}