* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    margin: 0;
    background: #111;
    color: #eee;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app {
    display: flex;
    flex: 1;
    min-height: 0;
}

/* PANEL IZQUIERDO */
.panel {
    width: 320px;
    background: #181818;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-right: 1px solid #333;
}

.panel h2 {
    margin: 0;
    text-align: center;
    font-weight: 400;
    letter-spacing: 1px;
}

/* BOTONES */
.btn {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn.primary {
    background: #fff;
    color: #000;
    font-weight: bold;
}

.btn.secondary {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
}

.btn.secondary:hover {
    background: #333;
}

/* PRESETS */
.presets {
    display: flex;
    gap: 8px;
}

.presets button {
    flex: 1;
    padding: 10px;
    background: #222;
    border: 1px solid #444;
    color: #eee;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
}

/* SLIDERS */
.slider {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slider label {
    font-size: 12px;
    opacity: 0.8;
}

.slider input {
    width: 100%;
}

.slider input:disabled,
.presets button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.nota {
    font-size: 11px;
    opacity: 0.6;
    line-height: 1.4;
    margin: 0;
}

.estado {
    font-size: 12px;
    opacity: 0.8;
    min-height: 16px;
    margin: 0;
}

/* PANEL DERECHO */
/* Fondo blanco a propósito: el stencil tiene líneas negras sobre
   transparente, y se ve sobre fondo claro (igual que en papel o piel),
   no sobre negro — antes el fondo era negro y las líneas, también
   negras, quedaban invisibles. */
.canvas-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f0f0;
}

canvas {
    max-width: 100%;
    max-height: 100%;
    background: #fff;
}

/* ================= CUENTAS DE USUARIO (tarea #43) ================= */

/* Barra superior con el email y el contador de stencils */
.userbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    background: #0B0B0B;
    border-bottom: 1px solid #333;
}

.userbar .marca {
    font-weight: bold;
    letter-spacing: 2px;
    color: #F7F5F0;
}

.userbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contador {
    font-size: 12px;
    color: #C9A227;
    font-weight: bold;
}

.user-email {
    font-size: 12px;
    opacity: 0.7;
}

.btn-mini {
    background: transparent;
    border: 1px solid #444;
    color: #eee;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.btn-mini:hover {
    background: #222;
}

/* Pantallas superpuestas: login y bloqueo suave */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 11, 11, 0.92);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.overlay[hidden] {
    display: none;
}

.login-card {
    background: #181818;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 36px 32px;
    width: 340px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: center;
}

.login-title {
    margin: 0;
    letter-spacing: 3px;
    font-weight: 400;
    color: #F7F5F0;
}

.login-sub {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.8;
}

.login-sub strong {
    color: #C9A227;
}

.btn-google {
    background: #fff;
    color: #000;
    border: none;
    padding: 13px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.btn-google:hover {
    opacity: 0.9;
}

.sep {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    font-size: 11px;
}

.sep::before,
.sep::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #444;
}

.email-input {
    background: #111;
    border: 1px solid #444;
    color: #eee;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
}

.email-input:focus {
    outline: none;
    border-color: #C9A227;
}

.login-estado {
    font-size: 12px;
    opacity: 0.85;
    min-height: 16px;
    margin: 0;
    line-height: 1.4;
}

/* En el bloqueo suave, "Ver planes" es un enlace con pinta de botón */
a.btn.primary {
    text-decoration: none;
}
