:root {
  --black: #201E1E;
  --white: #FAFAFA;
  --gray-1: #F0F0F0;
  --gray-2: #DDDDDD;
  --gray-3: #999999;
  --gray-4: #555555;
  --plate: #2a2828;
  --whatsapp: #25D366;
  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Space Mono', 'SFMono-Regular', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }
img, video { max-width: 100%; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 80px; }
.section { padding: 100px 80px; }
.section--tight { padding: 0 80px 100px; }

@media (max-width: 860px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 24px; }
  .section--tight { padding: 0 24px 56px; }
}

/* Tipografia */
h1, .h1 { font-weight: 800; letter-spacing: -.04em; line-height: 1; font-size: clamp(2.8rem, 5vw, 5.5rem); }
@media (max-width: 860px) { h1, .h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); } }
h2, .h2 { font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-size: clamp(1.8rem, 3vw, 3.2rem); }
h3, .h3 { font-weight: 700; letter-spacing: -.02em; line-height: 1.2; font-size: clamp(1.2rem, 2vw, 1.8rem); }
.eyebrow { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1rem; }
.body-lg { font-size: 1.05rem; line-height: 1.8; }
.body-md { font-size: .95rem; line-height: 1.75; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 14px 36px; transition: all .2s; cursor: pointer;
}
.btn--white { background: var(--white); color: var(--black); }
.btn--white:hover { background: #F0F0F0; }
.btn--black { background: var(--black); color: var(--white); }
.btn--black:hover { background: #333; }
.btn--outline-white { border: 1px solid var(--white); color: var(--white); }
.btn--outline-white:hover { background: #FAFAFA; color: #201E1E; }

/* Grids con separador 1px */
.grid-sep { display: grid; gap: 1px; }
.grid-sep--dark { background: rgba(255,255,255,.08); }
.grid-sep--light { background: var(--gray-2); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--black); border-bottom: 1px solid rgba(255,255,255,.08); height: 68px; display: flex; align-items: center; }
.site-header__bar { max-width: 1280px; width: 100%; margin: 0 auto; padding: 0 80px; display: flex; align-items: center; justify-content: space-between; }
@media (max-width: 860px) { .site-header__bar { padding: 0 20px; } }
.site-header__logo { display: flex; align-items: flex-end; gap: 10px; cursor: pointer; }
.site-header__logo img { height: 27px; width: auto; }
.site-header__logo span { font-size: 11px; font-weight: 300; letter-spacing: .12em; text-transform: uppercase; color: var(--white); opacity: .5; padding-bottom: 1px; }
.site-nav { display: flex; align-items: center; gap: 40px; }
.site-nav a.link { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.55); transition: color .2s; cursor: pointer; }
.site-nav a.link:hover, .site-nav a.link.active { color: #FAFAFA; }
.site-nav a.cta { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--white); border: 1px solid rgba(255,255,255,.25); padding: 8px 20px; transition: all .2s; cursor: pointer; }
.site-nav a.cta:hover { background: #FAFAFA; color: #201E1E; }
@media (max-width: 860px) { .site-nav { display: none; } }
.menu-btn { display: none; flex-direction: column; justify-content: center; gap: 5px; padding: 8px; width: 38px; height: 38px; }
.menu-btn span { width: 100%; height: 2px; background: var(--white); display: block; }
@media (max-width: 860px) { .menu-btn { display: flex; } }
.mobile-menu { display: none; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; bottom: 0; background: var(--black); z-index: 99; padding: 24px 20px; gap: 2px; overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1rem; font-weight: 600; color: var(--white); padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,.08); cursor: pointer; }
.mobile-menu a.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 16px 20px; background: var(--white); color: var(--black); margin-top: 20px; border-bottom: none; }

/* Hero (home) */
.hero { position: relative; height: calc(100vh - 68px); min-height: 580px; background: var(--black); display: flex; align-items: flex-end; overflow: hidden; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(32,30,30,.94) 0%, rgba(32,30,30,.55) 45%, rgba(32,30,30,.35) 100%); }
.hero__content { position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 80px 80px; }
@media (max-width: 860px) { .hero__content { padding: 0 20px 40px; } }
.hero__content .eyebrow { color: rgba(255,255,255,.4); margin-bottom: 1.5rem; }
.hero__content h1 { color: var(--white); margin-bottom: 1.5rem; max-width: 800px; }
.hero__content p { font-size: 1rem; color: rgba(255,255,255,.55); max-width: 480px; margin-bottom: 2.5rem; line-height: 1.65; }
.hero__actions { display: flex; gap: 12px; }
@media (max-width: 860px) { .hero__actions { flex-direction: column; align-items: stretch; } }

/* Header de pagina interior (sin video) */
.page-hero { background: var(--black); padding: 100px 80px; }
@media (max-width: 860px) { .page-hero { padding: 56px 24px; } }
.page-hero h1 { color: var(--white); }

/* Cards de proyecto (destacados home) */
.pcard { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--black); cursor: pointer; display: block; }
.pcard img, .pcard video { width: 100%; height: 100%; object-fit: cover; filter: brightness(.78); transition: transform .6s ease, filter .6s ease; }
.pcard:hover img, .pcard:hover video { transform: scale(1.04); filter: brightness(.95); }
.pcard__plate { width: 100%; height: 100%; background: var(--plate); display: flex; align-items: center; justify-content: center; }
.pcard__plate span { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.25); }
.pcard__area { position: absolute; top: 1rem; left: 1rem; font-size: 9px; letter-spacing: 1px; color: rgba(255,255,255,.65); background: rgba(32,30,30,.5); padding: 4px 8px; }
.pcard__badge { position: absolute; top: 1rem; right: 1rem; font-size: 9px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.7); background: rgba(32,30,30,.55); padding: 4px 8px; }
.pcard__info { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.75rem; background: linear-gradient(to top, rgba(32,30,30,.92) 0%, transparent 100%); }
.pcard__cat { font-size: 9px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.45); display: block; margin-bottom: 6px; }
.pcard__name { font-size: 1.15rem; font-weight: 700; color: var(--white); line-height: 1.2; display: block; margin-bottom: 4px; }
.pcard__sub { font-size: .78rem; color: rgba(255,255,255,.5); }

/* Cards de proyecto (listado /proyectos) */
.gcard { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--black); cursor: pointer; display: block; }
.gcard img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82); transition: transform .5s, filter .5s; }
.gcard:hover img { transform: scale(1.03); filter: brightness(1); }
.gcard__plate { width: 100%; height: 100%; background: var(--plate); display: flex; align-items: center; justify-content: center; }
.gcard__plate span { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.25); }
.gcard__area { position: absolute; top: 1rem; left: 1rem; font-size: 9px; letter-spacing: 1px; color: rgba(255,255,255,.65); background: rgba(32,30,30,.5); padding: 4px 8px; }
.gcard__badge { position: absolute; top: 1rem; right: 1rem; font-size: 9px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.7); background: rgba(32,30,30,.6); padding: 4px 8px; }
.gcard__info { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; background: linear-gradient(to top, rgba(32,30,30,.9) 0%, transparent 100%); }
.gcard__cat { font-size: 9px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,.45); display: block; margin-bottom: 5px; }
.gcard__name { font-size: 1rem; font-weight: 700; color: var(--white); display: block; margin-bottom: 3px; }
.gcard__loc { font-size: .75rem; color: rgba(255,255,255,.5); }
.gcard[hidden] { display: none; }

/* Metricas */
.metrics { border-left: 1px solid rgba(255,255,255,.08); border-top: 1px solid rgba(255,255,255,.08); }
.metrics > div { padding: 3.5rem 2.5rem; border-right: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.metrics__n { font-size: clamp(2.2rem, 3.5vw, 3.8rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--white); margin-bottom: .4rem; display: block; }
.metrics__l { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.35); }

/* Servicios (home) */
.svc-card { padding: 3rem; background: var(--white); color: var(--black); transition: background .3s, color .3s; }
.svc-card:hover { background: #201E1E; color: #FAFAFA; }
.svc-card__num { font-size: 11px; font-weight: 600; letter-spacing: 3px; color: inherit; opacity: .45; display: block; margin-bottom: 1.75rem; }
.svc-card h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.25; color: inherit; margin-bottom: .75rem; }
.svc-card p { font-size: .82rem; line-height: 1.7; color: inherit; opacity: .72; }

/* Servicios (pagina completa) */
.svc-full { background: var(--white); padding: 3.5rem; }
.svc-full__num { font-size: 11px; font-weight: 600; letter-spacing: 3px; color: var(--gray-3); display: block; margin-bottom: 2rem; }
.svc-full h2 { margin-bottom: 1.25rem; }
.svc-full p { color: var(--gray-4); }
.svc-full__tags { border-top: 1px solid var(--gray-2); padding-top: 1.5rem; margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 6px; }
.svc-full__tags span { display: inline-block; font-size: 11px; color: var(--gray-3); border: 1px solid var(--gray-2); padding: 4px 11px; }

.vertical { background: var(--plate); padding: 2.5rem; }
.vertical__title { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: .75rem; line-height: 1.3; white-space: pre-line; }
.vertical__desc { font-size: .8rem; color: rgba(255,255,255,.45); line-height: 1.6; }

/* Bio / mision-vision (2 columnas con separador) */
.split { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split__left { padding: 80px 60px 80px 80px; border-right: 1px solid var(--gray-2); }
.split__right { padding: 80px 80px 80px 60px; }
@media (max-width: 860px) {
  .split__left, .split__right { padding: 40px 20px; border-right: none; }
}
.split__left p { color: var(--gray-4); }

/* Socios */
.partner { background: var(--plate); padding: 3rem; display: flex; gap: 2rem; align-items: flex-start; }
.partner img { width: 110px; height: 110px; object-fit: cover; flex: none; filter: grayscale(1); }
.partner__role { font-size: 9px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.3); display: block; margin-bottom: 1rem; }
.partner__name { font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: .2rem; }
.partner__title { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 1.5rem; display: block; }
.partner p { font-size: .83rem; color: rgba(255,255,255,.55); line-height: 1.6; margin-bottom: .85rem; }

/* Estandares BIM */
.standard { background: var(--plate); padding: 1.75rem; }
.standard__code { font-size: .82rem; font-weight: 700; color: var(--white); display: block; margin-bottom: .35rem; }
.standard__desc { font-size: .73rem; color: rgba(255,255,255,.4); line-height: 1.45; }

/* Filtros /proyectos */
.filters { display: flex; flex-wrap: wrap; border: 1px solid var(--gray-2); width: fit-content; }
.filters button { font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding: 10px 20px; border-right: 1px solid var(--gray-2); transition: all .2s; cursor: pointer; background: transparent; color: var(--gray-3); }
.filters button:last-child { border-right: none; }
.filters button.active { background: var(--black); color: var(--white); }

/* Ficha de proyecto */
.project-head { background: var(--black); padding: 36px 80px 44px; }
@media (max-width: 860px) { .project-head { padding: 28px 20px 32px; } }
.project-head__back { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 2.5rem; cursor: pointer; transition: color .2s; }
.project-head__back:hover { color: #FAFAFA; }
.project-head__row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; }
.project-head__cat { display: block; font-size: 10px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 1rem; }
.project-head h1 { font-size: clamp(2.4rem, 4.2vw, 4.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--white); max-width: 900px; }
.project-head__badge { font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.25); padding: 6px 12px; }

.project-hero { display: block; width: 100%; height: min(72vh, 760px); object-fit: cover; background: var(--plate); }
.project-hero-plate { width: 100%; height: min(72vh, 760px); background: var(--plate); display: flex; align-items: center; justify-content: center; }
.project-hero-plate span { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.25); }

.spec-grid { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 0; align-items: start; }
@media (max-width: 860px) { .spec-grid { grid-template-columns: 1fr; } }
.spec-grid__left { padding: 0 70px 0 0; }
.spec-grid__divider { background: var(--gray-2); width: 1px; height: 100%; }
.spec-grid__right { padding: 0 0 0 70px; }
@media (max-width: 860px) {
  .spec-grid__left { padding: 0 0 2rem; }
  .spec-grid__divider { width: 100%; height: 1px; }
  .spec-grid__right { padding: 2rem 0 0; }
}
.spec-grid__left .rule { width: 40px; height: 2px; background: var(--black); margin-bottom: 2rem; }
.spec-grid__left p { color: var(--gray-4); }
.spec-grid__alcance { margin-top: 2.5rem; border-top: 1px solid var(--gray-2); padding-top: 1.5rem; }
.spec-grid__alcance span { display: block; font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gray-3); margin-bottom: .6rem; }
.spec-grid__alcance p { font-size: .95rem; line-height: 1.6; color: var(--black); }

.spec-table { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid var(--gray-2); border-top: 1px solid var(--gray-2); }
@media (max-width: 860px) { .spec-table { grid-template-columns: 1fr; } }
.spec-table > div { border-right: 1px solid var(--gray-2); border-bottom: 1px solid var(--gray-2); padding: 1.4rem 1.5rem; }
.spec-table__k { display: block; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray-3); margin-bottom: .5rem; }
.spec-table__v { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; color: var(--black); }

.section-label { padding: 70px 0 2rem; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); gap: 2px; background: var(--gray-2); }
@media (max-width: 860px) { .video-grid { grid-template-columns: 1fr; } }
.video-grid > div { background: var(--black); aspect-ratio: 16/9; }
.video-grid video { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--gray-2); }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-grid > div { background: var(--black); overflow: hidden; aspect-ratio: 4/3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-grid > div:hover img { transform: scale(1.03); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { background: var(--black); padding: 5rem 4rem; }
.contact-form-wrap { background: var(--white); padding: 5rem 4rem; }
@media (max-width: 860px) {
  .contact-info, .contact-form-wrap { padding: 2.5rem 20px; }
}
.contact-info__label { font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,.3); display: block; margin-bottom: 3rem; }
.contact-info__block { margin-bottom: 2.5rem; }
.contact-info__block span.k { font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.3); display: block; margin-bottom: .5rem; }
.contact-info__block .v { font-size: 1rem; color: var(--white); }
.contact-info__block .v a { color: var(--white); transition: opacity .2s; }
.contact-info__block .v a:hover { opacity: .6; }
.contact-info__hours { font-size: .9rem; color: rgba(255,255,255,.6); }
.contact-info__social { display: flex; gap: 1.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.08); }
.contact-info__social a { font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.4); transition: color .2s; }
.contact-info__social a:hover { color: #FAFAFA; }

.form-label { font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gray-3); display: block; margin-bottom: .5rem; }
.form-field { margin-bottom: 2rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: none; border-bottom: 1px solid var(--gray-2); padding: .75rem 0;
  font-size: .95rem; color: var(--black); background: transparent; outline: none; transition: border-color .2s;
}
.form-field select { appearance: none; cursor: pointer; }
.form-field textarea { resize: none; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #201E1E; }
.form-status { margin-bottom: 1.5rem; font-size: .9rem; }
.form-status.ok { color: #1a7a34; }
.form-status.error { color: #b3261e; }

/* Footer */
.site-footer { background: var(--black); padding: 60px 80px 40px; border-top: 1px solid rgba(255,255,255,.08); }
@media (max-width: 860px) { .site-footer { padding: 40px 20px 24px; } }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 30px; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.site-footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.site-footer__brand img { height: 11.55px; width: auto; }
.site-footer__brand span { font-size: 11px; font-weight: 300; letter-spacing: .12em; text-transform: uppercase; color: var(--white); opacity: .5; }
.site-footer__desc { font-size: .82rem; color: rgba(255,255,255,.4); line-height: 1.7; max-width: 280px; }
.site-footer h4 { font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 1.25rem; }
.site-footer a.flink { display: block; font-size: .85rem; color: rgba(255,255,255,.5); margin-bottom: .6rem; cursor: pointer; transition: color .2s; }
.site-footer a.flink:hover { color: #FAFAFA; }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.site-footer__bottom p { font-size: .75rem; color: rgba(255,255,255,.25); }

/* WhatsApp flotante */
.whatsapp-fab { position: fixed; bottom: 28px; right: 28px; z-index: 200; width: 52px; height: 52px; background: var(--whatsapp); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,.25); transition: transform .2s; }
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 26px; height: 26px; fill: #fff; }

.cta-section { background: var(--black); padding: 100px 80px; text-align: center; }
@media (max-width: 860px) { .cta-section { padding: 56px 24px; } }
.cta-section h2 { color: var(--white); margin-bottom: 1.5rem; }
.cta-section p { color: rgba(255,255,255,.45); font-size: 1rem; margin-bottom: 2.5rem; }
.cta-section--white { background: var(--white); }
.cta-section--white h2 { color: var(--black); }
.cta-section--white p { color: var(--gray-4); }
