/* Estética NakonLab: producto, no folleto. Sin sombras, sin degradados,
   sin iconos de color. Separan el fondo y una línea de 1px. */

/* --- Tipografía servida desde el propio dominio --- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/poppins-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/poppins-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #ffffff;
  --superficie: #f5f5f7;
  --superficie-2: #efeff1;
  --texto: #1d1d1f;
  --texto-2: #5a5a5f;
  --texto-3: #6b6b70;
  --lineas: #d2d2d7;
  --accion: #24262b;
  --enlace: #0069db;
  --senal: #ff5c00;
  --senal-texto: #cc4a00;
  --ok: #34c759;

  --radio-tarjeta: 22px;
  --radio-caja: 14px;
  --radio-pildora: 980px;
  --curva: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  letter-spacing: -0.011em;
  line-height: 1.47;
  background: var(--bg);
  color: var(--texto);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 8px;
}

h1 { font-size: clamp(30px, 4.4vw, 48px); }
h2 { font-size: clamp(21px, 2.4vw, 26px); }
h3 { font-size: 19px; }

a { color: var(--enlace); }

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 24px 88px;
}

/* --- Barra superior --- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--lineas);
}

.topbar .brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.topbar .brand img {
  display: block;
  width: 118px;
  height: auto;
}

.topbar nav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 15px;
}

.topbar nav a {
  color: var(--texto-2);
  text-decoration: none;
  transition: color 200ms var(--curva);
}

.topbar nav a:hover { color: var(--texto); }

.sitefoot {
  border-top: 1px solid var(--lineas);
  background: var(--superficie);
  padding: 24px;
  color: var(--texto-3);
  font-size: 12px;
}

.sitefoot .inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sitefoot img { width: 88px; height: auto; display: block; }

.link-button {
  background: none;
  border: none;
  color: var(--texto-2);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  padding: 0;
  transition: color 200ms var(--curva);
}

.link-button:hover { color: var(--texto); }
.link-button.danger { color: var(--senal-texto); }

.inline { display: inline; }

.muted { color: var(--texto-3); }

/* --- Avisos --- */
/* Mismo lenguaje que los estados: un punto de color, nunca un borde de color. */
.alert {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--lineas);
  border-radius: var(--radio-caja);
  margin-bottom: 20px;
  font-size: 15px;
  background: var(--superficie);
  color: var(--texto);
}

.alert::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lineas);
  flex: none;
  transform: translateY(-1px);
}

.alert-ok::before { background: var(--ok); }
.alert-error::before { background: var(--senal); }

/* --- Formularios --- */
.auth-box {
  max-width: 420px;
  margin: 72px auto;
  background: var(--bg);
  padding: 32px;
  border-radius: var(--radio-tarjeta);
  border: 1px solid var(--lineas);
}

.auth-box .brand-mark {
  width: 44px;
  height: 44px;
  display: block;
  margin-bottom: 20px;
  border-radius: 10px;
}

.stack { display: flex; flex-direction: column; gap: 16px; }

.stack label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--texto-3);
}

input, textarea, select {
  font: inherit;
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid var(--lineas);
  border-radius: 10px;
  background: var(--bg);
  color: var(--texto);
  transition: border-color 200ms var(--curva);
}

input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none;
  border-color: var(--accion);
}

textarea { resize: vertical; line-height: 1.5; }

/* --- Botones --- */
.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: var(--radio-pildora);
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 200ms var(--curva), border-color 200ms var(--curva), color 200ms var(--curva);
}

.btn-primary { background: var(--accion); color: #fff; }
.btn-primary:hover { background: #34373d; }

.btn-secondary {
  background: var(--bg);
  border-color: var(--lineas);
  color: var(--texto);
}

.btn-secondary:hover { background: var(--superficie); }

.btn-large { font-size: 17px; padding: 13px 26px; }

/* --- Cabecera de página --- */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.page-head .actions,
.original-review .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.original-review .actions { margin-top: 16px; }

/* --- Filtros --- */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

.chip {
  padding: 7px 16px;
  border-radius: var(--radio-pildora);
  border: 1px solid var(--lineas);
  background: var(--bg);
  color: var(--texto-2);
  text-decoration: none;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  transition: background-color 200ms var(--curva), color 200ms var(--curva);
}

.chip:hover { background: var(--superficie); }

.chip.active {
  background: var(--accion);
  color: #fff;
  border-color: var(--accion);
}

.search-form { display: flex; gap: 8px; margin-bottom: 24px; }
.search-form input[type="search"] { flex: 1; min-width: 0; }

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* --- Lista de reseñas: una caja de producto, filas con línea de 1px --- */
.review-list {
  border: 1px solid var(--lineas);
  border-radius: var(--radio-caja);
  overflow: hidden;
  background: var(--bg);
}

.review-card {
  display: block;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--texto);
  border-bottom: 1px solid rgba(210, 210, 215, 0.6);
  transition: background-color 200ms var(--curva);
}

.review-card:last-child { border-bottom: none; }
.review-card:hover { background: var(--superficie); }

.review-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.stars {
  color: var(--texto);
  font-size: 13px;
  letter-spacing: 2px;
}

.reviewer { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.reviewer .muted { font-weight: 400; font-size: 12px; }

.review-text {
  margin: 0;
  color: var(--texto-2);
  font-size: 15px;
  line-height: 1.45;
}

/* --- Estado: punto de color + palabra en gris --- */
.estado {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--texto-3);
  white-space: nowrap;
}

.estado::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lineas);
  flex: none;
}

.estado-new::before { background: var(--senal); }
.estado-draft_ready::before { background: var(--senal); }
.estado-edited::before { background: var(--senal); }
.estado-approved::before { background: var(--ok); }
.estado-published::before { background: var(--ok); }

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--texto-2);
  text-decoration: none;
  font-size: 15px;
}

.back-link:hover { color: var(--texto); }

/* --- Detalle --- */
.review-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.original-review,
.reply-editor {
  border: 1px solid var(--lineas);
  border-radius: var(--radio-tarjeta);
  padding: 24px;
}

.original-review { background: var(--superficie); }

.review-detail-grid h2 { font-size: 19px; margin-bottom: 12px; }

.seccion-nota { font-size: 12px; margin: 0 0 16px; }

.reply-editor textarea { width: 100%; min-height: 220px; }

.approve-form { margin-top: 20px; }

.copy-box {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--lineas);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 15px;
}

.copy-box p { width: 100%; margin: 0; }

/* --- Ajustes --- */
.card {
  border: 1px solid var(--lineas);
  border-radius: var(--radio-tarjeta);
  padding: 24px;
  margin-bottom: 24px;
}

@media (max-width: 760px) {
  .container { padding: 24px 16px 56px; }
  .review-detail-grid { grid-template-columns: 1fr; gap: 20px; }
  .topbar { padding: 12px 16px; }
  .topbar nav { gap: 16px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
