/*==========================================================
  PROYECTOS — Armá tu estación (González Surtidores)
==========================================================*/
.section-proy {
  background:
    radial-gradient(circle at 100% 0%, rgba(245,100,10,.10), transparent 40%),
    var(--gray-light, #F4F4F4);
  padding: 52px 16px 56px;
  scroll-margin-top: 60px;
}
.proy-head { padding: 0 8px; margin-bottom: 24px; }
.proy-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 46px; line-height: 1; margin-bottom: 12px; color: #111; }
.proy-head h2 span { color: #F5640A; }
.proy-head p { font-size: 15px; line-height: 1.6; color: #555; margin-bottom: 18px; }
.proy-quick { display: flex; flex-wrap: wrap; gap: 10px; }
.proy-quick-btn {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  background: #111; color: #fff; font-weight: 700; font-size: 14px;
  padding: 11px 18px; border-radius: 30px; transition: transform .15s, background .2s;
}
.proy-quick-btn:hover { background: #F5640A; transform: translateY(-1px); }
.proy-quick-btn.ghost { background: #fff; color: #111; box-shadow: inset 0 0 0 1.5px #111; }
.proy-quick-btn.ghost:hover { background: #111; color: #fff; }

.proy-layout { display: grid; gap: 16px; scroll-margin-top: 80px; }
.proy-card {
  background: #fff; border-radius: 22px; padding: 20px 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04);
}

/* Pasos */
.proy-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 22px; }
.proy-steps li {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 600; color: #999; text-align: center; cursor: pointer; position: relative;
}
.proy-steps li span {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #EFEFEF; color: #999; font-family: var(--font-display); font-size: 16px; transition: all .2s; position: relative; z-index: 1;
}
.proy-steps li::before { content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: #EFEFEF; }
.proy-steps li:first-child::before { display: none; }
.proy-steps li.done span { background: #111; color: #fff; }
.proy-steps li.done::before, .proy-steps li.cur::before { background: #111; }
.proy-steps li.cur span { background: #F5640A; color: #fff; box-shadow: 0 0 0 5px rgba(245,100,10,.18); }
.proy-steps li.cur { color: #111; }

.proy-step { animation: proyIn .3s ease; }
@keyframes proyIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.proy-step h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; color: #111; margin-bottom: 14px; letter-spacing: .3px; }
.proy-step h4 { font-size: 13px; font-weight: 700; color: #333; margin: 18px 0 10px; }

/* Opciones */
.proy-options { display: flex; flex-wrap: wrap; gap: 8px; }
.proy-options button {
  font: inherit; cursor: pointer; border: 1.5px solid #E4E4E4; background: #fff; color: #222;
  border-radius: 30px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; transition: all .15s;
}
.proy-options button:hover { border-color: #F5640A; }
.proy-options button.on { background: #111; border-color: #111; color: #fff; }
.proy-options.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.proy-options.cards button { border-radius: 16px; padding: 14px 12px; text-align: left; display: flex; flex-direction: column; gap: 4px; }
.proy-options.cards button b { font-size: 14px; }
.proy-options.cards button small { font-size: 11.5px; font-weight: 500; color: #888; line-height: 1.3; }
.proy-options.cards button.on { background: #FFF4EC; border-color: #F5640A; color: #111; box-shadow: 0 0 0 3px rgba(245,100,10,.15); }
.proy-options.cards button.on small { color: #9a5a2c; }

/* Tanques */
.proy-tanks { display: grid; gap: 10px; margin-top: 14px; }
.proy-tank {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  background: #FAFAFA; border: 1px solid #EEE; border-radius: 14px; padding: 10px 12px;
}
.proy-tank-n { width: 28px; height: 28px; border-radius: 8px; background: #111; color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 16px; }
.proy-tank-body { display: grid; gap: 8px; min-width: 0; }
.proy-tank select {
  font: inherit; font-size: 14px; font-weight: 600; color: #111; background: #fff;
  border: 1px solid #DDD; border-radius: 10px; padding: 8px 10px; width: 100%;
}
.proy-cap { display: flex; flex-wrap: wrap; gap: 6px; }
.proy-cap button { font: inherit; font-size: 12px; font-weight: 700; border: 1px solid #DDD; background: #fff; border-radius: 20px; padding: 5px 10px; cursor: pointer; }
.proy-cap button.on { background: #F5640A; border-color: #F5640A; color: #fff; }
.proy-tank-del { border: 0; background: none; color: #aaa; font-size: 18px; cursor: pointer; padding: 4px; }
.proy-tank-del:hover { color: #D62828; }
.proy-row-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0 6px; }
.proy-add { font: inherit; font-weight: 700; font-size: 14px; color: #F5640A; background: #FFF4EC; border: 1.5px dashed #F5640A; border-radius: 12px; padding: 10px 16px; cursor: pointer; }
.proy-link { font: inherit; font-size: 13px; color: #555; background: none; border: 0; text-decoration: underline; cursor: pointer; }
.proy-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #444; margin-top: 8px; cursor: pointer; }
.proy-check input { width: 18px; height: 18px; accent-color: #F5640A; }

/* Contadores */
.proy-counters { display: grid; gap: 10px; }
.proy-counter { display: flex; align-items: center; justify-content: space-between; background: #FAFAFA; border: 1px solid #EEE; border-radius: 14px; padding: 10px 12px; }
.proy-counter > span { font-size: 14px; font-weight: 700; color: #222; }
.proy-counter > div { display: flex; align-items: center; gap: 4px; }
.proy-counter button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid #DDD; background: #fff; font-size: 18px; font-weight: 700; cursor: pointer; color: #111; }
.proy-counter button:hover { border-color: #F5640A; color: #F5640A; }
.proy-counter output { min-width: 40px; text-align: center; font-family: var(--font-display); font-size: 26px; color: #111; }

/* Toggles */
.proy-toggles { display: grid; gap: 8px; }
.proy-toggle { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: #222; cursor: pointer; padding: 6px 0; }
.proy-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.proy-toggle span { width: 44px; height: 26px; border-radius: 20px; background: #DDD; position: relative; flex: none; transition: background .2s; }
.proy-toggle span::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: transform .2s; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.proy-toggle input:checked + span { background: #F5640A; }
.proy-toggle input:checked + span::after { transform: translateX(18px); }
.proy-toggle input:focus-visible + span { box-shadow: 0 0 0 3px rgba(245,100,10,.3); }

/* Grupos de trabajos */
.proy-groups { display: grid; gap: 10px; margin-top: 14px; }
.proy-group { border: 1px solid #EEE; border-radius: 14px; overflow: hidden; background: #FAFAFA; }
.proy-group > button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font: inherit; font-size: 14px; font-weight: 700; color: #111; background: none; border: 0; padding: 12px 14px; cursor: pointer; text-align: left;
}
.proy-group > button em { font-style: normal; font-size: 12px; font-weight: 700; color: #F5640A; background: #FFF4EC; border-radius: 20px; padding: 3px 9px; white-space: nowrap; }
.proy-group > button::after { content: '▾'; color: #999; transition: transform .2s; }
.proy-group.open > button::after { transform: rotate(180deg); }
.proy-group ul { list-style: none; display: none; padding: 0 14px 12px; gap: 6px; }
.proy-group.open ul { display: grid; }
.proy-group li label { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #333; line-height: 1.4; cursor: pointer; padding: 4px 0; }
.proy-group li input { width: 18px; height: 18px; margin-top: 1px; accent-color: #F5640A; flex: none; }
.proy-group.extra { background: #FFF8F3; border-color: #FBD9C2; }
.proy-group .all { font: inherit; font-size: 12px; color: #F5640A; background: none; border: 0; text-decoration: underline; cursor: pointer; justify-self: start; padding: 2px 0 6px; }

/* Datos */
.proy-grid { display: grid; gap: 12px; }
.proy-field { display: block; margin-bottom: 12px; }
.proy-grid .proy-field { margin-bottom: 0; }
.proy-field > span { display: block; font-size: 12.5px; font-weight: 700; color: #444; margin-bottom: 6px; }
.proy-field em { font-style: normal; font-weight: 500; color: #999; }
.proy-card input:not([type=checkbox]):not([type=file]), .proy-card textarea {
  width: 100%; font: inherit; font-size: 16px; color: #111; background: #FAFAFA;
  border: 1px solid #E2E2E2; border-radius: 12px; padding: 11px 13px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.proy-card textarea { resize: vertical; }
.proy-card input:focus, .proy-card textarea:focus { border-color: #F5640A; box-shadow: 0 0 0 3px rgba(245,100,10,.18); background: #fff; }
.proy-card .is-invalid { border-color: #D62828 !important; }
.proy-reunion { display: grid; gap: 12px; margin-top: 12px; padding: 14px; background: #FFF8F3; border-radius: 14px; }
.proy-reunion .proy-field { margin: 0; }
.proy-file { display: flex; align-items: center; position: relative; border: 1.5px dashed #D5D5D5; border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; color: #444; cursor: pointer; }
.proy-file:hover { border-color: #F5640A; }
.proy-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.proy-error { background: #FDECEC; border: 1px solid #F5B5B5; color: #A61B1B; font-size: 13px; padding: 10px 12px; border-radius: 10px; margin-top: 12px; }
.proy-error a { color: #A61B1B; font-weight: 700; }

.proy-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 20px; }
.proy-back { font: inherit; font-size: 14px; font-weight: 700; color: #555; background: none; border: 0; cursor: pointer; padding: 10px 4px; }
.proy-next { margin-left: auto; border: 0; cursor: pointer; }
.proy-next:disabled { opacity: .6; cursor: wait; }

/* Resumen */
.proy-summary {
  background: #111; color: #fff; border-radius: 22px; padding: 20px 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}
.proy-sum-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.proy-sum-head span { font-family: var(--font-display); font-size: 24px; letter-spacing: .5px; }
.proy-sum-head b { font-size: 12px; color: #F5640A; text-align: right; }
.proy-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.proy-kpis div { background: #1C1C1C; border-radius: 12px; padding: 10px 6px; text-align: center; }
.proy-kpis b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 26px; color: #F5640A; line-height: 1; }
.proy-kpis small { font-size: 10.5px; color: #999; }
.proy-sum-list { list-style: none; display: grid; gap: 7px; font-size: 13px; color: #ccc; line-height: 1.4; }
.proy-sum-list li { display: flex; gap: 8px; }
.proy-sum-list li b { color: #fff; font-weight: 600; min-width: 92px; flex: none; }
.proy-sum-note { margin-top: 14px; font-size: 11.5px; color: #777; }

/* Final */
.proy-done { text-align: center; padding: 34px 20px; }
.proy-done .urg-check { margin: 0 auto 14px; color: #fff; }
.proy-done h3 { font-family: var(--font-display); font-weight: 400; font-size: 32px; margin-bottom: 8px; }
.proy-done p { color: #555; font-size: 14.5px; line-height: 1.6; margin-bottom: 18px; }
.proy-done-actions { display: grid; gap: 10px; max-width: 420px; margin: 0 auto; }
.proy-done-actions .btn-primary { text-decoration: none; text-align: center; }
.proy-print { justify-content: center; color: #111 !important; border-color: #111 !important; }
.proy-done .urg-again { color: #777; }

@media screen and (min-width: 768px) {
  .section-proy { padding: 90px 60px; }
  .proy-inner { max-width: 1200px; margin: 0 auto; }
  .proy-head { padding: 0; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px 40px; margin-bottom: 34px; }
  .proy-head .tag { grid-column: 1 / -1; justify-self: start; }
  .proy-head h2 { font-size: 64px; margin: 0; }
  .proy-head p { grid-column: 1; margin: 0; max-width: 560px; font-size: 16px; }
  .proy-quick { grid-column: 2; grid-row: 2 / span 2; align-self: end; }
  .proy-layout { grid-template-columns: 1.35fr 0.85fr; gap: 24px; align-items: start; }
  .proy-card { padding: 30px 30px 26px; }
  .proy-summary { position: sticky; top: 100px; padding: 24px 22px; }
  .proy-steps li { font-size: 12px; }
  .proy-options.cards { grid-template-columns: repeat(4, 1fr); }
  .proy-options.cards.small { grid-template-columns: repeat(4, 1fr); }
  .proy-counters { grid-template-columns: repeat(3, 1fr); }
  .proy-counter { flex-direction: column; gap: 8px; }
  .proy-tank { grid-template-columns: auto 1fr auto; }
  .proy-tank-body { grid-template-columns: 200px 1fr; align-items: center; }
  .proy-toggles { grid-template-columns: 1fr 1fr; }
  .proy-grid { grid-template-columns: 1fr 1fr; }
  .proy-reunion { grid-template-columns: 1fr 1fr; align-items: end; }
  .proy-done { grid-column: 1 / -1; }
  .proy-done-actions { grid-template-columns: 1fr 1fr; max-width: 560px; }
}

/* Impresión del resumen */
@media print {
  body > *:not(#proy-print-area) { display: none !important; }
  #proy-print-area { display: block !important; }
}
#proy-print-area { display: none; font-family: Arial, sans-serif; color: #111; padding: 20px; }
#proy-print-area h1 { font-size: 22px; margin-bottom: 4px; }
#proy-print-area h1 span { color: #F5640A; }
#proy-print-area h2 { font-size: 15px; margin: 16px 0 6px; border-bottom: 2px solid #F5640A; padding-bottom: 4px; }
#proy-print-area table { width: 100%; border-collapse: collapse; font-size: 13px; }
#proy-print-area td { padding: 4px 6px; vertical-align: top; border-bottom: 1px solid #eee; }
#proy-print-area td:first-child { color: #666; width: 34%; }
#proy-print-area ul { margin: 0; padding-left: 18px; font-size: 13px; }

@media screen and (max-width: 767px) { .proy-summary.mob-hide { display: none; } }
