/**
 * TuPollada.com - Estilos Principales
 * Mobile First Design System
 */

:root {
    --color-primary: #e4002b;
    --color-primary-dark: #C41230;
    --color-primary-light: #ff3350;
    --color-secondary: #fcd34d;
    --color-success: #10b981;
    --color-success-light: #d1fae5;
    --color-warning: #f59e0b;
    --color-warning-light: #fef3c7;
    --color-danger: #ef4444;
    --color-danger-light: #fee2e2;
    --color-info: #3b82f6;
    --color-info-light: #dbeafe;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --text-white: #ffffff;
    --bg-body: #f3f4f6;
    --bg-card: #ffffff;
    --bg-dark: #1e293b;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --z-modal: 50;
    --z-fixed: 30;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-body);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    background-color: var(--color-gray-50);
    min-height: 100vh;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.page-content {
    padding-bottom: 100px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--text-white);
    padding: 1.5rem;
    border-radius: 0 0 1.5rem 1.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.countdown-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: pulse 2s infinite;
}

.countdown-timer {
    font-family: monospace;
    font-weight: bold;
    color: #fef3c7;
}

.btn-organizer {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* Progress Bar */
.progress-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.progress-bar-track {
    width: 100%;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    background: var(--color-secondary);
    border-radius: 9999px;
    transition: width 1s ease-out;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%);
    background-size: 1rem 1rem;
    animation: stripes 1s linear infinite;
}

@keyframes stripes {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 1rem 0;
    }
}

.progress-footer {
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Story Section */
.story-section {
    background: var(--bg-card);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin: 1rem;
    margin-top: -1rem;
    border-top: 4px solid var(--color-secondary);
}

.story-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    padding-bottom: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.story-content {
    padding: 1rem;
    padding-top: 0.5rem;
}

.story-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.story-gallery {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.gallery-item {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    background: var(--color-gray-200);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Menu Section */
.menu-section {
    padding: 0 1rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.menu-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Product Card */
.product-card {
    background: var(--bg-card);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform var(--transition-fast);
}

.product-card:active {
    transform: scale(0.98);
}

.product-info {
    flex: 1;
}

.product-name {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.product-description {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.product-price {
    font-weight: bold;
    color: var(--color-primary);
    font-size: 1.125rem;
}

.product-type-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 9999px;
    margin-left: 0.5rem;
    font-weight: 500;
}

.product-type-badge.comida {
    background: #fef3c7;
    color: #92400e;
}

.product-type-badge.bebida {
    background: #dbeafe;
    color: #1e40af;
}

.product-type-badge.combo {
    background: #d1fae5;
    color: #065f46;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-quantity {
    font-weight: bold;
    font-size: 1.125rem;
    min-width: 24px;
    text-align: center;
}