/* ===========================================================
   Natalia Randazzo — páginas con login
   (ingreso de clientes, ingreso admin y panel del team).
   Se carga DESPUÉS de styles.css y reutiliza sus variables.
=========================================================== */

/* ---------- Barra superior simple ---------- */
.app-top{
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.app-top .wrap{
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.app-top .nav-brand{ color: var(--ink); }
.app-top-right{ display: flex; align-items: center; gap: 12px; }

.link-quiet{
  font-size: 13.5px; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 6px;
}
.link-quiet:hover{ color: var(--primary); }

/* ---------- Pantallas de ingreso ---------- */
.auth{
  min-height: calc(100vh - 69px);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 20px 64px;
}
.auth-card{ width: 100%; max-width: 420px; }
.auth-card .eyebrow{ color: var(--primary); margin-bottom: 14px; }
.auth-card h1{ font-size: 34px; line-height: 1.12; }
.auth-card .lead{ margin-top: 12px; color: var(--ink-soft); line-height: 1.6; font-size: 15.5px; }
.auth-form{ margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.auth-form .btn{ width: 100%; height: 52px; }
.auth-foot{ margin-top: 28px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.auth-foot a{ color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.field{ display: flex; flex-direction: column; gap: 8px; }
.field label{
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 500; color: var(--ink-soft);
}
.field input, .field textarea, .field select{
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line); border-radius: 2px;
  padding: 14px 14px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea{ min-height: 120px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus{
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(33,30,27,.08);
}
.field .hint{ font-size: 12.5px; color: var(--muted); }

.form-msg{
  font-size: 14px; line-height: 1.5; padding: 12px 14px; border-radius: 2px;
  background: var(--bg-alt); color: var(--ink);
}
.form-msg.is-error{ background: var(--error-bg); color: var(--error); }
.form-msg[hidden]{ display: none; }

.btn[disabled]{ opacity: .55; cursor: default; }

/* ===========================================================
   PANEL ADMIN
=========================================================== */
.admin-body{ background: var(--bg); }

.admin-user{ display: none; text-align: right; line-height: 1.25; }
.admin-user strong{ display: block; font-size: 13.5px; font-weight: 600; }
.admin-user span{ font-size: 12px; color: var(--muted); }

.role-pill{
  display: inline-block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft);
}
.role-pill.is-owner{ border-color: var(--primary); color: var(--primary); }

.admin-layout{ display: flex; flex-direction: column; }

/* Menú de secciones: tabs horizontales en mobile, columna en desktop */
.admin-nav{
  display: flex; gap: 4px; overflow-x: auto;
  padding: 12px 20px; border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.admin-nav::-webkit-scrollbar{ display: none; }
.admin-nav a{
  flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 2px;
  font-size: 14px; color: var(--ink-soft);
}
.admin-nav a:hover{ color: var(--ink); background: var(--bg-alt); }
.admin-nav a.is-active{ color: var(--ink); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }
.admin-nav a.is-soon{ opacity: .5; pointer-events: none; }
.admin-nav .soon{ font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.admin-nav .count{
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--primary); color: var(--on-primary); font-size: 11.5px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.admin-nav .count[hidden]{ display: none; }

.admin-main{ flex: 1; padding: 28px 20px 80px; min-width: 0; }
.admin-head .eyebrow{ color: var(--primary); margin-bottom: 10px; }
.admin-head h1{ font-size: 30px; line-height: 1.15; }
.admin-head p{ margin-top: 8px; color: var(--ink-soft); font-size: 15px; line-height: 1.55; max-width: 60ch; }

/* Filtros de estado */
.seg{
  margin-top: 24px; display: inline-flex; border: 1px solid var(--line); border-radius: 2px;
  background: var(--white); overflow: hidden; max-width: 100%;
}
.seg button{
  padding: 10px 16px; font-size: 14px; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  border-right: 1px solid var(--line);
}
.seg button:last-child{ border-right: none; }
.seg button.is-active{ background: var(--ink); color: var(--white); }
.seg .n{ font-size: 12px; opacity: .7; }
@media (max-width: 520px){
  .seg{ display: flex; width: 100%; }
  .seg button{ flex: 1; justify-content: center; padding: 10px 8px; font-size: 13px; gap: 5px; }
}

/* Tarjetas de comentario */
.mod-list{ margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }

.mod-card{
  background: var(--white); border: 1px solid var(--line); border-radius: 2px;
  padding: 20px; display: flex; flex-direction: column; gap: 14px;
  transition: opacity .25s ease, transform .25s ease;
}
.mod-card.is-leaving{ opacity: 0; transform: translateX(12px); }
.mod-meta{ display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mod-name{ font-family: var(--font-display); font-size: 20px; }
.mod-date{ font-size: 12.5px; color: var(--muted); }
.mod-stars{ color: var(--primary); letter-spacing: 2px; font-size: 15px; }
.mod-text{ font-size: 15.5px; line-height: 1.65; color: var(--ink); white-space: pre-wrap; }
.mod-flags{ display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.mod-flags button{ font-size: 12px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.mod-original{
  font-size: 13.5px; line-height: 1.55; color: var(--ink-soft);
  border-left: 2px solid var(--line); padding: 4px 0 4px 12px; white-space: pre-wrap;
}
.mod-original[hidden]{ display: none; }

.mod-actions{ display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.mod-actions .btn{ height: 42px; padding: 0 16px; font-size: 13.5px; }
.btn-ghost{ background: transparent; color: var(--ink-soft); }
.btn-ghost:hover{ background: var(--bg-alt); color: var(--ink); }
.btn-danger-ghost{ background: transparent; color: var(--error); }
.btn-danger-ghost:hover{ background: var(--error-bg); }
.btn-danger{ background: var(--error); color: #FFFFFF; }
.mod-actions .spacer{ flex: 1; }

/* Modo edición */
.mod-edit{ display: flex; flex-direction: column; gap: 14px; }
.star-pick{ display: flex; gap: 2px; }
.star-pick button{ font-size: 24px; line-height: 1; color: var(--line); padding: 4px 2px; }
.star-pick button.is-filled{ color: var(--primary); }

.empty-state{
  margin-top: 20px; padding: 48px 20px; text-align: center;
  border: 1px dashed var(--line); border-radius: 2px; color: var(--muted); font-size: 15px; line-height: 1.6;
}
.empty-state strong{ display: block; font-family: var(--font-display); font-weight: 500; font-size: 20px; color: var(--ink); margin-bottom: 6px; }

/* Aviso flotante */
.toast{
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--white); font-size: 14px;
  padding: 12px 18px; border-radius: 2px; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 100; max-width: calc(100% - 32px);
}
.toast.is-on{ opacity: 1; transform: translate(-50%, 0); }

.gate{ padding: 80px 20px; text-align: center; color: var(--muted); }

@media (min-width: 900px){
  .admin-user{ display: block; }
  .admin-layout{ flex-direction: row; min-height: calc(100vh - 69px); }
  .admin-nav{
    flex-direction: column; width: 240px; flex-shrink: 0; gap: 2px;
    padding: 28px 16px; border-bottom: none; border-right: 1px solid var(--line);
  }
  .admin-main{ padding: 44px 48px 96px; max-width: 920px; }
  .admin-head h1{ font-size: 36px; }
  .auth-card h1{ font-size: 40px; }
}
