/* ==========================================================================
   PRO MOTOR'S — Editor de Trabajos (preparación de fotos, admin interno)
   ========================================================================== */
:root {
  --black: #070707; --black-2: #0d0d0d; --black-3: #141414;
  --panel: #121214; --panel-2: #17171a;
  --red: #c01625; --red-bright: #e11d2e; --red-dark: #8f0f1a;
  --green: #22c55e; --amber: #eab308;
  --white: #ffffff; --gray: #9a9a9a; --gray-2: #6d6d72;
  --line: rgba(255,255,255,0.09); --line-2: rgba(255,255,255,0.14);
  --font-display: 'Anton', sans-serif; --font-tech: 'Rajdhani', sans-serif; --font-body: 'Inter', sans-serif;
  --radius: 16px; --radius-sm: 10px; --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: radial-gradient(1200px 700px at 80% -10%, rgba(192,22,37,0.10), transparent 60%), var(--black); color: var(--white); font-family: var(--font-body); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; }
svg, img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
em { font-style: normal; color: var(--red-bright); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; font-family: var(--font-tech); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.62rem 1.15rem; border: none; border-radius: 999px; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s; white-space: nowrap; }
.btn--sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
.btn--lg { padding: 0.9rem 1.6rem; font-size: 1rem; width: 100%; }
.btn--red { background: linear-gradient(135deg, var(--red-bright), var(--red-dark)); color: #fff; box-shadow: 0 8px 24px rgba(192,22,37,0.32); }
.btn--red:hover { transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,0.05); color: var(--gray); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { color: #fff; background: rgba(255,255,255,0.09); }
.btn--danger { background: transparent; color: var(--red-bright); box-shadow: inset 0 0 0 1.5px rgba(225,29,46,0.5); }
.btn--danger:hover { background: rgba(225,29,46,0.12); }

/* ---- Candado ---- */
.gate { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(900px 600px at 50% 0%, rgba(192,22,37,0.14), transparent 60%), var(--black); }
.gate__card { width: min(380px, 100%); background: linear-gradient(180deg, var(--panel), var(--black-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.4rem 2rem; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,0.6); display: flex; flex-direction: column; gap: 0.85rem; }
.gate__logo { width: 64px; margin: 0 auto 0.2rem; }
.gate__brand { font-family: var(--font-display); font-size: 2rem; letter-spacing: 0.02em; }
.gate__sub { font-family: var(--font-tech); text-transform: uppercase; letter-spacing: 0.15em; color: var(--gray); font-size: 0.78rem; margin-bottom: 0.4rem; }
.gate input { width: 100%; text-align: center; font-size: 1.3rem; letter-spacing: 0.3em; padding: 0.85rem 1rem; border-radius: var(--radius-sm); background: var(--black); border: 1px solid var(--line-2); color: #fff; }
.gate input:focus { outline: none; border-color: var(--red-bright); }
.gate__msg { min-height: 1.1em; font-size: 0.85rem; color: var(--amber); }
.gate__note { font-size: 0.72rem; color: var(--gray-2); line-height: 1.4; }

/* ---- Topbar ---- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; padding: 0.75rem clamp(0.9rem, 3vw, 1.8rem); background: rgba(10,10,11,0.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar__brand { display: flex; align-items: center; gap: 0.6rem; margin-right: auto; }
.topbar__logo { width: 38px; }
.topbar__name { font-family: var(--font-display); font-size: 1.15rem; display: block; line-height: 1; }
.topbar__tag { font-family: var(--font-tech); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray); }
.topbar__actions { display: flex; align-items: center; gap: 0.5rem; }

/* ---- Layout ---- */
.wrap { flex: 1; width: min(1180px, 100%); margin: 0 auto; padding: clamp(1rem, 3vw, 1.8rem); }
.intro { max-width: 640px; margin-bottom: 1.6rem; }
.intro h2 { font-family: var(--font-tech); text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.3rem; margin-bottom: 0.5rem; }
.intro p { color: var(--gray); font-size: 0.92rem; }
.appfoot { text-align: center; color: var(--gray-2); font-size: 0.75rem; padding: 1.5rem 1rem 2.5rem; border-top: 1px solid var(--line); }

/* ---- Slots ---- */
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 2.4rem; }
.slot { background: linear-gradient(180deg, var(--panel), var(--black-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.slot__label { font-family: var(--font-tech); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; display: flex; align-items: center; justify-content: space-between; }
.slot__cat { color: var(--red-bright); }
.slot__drop { border: 2px dashed var(--line-2); border-radius: var(--radius-sm); height: 150px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--gray); font-size: 0.82rem; cursor: pointer; position: relative; overflow: hidden; transition: border-color .2s, background .2s; padding: 0.5rem; }
.slot__drop:hover, .slot__drop.is-drag { border-color: var(--red-bright); background: rgba(225,29,46,0.06); }
.slot__drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot__drop .x { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,0.6); color: #fff; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; z-index: 2; }
.slot input[type="text"] { background: var(--black); border: 1px solid var(--line-2); color: #fff; border-radius: 8px; padding: 0.55rem 0.7rem; font-size: 0.85rem; font-family: inherit; width: 100%; }
.slot input[type="text"]:focus { outline: none; border-color: var(--red-bright); }
.slot__status { font-size: 0.72rem; color: var(--gray-2); }
.slot__status.ok { color: var(--green); }

/* ---- Preview (reutiliza estilo de la landing) ---- */
.preview h3 { font-family: var(--font-tech); text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.05rem; margin-bottom: 1rem; color: var(--gray); }
.works { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.work { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; background: var(--black-3); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.work img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work__tag { position: absolute; top: 10px; left: 10px; background: var(--red-bright); color: #fff; font-family: var(--font-tech); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.2rem 0.6rem; border-radius: 999px; z-index: 2; }
.work__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.5rem 0.7rem; background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent); font-size: 0.78rem; color: #fff; z-index: 2; }
.work__soon { color: var(--gray-2); font-size: 0.82rem; }

@media (max-width: 680px) {
  .topbar { gap: 0.7rem; }
  .topbar__actions { width: 100%; }
  .topbar__actions .btn { flex: 1; }
}
