/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #e4002b;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo img {
    height: 55px;
    width: auto;
    transition: transform 0.3s;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.95rem;
}

.nav a:hover {
    color: #e4002b;
    background: white;
    transform: translateY(-2px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-pedido {
    background: #FF5D3D;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 93, 61, 0.3);
}

.btn-pedido:hover {
    background: #ff4520;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 93, 61, 0.4);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    color: white;
    transition: transform 0.3s;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #FFD700;
    color: #e4002b;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e4002b;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #e4002b 0%, #FF5D3D 100%);
    color: white;
    padding: 140px 0 80px;
    display: flex;
    align-items: center;
    min-height: 90vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    opacity: 0.95;
    max-width: 600px;
}

.btn-primary {
    background: white;
    color: #e4002b;
    border: none;
    padding: 16px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: #FFD700;
    color: #e4002b;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-image img {
    max-width: 85%;
    height: auto;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* Productos Destacados */
.featured-products {
    padding: 90px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.featured-products h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    color: #e4002b;
    position: relative;
}

.featured-products h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #FF5D3D;
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(228, 0, 43, 0.15);
}

.product-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.product-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #e4002b;
    font-weight: 600;
}

.product-description {
    color: #666;
    margin-bottom: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #FF5D3D;
    margin-bottom: 20px;
}

.btn-add-cart {
    background: linear-gradient(135deg, #e4002b, #FF5D3D);
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(228, 0, 43, 0.3);
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #FF5D3D, #e4002b);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(228, 0, 43, 0.4);
}

/* Checkout Page - MANTENIENDO DISEÑO ORIGINAL */
.checkout-page {
    padding: 120px 0 50px;
    min-height: 100vh;
}

.checkout-page h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.checkout-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.menu-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

.category-section {
    margin-bottom: 50px;
}

.category-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #d4af37;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 10px;
}

.checkout-products .product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.checkout-products .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.checkout-products .product-image {
    height: 200px;
    overflow: hidden;
}

.checkout-products .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.checkout-products .product-card:hover .product-image img {
    transform: scale(1.1);
}

.checkout-products .product-info {
    padding: 20px;
}

.checkout-products .product-info h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.checkout-products .product-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.checkout-products .product-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 15px;
}

.checkout-products .btn-add-cart {
    background: #d4af37;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.checkout-products .btn-add-cart:hover {
    background: #b8941f;
}

/* Carrito y Checkout - DISEÑO ORIGINAL */
.cart-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.cart-summary h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.cart-items {
    margin-bottom: 20px;
}

.empty-cart {
    text-align: center;
    color: #666;
    font-style: italic;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.item-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.item-price {
    color: #d4af37;
    font-weight: 600;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-quantity {
    background: #ddd;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove {
    background: #e74c3c;
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 10px;
}

.item-subtotal {
    font-weight: 600;
    color: #333;
}

.cart-total {
    text-align: right;
    font-size: 1.3rem;
    padding: 20px 0;
    border-top: 2px solid #ddd;
}

.order-form {
    margin-top: 30px;
}

.order-form h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
}

.form-group textarea {
    height: 80px;
    resize: vertical;
}

/* Opciones de Entrega */
.delivery-options {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    text-align: center;
    justify-content: center;
    background: white;
}

.option-label:hover {
    border-color: #d4af37;
    transform: translateY(-2px);
}

.option-label input[type="radio"] {
    display: none;
}

.option-label input[type="radio"]:checked + span {
    color: #d4af37;
    font-weight: 600;
}

.option-label input[type="radio"]:checked {
    background-color: #d4af37;
}

.option-label span {
    font-weight: 500;
    color: #333;
}

/* Botón WhatsApp */
.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    padding: 18px 25px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:active {
    transform: translateY(-1px);
}

.btn-whatsapp svg {
    width: 24px;
    height: 24px;
}

/* Badge del carrito */
.cart-count-badge {
    font-size: 0.9rem;
    color: #666;
    font-weight: normal;
    margin-left: 5px;
}

/* Campo de dirección condicional */
.delivery-address {
    display: block;
}

/* Promociones */
.promotions {
    padding: 90px 0;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    position: relative;
}

.promotions h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    color: #e4002b;
    position: relative;
}

.promotions h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #FF5D3D;
    border-radius: 2px;
}

.promo-slider {
    position: relative;
    overflow: hidden;
    height: 350px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.promo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    background: linear-gradient(135deg, #e4002b 0%, #FF5D3D 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.promo-slide.active {
    opacity: 1;
}

.promo-content h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.promo-content p {
    font-size: 1.3rem;
    margin-bottom: 25px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.promo-price {
    font-size: 3rem;
    font-weight: 800;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.promo-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.promo-controls button {
    background: #e4002b;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.promo-controls button:hover {
    background: #FF5D3D;
    transform: scale(1.1);
}

/* Locales */
.locations {
    padding: 90px 0;
    background: white;
}

.locations h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    color: #e4002b;
    position: relative;
}

.locations h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #FF5D3D;
    border-radius: 2px;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.location-card {
    background: white;
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #e4002b, #FF5D3D);
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(228, 0, 43, 0.15);
    border-color: #e4002b;
}

.location-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #e4002b;
    font-weight: 600;
}

.location-card p {
    margin-bottom: 12px;
    color: #666;
    font-size: 1rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #e4002b 0%, #c40024 100%);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: #FFD700;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

/* Sistema de Notificaciones Mejorado - OCULTO POR DEFECTO */
.notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.4);
    z-index: 10000;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-weight: 600;
    max-width: 350px;
    border-left: 5px solid #2ecc71;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.notification.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-left-color: #c0392b;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.4);
}

.notification.warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-left-color: #e67e22;
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.4);
}

.notification.info {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-left-color: #2980b9;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.notification-message {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ===== MEDIA QUERIES PARA RESPONSIVE ===== */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .featured-products h2,
    .promotions h2,
    .locations h2,
    .checkout-page h1 {
        font-size: 2.4rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cart-section {
        position: static;
    }
}

/* Tablets pequeñas */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }
    
    .nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav a {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 160px 0 60px;
        min-height: auto;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-image img {
        max-width: 70%;
    }
    
    .featured-products,
    .promotions,
    .locations {
        padding: 70px 0;
    }
    
    .featured-products h2,
    .promotions h2,
    .locations h2,
    .checkout-page h1 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .delivery-options {
        flex-direction: column;
    }
    
    .promo-slider {
        height: 280px;
    }
    
    .promo-content h3 {
        font-size: 2rem;
    }
    
    .promo-content p {
        font-size: 1.1rem;
    }
    
    .promo-price {
        font-size: 2.5rem;
    }
    
    .checkout-page {
        padding: 100px 0 30px;
    }
    
    .cart-section {
        padding: 20px;
    }
    
    .btn-whatsapp {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .notification {
        right: 20px;
        left: 20px;
        max-width: none;
        top: 90px;
    }
}

/* Móviles */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .btn-pedido {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-image img {
        max-width: 85%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .featured-products h2,
    .promotions h2,
    .locations h2,
    .checkout-page h1 {
        font-size: 1.8rem;
    }
    
    .category-section h3 {
        font-size: 1.3rem;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .item-controls {
        align-self: flex-end;
    }
    
    .cart-total {
        text-align: center;
    }
    
    .promo-slider {
        height: 220px;
    }
    
    .promo-content h3 {
        font-size: 1.3rem;
    }
    
    .promo-content p {
        font-size: 0.9rem;
    }
    
    .promo-price {
        font-size: 1.8rem;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
    }
    
    .notification {
        padding: 15px 20px;
        right: 10px;
        left: 10px;
        top: 80px;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .btn-primary {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .nav ul {
        gap: 8px;
    }
    
    .nav a {
        font-size: 0.85rem;
        padding: 5px 8px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-info h3 {
        font-size: 1.2rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
    
    .cart-section {
        padding: 15px;
    }
    
    .checkout-products .product-info {
        padding: 15px;
    }
    
    .checkout-products .product-info h4 {
        font-size: 1.1rem;
    }
}