/* ===================================================================
   CONCRETE BUILD — INGENIERÍA CIVIL PESADA & ESTRUCTURAS MASIVAS
   Dirección de arte: Brutalista, pesada, maciza, bloques duros, técnica
   Paleta: #DEDCD5 | #222222 | #EAB52D
   =================================================================== */

:root {
  --color-cement: #DEDCD5;
  --color-cement-dark: #C9C6BC;
  --color-rebar: #222222;
  --color-rebar-dark: #141414;
  --color-yellow: #EAB52D;
  --color-yellow-dark: #C89617;
  --color-border: #222222;

  --font-heavy: 'Archivo Black', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --max-width: 1400px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-cement);
  color: var(--color-rebar);
}

body {
  font-family: var(--font-mono);
  background-color: var(--color-cement);
  color: var(--color-rebar);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.yellow-text {
  color: var(--color-yellow);
}

.text-white {
  color: #FFFFFF;
}

/* --------------------------------------------------
   SAFETY SITE BAR
   -------------------------------------------------- */
.safety-site-bar {
  background-color: var(--color-yellow);
  color: var(--color-rebar);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.4rem 2rem;
  border-bottom: 2px solid var(--color-border);
}

.safety-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --------------------------------------------------
   HEADER
   -------------------------------------------------- */
.concrete-header {
  background-color: var(--color-cement);
  border-bottom: 3px solid var(--color-border);
  padding: 1.2rem 2.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-concrete {
  text-decoration: none;
  color: var(--color-rebar);
  display: flex;
  flex-direction: column;
}

.brand-heavy {
  font-family: var(--font-heavy);
  font-size: 2rem;
  line-height: 0.9;
  letter-spacing: 0.05em;
}

.brand-division {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #666;
  margin-top: 0.2rem;
}

.nav-concrete {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.c-link {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-rebar);
  text-decoration: none;
  transition: color 0.2s ease;
}

.c-link:hover {
  color: var(--color-yellow-dark);
}

.btn-yellow-solid {
  background-color: var(--color-yellow);
  color: var(--color-rebar);
  border: 2px solid var(--color-border);
  padding: 0.7rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--color-border);
  transition: all 0.2s ease;
}

.btn-yellow-solid:hover {
  background-color: var(--color-rebar);
  color: var(--color-yellow);
  box-shadow: 0 0 0 transparent;
  transform: translate(2px, 2px);
}

/* --------------------------------------------------
   HERO BRUTALISTA
   -------------------------------------------------- */
.hero-concrete {
  padding: 6rem 2.5rem;
  border-bottom: 3px solid var(--color-border);
  position: relative;
}

.hero-concrete-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4.5rem;
  align-items: center;
}

.site-ref-badge {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
}

.yellow-box {
  background: var(--color-yellow);
  border: 2px solid var(--color-border);
  padding: 0.3rem 0.7rem;
}

.spec-id {
  color: #666;
}

.hero-heavy-title {
  font-family: var(--font-heavy);
  font-size: clamp(3rem, 6.2vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.hero-body-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
  max-width: 580px;
  margin-bottom: 2.5rem;
}

.metrics-monolith-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 2px solid var(--color-border);
  padding-top: 2rem;
  margin-bottom: 2.5rem;
}

.m-card {
  display: flex;
  flex-direction: column;
}

.m-num {
  font-family: var(--font-heavy);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--color-rebar);
  margin-bottom: 0.3rem;
}

.m-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: #666;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.btn-concrete-dark {
  background-color: var(--color-rebar);
  color: var(--color-cement);
  border: 2px solid var(--color-border);
  padding: 1rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 6px 6px 0 var(--color-yellow);
  transition: all 0.2s ease;
}

.btn-concrete-dark:hover {
  background-color: var(--color-yellow);
  color: var(--color-rebar);
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 transparent;
}

.link-concrete-outline {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-rebar);
  text-decoration: none;
  border-bottom: 2px solid var(--color-rebar);
  padding-bottom: 2px;
}

/* Blueprint Panel Right */
.blueprint-card {
  border: 3px solid var(--color-border);
  background: var(--color-rebar);
  color: var(--color-cement);
  box-shadow: 14px 14px 0 var(--color-yellow);
}

.bp-header {
  padding: 0.8rem 1.2rem;
  border-bottom: 2px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  background: #1A1A1A;
}

.bp-status {
  color: var(--color-yellow);
  font-weight: 700;
}

.bp-visual {
  position: relative;
  height: 380px;
  overflow: hidden;
}

.bp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.2) grayscale(60%);
}

.grid-crosshairs span {
  position: absolute;
  color: var(--color-yellow);
  font-size: 1.2rem;
  font-weight: 700;
}

.ch-tl { top: 10px; left: 10px; }
.ch-tr { top: 10px; right: 10px; }
.ch-bl { bottom: 10px; left: 10px; }
.ch-br { bottom: 10px; right: 10px; }

.bp-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--color-border);
  background: #1A1A1A;
}

.bp-stat {
  padding: 0.8rem 1.2rem;
  border-right: 1px solid #333;
  display: flex;
  flex-direction: column;
}

.bp-stat:last-child {
  border-right: none;
}

.bp-k {
  font-size: 0.65rem;
  color: #888;
}

.bp-v {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-yellow);
}

/* --------------------------------------------------
   01 // TIMELINE INTERACTIVO
   -------------------------------------------------- */
.section-timeline {
  padding: 7rem 2.5rem;
  border-bottom: 3px solid var(--color-border);
}

.timeline-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.sec-title-bar {
  margin-bottom: 3.5rem;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 1.5rem;
}

.sec-id {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #666;
  display: block;
  margin-bottom: 0.4rem;
}

.sec-heading {
  font-family: var(--font-heavy);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1;
}

.sec-sub {
  font-size: 0.95rem;
  color: #555;
  margin-top: 0.5rem;
}

.timeline-nav-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 2px solid var(--color-border);
  background: var(--color-rebar);
  margin-bottom: 2rem;
}

.t-pill {
  background: transparent;
  border: none;
  border-right: 1px solid #444;
  color: var(--color-cement);
  padding: 1.4rem 1.2rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  font-family: var(--font-mono);
}

.t-pill:last-child {
  border-right: none;
}

.t-pill:hover {
  background: #2D2D2D;
}

.t-pill.active {
  background: var(--color-yellow);
  color: var(--color-rebar);
}

.t-pill-num {
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.t-pill-name {
  font-size: 0.82rem;
  font-weight: 700;
}

.phase-display-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  border: 3px solid var(--color-border);
  background: #FFFFFF;
}

.phase-visual-col {
  position: relative;
  min-height: 440px;
  background: var(--color-rebar);
}

.phase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.15);
  transition: opacity 0.3s ease;
}

.phase-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--color-rebar);
  color: var(--color-yellow);
  border: 2px solid var(--color-yellow);
  padding: 0.4rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.phase-data-col {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.p-sub-code {
  font-size: 0.72rem;
  font-weight: 700;
  color: #777;
  display: block;
  margin-bottom: 0.5rem;
}

.phase-title {
  font-family: var(--font-heavy);
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  line-height: 1.15;
}

.phase-desc {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.phase-specs-table {
  border: 1px solid var(--color-border);
  background: var(--color-cement);
}

.pst-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(34, 34, 34, 0.2);
  font-size: 0.78rem;
}

.pst-row:last-child {
  border-bottom: none;
}

.pst-k {
  font-weight: 700;
}

/* --------------------------------------------------
   02 // MEGAPROYECTOS
   -------------------------------------------------- */
.section-megaprojects {
  padding: 7rem 2.5rem;
  background-color: var(--color-rebar);
  color: var(--color-cement);
  border-bottom: 3px solid var(--color-border);
}

.megaprojects-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.dark-bar {
  border-color: #444;
}

.megaprojects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.mp-card {
  background: #1A1A1A;
  border: 2px solid #333;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--color-yellow);
}

.mp-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  margin-bottom: 1rem;
}

.mp-type {
  color: var(--color-yellow);
  font-weight: 700;
}

.mp-id {
  color: #777;
}

.mp-title {
  font-family: var(--font-heavy);
  font-size: 1.5rem;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.mp-desc {
  font-size: 0.88rem;
  color: #AAA;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.mp-footer {
  margin-top: auto;
  border-top: 1px solid #333;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
}

/* --------------------------------------------------
   03 // LICITACIÓN TÉCNICA
   -------------------------------------------------- */
.section-tender {
  padding: 7rem 2.5rem;
}

.tender-card {
  max-width: 820px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 3px solid var(--color-border);
  padding: 3.5rem;
  box-shadow: 12px 12px 0 var(--color-rebar);
}

.t-head {
  margin-bottom: 3rem;
}

.t-title {
  font-family: var(--font-heavy);
  font-size: 2.6rem;
  margin: 0.3rem 0 0.8rem;
}

.t-sub {
  font-size: 0.95rem;
  color: #555;
}

.t-form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.t-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.t-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.t-lbl {
  font-size: 0.75rem;
  font-weight: 700;
}

.t-input, .t-select {
  padding: 0.9rem 1.2rem;
  border: 2px solid var(--color-border);
  background: var(--color-cement);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  outline: none;
}

.t-input:focus, .t-select:focus {
  border-color: var(--color-yellow-dark);
  background: #FFFFFF;
}

.btn-full {
  width: 100%;
}

.t-success-box {
  margin-top: 1.5rem;
  background: rgba(234, 181, 45, 0.2);
  border: 2px solid var(--color-yellow);
  padding: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.t-success-box.hidden {
  display: none;
}

.t-check {
  font-size: 1.4rem;
  color: var(--color-rebar);
}

.t-success-box p {
  font-size: 0.88rem;
  font-weight: 700;
}

/* --------------------------------------------------
   FOOTER
   -------------------------------------------------- */
.concrete-footer {
  background-color: var(--color-rebar);
  color: var(--color-cement);
  padding: 5rem 2.5rem 2.5rem;
  border-top: 3px solid var(--color-border);
}

.footer-heavy-grid {
  max-width: var(--max-width);
  margin: 0 auto 3.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3.5rem;
}

.f-heavy-logo {
  font-family: var(--font-heavy);
  font-size: 1.4rem;
  color: #FFFFFF;
  display: block;
  margin-bottom: 0.8rem;
}

.f-heavy-p {
  font-size: 0.82rem;
  color: #AAA;
  line-height: 1.8;
}

.f-heavy-head {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-yellow);
  display: block;
  margin-bottom: 1rem;
}

.f-heavy-col p {
  font-size: 0.82rem;
  color: #CCC;
  line-height: 1.8;
}

.footer-bot-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid #333;
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #777;
}

/* --------------------------------------------------
   RESPONSIVE DESIGN (1440, 1024, 768, 430, 390, 320)
   -------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-concrete-layout {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .timeline-nav-pills {
    grid-template-columns: repeat(2, 1fr);
  }
  .phase-display-card {
    grid-template-columns: 1fr;
  }
  .megaprojects-grid {
    grid-template-columns: 1fr;
  }
  .footer-heavy-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .safety-site-bar {
    display: none;
  }
  .nav-concrete {
    display: none;
  }
  .timeline-nav-pills {
    grid-template-columns: 1fr;
  }
  .t-row {
    grid-template-columns: 1fr;
  }
  .tender-card {
    padding: 2.2rem 1.5rem;
  }
  .phase-data-col {
    padding: 1.8rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .footer-bot-bar {
    flex-direction: column;
    gap: 0.6rem;
  }
}

@media (max-width: 430px) {
  .hero-heavy-title {
    font-size: 2.6rem;
  }
  .metrics-monolith-row {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

/* Allow responsive grid/flex children and controls to shrink within the viewport. */
@media (max-width: 1024px) {
  * { min-width: 0; }
  h1, h2, h3 { overflow-wrap: anywhere; }
  select { max-width: 100%; }
}
