:root {
    --bg-dark: #121212;
    --text-light: #f5f5f5;
    --accent: #d4af37;
    --card-bg: #1e1e1e;
    --success: #28a745;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    height: 100vh;
    display: flex;
    justify-content: center;
}

h1, h2 {
    font-family: 'Cinzel', serif;
    margin: 0;
}

.app-container {
    width: 100%;
    max-width: 500px; /* Enfoque móvil */
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

header {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--accent);
}

header h1 {
    color: var(--accent);
    font-size: 1.8rem;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    position: relative;
}

.view {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: opacity 0.3s ease;
}

.view.hidden {
    display: none !important;
}

#reader-container {
    width: 100%;
    max-width: 400px;
    margin: 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    background: #fff; /* Fondo blanco para mejor contraste del video */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.instruction {
    text-align: center;
    color: #aaa;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Action View Styles */
#action-view {
    justify-content: center;
    height: 100%;
    margin-top: 3rem;
}

#house-scanned {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.points-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    margin-bottom: 2rem;
}

.point-btn {
    background: var(--card-bg);
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 20px 0;
    font-size: 1.5rem;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.point-btn:hover, .point-btn:active {
    background: var(--accent);
    color: #000;
    transform: scale(1.05);
}

.point-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid #555;
    color: #ccc;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #333;
}

/* Toast Notification */
.toast {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.toast.hidden {
    opacity: 0;
    pointer-events: none;
}
