/* LoDicen — estilos compartidos */
:root {
  /* Verde esmeralda — el color del "check verificado".
     Tres tonos con papeles distintos, por accesibilidad:
       --brand       relleno de superficies, bordes, iconos y texto GRANDE (>=24px,
                     o >=18.66px en negrita). Blanco sobre este verde da 3.77:1,
                     que basta para texto grande pero NO para texto normal.
       --brand-ink   el verde legible: texto pequeño sobre fondos claros y fondo de
                     los botones con texto blanco. 5.48:1 sobre blanco, 4.84:1 sobre
                     --brand-soft. Es el que cumple AA (4.5:1) en cuerpo de texto.
       --brand-hover hover del botón primario, 7.68:1 con blanco. */
  --brand: #059669;
  --brand-ink: #047857;
  --brand-hover: #065f46;
  --brand-soft: #d1fae5;
  /* Neutros: antes tenían un tinte morado (#1e1b2e, #5b5570, #faf9fc, #e8e4f1)
     que chirriaba contra el verde. Ahora van con un tinte verde muy leve. */
  --ink: #13211c;
  --ink-soft: #55645d;
  --bg: #f8fbf9;
  --card: #ffffff;
  --line: #dfe9e4;
  --warn: #d97706;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(19, 33, 28, .06), 0 8px 24px rgba(19, 33, 28, .07);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--ink);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-ink); text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: -.5px; color: var(--ink); }
.logo span { color: var(--brand); }
.nav-links { display: flex; gap: 24px; align-items: center; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; border: none; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 15px; transition: all .15s;
}
/* Fondo --brand-ink, no --brand: el texto blanco a 15px necesita 4.5:1 y sobre
   #059669 solo llega a 3.77:1. */
.btn-primary { background: var(--brand-ink); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand-ink); color: var(--brand-ink); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn-ok { background: var(--brand-ink); color: #fff; }
.btn-warn { background: #fff7ed; color: var(--warn); border: 1px solid #fed7aa; }
.btn-danger { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 72px 0 56px; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.12; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.sub { max-width: 620px; margin: 20px auto 32px; font-size: 19px; color: var(--ink-soft); }
.badge {
  display: inline-block; background: var(--brand-soft); color: var(--brand-ink);
  font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 99px; margin-bottom: 20px;
}

/* ---------- Secciones ---------- */
.section { padding: 64px 0; }
.section h2 { font-size: 32px; font-weight: 800; letter-spacing: -.8px; text-align: center; margin-bottom: 12px; }
.section p.lead { text-align: center; color: var(--ink-soft); max-width: 560px; margin: 0 auto 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15px; }
.step-num {
  width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink);
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 14px;
}

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 720px; margin: 0 auto; }
.price { text-align: center; }
.price .amount { font-size: 42px; font-weight: 800; letter-spacing: -1px; }
.price .amount small { font-size: 15px; color: var(--ink-soft); font-weight: 500; }
.price ul { list-style: none; margin: 18px 0 24px; text-align: left; }
.price li { padding: 6px 0; color: var(--ink-soft); font-size: 15px; }
.price li::before { content: "✓  "; color: var(--brand-ink); font-weight: 700; }
.price.featured { border: 2px solid var(--brand); position: relative; }
.price.featured::after {
  content: "Popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand-ink); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 99px;
}

/* ---------- Formularios ---------- */
.field { margin-bottom: 16px; text-align: left; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 15px; background: #fff; transition: border .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.field .hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- App / dashboard ---------- */
.auth-box { max-width: 420px; margin: 60px auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.pill-free { background: #f1f5f9; color: #475569; }
.pill-pro { background: var(--brand-soft); color: var(--brand-ink); }
.pill-pending { background: #fef3c7; color: #92400e; }
.pill-approved { background: #dcfce7; color: #166534; }
.pill-hidden { background: #f1f5f9; color: #64748b; }

.space-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; cursor: pointer;
}
.space-row:hover { border-color: var(--brand); }

.t-card { display: flex; gap: 14px; align-items: flex-start; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-soft); color: var(--brand-ink); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.t-meta { font-size: 13px; color: var(--ink-soft); }
.t-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.rating { color: #f59e0b; letter-spacing: 2px; }

/* ---------- Ordenar testimonios ---------- */
.t-item { transition: opacity .15s, box-shadow .15s; }
.t-item.dragging { opacity: .45; box-shadow: 0 12px 28px rgba(5, 150, 105, .22); }
.drag-col { display: flex; flex-direction: column; align-items: center; gap: 2px; flex-shrink: 0; padding-top: 2px; }
.drag-handle { cursor: grab; color: #b6c7bf; font-size: 17px; line-height: 1; user-select: none; }
.drag-handle:active { cursor: grabbing; }
.t-item:hover .drag-handle { color: var(--brand-ink); }
.ord-btn {
  background: none; border: none; cursor: pointer; padding: 0; line-height: 1;
  font-size: 9px; color: #b6c7bf; font-family: inherit;
}
.ord-btn:hover { color: var(--brand-ink); }

/* ---------- Importador de reseñas ---------- */
.imp-row { padding: 16px; box-shadow: none; }
.imp-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; margin-bottom: 12px; cursor: pointer; }
.imp-check input { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; }

.copybox {
  display: flex; gap: 8px; align-items: center; background: #f1f8f4; border: 1px dashed var(--line);
  border-radius: 10px; padding: 10px 14px; font-size: 13px; margin: 6px 0;
  font-family: ui-monospace, monospace; overflow-x: auto; white-space: nowrap;
}

/* ---------- Formulario público (t.html) ---------- */
.collect-wrap { max-width: 560px; margin: 40px auto; padding: 0 20px; }
.collect-head { text-align: center; margin-bottom: 26px; }
.collect-head h1 { font-size: 26px; letter-spacing: -.5px; }
.collect-head p { color: var(--ink-soft); margin-top: 8px; }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tab {
  flex: 1; text-align: center; padding: 10px; border-radius: 10px; border: 1.5px solid var(--line);
  font-weight: 600; font-size: 14px; cursor: pointer; background: #fff;
}
.tab.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.stars-input { display: flex; gap: 6px; font-size: 30px; cursor: pointer; color: #d1d5db; }
.stars-input .on { color: #f59e0b; }
video.preview { width: 100%; border-radius: 12px; background: #000; margin-bottom: 12px; }
.rec-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #dc2626; animation: blink 1s infinite; margin-right: 6px; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- Muro ---------- */
.wall-grid { columns: 3 280px; column-gap: 18px; padding-bottom: 60px; }
.wall-grid .card { break-inside: avoid; margin-bottom: 18px; }
.wall-head { text-align: center; padding: 48px 0 32px; }

.footer { text-align: center; padding: 40px 0; color: var(--ink-soft); font-size: 14px; border-top: 1px solid var(--line); margin-top: 40px; }
.hidden { display: none !important; }
.notice { background: var(--brand-soft); color: var(--brand-ink); padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.error-box { background: #fef2f2; color: var(--danger); padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
