/* ===========================================================
   JL Tools — Design system
   Responsive: PC · laptop · tablet · móvil
   Breakpoints: 1080 · 900 · 720 · 420
   =========================================================== */

/* ---------- 1. Tokens ---------- */
:root{
  --navy:#0b1733; --navy-2:#101d43;
  --ink:#14203c; --ink-soft:#5b6b85; --ink-mute:#8593ab;
  --bg:#f6f8fd; --surface:#fff; --line:#e6ebf6; --line-soft:#eef1f9;
  --brand:#6478ff; --brand-2:#8a58ec; --violet:#7865ed;
  --ok:#17a06a; --danger:#d64550;
  --r-sm:9px; --r:13px; --r-lg:18px; --r-xl:22px;
  --sh-1:0 2px 10px #17294d0d;
  --sh-2:0 14px 40px #17294d14;
  --sh-3:0 30px 70px #0b173326;
  --shell:1140px; --header-h:72px;
  --font:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
}

.permissions-card{margin-top:22px}
.permissions-card h3{margin:8px 0}
.permissions-card .users-table td small{display:block;color:var(--muted,#64748b);margin-top:4px}
.permissions-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px}
#permissions-status{font-size:.92rem;color:var(--muted,#64748b)}
@media(max-width:640px){.permissions-actions{align-items:stretch;flex-direction:column}.permissions-actions .btn{width:100%}}
.capture-section{padding-top:clamp(28px,5vw,52px);padding-bottom:clamp(42px,7vw,76px)}
.capture-section .section-heading{position:relative;margin-bottom:24px;padding:0 0 18px;border-bottom:1px solid var(--line)}
.capture-section .section-heading h2{font-size:clamp(27px,3.5vw,36px);letter-spacing:-1.15px}
.capture-section .section-label{color:#6478ff;font-size:10px;font-weight:800;letter-spacing:1.35px}
.capture-section .section-heading p{max-width:620px;font-size:14px}
.capture-section .account-card{border:1px solid #e8edf6;border-radius:18px;background:var(--surface);box-shadow:0 8px 28px #17294d0a}
.capture-section .account-card>h3{font-size:17px;color:var(--ink);margin:0 0 16px}
.capture-toolbar,.capture-form{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.capture-toolbar{align-items:end;padding:18px 20px!important;background:linear-gradient(120deg,#fff 0%,#fbfcff 100%)!important}
.capture-toolbar label,.capture-form label{display:grid;gap:7px;flex:1 1 170px;color:#52617b;font-size:12px;font-weight:700;letter-spacing:.15px}
.capture-toolbar select,.capture-form input,.capture-form select{width:100%;min-height:46px;border:1px solid #dfe6f1;border-radius:11px;padding:10px 13px;background:#fff;color:var(--ink);box-shadow:0 1px 2px #17294d08;transition:border-color .16s,box-shadow .16s}
.capture-toolbar select:focus,.capture-form input:focus,.capture-form select:focus,.capture-admin-form input:focus,.capture-filters input:focus,.capture-filters select:focus{outline:0;border-color:#8190ff;box-shadow:0 0 0 3px #6478ff1c}
.capture-toolbar>.btn{min-height:44px;border-radius:11px}
.capture-list-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:34px 0 13px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.capture-list-head h3{margin:0 0 3px;color:var(--ink);font-size:18px;letter-spacing:-.35px}
.capture-list-head .muted{font-size:12px}
.capture-filters{display:flex;gap:10px;min-width:min(100%,440px)}
.capture-filters input,.capture-filters select{min-height:43px;border:1px solid #dfe6f1;border-radius:11px;padding:8px 12px;background:#fff;color:var(--ink);min-width:0;box-shadow:0 1px 2px #17294d08}
.capture-filters input{flex:1}
.capture-filters select{flex:0 1 190px}
.capture-products{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:18px;margin:16px 0 26px;align-items:stretch}
.capture-product h3{margin:0 0 5px;font-size:17px;letter-spacing:-.35px}
.capture-section .capture-product{display:flex;flex-direction:column;min-width:0;padding:20px;border:1px solid #e5ebf4;border-radius:17px;background:linear-gradient(160deg,#fff 0%,#fcfdff 100%);box-shadow:0 5px 18px #17294d0a;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.capture-section .capture-product:hover{transform:translateY(-2px);border-color:#d7def0;box-shadow:0 12px 28px #17294d12}
.capture-product-head{display:flex;align-items:start;justify-content:space-between;gap:12px}
.capture-product-head p{margin:0;color:var(--ink-soft);font-size:13px}
.capture-audit{display:block;margin-top:8px;color:var(--ink-mute);font-size:11px}
.capture-product .row-actions{justify-content:flex-end;flex-wrap:wrap}
.capture-photos{display:flex;gap:10px;overflow-x:auto;margin:15px 0;padding:10px;border:1px solid #edf1f7;border-radius:13px;background:#f8faff}
.capture-photos figure{position:relative;flex:0 0 112px;margin:0}
.capture-photos img{display:block;width:112px;height:96px;object-fit:cover;border-radius:10px;background:#edf1f7}
.capture-photos figcaption{margin-top:4px}
.capture-photo-form{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:auto;padding:13px 0 0;border-top:1px solid #edf1f7}
.capture-photo-form .btn{border-radius:10px}
.capture-photo-form small{color:var(--ink-soft);font-size:11px}
.capture-exports{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0 30px}
.capture-exports .btn{min-height:44px;border-radius:11px}
.capture-admin-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.capture-admin-heading h3{margin:3px 0 0;font-size:19px;letter-spacing:-.4px}
.capture-admin-heading .muted{margin:0;font-size:12px}
.capture-admin-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
.capture-admin-column{min-width:0;padding:20px;border:1px solid #e7ecf4;border-radius:15px;background:linear-gradient(135deg,#fbfcff 0%,#f7f9fd 100%)}
.capture-admin-column h4{display:flex;align-items:center;gap:9px;margin:0 0 14px;color:var(--ink);font-size:15px;letter-spacing:-.2px}
.capture-admin-column h4:before{content:"";width:4px;height:18px;border-radius:5px;background:linear-gradient(180deg,#6e7cff,#8a58ec)}
.capture-admin-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:11px;margin-bottom:15px;padding:14px;border:1px solid #e9eef6;border-radius:12px;background:#fff}
.capture-admin-form label{display:grid;gap:7px;min-width:0;color:#52617b;font-size:12px;font-weight:700}
.capture-admin-form input{width:100%;min-height:43px;border:1px solid #dfe6f1;border-radius:10px;padding:8px 11px;background:#fff;color:var(--ink);transition:border-color .16s,box-shadow .16s}
.capture-admin-form .btn{min-height:43px;border-radius:10px;white-space:nowrap}
.capture-admin-list{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;max-height:340px;overflow:auto;padding:1px}
.capture-admin-item{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;margin:0;padding:10px 12px;border:1px solid #e8edf5;border-radius:11px;background:#fff;transition:border-color .15s,box-shadow .15s}
.capture-admin-item:hover{border-color:#d8e0ef;box-shadow:0 3px 10px #17294d08}
.capture-admin-name{display:flex;align-items:center;gap:10px;min-width:0;color:#283752;font-size:13px;font-weight:650}
.capture-admin-name>i{width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#7887f8;box-shadow:0 0 0 4px #7887f81c}
.capture-unit-abbr{padding:3px 8px;border:1px solid #e7ebf4;border-radius:20px;background:#f6f8fc;color:#65738b;font-size:10px;font-weight:700;letter-spacing:.3px}
.capture-admin-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.capture-admin-actions .btn-mini{min-height:34px;padding:7px 10px;border-radius:8px}
.capture-unit-form input{text-transform:uppercase}
.capture-dialog{width:min(460px,calc(100% - 32px));max-width:460px;margin:auto;padding:0;border:1px solid #e4eaf3;border-radius:18px;background:#fff;color:var(--ink);box-shadow:0 24px 80px #0b17334a}
.capture-dialog::backdrop{background:#0b173366;backdrop-filter:blur(3px)}
.capture-dialog form{display:grid;gap:15px;padding:25px}
.capture-dialog-header{margin-bottom:2px}
.capture-dialog-header h3{margin:4px 0;font-size:21px;letter-spacing:-.5px}
.capture-dialog-header p{margin:0;color:var(--ink-soft);font-size:13px}
.capture-dialog form>label{display:grid;gap:7px;color:#52617b;font-size:12px;font-weight:700}
.capture-dialog input{width:100%;min-height:46px;border:1px solid #dfe6f1;border-radius:11px;padding:10px 13px;background:#fff;color:var(--ink)}
.capture-dialog input:focus{outline:0;border-color:#8190ff;box-shadow:0 0 0 3px #6478ff1c}
.capture-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:5px}
.capture-empty{grid-column:1/-1;padding:24px;border:1px dashed var(--line);border-radius:var(--r);color:var(--ink-soft);text-align:center;background:#fff}
#capture-status{min-height:1.5em;margin-top:12px;padding:0 2px;color:var(--ink-soft);font-size:13px}
@media(max-width:720px){.capture-admin-list{max-height:260px}}
@media(max-width:640px){.capture-toolbar,.capture-form{align-items:stretch;flex-direction:column}.capture-toolbar>* ,.capture-form>*{width:100%}.capture-product-head{flex-direction:column}.capture-exports>*{width:100%}.capture-list-head,.capture-admin-heading{align-items:stretch;flex-direction:column}.capture-filters{min-width:0;flex-direction:column}.capture-filters>*{width:100%}.capture-admin-form{grid-template-columns:1fr}.capture-admin-form .btn{width:100%}}

/* ---------- 2. Base ---------- */
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 18px);-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);
  font-synthesis:none;line-height:1.5;-webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;overflow-x:hidden;
}
h1,h2,h3{text-wrap:balance}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
::selection{background:#6478ff40}
:focus-visible{outline:3px solid #7c7bffcc;outline-offset:2px}
.shell{width:min(var(--shell),calc(100% - 44px));margin-inline:auto}
.hidden{display:none!important}
.converter-section,.account-section,.admin-band,.result-card{scroll-margin-top:calc(var(--header-h) + 18px)}
.muted{font-size:12px;color:var(--ink-mute)}
.center{text-align:center}

/* ---------- 3. Header + navegación ---------- */
.site-header{
  position:sticky;top:0;z-index:50;color:#fff;
  background:linear-gradient(180deg,#0b1733f5,#0b1733e8);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid #ffffff16;
}
.nav{min-height:var(--header-h);display:flex;align-items:center;justify-content:space-between;gap:24px;position:relative}
.brand{display:flex;align-items:center;gap:12px}
.brand-mark{
  width:44px;height:44px;border-radius:13px;flex:none;
  background:linear-gradient(145deg,#6478ff,#8a58ec);
  display:flex;align-items:center;justify-content:center;
  font-weight:850;font-size:19px;letter-spacing:-1px;
  box-shadow:0 8px 20px #6478ff4d;
}
.brand-mark span{font-size:12px;color:#b5f5ef;align-self:flex-start;margin-top:8px}
.brand-name{font-size:19px;font-weight:650;letter-spacing:-.7px;line-height:1}
.brand-name b{color:#9a9eff}
.brand-name small{display:block;font-size:10px;font-weight:500;letter-spacing:1.3px;color:#8fa1c9;margin-top:6px}
.nav-links,.nav-actions{display:flex;align-items:center;gap:26px}
.nav-links a{font-size:13px;color:#c4cee7;padding:8px 2px;border-radius:8px;transition:color .18s}
.nav-links a:hover{color:#fff}
.nav-actions{gap:14px}
.identity{font-size:12px;color:#9aaad1;white-space:nowrap}
.nav-toggle{
  display:none;flex-direction:column;justify-content:center;gap:5px;
  width:44px;height:44px;padding:11px;
  border:1px solid #ffffff2e;background:#ffffff12;border-radius:11px;
}
.nav-toggle span{display:block;height:2px;width:100%;background:#e7ecff;border-radius:2px;transition:transform .25s ease,opacity .2s ease}
.nav-toggle:hover{background:#ffffff1f}
.nav-toggle.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle.open span:nth-child(2){opacity:0}
.nav-toggle.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* ---------- 4. Botones ---------- */
.btn{
  border:0;border-radius:11px;padding:12px 19px;min-height:44px;
  font-weight:700;font-size:13px;line-height:1.2;
  display:inline-flex;align-items:center;justify-content:center;gap:11px;
  transition:transform .16s,box-shadow .16s,background .16s,border-color .16s;
}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0) scale(.985)}
.btn:disabled{opacity:.55;cursor:wait;transform:none}
.btn-outline{background:#ffffff10;border:1px solid #ffffff42;color:white}
.btn-outline:hover{background:#ffffff1a;border-color:#ffffff66}
.btn-ghost{background:transparent;color:#dbe3fa}
.btn-ghost:hover{background:#ffffff12;color:#fff}
.btn-primary{background:linear-gradient(110deg,#6c6aff,#9156e9);color:#fff;box-shadow:0 8px 22px #5e52ec33}
.btn-primary:hover{box-shadow:0 12px 28px #5e52ec4d}
.btn-lg{padding:16px 24px;font-size:14px;border-radius:13px}
.btn-mini{
  border:1px solid var(--line);background:#fff;color:#4a5a75;
  border-radius:8px;padding:7px 11px;font-size:11px;font-weight:700;min-height:34px;
  transition:border-color .15s,color .15s,background .15s;
}
.btn-mini:hover{border-color:#8277f0;color:#4d3eb9;background:#f7f6ff}
.btn-mini.danger:hover{border-color:#e57373;color:#c94a4a;background:#fff5f5}
.btn-plain{background:#eef1f7;color:#4a5a75;border:0;border-radius:11px;padding:12px 18px;font-weight:700;min-height:44px}
.btn-plain:hover{background:#e3e8f2}
.icon-button{border:0;background:#eef1f7;width:34px;height:34px;border-radius:9px;color:#4a5a75;transition:background .15s}
.icon-button:hover{background:#e3e8f2}

/* ---------- 5. Hero ---------- */
.hero{
  position:relative;overflow:hidden;color:#fff;
  background:
    radial-gradient(ellipse 700px 420px at 82% 24%,#2b3a86 0%,transparent 62%),
    radial-gradient(ellipse 500px 380px at 8% 90%,#1d2a63 0%,transparent 60%),
    linear-gradient(115deg,#0b1733,#111c40 70%,#151b42);
}
.hero-grid{display:grid;grid-template-columns:1.07fr .93fr;align-items:center;min-height:clamp(420px,58vh,540px);gap:45px}
.hero-copy{padding:clamp(48px,7vw,72px) 0}
.eyebrow,.section-label{font-size:10px;letter-spacing:2px;font-weight:850;color:var(--violet);text-transform:uppercase}
.eyebrow{
  color:#b3b1ff;background:#ffffff0d;border:1px solid #ffffff20;
  border-radius:99px;padding:9px 13px;display:inline-flex;align-items:center;gap:9px;
  letter-spacing:1.25px;
}
.spark{color:#87f5d6;font-size:15px}
.hero h1{
  font-size:clamp(37px,4.6vw,57px);letter-spacing:-2.5px;line-height:1.1;
  margin:24px 0 19px;font-weight:800;
}
.hero h1 span{background:linear-gradient(90deg,#a4a4ff,#bca2ff,#81d9f3);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-copy>p{font-size:15px;line-height:1.85;color:#bac7e5;max-width:510px;margin-bottom:27px}
.hero-actions{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.text-link{font-size:13px;color:#dce5ff;font-weight:650;padding:8px 2px;transition:color .15s}
.text-link:hover{color:#fff}
.hero-proof{display:flex;gap:21px;flex-wrap:wrap;margin-top:38px;color:#b9c7e3;font-size:11px}
.hero-proof i{font-style:normal;color:#71e2c0;margin-right:5px}
.hero-visual{height:365px;position:relative;display:flex;align-items:center;justify-content:center}
.visual-orbit{position:absolute;border:1px solid #ffffff16;border-radius:50%;width:420px;height:420px}
.orbit-two{width:315px;height:315px;border-color:#ffffff10}
.document-preview{
  width:330px;background:#fff;border-radius:var(--r-lg);
  box-shadow:0 25px 70px #04092390;color:#19243e;padding:22px;
  transform:rotate(-4deg);z-index:1;
}
.preview-head{display:flex;align-items:center;gap:12px;font-weight:750;font-size:12px;margin-bottom:22px}
.preview-head small,.floating-excel small{display:block;font-weight:500;color:#8290a6;font-size:10px;margin-top:4px}
.preview-icon{width:38px;height:38px;background:#ecebff;color:#7869ef;display:grid;place-items:center;border-radius:10px;font-size:22px;flex:none}
.preview-dots{margin-left:auto;color:#9ca9bd}
.preview-line{display:block;height:9px;border-radius:5px;background:#e8ecf5;width:82%}
.preview-line.wide{width:65%;margin-bottom:9px}
.preview-line.mid{width:42%;margin-bottom:25px}
.preview-table{font-size:10px}
.preview-table>div{display:grid;grid-template-columns:1fr 60px 65px;align-items:center;border-bottom:1px solid #edf0f5;padding:11px 0}
.preview-table-head{font-size:9px;color:#96a1b5;font-weight:800}
.floating-excel{
  position:absolute;bottom:38px;right:-3px;display:flex;align-items:center;gap:11px;
  background:#fff;color:#1d2a41;border-radius:12px;padding:13px 15px;
  box-shadow:0 16px 45px #02071b8c;z-index:2;font-size:12px;
  animation:float-y 3.6s ease-in-out infinite alternate;
}
.excel-icon{display:grid;place-items:center;background:#15996e;color:#fff;font-size:17px;font-weight:900;width:35px;height:39px;border-radius:7px;flex:none}
.check-circle{display:grid;place-items:center;background:#e5fbf1;color:#11a06a;border-radius:50%;width:23px;height:23px;margin-left:13px;flex:none}
.floating-convert{
  position:absolute;top:32px;left:-20px;z-index:2;background:#342f70;color:#c5c6ff;
  border:1px solid #7773d0;border-radius:10px;padding:12px 15px;
  box-shadow:0 10px 25px #060b29;font-size:12px;
  animation:float-y 4.6s ease-in-out .7s infinite alternate;
}
@keyframes float-y{from{transform:translateY(0)}to{transform:translateY(-8px)}}

/* ---------- 6. Convertidor ---------- */
.converter-section{padding-top:clamp(42px,6vw,64px);padding-bottom:clamp(28px,4vw,44px)}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:10px 0 22px;flex-wrap:wrap}
.section-heading h2,.benefits h2,.steps h2,.admin-head h2{font-size:clamp(24px,3.2vw,30px);letter-spacing:-1px;margin:0 0 9px;font-weight:800}
.section-heading p,.account-title p{font-size:13px;color:#7d8ba2;margin:0}
.secure-note{color:#24866e;font-size:11px;background:#e7f8f1;padding:9px 12px;border-radius:30px;white-space:nowrap;font-weight:650}
.converter-card,.result-card,.account-card{
  background:var(--surface);border:1px solid #e3e8f6;border-radius:var(--r-lg);
  box-shadow:var(--sh-1);
}
.converter-card{padding:clamp(18px,3vw,28px);position:relative;overflow:hidden;box-shadow:var(--sh-2)}
.converter-card::before{
  content:"";position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,var(--brand),var(--brand-2),#81d9f3);
}
.converter-top{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}
/* Selector de formato: tres tarjetas grandes con chip de icono por tipo */
.tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;flex:1;min-width:0}
.tabs button{
  position:relative;border:1.5px solid var(--line);background:#fff;color:#586982;
  border-radius:15px;padding:13px 14px;display:flex;align-items:center;gap:13px;
  text-align:left;min-height:74px;overflow:hidden;
  transition:border-color .18s,background .18s,color .18s,box-shadow .18s,transform .18s;
}
.tabs button:hover{border-color:#c9d0ee;background:#fbfbff;transform:translateY(-2px);box-shadow:0 8px 20px #17294d12}
.tabs button:active{transform:translateY(0)}
.tabs .tab-icon{
  width:44px;height:44px;flex:none;border-radius:12px;
  display:grid;place-items:center;font-size:20px;font-weight:850;
  background:#eef1f7;color:#5b6b85;transition:background .18s,color .18s,box-shadow .18s;
}
#tabxml .tab-icon{background:#e9f1ff;color:#2f62d9}
#tabpdf .tab-icon{background:#ffecec;color:#d64550}
#tabimage .tab-icon{background:#fff3e0;color:#d97706}
.tab-text{font-size:13px;font-weight:800;letter-spacing:-.2px;min-width:0}
.tabs small{display:block;font-size:10px;font-weight:500;margin-top:4px;color:#8c97aa;line-height:1.35}
/* Estado activo: borde y fondo según el formato */
.tabs button.active{color:#14203c;transform:translateY(-2px);box-shadow:0 10px 24px #17294d1a}
#tabxml.active{border-color:#7aa7ff;background:#f5f9ff;box-shadow:0 10px 24px #2f62d91f}
#tabxml.active .tab-icon{background:#2f62d9;color:#fff;box-shadow:0 6px 16px #2f62d94d}
#tabxml.active small{color:#4d78c4}
#tabpdf.active{border-color:#f09a9a;background:#fff7f7;box-shadow:0 10px 24px #d645501f}
#tabpdf.active .tab-icon{background:#d64550;color:#fff;box-shadow:0 6px 16px #d645504d}
#tabpdf.active small{color:#c06a6a}
#tabimage.active{border-color:#f5b45c;background:#fffaf2;box-shadow:0 10px 24px #d977061f}
#tabimage.active .tab-icon{background:#d97706;color:#fff;box-shadow:0 6px 16px #d977064d}
#tabimage.active small{color:#b07a34}
.tabs button.active::after{
  content:"✓";position:absolute;top:8px;right:11px;font-size:12px;font-weight:900;
  width:19px;height:19px;border-radius:50%;display:grid;place-items:center;
  background:#14203c;color:#fff;
}
#tabxml.active::after{background:#2f62d9}
#tabpdf.active::after{background:#d64550}
#tabimage.active::after{background:#d97706}
.converter-tag{font-size:10px;letter-spacing:1px;color:#9aa6bb;font-weight:800}
.format-hint{font-size:12px;color:#7e8ca2;margin:20px 0 13px}
.dropzone{
  border:2px dashed #cbd1f4;border-radius:15px;
  background:linear-gradient(135deg,#fafaff,#f7faff);
  padding:clamp(20px,4vw,30px) 20px;text-align:center;cursor:pointer;
  transition:background .18s,border-color .18s,box-shadow .18s;
}
.dropzone:hover{border-color:#a9b2f5;background:#fbfbff}
.dropzone.dragover{background:#eeeaff;border-color:#7168e9;box-shadow:0 0 0 4px #7168e91f}
.upload-icon{
  width:54px;height:54px;background:#ebe8ff;border-radius:16px;color:#7361e9;
  font-size:30px;display:grid;place-items:center;margin:0 auto 10px;
  transition:transform .18s;
}
.dropzone:hover .upload-icon{transform:translateY(-3px)}
.dropzone h3{font-size:15px;margin:7px 0 4px}
.dropzone p{font-size:12px;color:#8390a5;margin:4px}
.file-link{color:#6557df;font-weight:800;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.dropzone input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;overflow:hidden}
.file-selection{font-size:11px;color:#596c85;margin-top:11px;overflow-wrap:anywhere;font-weight:600}
.converter-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:18px;flex-wrap:wrap}
.format-badges{display:flex;gap:7px;flex-wrap:wrap}
.format-badges span{font-size:10px;color:#7787a0;background:#f0f3f9;padding:7px 10px;border-radius:7px;font-weight:700;letter-spacing:.4px}
#status{white-space:pre-wrap;font-size:13px;margin:13px 0 0;color:#4d5c78}
#status:empty{display:none}

/* ---------- 7. Resultado ---------- */
.result-card{padding:clamp(18px,3vw,26px);margin-top:22px;border-color:#dfe7f5;box-shadow:var(--sh-2)}
.result-header,.result-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}
.result-header h2{margin:8px 0;font-size:23px;letter-spacing:-.6px}
.result-pill{
  background:linear-gradient(135deg,#e9f8ef,#e2f6ff);color:#188c5e;
  font-size:11px;font-weight:800;padding:7px 13px;border-radius:20px;
  border:1px solid #cdeee0;
}
.result-footer{margin-top:20px;font-size:12px;color:#8995a8}
.scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.scroll::-webkit-scrollbar,.table-wrap::-webkit-scrollbar{height:8px}
.scroll::-webkit-scrollbar-thumb,.table-wrap::-webkit-scrollbar-thumb{background:#c9d2e6;border-radius:8px}
.scroll::-webkit-scrollbar-track,.table-wrap::-webkit-scrollbar-track{background:transparent}
table{width:100%;border-collapse:collapse;font-size:12px;min-width:620px}
th,td{padding:11px 10px;border-bottom:1px solid #e9edf4;text-align:left;vertical-align:middle}
th{color:#64748b;background:#f8faff;font-size:11px;font-weight:800;letter-spacing:.4px;white-space:nowrap}
tbody tr:last-child td{border-bottom:0}
td input{width:100%;min-width:85px;padding:9px;border:1px solid #dbe2ef;border-radius:8px;color:var(--ink);background:#fff;transition:border-color .15s,box-shadow .15s}
td input:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px #6478ff26}
.error{color:#b32639}

/* ---------- 8. Beneficios y pasos ---------- */
.benefits{padding-top:clamp(44px,7vw,72px);padding-bottom:clamp(50px,8vw,84px);text-align:center}
.benefits h2{margin:14px 0 32px}
.benefit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;text-align:left}
.benefit{
  padding:26px;border:1px solid #e7eaf3;background:#fff;border-radius:16px;
  transition:transform .2s,box-shadow .2s,border-color .2s;
}
.benefit:hover{transform:translateY(-4px);box-shadow:var(--sh-2);border-color:#dde2f4}
.benefit-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;font-size:23px;font-weight:700}
.purple{background:#eeeaff;color:#7462e9}
.blue{background:#e8f2ff;color:#3c87e9}
.green{background:#e6f8ef;color:#18a06a}
.benefit h3{font-size:15px;margin:17px 0 8px;letter-spacing:-.2px}
.benefit p{font-size:12px;line-height:1.8;color:#7d8ba2;margin:0}
.steps{background:linear-gradient(180deg,#edf1fa,#e9eef9);padding:clamp(46px,7vw,66px) 0;text-align:center}
.steps h2{margin:13px 0 36px}
.steps-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}
.steps-grid>div{position:relative;background:#fff0;border:1px solid transparent;border-radius:16px;padding:6px 8px 10px;transition:background .2s,border-color .2s,box-shadow .2s}
.steps-grid>div:hover{background:#fff;border-color:#e2e7f4;box-shadow:var(--sh-1)}
.steps-grid span{
  display:grid;place-items:center;width:46px;height:46px;
  background:#fff;border:1px solid #dce2f1;border-radius:50%;
  margin:0 auto;color:#6659df;font-weight:850;font-size:14px;
  box-shadow:0 6px 16px #17294d12;
}
.steps-grid h3{font-size:14px;margin:15px 0 6px}
.steps-grid p{font-size:12px;color:#7d8ba2;margin:0}

/* ---------- 9. Acceso y administración ---------- */
.account-section{padding-top:34px;padding-bottom:34px}
.account-card{padding:clamp(20px,3vw,26px)}
.account-card>h3{margin:0 0 6px;font-size:17px;letter-spacing:-.3px}
.account-title{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.account-title h2{margin:9px 0;font-size:22px;letter-spacing:-.6px}
.login-form,.stack-form{display:grid;gap:13px;max-width:470px;margin-top:20px}
.login-form label,.stack-form label{display:grid;gap:6px;font-size:12px;font-weight:650;color:#56657d}
.login-form input,.stack-form input,.stack-form select{
  border:1px solid #dce3f0;border-radius:10px;padding:12px;width:100%;
  color:#1d2940;background:#fff;min-height:44px;
  transition:border-color .15s,box-shadow .15s;
}
.login-form input:focus,.stack-form input:focus,.stack-form select:focus{
  outline:none;border-color:var(--brand);box-shadow:0 0 0 3px #6478ff26;
}
.stack-form select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b6b85' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:36px}
.stack-form .check-label{display:flex;align-items:center;gap:9px;cursor:pointer;font-size:12px;font-weight:650;color:#56657d;min-height:36px}
.stack-form input[type=checkbox]{width:auto;min-height:0;accent-color:var(--brand);width:17px;height:17px;cursor:pointer}
.pass-field small{display:block;margin-top:5px}

/* Banda de administración */
.admin-band{
  background:linear-gradient(180deg,#eef2fd 0%,#f6f8fd 70%);
  border-top:1px solid #e3e8f6;border-bottom:1px solid #e3e8f6;
  padding:clamp(34px,5vw,50px) 0 clamp(38px,5vw,54px);
}
.admin-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:22px;flex-wrap:wrap}
.admin-head h2{margin:7px 0 0}
.admin-grid{display:grid;grid-template-columns:1fr;gap:20px}
.stack-form{margin-top:16px}
#providers{display:grid;gap:10px;margin-top:18px}
.provider-row{
  display:flex;align-items:center;gap:13px;border:1px solid var(--line);
  background:#fbfcff;border-radius:13px;padding:13px 15px;
}
.provider-dot{width:9px;height:9px;border-radius:50%;background:#c3cbdd;flex:none}
.provider-dot.on{background:var(--ok);box-shadow:0 0 0 4px #17a06a22}
.provider-info{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.provider-info b{font-size:13px}
.provider-info small{font-size:11px;color:var(--ink-mute);overflow-wrap:anywhere}

/* ---------- 10. Tabla de usuarios ---------- */
.users-card{padding:clamp(18px,3vw,26px)}
.users-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}
.users-head h3{margin:0 0 4px;font-size:17px;letter-spacing:-.3px}
.users-head p{margin:0}
.users-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.search-input{
  border:1px solid #dce3f0;border-radius:10px;padding:11px 14px;min-width:250px;
  color:#1d2940;background:#f8faff;min-height:44px;
  transition:border-color .15s,box-shadow .15s;
}
.search-input:focus{outline:none;border-color:#8277f0;box-shadow:0 0 0 3px #8277f026}
.table-wrap{overflow-x:auto;margin-top:18px;border:1px solid var(--line-soft);border-radius:14px}
.users-table{width:100%;border-collapse:collapse;font-size:13px;min-width:760px}
.users-table th{
  background:#f8faff;color:#7b8aa3;font-size:10px;letter-spacing:1.2px;
  text-transform:uppercase;text-align:left;padding:13px 16px;border-bottom:1px solid #eef1f8;
}
.users-table td{padding:13px 16px;border-bottom:1px solid #f2f4fa;vertical-align:middle}
.users-table tbody tr:last-child td{border-bottom:0}
.users-table tbody tr{transition:background .15s}
.users-table tbody tr:hover{background:#fbfcff}
.users-empty{margin-top:14px}
.cell-user{display:flex;align-items:center;gap:11px;min-width:0}
.avatar{
  width:36px;height:36px;border-radius:11px;flex:none;
  background:linear-gradient(145deg,#6c6aff,#9156e9);color:#fff;
  display:flex;align-items:center;justify-content:center;font-weight:800;font-size:12px;
}
.cell-user b{display:block;font-size:13px;color:var(--ink)}
.cell-user small{display:block;color:var(--ink-mute);font-size:11px;margin-top:2px;overflow-wrap:anywhere}
.badge{
  display:inline-block;padding:4px 10px;border-radius:999px;
  font-size:10px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;white-space:nowrap;
}
.badge-admin{background:#efeaff;color:#5b45d6}
.badge-operador{background:#e6f0ff;color:#2f62d9}
.badge-cliente{background:#eef1f7;color:#5b6b85}
.badge-on{background:#e4f8ec;color:#17915a}
.badge-off{background:#fdecec;color:#c94a4a}
.row-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}

/* ---------- 11. Modal y toasts ---------- */
.modal-backdrop{
  position:fixed;inset:0;background:#0b1733a6;backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  display:flex;align-items:center;justify-content:center;padding:20px;z-index:60;
  animation:fade-in .18s ease;
}
.modal{
  background:#fff;border-radius:var(--r-lg);width:min(470px,100%);
  padding:24px 26px;box-shadow:var(--sh-3);
  max-height:90vh;overflow:auto;animation:modal-in .22s ease;
}
.modal-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:6px}
.modal-head h3{margin:0;font-size:18px;letter-spacing:-.4px}
.modal .stack-form{max-width:none;margin-top:14px}
.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:6px}
@keyframes fade-in{from{opacity:0}to{opacity:1}}
@keyframes modal-in{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
.toast-stack{
  position:fixed;right:20px;bottom:20px;display:flex;flex-direction:column;gap:10px;
  z-index:80;max-width:min(360px,calc(100vw - 40px));pointer-events:none;
}
.toast{
  background:#0b1733;color:#fff;padding:13px 16px;border-radius:13px;font-size:13px;
  box-shadow:0 14px 34px #0b173355;border-left:4px solid #3ecf8e;
  display:flex;gap:10px;align-items:flex-start;
  animation:toast-in .25s ease;pointer-events:auto;
}
.toast.err{border-left-color:#e57373}
.toast button{border:0;background:transparent;color:#9fb0d4;cursor:pointer;font-size:14px;margin-left:auto;padding:0 2px}
@keyframes toast-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* ---------- 12. Footer ---------- */
.footer{background:var(--navy);color:#9caccd;border-top:1px solid #ffffff12}
.footer-content{
  padding:30px 0;display:flex;align-items:center;justify-content:space-between;
  gap:20px;font-size:12px;flex-wrap:wrap;
}
.footer strong{display:block;font-size:18px;color:#fff;letter-spacing:-.4px}
.footer strong span{color:#aaa1ff}
.footer small{display:block;font-size:10px;margin-top:5px;color:#7f8fb3}
.footer a{color:#d6d3ff;font-weight:650}
.footer a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}

/* ===========================================================
   13. Responsive
   =========================================================== */

/* --- Laptop / PC pequeño --- */
@media(max-width:1080px){
  .shell{width:min(var(--shell),calc(100% - 40px))}
  .hero-grid{gap:26px}
  .visual-orbit{width:370px;height:370px}
  .orbit-two{width:280px;height:280px}
  .floating-convert{left:-6px}
  .floating-excel{right:0}
}

/* --- Tablet y navegación hamburguesa --- */
@media(max-width:900px){
  .nav-toggle{display:flex}
  .nav-links{
    position:absolute;top:100%;left:0;right:0;
    flex-direction:column;align-items:stretch;gap:2px;
    background:#0d1a3cf7;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
    border-top:1px solid #ffffff14;box-shadow:0 26px 54px #0409238c;
    padding:10px 0 14px;display:none;
  }
  .nav-links.open{display:flex;animation:fade-in .16s ease}
  .nav-links a{padding:14px 24px;font-size:14px;border-radius:0}
  .nav-links a:hover{background:#ffffff0f;color:#fff}
  .hero-grid{grid-template-columns:1fr;gap:0}
  .hero-visual{display:none}
  .hero-copy{padding:clamp(44px,8vw,60px) 0;text-align:left}
  .benefit-grid{grid-template-columns:repeat(2,1fr)}
  .section-heading{flex-wrap:wrap}
  .tabs button{padding:12px 10px;gap:10px}
  .tabs .tab-icon{width:40px;height:40px;font-size:18px}
}

/* --- Móvil --- */
@media(max-width:720px){
  .shell{width:min(100% - 30px,var(--shell))}
  :root{--header-h:64px}
  .brand-name small{display:none}
  .identity{display:none}
  .hero h1{font-size:clamp(33px,8.5vw,39px);letter-spacing:-1.6px}
  .hero-copy{padding:42px 0 48px}
  .hero-proof{gap:12px;margin-top:28px}
  .hero-actions{gap:14px}
  .hero-actions .btn{width:100%}
  .text-link{padding:10px 2px}
  .section-heading{align-items:flex-start}
  .secure-note,.converter-tag{display:none}
  .tabs{width:100%}
  .tabs button{flex-direction:column;justify-content:center;gap:7px;padding:12px 6px;min-height:106px;text-align:center;border-radius:14px}
  .tabs .tab-icon{width:40px;height:40px;font-size:18px;border-radius:11px}
  .tab-text{font-size:11.5px}
  .tabs small{font-size:9.5px}
  .tabs button.active::after{top:6px;right:8px}
  .converter-bottom{flex-direction:column;align-items:stretch}
  .converter-bottom .btn{width:100%}
  .dropzone{padding:22px 14px}
  .benefit-grid{grid-template-columns:1fr}
  .benefits{padding-top:38px;padding-bottom:48px}
  .steps-grid{grid-template-columns:1fr;gap:14px}
  .steps-grid>div{display:flex;align-items:center;gap:16px;text-align:left;background:#fff;border-color:#e2e7f4;box-shadow:var(--sh-1);padding:14px 16px}
  .steps-grid span{margin:0;flex:none;width:42px;height:42px}
  .steps-grid h3{margin:0 0 3px}
  .steps-grid p{margin:0}
  .footer-content{flex-direction:column;align-items:flex-start;gap:14px}
  .result-footer{flex-direction:column;align-items:stretch}
  .result-footer .btn{width:100%}
  .users-head{flex-direction:column;align-items:stretch}
  .users-toolbar{flex-direction:column;align-items:stretch}
  .search-input{min-width:0;width:100%}
  .users-toolbar .btn{width:100%}
  /* Tabla de usuarios → tarjetas */
  .table-wrap{border:0;overflow:visible;background:transparent}
  .users-table{min-width:0;display:block}
  .users-table thead{display:none}
  .users-table tbody,.users-table tr,.users-table td{display:block;width:100%}
  .users-table tr{
    background:#fff;border:1px solid var(--line);border-radius:15px;
    margin-bottom:12px;padding:4px 2px;box-shadow:var(--sh-1);
  }
  .users-table td{
    display:flex;justify-content:space-between;align-items:center;gap:14px;
    border-bottom:1px solid var(--line-soft);padding:11px 15px;text-align:right;
  }
  .users-table td:last-child{border-bottom:0}
  .users-table td::before{
    content:attr(data-label);flex:none;text-align:left;
    font-size:10px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:var(--ink-mute);
  }
  .users-table td:first-child{justify-content:flex-start;padding-top:13px}
  .users-table td:first-child::before{content:none}
  .row-actions{justify-content:flex-end}
  .btn-mini{min-height:40px;padding:9px 12px;font-size:12px}
  /* Modal → hoja inferior */
  .modal-backdrop{align-items:flex-end;padding:0;animation:fade-in .16s ease}
  .modal{
    width:100%;max-width:none;border-radius:20px 20px 0 0;
    max-height:88vh;padding:22px 18px calc(24px + env(safe-area-inset-bottom,0px));
    animation:sheet-in .26s ease;
  }
  @keyframes sheet-in{from{transform:translateY(40px);opacity:.6}to{transform:none;opacity:1}}
  .modal-actions .btn,.modal-actions .btn-plain{flex:1}
  .toast-stack{left:16px;right:16px;bottom:16px;max-width:none}
}

/* --- Móviles pequeños --- */
@media(max-width:420px){
  .shell{width:min(100% - 24px,var(--shell))}
  .brand-mark{width:40px;height:40px;font-size:17px}
  .brand-name{font-size:17px}
  .hero h1{font-size:31px;letter-spacing:-1.3px}
  .hero-copy>p{font-size:14px}
  .eyebrow{font-size:9px;padding:8px 11px;letter-spacing:1px}
  .converter-card{padding:16px 13px}
  .tabs{gap:7px}
  .tabs button{padding:10px 4px;gap:5px;min-height:92px;border-radius:13px}
  .tabs .tab-icon{width:34px;height:34px;font-size:15px;border-radius:10px}
  .tab-text{font-size:10.5px}
  .tabs small{display:none}
  .tabs button.active::after{font-size:10px;width:16px;height:16px;top:5px;right:7px}
  .benefit{padding:20px}
  .result-card{padding:16px 13px}
  .account-card,.users-card{padding:18px 15px}
  .format-badges span{padding:6px 8px;font-size:9px}
}

/* --- Accesibilidad: movimiento reducido --- */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.01ms!important;animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}
