
:root {
  --pink: #E4007C;
  --purple: #993D70;
  --blue: #73C2FB;
  --bluedark: #3D7399;
  --gold: #BF9C69;
  --green: #6CBF69;
  --green-oscuro: #3D8B3A;
  --cream: #FDF2F8;
  --ink: #2A2540;
  --muted: #6C6780;
  --line: #F0E6EE;
  --grad: linear-gradient(120deg, #E4007C 0%, #993D70 45%, #73C2FB 100%);
  --radio: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Montserrat', system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { letter-spacing: -.4px; }
p { margin: 0; }

.oculto { display: none !important; }
.solo-lectores {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
:focus-visible { outline: 3px solid rgba(228, 0, 124, .45); outline-offset: 2px; }

/* ============ ORBE animado — el sello visual de la marca ============
   Tres anillos en ejes distintos alrededor de un planeta con continentes que giran.
   Tomado tal cual del mockup aprobado. */
.orb {
  position: relative; width: var(--s, 120px); height: var(--s, 120px); flex: none;
  perspective: calc(var(--s, 120px) * 2.2); transform-style: preserve-3d;
}
.orb i {
  position: absolute; inset: 0; border-radius: 50%;
  border: calc(var(--s, 120px) * .022) solid transparent; transform-style: preserve-3d;
  backface-visibility: visible; will-change: transform;
}
.orb i:nth-child(1) {
  border-top-color: var(--pink); border-right-color: var(--pink);
  box-shadow: 0 0 calc(var(--s, 120px) * .09) rgba(228, 0, 124, .35);
  animation: ring1 4.6s linear infinite;
}
.orb i:nth-child(2) {
  inset: 11%; border-bottom-color: var(--blue); border-left-color: var(--blue);
  box-shadow: 0 0 calc(var(--s, 120px) * .08) rgba(115, 194, 251, .3);
  animation: ring2 6.4s linear infinite;
}
.orb i:nth-child(3) {
  inset: 22%; border-top-color: var(--purple); border-left-color: var(--purple);
  animation: ring3 9s linear infinite;
}
.orb .core {
  position: absolute; inset: 32%; border-radius: 50%; overflow: hidden;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .32) 10%, transparent 30%),
    radial-gradient(circle at 74% 80%, rgba(115, 194, 251, .7), transparent 56%),
    radial-gradient(circle at 36% 34%, #FF62B4 0%, #E4007C 46%, #8D1A5C 76%, #3D0D2A 100%);
  box-shadow:
    0 0 calc(var(--s, 120px) * .2) rgba(228, 0, 124, .5),
    inset calc(var(--s, 120px) * -.045) calc(var(--s, 120px) * -.06) calc(var(--s, 120px) * .11) rgba(0, 0, 0, .5),
    inset calc(var(--s, 120px) * .03) calc(var(--s, 120px) * .04) calc(var(--s, 120px) * .08) rgba(255, 255, 255, .28),
    inset 0 0 0 calc(var(--s, 120px) * .012) rgba(115, 194, 251, .35);
  animation: breathe 3.4s ease-in-out infinite;
}
/* continentes: banda del doble de ancho que se desplaza = el planeta gira */
.orb .core::before {
  content: ""; position: absolute; top: -10%; left: 0; width: 200%; height: 120%;
  background:
    radial-gradient(ellipse 14% 26% at 12% 38%, rgba(255, 255, 255, .30), transparent 70%),
    radial-gradient(ellipse 9% 17% at 26% 66%, rgba(255, 255, 255, .22), transparent 70%),
    radial-gradient(ellipse 17% 20% at 41% 30%, rgba(61, 13, 42, .42), transparent 72%),
    radial-gradient(ellipse 8% 22% at 55% 60%, rgba(255, 255, 255, .26), transparent 70%),
    radial-gradient(ellipse 13% 15% at 68% 40%, rgba(61, 13, 42, .36), transparent 72%),
    radial-gradient(ellipse 10% 24% at 84% 62%, rgba(255, 255, 255, .20), transparent 70%);
  animation: planeta 18s linear infinite;
}
.orb .core::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .55) 0%, transparent 26%),
    radial-gradient(circle at 78% 84%, rgba(0, 0, 0, .35), transparent 52%);
}
@keyframes planeta { to { transform: translateX(-50%); } }
@keyframes ring1 { from { transform: rotateX(74deg) rotateZ(0); } to { transform: rotateX(74deg) rotateZ(360deg); } }
@keyframes ring2 { from { transform: rotateY(68deg) rotateZ(360deg); } to { transform: rotateY(68deg) rotateZ(0); } }
@keyframes ring3 {
  from { transform: rotateX(24deg) rotateY(0) rotateZ(0); }
  to { transform: rotateX(24deg) rotateY(360deg) rotateZ(-360deg); }
}
@keyframes breathe { 0%, 100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.07); filter: brightness(1.12); } }
@keyframes drift1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(80px, 60px); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-70px, -50px); } }
@keyframes flow { to { background-position: 300% 0; } }
@keyframes barra { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ============ CRÉDITO DE AUTORÍA — va en todas las vistas ============ */
.credito {
  border-top: 1px solid var(--line); margin-top: 26px; padding: 16px 0 4px;
  text-align: center; color: var(--muted); font-size: 11.5px; letter-spacing: .01em;
}
.credito b { font-weight: 700; color: var(--purple); }
.credito a { color: inherit; text-decoration: underline; }
.login .credito { border-top-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .62); }
.login .credito b { color: var(--blue); }
.card .credito { border-top-color: var(--line); color: var(--muted); margin-top: 18px; }
.card .credito b { color: var(--purple); }

/* ============ LOGIN ============ */
.login { min-height: 100dvh; display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; }
.login .art {
  position: relative; color: #fff; display: flex; flex-direction: column; justify-content: center;
  padding: 56px; overflow: hidden;
  background: radial-gradient(900px 500px at 20% 10%, #4A1440, #2A2540 60%, #1B1730);
}
.login .art::before, .login .art::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.login .art::before {
  width: 420px; height: 420px; top: -120px; left: -90px; animation: drift1 16s ease-in-out infinite;
  background: radial-gradient(circle, rgba(228, 0, 124, .9), transparent 65%);
}
.login .art::after {
  width: 380px; height: 380px; bottom: -140px; right: -70px; animation: drift2 19s ease-in-out infinite;
  background: radial-gradient(circle, rgba(115, 194, 251, .8), transparent 65%);
}
.login .art .z { position: relative; z-index: 2; }
.login .art h1 { font-size: 40px; font-weight: 800; line-height: 1.06; max-width: 15ch; margin: 22px 0 12px; }
.login .art p { color: #D9CFE4; font-size: 15.5px; max-width: 40ch; line-height: 1.5; }
.login .art .kpis { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.login .art .kpis div b { display: block; font-size: 26px; font-weight: 800; }
.login .art .kpis div span { font-size: 12px; color: #C8BCD6; }
.login .form { display: flex; align-items: center; justify-content: center; padding: 40px 30px; background: var(--cream); }

.card {
  background: #fff; border-radius: 24px; padding: 38px 34px; width: 100%; max-width: 420px;
  box-shadow: 0 30px 70px -35px rgba(42, 37, 64, .4);
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.brand .wm { font-weight: 800; font-size: 26px; line-height: 1.1; }
.wm i {
  font-style: normal; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.brand small { display: block; font-family: 'Pacifico', cursive; color: var(--pink); font-size: 12.5px; font-weight: 400; margin-top: -3px; }
.card .sub { color: var(--muted); font-size: 14px; margin: 10px 0 22px; }
.card .foot { text-align: center; margin-top: 16px; font-size: 12.5px; color: var(--muted); }

label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin: 14px 0 6px; }
.ipt { position: relative; }
.ipt input, .ipt select, .ipt textarea {
  width: 100%; font-family: inherit; font-size: 15px; font-weight: 500; color: inherit;
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 13px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.ipt textarea { min-height: 84px; resize: vertical; }
.ipt input:focus, .ipt select:focus, .ipt textarea:focus {
  outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(228, 0, 124, .12);
}
.ipt.pw input { padding-right: 48px; }
.eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--grad); border: none; cursor: pointer;
  display: grid; place-items: center; color: #fff; font-size: 14px; box-shadow: 0 3px 10px rgba(228, 0, 124, .4);
}
.btn {
  width: 100%; margin-top: 22px; border: none; border-radius: 14px; padding: 15px;
  font-family: inherit; font-weight: 800; font-size: 15.5px; color: #fff;
  background: var(--grad); background-size: 180% 100%; cursor: pointer;
  transition: transform .18s, box-shadow .2s, background-position .5s;
  box-shadow: 0 12px 28px -12px rgba(228, 0, 124, .7);
}
.btn:hover:not(:disabled) { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 18px 34px -12px rgba(228, 0, 124, .85); }
.btn:disabled, .bsm:disabled { opacity: .6; cursor: progress; }

.aviso { border-radius: 13px; padding: 12px 14px; font-size: 13.5px; margin: 10px 0; border: 1.5px solid; }
.aviso--error { background: #FDF1EE; border-color: #F0C8BE; color: #B4472E; }
.aviso--ok { background: #EDF8F3; border-color: #B8E0CE; color: var(--green-oscuro); }
.aviso--info { background: var(--cream); border-color: #F2D6E6; color: var(--purple); }

/* ============ SHELL ============ */
.top {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 16px;
  padding: 12px 26px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.top::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--blue), var(--purple), var(--pink));
  background-size: 300% 100%; animation: flow 7s linear infinite;
}
.top .lg { display: flex; align-items: center; gap: 10px; }
.top .lg .wm { font-weight: 800; font-size: 19px; }
.nav { display: flex; gap: 2px; margin-left: 14px; flex-wrap: wrap; }
.nav button {
  position: relative; padding: 9px 14px; border: 0; background: none; border-radius: 999px;
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: #5B5470; cursor: pointer;
  transition: color .2s, background .2s;
}
.nav button:hover:not([aria-current]) { color: var(--pink); background: var(--cream); }
.nav button[aria-current] { color: #fff; background: var(--grad); box-shadow: 0 8px 20px -8px rgba(228, 0, 124, .6); }
.me { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.av {
  width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none;
  box-shadow: 0 0 0 3px rgba(228, 0, 124, .18);
}
.me .quien { font-size: 12.5px; line-height: 1.25; }
.me .quien b { display: block; font-size: 13px; }
.me .quien span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .6px; }

.wrap { max-width: 1120px; margin: 26px auto 60px; padding: 0 24px; }
.hey { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--pink); }
.h1 { font-size: 29px; font-weight: 800; margin: 4px 0 20px; }
.h1 .tenue { color: var(--muted); font-weight: 600; font-size: 18px; }

/* hero de saldos */
.hero {
  position: relative; border-radius: 26px; padding: 28px 30px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #3B1236, #2A2540 55%, #1E2A3D);
  box-shadow: 0 26px 60px -30px rgba(42, 37, 64, .7);
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(52px); opacity: .55; }
.hero::before {
  width: 340px; height: 340px; top: -130px; left: -70px; animation: drift1 15s ease-in-out infinite;
  background: radial-gradient(circle, rgba(228, 0, 124, .95), transparent 66%);
}
.hero::after {
  width: 300px; height: 300px; bottom: -130px; right: -50px; animation: drift2 18s ease-in-out infinite;
  background: radial-gradient(circle, rgba(115, 194, 251, .85), transparent 66%);
}
.hero > * { position: relative; z-index: 2; }
.hero .fila { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero h2 { font-size: 24px; font-weight: 800; }
.hero p { color: #D6CBE2; font-size: 14px; margin-top: 4px; max-width: 46ch; }
.money { font-size: 44px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.money small { font-size: 14px; font-weight: 600; color: #D6CBE2; display: block; letter-spacing: 0; margin-top: 4px; }
.acts { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.acts button {
  display: flex; align-items: center; gap: 8px; border: 0; border-radius: 13px; padding: 12px 17px;
  font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: transform .18s, box-shadow .2s, background .2s;
}
.acts button:hover { transform: translateY(-3px); }
.a1 { background: var(--grad); color: #fff; box-shadow: 0 12px 26px -10px rgba(228, 0, 124, .7); }
.a2 { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25) !important; color: #fff; }
.a2:hover { background: rgba(255, 255, 255, .2); }
.a3 { background: rgba(115, 194, 251, .16); border: 1px solid rgba(115, 194, 251, .5) !important; color: #CBE8FF; }

/* KPIs */
.kpis2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.k {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.k:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgba(42, 37, 64, .5); }
.k::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.k .n { font-size: 27px; font-weight: 800; letter-spacing: -.8px; }
.k .l { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.k .d { font-size: 11.5px; font-weight: 700; margin-top: 8px; color: var(--green-oscuro); min-height: 1em; }
.k.warn .d { color: var(--pink); }
.k .interno { font-size: 10px; background: var(--cream); color: var(--pink); padding: 2px 6px; border-radius: 6px; }

/* paneles y listas */
.grid2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-top: 22px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.panel + .panel { margin-top: 20px; }
.panel .hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel h3 { font-size: 17px; font-weight: 800; }
.panel .hd button.enlace { background: none; border: 0; color: var(--pink); font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.panel .hd button.enlace:hover { text-decoration: underline; }

.fila { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.fila:first-of-type { border-top: none; }
.ci {
  width: 38px; height: 38px; border-radius: 12px; background: var(--cream); display: grid; place-items: center;
  font-weight: 800; color: var(--pink); font-size: 13px; flex: none; text-align: center; line-height: 1.1;
}
.ci.hoy { background: var(--grad); color: #fff; }
.fila .mid { flex: 1; min-width: 0; }
.fila .mid b { font-size: 14px; display: block; }
.fila .mid span { font-size: 12px; color: var(--muted); }
.tag { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.t-ok { background: #E6F6E6; color: var(--green-oscuro); }
.t-due { background: #FFE6F2; color: var(--pink); }
.t-soon { background: #E8F4FF; color: var(--bluedark); }
.bar { height: 7px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 7px; transition: height .2s; }
.bar i {
  display: block; height: 100%; width: var(--w, 0); background: var(--grad); border-radius: 99px;
  transform-origin: left; animation: barra 1s cubic-bezier(.22, 1.1, .3, 1) forwards;
}
/* En una lista, la fila bajo el cursor resalta y las demás se apagan. */
.panel .fila { transition: opacity .2s, background .2s; border-radius: 10px; padding-left: 6px; padding-right: 6px; }
.panel:hover .fila { opacity: .6; }
.panel:hover .fila:hover { opacity: 1; background: var(--cream); }
.panel .fila:hover .bar { height: 9px; }
.panel .fila:hover .bar i { filter: brightness(1.12) saturate(1.1); box-shadow: 0 0 12px rgba(228, 0, 124, .5); }
.panel .fila .money-sm { transition: transform .2s, color .2s; }
.panel .fila:hover .money-sm { color: var(--pink); transform: scale(1.1); }
.fila:nth-child(2) .bar i { animation-delay: .06s; }
.fila:nth-child(3) .bar i { animation-delay: .14s; }
.fila:nth-child(4) .bar i { animation-delay: .22s; }
.fila:nth-child(5) .bar i { animation-delay: .30s; }
.mini { display: flex; gap: 8px; align-items: flex-end; height: 70px; margin-top: 10px; }
.mini i { flex: 1; background: var(--grad); border-radius: 6px 6px 0 0; opacity: .85; min-height: 3px; }
.leyenda { font-size: 11.5px; color: var(--muted); margin-top: 8px; }

/* barra de herramientas */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.search { flex: 1; min-width: 200px; position: relative; }
.search input { width: 100%; font-family: inherit; font-size: 14px; padding: 12px 14px 12px 40px; border: 1.5px solid var(--line); border-radius: 13px; }
.search input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(228, 0, 124, .12); }
.search::before { content: "🔎"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; }
.bsm {
  border: none; border-radius: 12px; padding: 12px 17px; font-family: inherit; font-weight: 800;
  font-size: 13.5px; cursor: pointer; transition: transform .18s, box-shadow .2s, border-color .2s, color .2s;
}
.bsm:hover:not(:disabled) { transform: translateY(-2px); }
.bsm.p { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(228, 0, 124, .7); }
.bsm.g { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
.bsm.g:hover { border-color: var(--pink); color: var(--pink); }
.bsm.chico { padding: 9px 13px; font-size: 12px; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  padding: 7px 14px; border-radius: 999px; font-family: inherit; font-size: 12.5px; font-weight: 700;
  background: #fff; border: 1.5px solid var(--line); color: var(--ink); cursor: pointer; transition: all .18s;
}
.chip:hover { border-color: var(--pink); color: var(--pink); }
.chip[aria-pressed="true"] { background: var(--grad); color: #fff; border-color: transparent; }

/* tablas */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--line); }
td { padding: 13px 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: top; }
tbody tr { transition: background .18s; cursor: pointer; }
tbody tr:hover { background: var(--cream); }
td .sub { color: var(--muted); font-size: 12px; display: block; }
.pill { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; display: inline-block; }
.p-confirmada { background: #E8F4FF; color: var(--bluedark); }
.p-pagada { background: #E6F6E6; color: var(--green-oscuro); }
.p-cotizada { background: #FFF4E0; color: #A3762A; }
.p-viajando { background: #F3E7F7; color: var(--purple); }
.p-cerrada { background: #EFF1F5; color: #5B6472; }
.p-cancelada { background: #F2F0F5; color: var(--muted); }
.money-sm { font-weight: 800; white-space: nowrap; }
.bar.chica { width: 74px; margin-top: 6px; }

/* tarjetas */
.gridcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cc {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  transition: transform .2s, box-shadow .2s; cursor: pointer; position: relative; overflow: hidden;
  text-align: left; font-family: inherit; color: inherit; width: 100%;
}
.cc:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -24px rgba(42, 37, 64, .5); }
.cc::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.cc .top2 { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.cc .top2 b { font-size: 15px; }
.cc .top2 .tel { font-size: 11.5px; color: var(--muted); }
.cc .meta { font-size: 12px; color: var(--muted); line-height: 1.7; }
.cc.nuevo { display: grid; place-items: center; border-style: dashed; color: var(--muted); min-height: 132px; }
.cc.nuevo:hover { border-color: var(--pink); color: var(--pink); }

/* línea de tiempo */
.tl { position: relative; padding-left: 26px; }
.tl::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl .it { position: relative; padding: 10px 0; }
.tl .it::before {
  content: ""; position: absolute; left: -22px; top: 16px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(228, 0, 124, .18);
}
.tl .it.cancelado::before { background: var(--line); box-shadow: 0 0 0 3px #fff; }
.tl .it b { font-size: 13.5px; display: block; }
.tl .it span { font-size: 12px; color: var(--muted); }
.tl .it.cancelado b { text-decoration: line-through; color: var(--muted); }

/* documentos (Paso 3) — mismas tarjetas del mockup, con sus tres acciones */
.ci.grad { background: var(--grad); color: #fff; font-size: 15px; }
.cc.doc { cursor: default; }
.cc.doc .acciones { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.cc.doc .acciones .bsm { padding: 11px 12px; font-size: 12.5px; min-height: 42px; }
.cc.doc .acciones .crece { flex: 1; min-width: 96px; }
.cc.doc .estado { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.bsm[disabled], .btn[disabled] { opacity: .62; cursor: progress; transform: none; }
.tag.t-sin { background: #F2F0F5; color: var(--muted); }
.tag.t-falta { background: #FFE6F2; color: var(--pink); }
.doc-nota { font-size: 11.5px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.doc-versiones { margin-top: 10px; font-size: 11.5px; }
.doc-versiones button { font-size: 11.5px; }
/* editor del itinerario: bloques repetibles */
.repetible { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 10px; position: relative; }
.repetible .quitar { position: absolute; top: 8px; right: 8px; }
.repetible + .repetible { margin-top: 10px; }
.tresc { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .tresc { grid-template-columns: 1fr; } }

/* cupones comerciales */
.codigo-grande {
  font-size: 20px; font-weight: 800; letter-spacing: 3px; text-align: center; word-break: break-all;
}
.tag.t-sin { background: #F2F0F5; color: var(--muted); }

/* desglose del pago */
.desglose { background: var(--cream); border-radius: 14px; padding: 14px; margin-top: 16px; font-size: 13px; }
.desglose div { display: flex; justify-content: space-between; margin-bottom: 5px; gap: 12px; }
.desglose div.total { border-top: 1px solid var(--line); padding-top: 7px; margin-top: 7px; margin-bottom: 0; }
.desglose span { color: var(--muted); }
.desglose .resalta { color: var(--pink); }
.desglose .bien { color: var(--green-oscuro); }

.permrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.permrow:first-of-type { border-top: none; }

/* ---------- extractor de IA ---------- */
.pegar textarea {
  width: 100%; min-height: 210px; font-family: ui-monospace, Consolas, monospace; font-size: 13px;
  line-height: 1.5; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; resize: vertical;
}
.pegar textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(228, 0, 124, .12); }

.campo-ia { border-top: 1px solid var(--line); padding: 12px 0; }
.campo-ia:first-of-type { border-top: none; }
.campo-ia .cab { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.campo-ia .cab label { margin: 0; }
.campo-ia .ipt input, .campo-ia .ipt textarea, .campo-ia .ipt select { font-size: 14px; padding: 10px 12px; }
.campo-ia textarea { min-height: 72px; }

.conf { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px; }
.conf-alta { background: #E6F6E6; color: var(--green-oscuro); }
.conf-media { background: #FFF4E0; color: #A3762A; }
.conf-baja { background: #F2F0F5; color: var(--muted); }

.ver-cita {
  border: 0; background: none; color: var(--purple); font-family: inherit; font-size: 11.5px;
  font-weight: 700; cursor: pointer; text-decoration: underline; padding: 0;
}
.cita {
  margin-top: 6px; padding: 9px 12px; border-left: 3px solid var(--pink); background: var(--cream);
  border-radius: 0 10px 10px 0; font-family: ui-monospace, Consolas, monospace; font-size: 11.5px;
  color: var(--ink); white-space: pre-wrap; word-break: break-word;
}
.cita.falta { border-left-color: var(--muted); color: var(--muted); }

.pasos { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.paso { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.paso .num {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--line); color: var(--muted); font-size: 11px;
}
.paso.activo { color: var(--ink); }
.paso.activo .num { background: var(--grad); color: #fff; }
.paso.hecho .num { background: var(--green); color: #fff; }

/* estado vacío */
.vacio { text-align: center; padding: 40px 20px; }
.vacio h3 { font-size: 18px; font-weight: 800; margin: 14px 0 6px; }
.vacio p { color: var(--muted); font-size: 13.5px; max-width: 42ch; margin: 0 auto 18px; }
.vacio .orb { margin: 0 auto; }

/* modal */
.telon {
  position: fixed; inset: 0; z-index: 80; background: rgba(42, 37, 64, .55);
  display: flex; align-items: flex-start; justify-content: center; padding: 24px; overflow-y: auto;
  backdrop-filter: blur(3px);
}
.modal {
  background: #fff; border-radius: 22px; padding: 26px; width: 100%; max-width: 640px;
  box-shadow: 0 40px 80px -30px rgba(42, 37, 64, .6); margin: auto;
}
.modal .hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.modal h2 { font-size: 21px; font-weight: 800; }
.modal .cerrar { border: 0; background: var(--cream); width: 34px; height: 34px; border-radius: 50%; font-size: 18px; cursor: pointer; color: var(--muted); flex: none; }
.modal .cerrar:hover { background: var(--line); color: var(--ink); }
.dosc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal .pie { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
.modal .pie .bsm { flex: none; }

/* aviso flotante */
.brindis {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90;
  background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 14px;
  font-size: 13.5px; font-weight: 600; box-shadow: 0 20px 40px -18px rgba(42, 37, 64, .8);
  max-width: calc(100vw - 32px);
}
.brindis.malo { background: #B4472E; }

.cargando { text-align: center; color: var(--muted); font-size: 13.5px; padding: 30px; }

/* ============ MÓVIL — Dalia captura desde el celular ============ */
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login .art { display: none; }
  .grid2, .split, .gridcards { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .kpis2 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .top { padding: 10px 16px; gap: 10px; }
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav button { white-space: nowrap; }
  .me .quien { display: none; }
  .wrap { margin: 18px auto 48px; padding: 0 16px; }
  .h1 { font-size: 24px; }
  .hero { padding: 22px 20px; border-radius: 22px; }
  .money { font-size: 34px; }
  .acts button { flex: 1; justify-content: center; padding: 14px; }
  .modal { padding: 20px; border-radius: 18px; }
  .telon { padding: 12px; }
  .dosc { grid-template-columns: 1fr; }
  .bsm { padding: 13px 16px; }

  /* Las tablas colapsan a tarjetas: en un celular no hay scroll horizontal que aguante. */
  table.apilable thead { display: none; }
  table.apilable, table.apilable tbody, table.apilable tr, table.apilable td { display: block; width: 100%; }
  table.apilable tr {
    border: 1px solid var(--line); border-radius: 16px; padding: 6px 12px 10px; margin-bottom: 12px;
  }
  table.apilable td { border: none; padding: 7px 0; display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
  table.apilable td::before {
    content: attr(data-etiqueta); font-size: 10.5px; text-transform: uppercase; letter-spacing: .7px;
    font-weight: 800; color: var(--muted); flex: none; padding-top: 2px;
  }
  table.apilable td > * { text-align: right; }
  table.apilable td .bar { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .k:hover, .cc:hover, .btn:hover, .bsm:hover, .acts button:hover { transform: none; }
  /* Los anillos se quedan quietos pero en su inclinación, no aplanados. */
  .orb i, .orb .core, .orb .core::before { animation: none; }
  .orb i:nth-child(1) { transform: rotateX(74deg); }
  .orb i:nth-child(2) { transform: rotateY(68deg); }
  .orb i:nth-child(3) { transform: rotateX(24deg) rotateY(28deg); }
  .bar i { animation: none; transform: scaleX(1); }
}
