/* Capital C — base de estilos para el wireframe
   El navbar se omite intencionalmente. */
:root {
  --teal: #073f40;
  --teal-dark: #062f32;
  --gold: #c99a4b;
  --ink: #183a42;
  --muted: #71838a;
  --line: #dce2e2;
  --surface: #ffffff;
  --soft: #f2f4f3;
  --placeholder: #dce2e3;
  --radius: 5px;
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7f8f6;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.project-page {
  width: 100%;
  overflow: hidden;
}

.section {
  padding: 64px max(24px, calc((100% - var(--content-width)) / 2));
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 500;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 34px);
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.body-copy,
.section-description {
  color: var(--muted);
}

.section-description {
  margin-bottom: 0;
  font-size: 13px;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  min-height: 440px;
  color: white;
  background: var(--teal-dark);
  isolation: isolate;
}

/*--------header----------*/

header {
  top: 0;
  width: 100%;
  height: 10vh;
  display: flex;
  position: fixed;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  scroll-behavior: smooth;
  scroll-snap-stop: always;
  z-index: 3;
  letter-spacing: 0.5em;
  background: rgb(3, 38, 40);
}

#bardiv {
  width: 95%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  color: #FAFAFA;
}

#menubars {
  display: block;
  background-image: url('../img/capital/menu_icon.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  width: 6vh;
  height: 60%;
  cursor: pointer;

}

#h1div {
  width: 80%;
  height: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 2vw;
}

#h1div a {
  text-decoration: none;
  cursor: pointer;
  position: relative;
  width: 100%;
  height: 80%;

}

#h1text {
  display: block;
  width: 100%;
  height: cover;
  background-image: url('../img/capital/CapitalC_logo_white.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: 10% 50%;
  padding: 2.5vh 0;
  text-indent: -9999px;
  margin-top: 1vh;
}


header h1 {
  font-size: 2em;
  font-weight: 900;

}

.contactoHeader {
  width: 30%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

#contacto a {
  text-decoration: none;
  color: #F2F3F5;
  cursor: pointer;
  position: relative;
}

#contacto a::after {
  content: ' ';
  position: absolute;
  height: 1px;
  left: 0;
  bottom: 0;
  background-color: #A47E3B;
  width: 0%;
  transition: width .2s;
}

#contacto a:hover:after {
  width: 100%;
}

@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  .contactoHeader {
    display: none;
  }

  h1 {
    background-size: 30%;
    background-position: 40% 50%;
  }

}

@media only screen and (min-device-width : 481px) and (max-device-width : 1023px) {
  .contactoHeader {
    display: none;
  }

  h1 {
    background-size: 30%;
    background-position: 40% 50%;
  }

}

/* Fondo temporal: sustituir por una imagen real cuando esté disponible. */
.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(3, 34, 36, .96), rgba(3, 34, 36, .66));
}

.hero__overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: url('../img/renderCapitaCenter.JPG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-position-y: 80%;
  background-color: rgba(3, 34, 36, .98);
  background-blend-mode: lighten;
}

.hero__content {
  max-width: 600px;
  padding-top: 5%;
}

.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: .025em;
}

.hero__intro {
  max-width: 470px;
  color: #e5ece9;
  font-size: 17px;
}

.hero__location {
  margin: 28px 0 0;
  color: #e5ece9;
  font-size: 13px;
}

.hero__status {
  width: 270px;
  flex-shrink: 0;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 8px;
  background: rgba(3, 38, 40, .8);
}

.status-pill {
  display: inline-block;
  margin-bottom: 24px;
  padding: 4px 12px;
  border: 1px solid var(--gold);
  border-radius: 50px;
  color: #f1c77d;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.meta-label {
  margin-bottom: 4px;
  color: #c7d4d1;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero__date {
  margin-bottom: 16px;
  font-size: 13px;
}

.hero__percent {
  margin-bottom: 0;
  color: var(--gold);
  font-size: 42px;
  line-height: 1.15;
}

.progress {
  height: 6px;
  overflow: hidden;
  border-radius: 20px;
  background: #e4e8e8;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.hero .progress {
  margin-top: 12px;
  background: rgba(255, 255, 255, .22);
}

.hero .progress span {
  background: var(--gold);
}

.project-summary {
  background: var(--surface);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}

.section-number {
  min-width: 32px;
  color: var(--gold);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.1;
}

.section-heading .eyebrow {
  color: var(--teal);
}

.summary-content {
  padding-left: 52px;
}

.summary-content>.body-copy {
  max-width: 760px;
}

.project-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}

.project-facts div {
  flex: 1 1 180px;
  padding: 18px 20px 0 0;
}

.project-facts dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.project-facts dd {
  margin: 0;
  font-size: 14px;
}

.construction-updates {
  background: var(--soft);
}

.media-placeholder {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  border: 1px solid #cbd3d4;
  border-radius: var(--radius);
  color: #73878d;
  background: var(--placeholder);
  text-align: center;
}

.media-placeholder span {
  font-size: 14px;
  font-weight: 600;
}

.media-placeholder small {
  font-size: 11px;
}

.placeholder-icon {
  font-size: 38px;
  line-height: 1;
}

.media-placeholder--featured {
  min-height: 350px;
}

.media-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: white;
  background: rgba(4, 48, 50, .94);
  font-size: 11px;
  text-align: left;
}

.video-block {
  margin-top: 42px;
}

.section-heading--compact {
  margin-bottom: 18px;
}

.section-heading--compact .section-number {
  color: var(--teal);
}

.media-placeholder--video {
  min-height: 390px;
  background: #e2e6e6;
}

.play-button {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  padding-left: 4px;
  border-radius: 50%;
  color: white;
  background: var(--teal);
}

.timelapse-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.timelapse-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid white;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  transition: opacity .2s ease;
  background-color: rgb(255, 255, 255, 0.15);
}

.button:hover {
  opacity: .85;
}

.button--outline {
  border-color: var(--line);
  background: white;
}

.gallery-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 42px 0 18px;
}

.gallery-heading h3 {
  margin-bottom: 5px;
}

.text-link {
  color: var(--teal);
  font-size: 12px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card p {
  margin: 8px 0 0;
  font-size: 12px;
}

.gallery-card small {
  color: var(--muted);
  font-size: 11px;
}

.media-placeholder--thumb {
  min-height: 150px;
  font-size: 28px;
}

.stages {
  background: white;
}

.stage-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.stage-row {
  display: grid;
  grid-template-columns: 36px minmax(180px, 1fr) minmax(150px, .9fr) 22px;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.stage-row:last-child {
  border-bottom: 0;
}

.stage-number {
  color: var(--muted);
  font-size: 12px;
}

.stage-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.stage-info h3 {
  margin: 0;
  font-size: 14px;
}

.stage-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 30px;
  color: #596a70;
  background: #e8ecec;
  font-size: 10px;
  white-space: nowrap;
}

.stage-status--done {
  color: #245d53;
  background: #d4e9e2;
}

.stage-status--active {
  color: #795621;
  background: #f3e2c5;
}

.stage-progress {
  display: grid;
  grid-template-columns: 1fr 38px;
  align-items: center;
  gap: 12px;
}

.stage-progress small {
  color: var(--muted);
  font-size: 11px;
}

.stage-arrow {
  text-align: right;
}

.note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.documents {
  background: var(--soft);
}

.document-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.filter-button {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  background: white;
  cursor: pointer;
  font-size: 12px;
}

.filter-button--active {
  color: white;
  border-color: var(--teal);
  background: var(--teal);
}

.document-list {
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.document-row {
  display: grid;
  grid-template-columns: 42px 1fr 28px;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.document-row:last-child {
  border-bottom: 0;
}

.document-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--teal);
  background: #edf0ef;
  font-size: 10px;
  font-weight: 700;
}

.document-row h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.document-row p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.document-row>a {
  color: var(--teal);
  font-size: 22px;
  text-align: center;
}

.contact-cta {
  color: white;
  background: var(--teal-dark);
}

.contact-cta h2 {
  max-width: 680px;
}

.contact-cta>p:not(.eyebrow) {
  color: #d4e0dc;
}

.button--gold {
  margin-top: 12px;
  color: #172f30;
  background: var(--gold);
}

.contact-cta small {
  display: block;
  margin-top: 12px;
  color: #c4d2ce;
  font-size: 11px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px max(24px, calc((100% - var(--content-width)) / 2));
  color: #d7e1de;
  background: #04282a;
  font-size: 11px;
}

/* Responsive */
@media (max-width: 760px) {
  .section {
    padding: 44px 22px;
  }

  .hero {
    align-items: stretch;
    flex-direction: column;
    gap: 30px;
    min-height: auto;
  }

  .hero__status {
    width: 100%;
    max-width: 420px;
  }

  .hero h1 {
    font-size: clamp(36px, 10vw, 52px);
  }

  .section-heading {
    gap: 12px;
  }

  .summary-content {
    padding-left: 0;
  }

  .project-facts {
    flex-direction: column;
  }

  .project-facts div {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .media-placeholder--featured {
    min-height: 250px;
  }

  .media-placeholder--video {
    min-height: 230px;
  }

  .media-caption {
    flex-direction: column;
    gap: 2px;
  }

  .timelapse-block {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .media-placeholder--thumb {
    min-height: 110px;
  }

  .stage-row {
    grid-template-columns: 26px 1fr 20px;
    gap: 12px;
    padding: 16px 12px;
  }

  .stage-info {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .stage-progress {
    grid-column: 2 / 3;
    grid-row: 2;
  }

  .stage-arrow {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .document-list {
    padding: 0 12px;
  }

  .document-row {
    grid-template-columns: 36px 1fr 22px;
    gap: 10px;
  }

  .document-icon {
    width: 32px;
    height: 32px;
  }
}