/* Agent Address: estilos comunes de la landing y el panel. Diseño: lienzo «Agent Address · landing y panel». */
:root {
	--bg: #0e1211;
	--bg-2: #131816;
	--card: #151a18;
	--line: #2a322e;
	--line-2: #232a27;
	--line-3: #3a443f;
	--ink: #e9ede6;
	--soft: #b4bdb3;
	--muted: #98a298;
	--accent: #c8f250;
	--accent-ink: #0e1211;
	--accent-soft: #23301a;
	--warn-bg: #2e2414;
	--warn: #f2c987;
	--danger: #f2a79c;
	--danger-line: #6b3a33;
	--display: 'Space Grotesk', system-ui, sans-serif;
	--body: Inter, system-ui, sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
	color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: #e2ff8a; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 24px; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.soft { color: var(--soft); }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* Marca y botones */
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; min-height: 44px; }
.marca:hover { color: var(--ink); }
.marca i { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-style: normal; font-weight: 700; font-size: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 11px; border: 1px solid var(--line-3); background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { color: var(--ink); border-color: var(--soft); }
.btn.primario { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primario:hover { background: #d8ff6a; color: var(--accent-ink); }
.btn.grande { min-height: 52px; padding: 0 24px; border-radius: 12px; font-size: 17px; }
.btn.peligro { border-color: var(--danger-line); color: var(--danger); }
.btn.mini { min-height: 44px; padding: 0 14px; border-radius: 9px; font-size: 14px; font-weight: 500; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Landing */
.cabecera { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-block: 22px; }
.cabecera nav { display: flex; flex-wrap: wrap; gap: 4px 28px; flex-grow: 1; font-size: 15px; }
.cabecera nav a { color: var(--soft); text-decoration: none; padding: 12px 0; }
.cabecera nav a:hover { color: var(--ink); }
.portada { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 56px 88px; }
.portada > div { flex: 1 1 440px; min-width: 0; }
.portada .texto { display: flex; flex-direction: column; gap: 24px; }
.portada h1 { font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em; }
.portada .entrada { font-size: 20px; color: var(--soft); max-width: 34em; }
.portada .entrada .mono { color: var(--ink); }
.acciones { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.sesion { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.sesion .barra { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--muted); }
.sesion .barra b { font-weight: 400; color: var(--ink); }
.sesion .barra .punto { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.sesion .barra .fin { margin-left: auto; }
.sesion .cuerpo { padding: 20px 18px 22px; font-family: var(--mono); font-size: 14px; line-height: 1.7; display: flex; flex-direction: column; gap: 14px; overflow-x: auto; }
.sesion .cuerpo .p { color: var(--accent); }
.sesion .cuerpo .a { color: var(--muted); }
.sesion .cuerpo .r { color: var(--soft); padding-left: 16px; }
.sesion .cuerpo .w { color: #e7b36a; padding-left: 16px; }
.banda { background: var(--bg-2); border-block: 1px solid var(--line-2); }
.seccion { padding-block: 80px; display: flex; flex-direction: column; gap: 40px; }
.seccion .titulo { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.seccion h2 { font-weight: 700; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.08; letter-spacing: -0.02em; }
.pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.paso { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.paso .n { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.paso h3 { font-size: 22px; font-weight: 600; }
.paso p { color: var(--soft); }
.codigo { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.codigo .nombre { display: flex; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--muted); }
.codigo .nombre span { flex-grow: 1; }
.codigo pre { margin: 0; padding: 20px 18px; font-family: var(--mono); font-size: 14px; line-height: 1.7; color: var(--ink); overflow-x: auto; }
.rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rejilla > div { background: var(--bg); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.rejilla h3 { font-size: 20px; font-weight: 600; }
.rejilla p { color: var(--soft); font-size: 16px; }
.dos { display: flex; flex-wrap: wrap; gap: 48px; }
.dos > .lado { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.dos > .ancho { flex: 2 1 520px; min-width: 0; }
.tabla-caja { border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; background: var(--bg); }
.tools { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 16px; }
.tools td { padding: 14px 18px; border-bottom: 1px solid var(--line-2); color: var(--soft); }
.tools tr:last-child td { border-bottom: 0; }
.tools td:first-child { font-family: var(--mono); color: var(--accent); white-space: nowrap; }
.precio { align-items: center; padding-block: 96px; }
.precio .lado { flex: 1 1 380px; }
.plan { flex: 1 1 400px; min-width: 0; background: var(--card); border: 1px solid var(--accent); border-radius: 18px; padding: 36px; display: flex; flex-direction: column; gap: 24px; }
.plan .nombre { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.plan .cifra { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan .cifra b { font-family: var(--display); font-weight: 700; font-size: 72px; line-height: 1; letter-spacing: -0.03em; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; gap: 12px; }
.plan li svg { flex-shrink: 0; margin-top: 4px; }
.preguntas { max-width: 860px; margin: 0 auto; padding: 80px 24px; display: flex; flex-direction: column; gap: 28px; }
.preguntas h2 { font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.02em; }
.preguntas > div { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 22px; }
.preguntas h3 { font-size: 20px; font-weight: 600; }
.preguntas p { color: var(--soft); }
.pie { border-top: 1px solid var(--line-2); }
.pie .wrap { padding-block: 32px 48px; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; font-size: 15px; color: var(--muted); }
.pie b { font-family: var(--display); color: var(--ink); }
.pie .crece { flex-grow: 1; }
.pie a { color: var(--soft); padding: 12px 0; }
.aviso-error { background: var(--warn-bg); color: var(--warn); padding: 12px 24px; text-align: center; font-size: 15px; }

/* Panel */
body.panel { font-size: 16px; line-height: 1.5; }
.barra-app { border-bottom: 1px solid var(--line-2); background: var(--bg-2); }
.barra-app .wrap { padding-block: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.barra-app nav { display: flex; flex-wrap: wrap; gap: 4px 8px; flex-grow: 1; }
.pestana { min-height: 44px; padding: 0 16px; border-radius: 9px; border: 0; background: transparent; color: var(--soft); font: inherit; font-size: 15px; cursor: pointer; }
.pestana[aria-selected='true'] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.quien { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--soft); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--line); color: var(--ink); font-weight: 600; font-size: 14px; text-transform: uppercase; }
main.app { padding-block: 40px 72px; display: flex; flex-direction: column; gap: 28px; }
.encabezado { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; }
.encabezado > div { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.encabezado h1 { font-weight: 700; font-size: 34px; letter-spacing: -0.02em; }
.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tarjeta { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tarjeta .rot { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tarjeta .num { font-family: var(--display); font-weight: 700; font-size: 30px; }
.tarjeta .num small { font-size: 17px; font-weight: 500; color: var(--muted); }
.medidor { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.medidor > div { height: 100%; background: var(--accent); }
.caja { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.caja.destacada { border-color: var(--accent); }
.caja h2 { font-size: 24px; font-weight: 600; }
.caja h3 { font-size: 19px; font-weight: 600; }
.lista { border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow-x: auto; }
.lista table { border-collapse: collapse; width: 100%; min-width: 860px; font-size: 15px; }
.lista th { text-align: left; padding: 14px 20px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.lista td { padding: 16px 20px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.lista tr:last-child td { border-bottom: 0; }
.lista .der { text-align: right; }
.lista .dir { font-family: var(--mono); overflow-wrap: anywhere; }
.lista .sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.lista .acc { white-space: nowrap; }
.lista .acc .btn + .btn { margin-left: 6px; }
.lista tr.inactivo .dir { color: var(--muted); }
.vacio { padding: 36px 24px; text-align: center; color: var(--soft); }
.chapa { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 99px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.chapa::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chapa.ok { background: var(--accent-soft); color: var(--accent); }
.chapa.off { background: var(--line); color: var(--soft); }
.chapa.off::before { border-radius: 2px; }
.chapa.aviso { background: var(--warn-bg); color: var(--warn); }
.fila { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-start; }
.fila > * { flex: 1 1 380px; min-width: 0; }
.pares { margin: 0; display: grid; grid-template-columns: minmax(130px, 200px) minmax(0, 1fr); gap: 10px 20px; font-size: 15px; }
.pares dt { color: var(--muted); }
.pares dd { margin: 0; overflow-wrap: anywhere; }
.aviso { display: flex; gap: 12px; padding: 14px 16px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: 15px; }
.aviso svg { flex-shrink: 0; margin-top: 2px; }
.mensaje { padding: 12px 16px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: 15px; }
.mensaje.ok { background: var(--accent-soft); color: var(--accent); }
.campo { display: flex; flex-direction: column; gap: 8px; }
.campo label, .campo .lab { font-weight: 600; font-size: 15px; }
.campo input { min-height: 48px; padding: 0 14px; border: 1px solid var(--line-3); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; min-width: 0; }
.campo .ayuda { font-size: 14px; color: var(--muted); }
.direccion { display: flex; align-items: stretch; border: 1px solid var(--line-3); border-radius: 10px; overflow: hidden; background: var(--bg); }
.direccion input { flex: 1 1 0; border: 0; border-radius: 0; background: transparent; font-family: var(--mono); }
.direccion span { display: inline-flex; align-items: center; padding: 0 14px; background: #1b211e; color: var(--soft); font-family: var(--mono); font-size: 15px; border-left: 1px solid var(--line-3); }
.token { display: flex; flex-wrap: wrap; gap: 8px; }
.token code { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; min-height: 48px; padding: 8px 14px; border: 1px solid var(--line-3); border-radius: 10px; background: var(--bg); font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; }
.pestanas-cfg { display: flex; flex-wrap: wrap; gap: 6px; }
.pestanas-cfg button { min-height: 44px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--line-3); background: transparent; color: var(--soft); font: inherit; font-size: 14px; cursor: pointer; }
.pestanas-cfg button[aria-selected='true'] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
dialog { border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); padding: 28px; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
dialog::backdrop { background: rgba(5, 8, 7, 0.72); }
dialog form, dialog .contenido { display: flex; flex-direction: column; gap: 20px; }
dialog h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.botones { display: flex; flex-wrap: wrap; gap: 10px; }
.cargando { padding: 80px 24px; text-align: center; color: var(--muted); }
