/* ============================================
   ARTEMISA DELIVERY - DISEÑO PROFESIONAL
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #FF6B35;
    --primary-dark: #E85A24;
    --secondary: #1A1A2E;
    --accent: #16213E;
    --success: #00C853;
    --warning: #FFD93D;
    --danger: #FF5252;
    --light: #F8F9FA;
    --dark: #212529;
    --gray: #6C757D;
    --white: #FFFFFF;
    --shadow: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --radius: 20px;
    --radius-sm: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--light);
    color: var(--dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   HEADER - ELEGANTE Y MODERNO
   ============================================ */
header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 1.2rem 1.5rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(26, 26, 46, 0.3);
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.logo h1 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo h1 span {
    color: var(--primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.5);
}

/* ============================================
   HERO / PROMO SECTION
   ============================================ */
.hero {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.2) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 217, 61, 0.15) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite 2s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

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

.hero h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--white);
    line-height: 1.2;
}

.hero h2 span {
    color: var(--primary);
    display: block;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    max-width: 400px;
    margin: 0 auto;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--warning);
    color: var(--dark);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    box-shadow: 0 6px 20px rgba(255, 217, 61, 0.4);
    animation: bounce 2s ease-in-out infinite;
}

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

/* ============================================
   MENU SECTION
   ============================================ */
.menu-section {
    padding: 3rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
}

.section-header span {
    color: var(--gray);
    font-size: 0.95rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ============================================
   PRODUCT CARDS - MODERN DESIGN
   ============================================ */
.menu-item {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.menu-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.menu-item-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

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

.menu-item:hover .menu-item-image img {
    transform: scale(1.1);
}

.menu-item-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.menu-item-info {
    padding: 1.5rem;
}

.menu-item-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.menu-item-info p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-item-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.add-btn {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-btn:hover {
    background: var(--primary);
    transform: scale(1.05);
}

/* ============================================
   SHOPPING CART - SLIDE UP
   ============================================ */
.cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -10px 50px rgba(0,0,0,0.15);
    padding: 2rem;
    z-index: 1000;
    border-radius: 30px 30px 0 0;
    transform: translateY(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart.open {
    transform: translateY(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cart-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-close {
    background: var(--light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.3rem;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-close:hover {
    background: var(--danger);
    color: var(--white);
}

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

.cart-empty {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
}

.cart-empty span {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light);
    animation: slideIn 0.3s ease;
}

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

.cart-item-info h4 {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.2rem;
}

.cart-item-info p {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
}

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

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    background: var(--white);
    color: var(--secondary);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 2px solid var(--light);
    margin-bottom: 1rem;
}

.cart-total span:first-child {
    font-size: 1rem;
    color: var(--gray);
}

.cart-total span:last-child {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary);
}

.checkout-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    width: 100%;
    padding: 1.3rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.5);
}

/* ============================================
   ORDER FORM - MODAL STYLE
   ============================================ */
.order-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.order-form-overlay.active {
    display: flex;
}

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

.order-form {
    background: var(--white);
    border-radius: var(--radius);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.order-form-header {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    padding: 2rem;
    text-align: center;
}

.order-form-header h2 {
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 700;
}

.order-form-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e9ecef;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--light);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.order-form .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 1.2rem;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.order-success {
    text-align: center;
    padding: 3rem 2rem;
}

.order-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success), #00A844);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 200, 83, 0.3);
}

.order-success h2 {
    color: var(--secondary);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.order-success p {
    color: var(--gray);
    margin-bottom: 2rem;
}

.order-success-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-success-buttons .btn-primary {
    justify-content: center;
}

.btn-secondary {
    background: var(--light);
    color: var(--secondary);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--gray);
    color: var(--white);
}

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-container {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.admin-header {
    text-align: center;
    margin-bottom: 3rem;
}

.admin-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
}

.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-card h2 {
    color: var(--secondary);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light);
}

.form-group-admin label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--secondary);
}

.form-group-admin input,
.form-group-admin textarea,
.form-group-admin select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 1rem;
}

.form-group-admin input:focus,
.form-group-admin textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.admin-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.9rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

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

.admin-btn-secondary {
    background: var(--gray);
}

.admin-btn-danger {
    background: var(--danger);
}

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

.orders-table th,
.orders-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light);
}

.orders-table th {
    background: var(--secondary);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

.orders-table tbody tr:hover {
    background: var(--light);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .order-form-overlay {
        padding: 0;
    }
    
    .order-form {
        max-height: 100vh;
        border-radius: 0;
    }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}
