@import url("./base.css");
@import url("./nav.css");
@import url("./components.css");
@import url("./home.css");
@import url("./public-modern.css");
@import url("./admin.css");
@import url("./account.css");
@import url("./services.css");
@import url("./about.css");
@import url("./gallery.css");
@import url("./quotes.css");

@import url("./home-redesign-v3.css");


/* =========================================================
   TRABAJOS — REDISEÑO FINAL V4
========================================================= */
#jobsSection{max-width:none}
#jobsSection .section-header{align-items:flex-end;margin-bottom:22px}
#jobsSection .jobs-history-actions{display:flex;gap:10px}
.jobs-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 20px}
.jobs-kpi{display:flex;align-items:center;gap:18px;min-height:100px;padding:18px 20px;box-sizing:border-box;border:1px solid rgba(48,190,139,.32);border-radius:15px;background:linear-gradient(145deg,rgba(11,45,35,.88),rgba(5,24,20,.94))}
.jobs-kpi-icon{display:grid;place-items:center;width:54px;height:54px;flex:0 0 54px;border-radius:13px;background:linear-gradient(145deg,rgba(255,190,0,.22),rgba(0,198,139,.18));color:#ffd44d;font-size:25px}
.jobs-kpi div{display:grid;gap:2px}.jobs-kpi strong{font-size:25px;line-height:1;color:#f5f7fb}.jobs-kpi b{font-size:14px;color:#f5f7fb}.jobs-kpi small{font-size:11px;color:#9db4ad}
#jobsSection .jobs-filters{display:grid;grid-template-columns:minmax(300px,2fr) minmax(180px,.8fr) minmax(170px,.8fr) minmax(170px,.8fr);gap:14px;padding:20px;margin-bottom:20px;border:1px solid rgba(48,190,139,.3);border-radius:15px;background:linear-gradient(145deg,rgba(8,42,32,.9),rgba(4,25,20,.94))}
#jobsSection .jobs-filter-group{display:flex;flex-direction:column;gap:7px}
#jobsSection .jobs-filter-group label{font-size:12px;font-weight:800;color:#f5f7fb}
#jobsSection .jobs-filter-group input,#jobsSection .jobs-filter-group select{width:100%;min-height:43px;box-sizing:border-box;padding:10px 13px;border:1px solid rgba(48,190,139,.38);border-radius:9px;background:#061711;color:#eefbf6}
#jobsSection .jobs-filter-actions{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding-top:2px}
.jobs-quick-label{margin-left:8px;color:#a8bbb5;font-size:12px}
.jobs-quick-filter{min-height:34px;padding:7px 16px;border:1px solid rgba(48,190,139,.38);border-radius:999px;background:rgba(5,27,21,.8);color:#d9ebe5;font-weight:750;cursor:pointer}
.jobs-quick-filter.active,.jobs-quick-filter:hover{border-color:#18d39b;background:#18d39b;color:#03120d}
#jobsSection .jobs-list{display:grid;gap:12px}
#jobsSection .job-card{display:grid;grid-template-columns:minmax(250px,1.15fr) minmax(180px,.8fr) minmax(220px,.85fr) auto;align-items:center;gap:22px;padding:18px 20px;border:1px solid rgba(48,190,139,.34);border-radius:14px;background:linear-gradient(100deg,rgba(5,40,30,.94),rgba(3,25,20,.97));box-shadow:0 10px 28px rgba(0,0,0,.14)}
#jobsSection .job-card-header{display:flex;align-items:flex-start;gap:10px;flex-direction:column}
#jobsSection .job-card-header>div{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
#jobsSection .job-card-header strong{font-size:14px;color:#f5f7fb}
#jobsSection .job-quote-number{order:-1;color:#18d39b;font-size:18px;font-weight:900}
#jobsSection .job-status{display:inline-flex;width:max-content;padding:5px 10px;border-radius:999px;font-size:10px;font-weight:850}
#jobsSection .job-card-body{display:contents}
#jobsSection .job-info{display:grid;gap:7px;color:#dcebe6;font-size:12px}
#jobsSection .job-description{margin:0;min-width:0}
#jobsSection .job-description strong{display:block;margin-bottom:6px;color:#f6fbf9;font-size:14px}
#jobsSection .job-description p{margin:0;color:#d8e7e2;font-size:12px}
#jobsSection .job-total{display:grid;gap:4px}
#jobsSection .job-total span{font-size:11px;color:#9db4ad}
#jobsSection .job-total strong{color:#f4faf7;font-size:15px}
#jobsSection .job-dates{display:grid;gap:4px;color:#d9e8e3;font-size:10px}
#jobsSection .job-card-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;padding-left:18px;border-left:1px solid rgba(48,190,139,.3)}
#jobsSection .job-card-actions .btn{min-height:36px;white-space:nowrap}
@media(max-width:1200px){.jobs-kpi-grid{grid-template-columns:repeat(2,1fr)}#jobsSection .jobs-filters{grid-template-columns:1fr 1fr}#jobsSection .job-card{grid-template-columns:1fr 1fr}.job-card-actions{grid-column:1/-1!important;border-left:0!important;padding-left:0!important;justify-content:flex-start!important}}
@media(max-width:700px){.jobs-kpi-grid,#jobsSection .jobs-filters,#jobsSection .job-card{grid-template-columns:1fr}.jobs-quick-label{width:100%;margin-left:0}#jobsSection .section-header{align-items:stretch}.jobs-history-actions{flex-wrap:wrap}.jobs-kpi{min-height:86px}}

/* Trabajos V4 — corrige columna Total dentro de cada tarjeta */
#jobsSection .job-card{
  grid-template-columns:minmax(230px,1.2fr) minmax(150px,.75fr) minmax(180px,.8fr) minmax(125px,.55fr) auto;
}
#jobsSection .job-total{
  min-width:0;
  padding:0 16px;
  border-left:1px solid rgba(48,190,139,.25);
}
#jobsSection .job-total span,
#jobsSection .job-total strong{
  display:block;
  white-space:nowrap;
}
#jobsSection .job-card-actions{
  min-width:125px;
}
@media(max-width:1200px){
  #jobsSection .job-card{grid-template-columns:1fr 1fr}
  #jobsSection .job-total{padding:0;border-left:0}
}
@media(max-width:700px){
  #jobsSection .job-card{grid-template-columns:1fr}
}

/* Trabajos V4.1 — estructura interna cerrada: nada puede escapar de la tarjeta */
#jobsSection .job-card{
  display:block;
  min-width:0;
  overflow:hidden;
}
#jobsSection .job-card-header{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
#jobsSection .job-card-header>div{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
#jobsSection .job-quote-number{
  max-width:100%;
  overflow-wrap:anywhere;
}
#jobsSection .job-card-body{
  display:grid;
  grid-template-columns:minmax(120px,.9fr) minmax(120px,.9fr) minmax(105px,.65fr);
  gap:16px;
  align-items:start;
  min-width:0;
}
#jobsSection .job-info,
#jobsSection .job-description,
#jobsSection .job-total,
#jobsSection .job-dates{
  min-width:0;
  overflow-wrap:anywhere;
}
#jobsSection .job-total{
  padding-left:14px;
  border-left:1px solid rgba(48,190,139,.28);
}
#jobsSection .job-total strong{
  white-space:normal;
  overflow-wrap:anywhere;
}
#jobsSection .job-dates{
  grid-column:1 / -1;
  display:flex;
  flex-wrap:wrap;
  gap:5px 12px;
  padding-top:12px;
  margin-top:2px;
  border-top:1px solid rgba(48,190,139,.18);
  font-size:10px;
}
#jobsSection .job-card-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:14px;
  padding:12px 0 0;
  border-left:0;
  border-top:1px solid rgba(48,190,139,.22);
  min-width:0;
}
@media(max-width:900px){
  #jobsSection .job-card-body{grid-template-columns:1fr 1fr}
  #jobsSection .job-total{padding-left:0;border-left:0}
}
@media(max-width:600px){
  #jobsSection .job-card-body{grid-template-columns:1fr}
  #jobsSection .job-dates{grid-column:auto;display:grid}
}
