/* ===================================
   VARIABLES Y RESET
   =================================== */
:root {
    --primary-color: #FF6B6B;
    --primary-dark: #E85555;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --bg-color: #F7F7F7;
    --card-bg: #FFFFFF;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --success: #2ECC71;
    --warning: #F39C12;
    --danger: #E74C3C;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* ===================================
   HEADER
   =================================== */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    font-size: 2rem;
    font-weight: bold;
}

.cart-icon {
    font-size: 1.8rem;
    cursor: pointer;
    position: relative;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.cart-icon:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* ===================================
   MAIN CONTAINER
   =================================== */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    min-height: calc(100vh - 80px);
}

/* ===================================
   SCREENS
   =================================== */
.screen {
    animation: fadeIn 0.3s ease;
}

.screen.hidden {
    display: none;
}

/* ===================================
   WELCOME SCREEN
   =================================== */
.welcome-content {
    text-align: center;
    padding: 60px 20px;
}

.welcome-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.welcome-content p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 50px;
}

.welcome-buttons {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 500px;
    margin: 0 auto;
}

.btn-large {
    padding: 30px 40px;
    font-size: 1.5rem;
    background: var(--card-bg);
    color: var(--text-dark);
    border: 3px solid var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: var(--shadow);
}

.btn-large:hover,
.btn-large:active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   STEP HEADER
   =================================== */
.step-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-back {
    padding: 12px 24px;
    background: var(--text-light);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-back:hover {
    background: var(--text-dark);
}

.step-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    flex: 1;
}

.subtitle {
    color: var(--text-light);
    font-size: 1rem;
    width: 100%;
}

/* ===================================
   OPTIONS GRID
   =================================== */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.option-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 3px solid transparent;
    position: relative;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.option-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255,107,107,0.1), rgba(255,107,107,0.2));
}

.option-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.option-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.extra-price {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* ===================================
   BUTTONS
   =================================== */
.btn-continue {
    width: 100%;
    padding: 20px;
    font-size: 1.3rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    margin-top: 20px;
}

.btn-continue:hover {
    background: #3DB8AF;
    transform: scale(1.02);
}

/* ===================================
   CART SIDEBAR
   =================================== */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: var(--card-bg);
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 200;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 20px;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    background: var(--bg-color);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.cart-item h4 {
    margin-bottom: 10px;
}

.cart-item-details {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.cart-item-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.cart-footer {
    padding: 20px;
    border-top: 2px solid var(--bg-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.total-amount {
    color: var(--primary-color);
}

.btn-checkout {
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    background: var(--success);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.btn-checkout:hover {
    background: #27AE60;
    transform: scale(1.02);
}

/* ===================================
   MODAL
   =================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--card-bg);
    padding: 50px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 500px;
    animation: scaleIn 0.3s ease;
}

.modal-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--success);
}

.order-number {
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 30px 0;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .welcome-content h2 {
        font-size: 2rem;
    }
}
