/* Mismos colores que app/static/index.html en venturabrutale-platform-api
   (Angi real) — a propósito, para que ViBo se vea de la misma familia. */
:root {
  --fondo: #0f172a;
  --fondo-tarjeta: #1e293b;
  --texto: #f1f5f9;
  --texto-tenue: #94a3b8;
  --acento: #e11d48;
  --acento-oscuro: #9f1239;
  --ok: #22c55e;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100%;
}
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 20px calc(env(safe-area-inset-bottom, 20px) + 20px);
}
header {
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}
header p {
  margin: 0;
  color: var(--texto-tenue);
  font-size: 0.82rem;
}
.wordmark {
  width: 100%;
  text-align: center;
  padding: 4px 0 16px;
}
.wordmark .vibo { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; }
.wordmark .vibo span { color: var(--acento); }
.wordmark .subtitulo { color: var(--texto-tenue); font-size: 0.85rem; margin-top: 2px; }
.wordmark .logo-vibo { height: 130px; width: auto; display: block; margin: 0 auto; }

/* Logo pequeño de Ventura Brutale, fijo arriba a la izquierda en todas las
   páginas — igual posición que en VBMemorize/Angi real. position:fixed (no
   depende de si la página tiene <header> o no, varias no lo tienen). */
.logo-venturabrutale { position: fixed; top: 14px; left: 16px; height: 26px; width: auto; z-index: 10; }

main {
  flex: 1;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
label { display: block; margin: 4px 0 6px; font-weight: 600; font-size: 0.85rem; color: var(--texto-tenue); }
input, textarea {
  width: 100%;
  font-size: 1rem;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid #334155;
  background: var(--fondo-tarjeta);
  color: var(--texto);
  font-family: inherit;
}
textarea { resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--acento); }
input::placeholder, textarea::placeholder { color: var(--texto-tenue); }

.boton-primario {
  background: var(--acento);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 15px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
.boton-primario:active { transform: scale(0.98); }
.boton-secundario {
  background: var(--fondo-tarjeta);
  color: var(--texto);
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  width: 100%;
}

.boton-conversacion {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: none;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  margin: 0 auto;
  background: var(--acento);
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.4);
}
.boton-conversacion.grabando {
  animation: pulso 1.6s infinite;
}
@keyframes pulso {
  0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.5); }
  70% { box-shadow: 0 0 0 24px rgba(225, 29, 72, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

.tarjeta {
  background: var(--fondo-tarjeta);
  border-radius: 14px;
  padding: 16px;
  white-space: pre-line;
  font-size: 0.92rem;
  line-height: 1.4;
}
.mensaje { min-height: 1.3rem; text-align: center; font-size: 0.88rem; }
.mensaje.error { color: var(--acento); }
.mensaje.ok { color: var(--ok); }
.nota { font-size: 0.75rem; color: var(--texto-tenue); margin-top: 2px; }

footer {
  width: 100%;
  max-width: 480px;
  text-align: center;
  padding-top: 16px;
}
footer a, .enlace {
  color: var(--texto-tenue);
  font-size: 0.8rem;
  text-decoration: none;
}

/* Filas de lista con Editar/Borrar — admin.html, partner.html, partner_admin.html */
.fila-cliente { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #334155; }
.fila-cliente:last-child { border-bottom: none; }
.fila-cliente .info { min-width: 0; }
.fila-cliente .nombre { font-weight: 600; }
.fila-cliente .detalle { color: var(--texto-tenue); font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila-cliente .acciones { display: flex; gap: 8px; flex-shrink: 0; }
.fila-cliente button { width: auto; padding: 8px 12px; font-size: 0.8rem; }
.btn-borrar { background: transparent; color: var(--acento); border: 1px solid var(--acento); }
