/* ATIZA Clientes - historical base styles migrated from customer-site-helpers.php.
   Linked before all other visual modules; tokens remain standardized downstream. */
*{box-sizing:border-box}
html{background:#000}
body{
  margin:0;
  min-height:100vh;
  font-family:'Raleway',system-ui,sans-serif;
  color:var(--text);
  line-height:1.5;
  background:#000;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.customer-shell{
  width:min(100%,1120px);
  margin:0 auto;
  padding:12px 14px 28px;
}
.customer-header{
  display:grid;
  gap:12px;
  padding:2px 0 18px;
}
.brand-block{
  display:grid;
  gap:8px;
}
.brand-overline{
  font-size:.74rem;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--accent-2);
}
.brand-wordmark{
  width:min(100%,164px);
  height:auto;
  filter:drop-shadow(0 14px 28px rgba(0,0,0,.28));
}
.brand-title{
  margin:0;
  font-size:clamp(1.45rem,7vw,2.15rem);
  line-height:1.02;
  font-weight:800;
}
.brand-subtitle{
  max-width:620px;
  color:var(--muted);
  font-size:.92rem;
}
.top-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.pill-link{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#000;
  color:#e8e8e8;
  text-align:center;
  font-size:.86rem;
  font-weight:700;
  transition:transform .18s ease,border-color .18s ease,background .18s ease,color .18s ease;
}
.pill-link:hover{
  transform:translateY(-1px);
  border-color:var(--line-strong);
  color:#fff;
}
.pill-link.is-primary,
.pill-link.is-active{
  color:#fff;
  border-color:var(--accent);
  background:var(--accent);
}
.customer-strip,
.hero-card,
.card,
.module-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius-xl);
  box-shadow:none;
}
.customer-strip{
  display:grid;
  gap:6px;
  padding:12px 14px;
  margin:0 0 16px;
}
.customer-strip strong{font-size:.95rem}
.hero-card{
  display:grid;
  gap:16px;
  padding:18px;
  margin:0 0 18px;
}
.hero-title{
  margin:0;
  font-size:clamp(1.9rem,10vw,3rem);
  line-height:.98;
}
.hero-copy{
  margin:0;
  color:var(--muted);
  font-size:.98rem;
  max-width:680px;
}
.hero-list,
.list-clean{
  display:grid;
  gap:10px;
  margin:0;
  padding:0;
  list-style:none;
}
.hero-list li,
.list-clean li{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.06);
  background:#000;
  color:var(--muted);
}
.stack{display:grid;gap:16px}
.stack.tight{gap:12px}
.grid-2,
.profile-grid,
.module-grid,
.summary-grid,
.form-grid{display:grid;gap:14px}
.module-grid{grid-template-columns:1fr}
.card,
.module-card{padding:18px}
.card h2,
.card h3,
.module-card h2,
.module-card h3{
  margin:0 0 10px;
}
.card p,
.module-card p{
  margin:0;
  color:var(--muted);
}
.module-card{
  display:grid;
  gap:12px;
  align-content:start;
}
.module-card.is-primary{
  border-color:var(--line-strong);
  background:#000;
}
.module-card.is-muted{
  opacity:.9;
}
.module-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:max-content;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:#000;
  color:var(--accent-2);
  font-size:.74rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.module-title{
  margin:0;
  font-size:1.2rem;
  line-height:1.08;
}
.summary-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.summary-pill{
  padding:13px 14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.06);
  background:#000;
}
.summary-pill .label{
  display:block;
  color:var(--muted-soft);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.summary-pill .value{
  display:block;
  margin-top:6px;
  color:#fff;
  font-size:1.12rem;
  font-weight:800;
  line-height:1.15;
}
.tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  width:max-content;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:#000;
  color:#ffe0bd;
  font-size:.78rem;
  font-weight:700;
}
.empty-state{
  padding:22px 18px;
  border-radius:14px;
  border:1px dashed rgba(251,109,1,.22);
  background:#000;
  color:var(--muted);
}
.form-grid{grid-template-columns:1fr}
.form-grid .full{grid-column:1/-1}
.field{display:grid;gap:8px}
.field label{
  color:var(--accent-2);
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.field input,
.field textarea,
.field select{
  width:100%;
  padding:14px 15px;
  border-radius:9px;
  border:1px solid rgba(255,255,255,.25);
  background:#090909;
  color:#fff;
  font:inherit;
}
.field input::placeholder,
.field textarea::placeholder{color:#8e7d6d}
.field input[type=file]{
  padding:0;
  border:0;
  background:transparent;
}
.field input[type=file]::file-selector-button{
  margin-right:10px;
  padding:12px 14px;
  border:1px solid rgba(251,109,1,.28);
  border-radius:14px;
  background:rgba(251,109,1,.15);
  color:#ffe0bb;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}
.field textarea{
  min-height:108px;
  resize:vertical;
}
.checkbox-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  color:var(--muted);
  font-size:.94rem;
}
.checkbox-row input{margin-top:3px}
.btn-row{
  display:grid;
  gap:10px;
  margin-top:16px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  min-height:48px;
  padding:12px 16px;
  border-radius:16px;
  border:1px solid var(--line);
  background:var(--panel);
  color:#fff;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}
.btn.btn-soft{
  border-color:rgba(251,109,1,.43);
  background:rgba(251,109,1,.09);
  color:#ffd8b0;
}
.btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}
.note{
  font-size:.92rem;
  color:var(--muted);
}
.micro-copy{
  font-size:.82rem;
  color:var(--muted-soft);
}
.msg{
  padding:14px 16px;
  border-radius:18px;
  margin:0 0 16px;
  border:1px solid transparent;
}
.msg.ok{
  background:rgba(43,145,89,.16);
  border-color:rgba(88,226,150,.22);
  color:#dcffed;
}
.msg.err{
  background:rgba(170,43,43,.16);
  border-color:rgba(255,120,120,.22);
  color:#ffe1e1;
}
.msg.warn{
  background:rgba(176,118,28,.16);
  border-color:rgba(255,202,92,.24);
  color:#fff0c8;
}
.oauth-list{
  display:grid;
  gap:10px;
}
.oauth-item{
  display:grid;
  gap:10px;
  padding:12px 14px;
  border-radius:18px;
  background:#000;
  border:1px solid rgba(255,255,255,.06);
}
.oauth-item .meta{
  display:grid;
  gap:4px;
}
.footer-copy{
  padding:20px 0 8px;
  color:var(--muted-soft);
  text-align:center;
  font-size:.84rem;
}
@media (min-width: 720px){
  .customer-shell{padding:18px 18px 36px}
  .top-actions{grid-template-columns:repeat(5,minmax(0,1fr))}
  .grid-2,.profile-grid,.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .summary-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .btn-row{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width: 980px){
  .customer-header{
    grid-template-columns:1fr auto;
    align-items:start;
  }
  .top-actions{
    max-width:520px;
    align-content:start;
  }
  .module-grid.is-three{grid-template-columns:repeat(3,minmax(0,1fr))}
}
