* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0f172a, #581c87, #0f172a);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.install-prompt {
    background: linear-gradient(to right, #292E1E, #292E1E);
    padding: 0.75rem 1rem;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: none;
}

.install-prompt button {
    background: white;
    color: #1d4ed8;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    margin-left: 1rem;
    cursor: pointer;
}

.offline-notification {
    background: #ef4444;
    color: white;
    padding: 0.75rem;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: none;
}

.header {
    background: linear-gradient(to right, #d97706, #f59e0b);
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.container {
    max-width: 28rem;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.logo {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
    border-radius: 0.5rem;
    object-fit: cover;
}

.header-title {
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    color: white;
    margin-bottom: 0.25rem;
}

.header-subtitle {
    text-align: center;
    color: #1e293b;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.header-divider {
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    padding-top: 0.5rem;
}

.convention-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    color: #ffffff;
}

.convention-subtitle {
    text-align: center;
    color: #ffffff;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.content {
    max-width: 28rem;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 80px; /* Espacio para el footer fijo */
}

.permission-request {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    margin-bottom: 1rem;
}

.permission-icon {
    font-size: 3rem;
    color: #f59e0b;
    margin-bottom: 1rem;
}

.permission-text {
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.stats-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.stats-toggle {
    width: 100%;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.stats-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.stats-toggle-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fbbf24;
    transition: transform 0.3s;
}

.stats-toggle-icon.rotated {
    transform: rotate(45deg);
}

.stats-content {
    padding: 0 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stats-item {
    flex: 1;
}

.stats-divider {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-value {
    font-size: 1.875rem;
    font-weight: bold;
    color: #fbbf24;
}

.stats-label {
    font-size: 0.75rem;
    color: #d1d5db;
}

.result-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.result-success {
    border: 4px solid #10b981;
}

.result-error {
    border: 4px solid #f97316;
}

.result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.result-icon i {
    font-size: 4rem;
}

.success-icon {
    color: #10b981;
}

.error-icon {
    color: #f97316;
}

.result-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
}

.success-title {
    color: #059669;
}

.error-title {
    color: #ea580c;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: #4b5563;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-icon {
    font-size: 1.25rem;
    color: #9333ea;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.detail-value {
    font-weight: bold;
}

.badge {
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.vip-badge {
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    color: #1e293b;
}

.general-badge {
    background: linear-gradient(to right, #a855f7, #9333ea);
    color: white;
}

.food-badge {
    background: #ef4444;
    color: white;
}

.action-button {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.primary-button {
    background: linear-gradient(to right, #9333ea, #7e22ce);
    color: white;
}

.primary-button:hover {
    background: linear-gradient(to right, #7e22ce, #6b21a8);
}

.scanner-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-preview {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background: #000;
    object-fit: cover;
}

.stop-button {
    background: #ef4444;
    color: white;
}

.stop-button:hover {
    background: #dc2626;
}

.scan-button {
    background: linear-gradient(to right, #f59e0b, #d97706);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 0.75rem;
    font-weight: bold;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.scan-button:hover {
    background: linear-gradient(to right, #d97706, #b45309);
}

.manual-entry {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.manual-label {
    font-size: 0.875rem;
    color: #d1d5db;
    margin-bottom: 0.5rem;
    display: block;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.phone-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    outline: none;
}

.phone-input::placeholder {
    color: #9ca3af;
}

.phone-input:focus {
    border-color: #f59e0b;
}

.search-button {
    background: #f59e0b;
    color: #1e293b;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.search-button:hover {
    background: #d97706;
}

.error-message {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #fecaca;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0.5rem;
}

.hidden {
    display: none;
}

/* Estilos para el footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    text-align: center;
    z-index: 100;
}

.footer img {
    max-width: 180px;
    height: auto;
    opacity: 0.9;
}

@media (max-width: 480px) {
    .header {
        padding: 1rem;
    }
    
    .content {
        padding: 0.75rem;
        padding-bottom: 70px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .footer {
        padding: 0.25rem;
    }
    
    .footer img {
        max-width: 160px;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
}