* {
  box-sizing: border-box;
}
:root {
  --blue: #0758e8;
  --navy: #0d2b45;
  --gold: #f5b000;
  --green: #20b943;
  --bg: #f5f8ff;
  --text: #071739;
  --muted: #667085;
  --line: #dbe5f6;
}
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-bottom: 92px;
}
.app-header {
  background: linear-gradient(135deg, #064ad8, #021b75);
  color: white;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(2, 27, 117, 0.22);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: white;
}
.brand img {
  width: 58px;
  border-radius: 16px;
}
.brand strong {
  display: block;
  font-size: 30px;
}
.brand span {
  font-size: 14px;
  opacity: 0.95;
}
.header-user {
  margin-left: auto;
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: bold;
}
.header-user a {
  color: white;
  background: rgba(255, 255, 255, 0.18);
  padding: 8px 12px;
  border-radius: 12px;
  text-decoration: none;
}
.container {
  padding: 18px;
  max-width: 1180px;
  margin: auto;
}
.hero {
  background: linear-gradient(135deg, #072276, #075be9);
  color: white;
  border-radius: 26px;
  padding: 28px;
  margin-bottom: 18px;
  overflow: hidden;
}
.hero h1 {
  font-size: 34px;
  margin: 0 0 10px;
}
.hero p {
  font-size: 18px;
  line-height: 1.45;
}
.muted {
  color: var(--muted);
}
.btn {
  display: inline-block;
  background: var(--blue);
  color: white;
  padding: 14px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: bold;
  border: 0;
  cursor: pointer;
  text-align: center;
}
.btn.green {
  background: var(--green);
}
.btn.gray {
  background: #eef4ff;
  color: var(--blue);
}
.btn.orange {
  background: #f59e0b;
}
.card {
  background: white;
  border: 1px solid #e6edf8;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(7, 23, 57, 0.08);
  margin-bottom: 14px;
}
.form {
  display: grid;
  gap: 13px;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  font-size: 15px;
  background: white;
}
.form textarea {
  min-height: 110px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}
.alert {
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 14px;
  font-weight: bold;
}
.alert.error {
  background: #ffe4e6;
  color: #be123c;
}
.alert.ok {
  background: #dcfce7;
  color: #15803d;
}
.alert.info {
  background: #eaf1ff;
  color: var(--blue);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.stat strong {
  font-size: 28px;
}
.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf1ff;
  color: var(--blue);
  font-weight: bold;
  font-size: 13px;
}
.badge.green {
  background: #dcfce7;
  color: #15803d;
}
.badge.orange {
  background: #fff3d7;
  color: #b45309;
}
.badge.red {
  background: #ffe4e6;
  color: #be123c;
}
.badge.blue {
  background: #dbeafe;
  color: #0758e8;
}
.badge.yellow {
  background: #fef9c3;
  color: #854d0e;
}
.bottom-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-around;
  padding: 10px 6px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  z-index: 20;
}
.bottom-menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: bold;
  font-size: 22px;
  text-align: center;
}
.bottom-menu span {
  display: block;
  font-size: 12px;
  margin-top: 3px;
}
.bottom-menu .main-action {
  background: var(--blue);
  color: white;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  margin-top: -34px;
  display: grid;
  place-items: center;
}
.auth-box {
  max-width: 500px;
  margin: 28px auto;
}
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.cat {
  text-align: center;
  font-weight: bold;
}
.cat span {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #e6edf8;
}
.trust-card {
  border: 2px solid rgba(245, 176, 0, 0.35);
  background: linear-gradient(180deg, #fff, #fbfdff);
}
.trust-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.trust-score {
  font-size: 34px;
  font-weight: 900;
  color: var(--green);
}
.stars {
  color: var(--gold);
  font-size: 21px;
  letter-spacing: 2px;
}
.tech-card h2 {
  margin-bottom: 4px;
}
.tech-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}
.seal{
  width:74px;
  height:74px;
  border-radius:22px;
  background:linear-gradient(180deg,#0d3b76,#092448);
  border:4px solid var(--gold);
  display:grid;
  place-items:center;
  color:white;
  position:relative;
  box-shadow:0 8px 20px rgba(7,23,57,.18);
}

.seal .c{
  font-size:44px;
  font-weight:900;
  line-height:1;
  color:white;
}

.seal .bell{
  position:absolute;
  font-size:23px;
  color:var(--gold);
  top:24px;
}

.seal.small{
  width:48px;
  height:48px;
  border-radius:15px;
  border-width:2px;
}

.seal.small .c{
  font-size:29px;
}

.seal.small .bell{
  font-size:15px;
  top:16px;
}
.trust-detail {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: center;
}
.trust-bars {
  display: grid;
  gap: 10px;
}
.bar {
  background: #e6edf8;
  border-radius: 999px;
  overflow: hidden;
  height: 12px;
}
.bar span {
  display: block;
  height: 100%;
  background: var(--green);
}
.wizard {
  max-width: 880px;
  margin: auto;
}
.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  overflow: auto;
}
.step-pill {
  min-width: 120px;
  padding: 10px;
  border-radius: 999px;
  background: #eaf1ff;
  color: var(--blue);
  font-weight: bold;
  text-align: center;
}
.step-pill.active {
  background: var(--blue);
  color: white;
}
.wizard-step {
  display: none;
}
.wizard-step.active {
  display: block;
}
.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.rubros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.rubro-check {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: bold;
}
.days-grid {
  display: grid;
  gap: 10px;
}
.day-row {
  display: grid;
  grid-template-columns: 110px 1fr 1fr;
  gap: 10px;
  align-items: center;
  background: #f8fbff;
  border: 1px solid #e6edf8;
  border-radius: 14px;
  padding: 10px;
}
.progress-bar {
  height: 10px;
  background: #e6edf8;
  border-radius: 999px;
  margin: 12px 0 20px;
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--green);
  border-radius: 999px;
  transition: 0.2s;
}
@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
  .bottom-menu {
    max-width: 520px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 26px 26px 0 0;
  }
}
@media (max-width: 720px) {
  .app-header {
    gap: 10px;
    flex-wrap: wrap;
  }
  .header-user {
    font-size: 13px;
    margin-left: 0;
  }
  .brand strong {
    font-size: 27px;
  }
  .grid-2,
  .day-row,
  .trust-detail {
    grid-template-columns: 1fr;
  }
  .wizard-actions,
  .tech-actions {
    grid-template-columns: 1fr;
    display: grid;
  }
  .steps {
    padding-bottom: 4px;
  }
  .hero h1 {
    font-size: 30px;
  }
}

.technician-heading{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.profile-photo{width:78px;height:98px;flex:0 0 78px;overflow:hidden;border-radius:12px;border:3px solid #fff;background:linear-gradient(135deg,var(--blue),#0d2b45);box-shadow:0 7px 20px rgba(7,35,66,.18);display:inline-grid;place-items:center}
.profile-photo.small{width:58px;height:72px;flex-basis:58px}
.profile-photo.large{width:92px;height:115px;flex-basis:92px}
.profile-photo img{width:100%;height:100%;object-fit:cover}
.profile-photo__initials{color:#fff;font-size:28px;font-weight:900}
.profile-photo.large .profile-photo__initials{font-size:40px}
.assigned-work-card .work-meta{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.assigned-work-card address{font-style:normal}
.profile-photo-field{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:14px;background:#f4f7fc;border-radius:16px}
.profile-photo-field input[type=file]{width:min(100%,420px)}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.section-heading h2{margin-bottom:4px}
.assignment-alert{border:2px solid #f5b000;background:linear-gradient(135deg,#fff9df,#fff);box-shadow:0 14px 32px rgba(133,77,14,.12)}
.assignment-alert h2{margin-top:0}.assignment-alert__item{padding:14px 0;border-top:1px solid rgba(245,176,0,.3)}
.assignment-alert__item:first-of-type{border-top:0}.assignment-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.assignment-actions form{margin:0}
.btn.danger{background:#dc2626;color:#fff}.badge.pending{background:#fef3c7;color:#92400e}.notification-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 16px}.notification-toolbar form,.notification-card form{margin:0}.notification-list{display:grid;gap:12px}.notification-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;margin:0}.notification-card.unread{border:2px solid #93c5fd;background:linear-gradient(135deg,#eff6ff,#fff)}.notification-icon{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#eef4ff;font-size:23px}.notification-copy p{margin:7px 0}.notification-copy time{font-size:12px;color:#64748b}.notification-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.notification-title h2{font-size:18px;margin:0}.notification-empty{text-align:center}.notification-empty>div{font-size:44px}@media(max-width:700px){.notification-card{grid-template-columns:auto 1fr}.notification-card form{grid-column:1/-1}.notification-card form .btn{width:100%}}
.request-form-card{max-width:840px;margin:auto}.recipient-fieldset{border:1px solid var(--line);border-radius:16px;padding:16px;margin:4px 0 16px}.recipient-fieldset legend{font-weight:800;padding:0 6px}.recipient-options{display:flex;gap:20px;flex-wrap:wrap}.recipient-options label,.checkbox-line{display:flex;align-items:center;gap:8px}.recipient-options input,.checkbox-line input{width:auto}.recipient-details{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.recipient-details[hidden]{display:none}.privacy-note{margin-bottom:0}.duplicate-warning{border:2px solid #f5b000;background:#fff9df}.duplicate-actions{margin-top:12px}.recipient-summary{margin:12px 0;padding:12px 14px;border-left:4px solid var(--blue);border-radius:10px;background:#f4f7fc}.recipient-summary p{margin:8px 0 0}.btn:disabled{opacity:.65;cursor:wait}
.btn.applied{background:#e8f7ee;color:#137a3d;border:1px solid #9bd7b2;box-shadow:none}.badge.applied{background:#dcfce7;color:#166534}.application-status{margin:8px 0 0}.application-form{margin:0}

.credit-impact{margin:0 0 8px;padding:9px 11px;border-radius:10px;background:#eefaf2;color:#166534;font-size:13px;line-height:1.4}.credit-impact.insufficient{background:#fef2f2;color:#991b1b}.accept-action{display:flex;flex-direction:column;align-items:flex-start}.commitment-dialog{width:min(92vw,520px);border:0;border-radius:22px;padding:0;box-shadow:0 24px 70px rgba(7,23,57,.3)}.commitment-dialog::backdrop{background:rgba(7,23,57,.62)}.commitment-dialog__content{padding:26px}.commitment-dialog__icon{font-size:38px}.commitment-dialog h2{margin:8px 0}.commitment-dialog__credits{margin:16px 0;padding:14px;border-radius:14px;background:#eefaf2;border:1px solid #9bd7b2;color:#166534;font-weight:800;line-height:1.45}.commitment-dialog__actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:18px}@media(max-width:600px){.commitment-dialog__actions{display:grid;grid-template-columns:1fr}.commitment-dialog__actions .btn{width:100%}.accept-action{width:100%}.accept-action .btn{width:100%}}
/* Alineación uniforme de accesos inferiores */
.bottom-menu a:not(.main-action){flex:1;min-width:0}
@media(max-width:420px){.bottom-menu span{font-size:10px}}

/* Sistema visual compacto v0.9 */
.hero{padding:18px 20px;border-radius:20px;margin-bottom:14px}
.hero h1{font-size:27px;margin:0 0 5px}
.hero p{font-size:15px;line-height:1.4;margin:5px 0 0}
.btn.compact{padding:8px 11px;border-radius:10px;font-size:13px;line-height:1.1;white-space:nowrap}
.compact-card-grid{gap:10px}
.compact-content-card{padding:14px;border-radius:17px;margin-bottom:0;box-shadow:0 6px 16px rgba(7,23,57,.07)}
.compact-content-card h2,.compact-content-card h3{font-size:19px;line-height:1.25;margin:8px 0 6px}
.compact-content-card p{margin:7px 0;line-height:1.4}
.compact-content-card .work-meta{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:6px}
.compact-content-card .badge{padding:5px 8px;font-size:12px}
/* Presupuesto previo a reparaciones en la aceptación técnica */
.commitment-dialog__scope{margin:12px 0;padding:13px 14px;border:1px solid #f5d46c;border-radius:14px;background:#fff9df;color:#4b3b08;line-height:1.45}.commitment-dialog__scope strong{display:block;color:#8a5a00}.commitment-dialog__scope p{margin:5px 0 0;font-size:13px}
.auth-box__top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.auth-box__top h1{margin:0}.auth-switch{margin:0;color:var(--muted);font-size:13px;text-align:right}.auth-switch a{display:inline-block;margin-top:4px;color:var(--blue);font-weight:800;text-decoration:none}.auth-switch a:hover{text-decoration:underline}@media(max-width:520px){.auth-box{margin-top:16px}.auth-box__top{align-items:flex-start;flex-direction:column;gap:8px}.auth-switch{text-align:left}.auth-switch a{margin:0 0 0 4px}}
/* Registro técnico y documentos legales v0.9 */
.auth-box--wide{max-width:680px}.technician-terms{border:1px solid #bfd3f5;border-radius:18px;background:#f7faff;padding:16px}.technician-terms[hidden]{display:none}.technician-terms__heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.technician-terms__heading h2{font-size:20px;margin:8px 0 0}.technician-terms__icon{font-size:32px}.economic-summary{display:grid;gap:9px;margin:14px 0;padding-left:22px}.economic-summary li{line-height:1.4}.legal-links{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.legal-links a{display:inline-flex;padding:8px 11px;border-radius:10px;background:#e7efff;color:var(--blue);font-size:13px;font-weight:800;text-decoration:none}.legal-links a:hover{text-decoration:underline}.terms-consent{display:grid;grid-template-columns:auto 1fr;align-items:flex-start;gap:10px;padding:13px;border:1px solid #f5b000;border-radius:13px;background:#fff9df;font-weight:700;line-height:1.4}.form .terms-consent input{width:20px;height:20px;margin:1px 0 0}.legal-page{max-width:820px}.legal-hero{margin-bottom:14px}.legal-hero h1{margin-top:12px}.legal-section h2{font-size:20px;margin:0 0 8px}.legal-section p{margin:0;line-height:1.65}
/* Paquetes y saldo de créditos v0.9 */
.credit-balance-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 14px;padding:11px 14px;border:1px solid #c9d9f5;border-radius:14px;background:#f7faff;font-size:14px}.credit-balance-line a{margin-left:auto;color:var(--blue);font-weight:800}.credit-stat-link{text-decoration:none;color:inherit}.credit-stat-link:hover{border-color:#9dbaf0}.credit-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.credit-plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin-bottom:14px}.credit-plan{margin:0}.credit-plan h2{margin:10px 0 6px}.credit-plan__amount{display:block;font-size:24px;color:var(--blue)}.credit-plan form{margin:12px 0 0}.table-wrap{overflow-x:auto}@media(max-width:560px){.credit-summary{grid-template-columns:1fr 1fr}.credit-summary .compact-stat:first-child{grid-column:1/-1}.credit-balance-line a{width:100%;margin-left:0}.credit-plans{grid-template-columns:1fr}}
/* Navegación de retorno en autenticación */
.auth-back-row{max-width:680px;margin:18px auto -12px}.auth-back-row a{display:inline-flex;align-items:center;min-height:40px;color:var(--blue);font-weight:800;text-decoration:none}.auth-back-row a:hover{text-decoration:underline}@media(max-width:520px){.auth-back-row{margin:8px auto -8px}}
/* Base responsive defensiva v0.9 */
html,body{max-width:100%;overflow-x:hidden}
main,.container,.card,.hero,.dashboard-grid,.stats,.form,.section-heading,.assignment-actions{min-width:0}
img,video,canvas{max-width:100%;height:auto}
h1,h2,h3,p,a,span,strong,small,label,td,th{overflow-wrap:anywhere}
.form input,.form select,.form textarea{min-width:0;max-width:100%}
.bottom-menu{width:100%;max-width:100vw;overflow:hidden}
.bottom-menu a{min-width:0}
@media(max-width:520px){
  .container{padding:12px}
  .hero{padding:20px 16px;border-radius:20px;margin-bottom:14px}
  .hero h1{font-size:27px;line-height:1.12}
  .hero p{font-size:15px;line-height:1.4}
  .card{padding:14px;border-radius:18px}
  .dashboard-grid{grid-template-columns:minmax(0,1fr)}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .btn{max-width:100%;white-space:normal}
  .assignment-actions>form,.assignment-actions>form .btn{width:100%}
  .table th,.table td{padding:9px}
  .bottom-menu{padding-left:2px;padding-right:2px}
  .bottom-menu a{font-size:20px}
  .bottom-menu span{font-size:9px;line-height:1.15}
}
/* Registro técnico en dos pasos v0.9 */
.registration-continue{width:100%;margin-top:4px}.text-button{appearance:none;border:0;background:transparent;color:var(--blue);font:inherit;font-weight:800;padding:0;margin:0 0 12px;cursor:pointer;text-align:left}.text-button:hover{text-decoration:underline}#datosRegistro[hidden]{display:none}