/* Mesa de proyectos · marca v2 de Grupo Salmerón (la misma del portal inicio.salmeronai.es)
   Un solo fichero: cambia las variables que ya usan todas las páginas de la Mesa (mesa.css y el presupuestador).
   Solo en pantalla: al imprimir, los presupuestos siguen en blanco (la marca pide modo claro en documentos impresos). */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700&family=TASA+Orbiter:wght@400;500;600&display=swap');

@media screen {
  html:root:not(#_) {
    --bg:#212122; --panel:#121212; --fg:#FCFCFC; --muted:#939399; --line:#39393B;
    --accent:#EB5E50; --accent2:#F48A7E; --chip:#2A2A2C; --own:#3D3418; --ok:#7FD1A8; --bad:#F48A7E;
    --f-display:"TASA Orbiter","Raleway",sans-serif;
    --f-body:"Raleway",system-ui,-apple-system,"Segoe UI",sans-serif;
    color-scheme:dark;
  }
  html:root:not(#_) body{background:#212122;color:rgba(252,252,252,.86)}
  html:root:not(#_) a{color:#F48A7E}
  html:root:not(#_) a:hover{color:#EB5E50}

  /* titulares: TASA Orbiter, blancos y sin mayúsculas */
  html:root:not(#_) h1{font-family:var(--f-display);font-weight:500;font-size:28px;line-height:1.15;color:#FCFCFC;text-transform:none;letter-spacing:0}
  html:root:not(#_) h2{font-family:var(--f-display);font-weight:400;font-size:19px;color:#FCFCFC;text-transform:none;letter-spacing:0}
  html:root:not(#_) h3{font-family:var(--f-display);font-weight:400;color:#FCFCFC}
  /* también los títulos con estilo propio de cada página (presupuestador, configuración, herramientas…) */
  html:root:not(#_) :is(h1,h2,h3,h4){color:#FCFCFC;text-transform:none;letter-spacing:0;font-family:var(--f-display)}
  html:root:not(#_) h1{font-weight:500}
  html:root:not(#_) :is(h2,h3,h4){font-weight:400}
  html:root:not(#_) .sub,html:root:not(#_) .state{color:#939399}

  /* botones en píldora; el principal, rojo de acción */
  html:root:not(#_) .btn{border-radius:999px;border:1px solid #515154;background:transparent;color:#FCFCFC;padding:8px 16px;font-family:var(--f-display);font-weight:500}
  html:root:not(#_) .btn:hover{border-color:#7B7B80;background:#39393B}
  html:root:not(#_) .btn.pri{background:linear-gradient(95.21deg,#EB5E50 3.84%,#B3473D 100.33%);border-color:transparent;color:#fff}
  html:root:not(#_) .btn.pri:hover{background:#B3473D}
  html:root:not(#_) .btn.sm{padding:3px 11px}
  html:root:not(#_) button:disabled,html:root:not(#_) .btn:disabled{opacity:.45;cursor:default}

  /* paneles y campos */
  html:root:not(#_) .panel{background:#121212;border:1px solid #2A2A2C;border-radius:20px}
  html:root:not(#_) dialog{background:#121212;color:#FCFCFC;border:1px solid #39393B;border-radius:20px}
  html:root:not(#_) input,html:root:not(#_) select{background:#1A1A1C;border:1px solid #515154;color:#FCFCFC;border-radius:999px;padding:8px 14px}
  html:root:not(#_) textarea{background:#1A1A1C;border:1px solid #515154;color:#FCFCFC;border-radius:12px}
  html:root:not(#_) input::placeholder,html:root:not(#_) textarea::placeholder{color:#7B7B80}
  html:root:not(#_) input:focus,html:root:not(#_) select:focus,html:root:not(#_) textarea:focus{outline:none;border-color:#EB5E50}
  html:root:not(#_) button:focus-visible,html:root:not(#_) a:focus-visible{outline:2px solid #EB5E50;outline-offset:2px}
  html:root:not(#_) label.f{color:#939399}
  html:root:not(#_) input[type=checkbox],html:root:not(#_) input[type=radio]{accent-color:#EB5E50}

  /* tablas */
  html:root:not(#_) table.t th{color:#939399;border-bottom-color:#39393B}
  html:root:not(#_) table.t td{border-bottom-color:#2A2A2C}
  html:root:not(#_) table.t tr.clic:hover td{background:#1A1A1C}

  /* etiquetas y avisos */
  html:root:not(#_) .tag{border-radius:999px;background:rgba(252,252,252,.1);color:#FCFCFC}
  html:root:not(#_) .tag.ok{background:rgba(127,209,168,.16)}
  html:root:not(#_) .tag.av{background:rgba(235,94,80,.18)}
  html:root:not(#_) .toast{background:#39393B;color:#FCFCFC;border-radius:999px}
  html:root:not(#_) .exp{color:#F48A7E}
  /* barra de la Mesa: blanca; rojo claro solo en la sección en la que estás */
  html:root:not(#_) .mnav a,html:root:not(#_) .mnav .marca{color:#FCFCFC}
  html:root:not(#_) .mnav .marca span{color:#939399;opacity:1}
  html:root:not(#_) .mnav a.m:hover,html:root:not(#_) .mnav a.m.on{color:#F48A7E}
  html:root:not(#_) .mnav .yo button{border-radius:999px}
  html:root:not(#_) .mnav details.mas summary.on,html:root:not(#_) .mnav details.mas summary:hover{color:#F48A7E;background:#39393B}
  html:root:not(#_) ::selection{background:rgba(235,94,80,.35)}
}
