:root {
    --primary: #f28b24; /* Naranja Fuego */
    --primary-dark: #cc741c;
    --background: #0d0d0d;
    --card-bg: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

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

body {
    background-color: var(--background);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
}

/* Header / Hero Section */
.hero {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1555939594-58d7cb561ad1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    height: 35vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 4px solid var(--primary);
}

.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.header-content {
    position: relative;
    z-index: 1;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    letter-spacing: 2px;
    color: var(--primary);
    text-transform: uppercase;
    text-shadow: 2px 2px 10px rgba(242, 139, 36, 0.5);
    margin-bottom: 0.5rem;
}

.brand-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: #ffdcb5;
}

/* Main Menu */
.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.section-title {
    font-family: var(--font-heading);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* Grid de Productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(242, 139, 36, 0.2);
}

.featured {
    border: 2px solid var(--primary);
    position: relative;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.product-image-container {
    height: 220px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.product-name {
    font-size: 1.5rem;
    color: white;
}

.product-price {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 700;
}

.product-ingredients {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-add {
    width: 100%;
    padding: 0.8rem;
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Carrito Flotante */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(242, 139, 36, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
    transition: transform 0.2s ease;
}

.floating-cart:hover {
    transform: scale(1.05);
}

.cart-count {
    background-color: white;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal del Carrito */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

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

.modal-content {
    background-color: var(--card-bg);
    border: 1px solid #333;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.close-modal:hover {
    color: white;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}

.cart-items {
    margin-bottom: 1.5rem;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
}

.empty-msg {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #333;
}

.item-info h4 {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.item-info .controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.btn-qty {
    background: #333;
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

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

.item-price {
    color: var(--primary);
    font-weight: bold;
}

.cart-total-section {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    margin-bottom: 2rem;
    border-top: 2px solid #333;
    padding-top: 1rem;
}

.total-amount {
    color: var(--primary);
}

.payment-info {
    text-align: center;
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.payment-info h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.payment-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.qr-placeholder {
    margin-top: 1rem;
}
.qr-placeholder img {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.btn-whatsapp {
    width: 100%;
    background-color: #25D366;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}

/* Responsividad */
@media (max-width: 600px) {
    .brand-title {
        font-size: 3rem;
    }
    .product-image-container {
        height: 200px;
    }
}
