:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b; 
    --accent: #2563eb;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255,255,255,0.1);
    --metal-shadow: rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--bg-dark); color: var(--text-main); font-family: 'Urbanist', sans-serif; display: flex; justify-content: center; min-height: 100vh; }

header {
    display: flex; justify-content: space-between; align-items: center;
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: var(--bg-card); padding: 10px 40px; border-bottom: 1px solid var(--border);
    height: 110px; box-shadow: 0 6px 10px -1px rgba(0,0,0,0.3);
}

.app-container { width: 100%; max-width: 1200px; padding: 150px 20px 30px 20px; }
.logo-area { display: flex; align-items: center; gap: 20px; height: 100%; }
.header-logo-container { height: 100%; display: flex; align-items: center; }
.header-logo-img { height: 85px; width: auto; object-fit: contain; }
.metallic-title { font-size: 24px; font-weight: 700; margin-bottom: 2px; line-height: 1; background-image: linear-gradient(to bottom, #f1f5f9 0%, #ffffff 40%, #e2e8f0 50%, #94a3b8 60%, #ffffff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 2px 2px 3px var(--metal-shadow); }
.copyright { font-size: 11px; color: var(--text-muted); }
.badge { background: rgba(37, 99, 235, 0.2); color: #60a5fa; padding: 6px 16px; border-radius: 20px; font-weight: 700; font-size: 14px; border: 1px solid rgba(37, 99, 235, 0.3); }

main { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 900px) { main { grid-template-columns: 1fr; } }

.step-card { background: var(--bg-card); padding: 30px; border-radius: 16px; margin-bottom: 24px; border: 1px solid var(--border); }
.step-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.step-number { background: var(--accent); color: white; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }

.qr-type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.type-btn { background: #0f172a; border: 1px solid var(--border); color: var(--text-muted); padding: 15px 5px; border-radius: 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: 0.2s; font-size: 13px; }
.type-btn.active { background: var(--accent); color: white; border-color: var(--accent); transform: translateY(-2px); }

/* ESTILOS DE INPUTS DEL PASO 2 */
.input-group { display: flex; flex-direction: column; gap: 15px; }
.field-row { display: flex; flex-direction: column; gap: 8px; }
.field-row label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], textarea {
    background: #0f172a; border: 1px solid var(--border); padding: 14px; border-radius: 12px; color: white; font-size: 15px; width: 100%; outline: none; font-family: inherit;
}
input:focus { border-color: var(--accent); }

.design-section { display: flex; flex-direction: column; gap: 25px; }
.design-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.color-palette { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.color-opt { height: 40px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; position: relative; }
.color-opt.selected { border: 2px solid white; box-shadow: 0 0 8px rgba(255,255,255,0.3); }
.custom-color-trigger { background: #0f172a; color: white; }
.custom-color-trigger input[type="color"] { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; }

.custom-select { background: #0f172a; border: 1px solid var(--border); color: white; padding: 14px; border-radius: 12px; font-size: 14px; height: 50px; outline: none; width: 100%; appearance: none; }
.logo-gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.logo-option { height: 45px; background: #0f172a; border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; font-size: 18px; color: var(--text-main); }
.logo-option.selected { border-color: var(--accent); color: var(--accent); background: rgba(37, 99, 235, 0.1); }
.logo-option.disabled { opacity: 0.2; pointer-events: none; }

.preview-card { background: var(--bg-card); padding: 40px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 30px; position: sticky; top: 130px; border: 1px solid var(--border); }
#qrcode { background: white; padding: 25px; border-radius: 16px; width: 300px; height: 300px; display: flex; align-items: center; justify-content: center; }
.action-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; width: 100%; }
button.btn-primary { border: none; padding: 16px; border-radius: 12px; font-weight: 700; background: var(--accent); color: white; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; }
button.btn-primary:disabled { background: #334155; color: #94a3b8; cursor: not-allowed; }

.color-warning { color: #ef4444; font-size: 12px; font-weight: 700; margin-top: 5px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #10b981; color: white; padding: 12px 24px; border-radius: 30px; font-weight: 700; display: none; z-index: 9999; }
