/* ═══ DRYSUR — Construcción en seco · blanco/gris + naranja, diagonales y capas ═══ */

:root {
  --white: #ffffff;
  --paper: #f1f1f1;
  --paper-2: #e8e8e8;
  --gray: #d9d9d9;
  --gray-500: #8a8a8a;
  --ink: #101010;
  --ink-soft: #3a3a3a;
  --ink-90: #1b1b1b;
  --orange: #d87742;
  --orange-deep: #bf5f2c;
  --orange-soft: rgba(216, 119, 66, 0.14);
  --display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --nav-h: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.45s var(--ease);
  --shadow: 0 18px 50px rgba(16, 16, 16, 0.12);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ─── Type helpers ─── */
.eyebrow {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
  padding-left: 2.6rem;
  position: relative;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 2rem; height: 2px;
  background: var(--orange);
  transform: translateY(-50%) skewX(-30deg);
}
.eyebrow--light { color: var(--orange); }

.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.h2--light { color: var(--white); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.95rem 1.7rem;
  border: 2px solid transparent;
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-deep); transform: translateY(-3px); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.1); transform: translateY(-3px); }
.btn--sm { padding: 0.7rem 1.25rem; font-size: 0.75rem; }
.btn--block { width: 100%; padding: 1.05rem; }

/* ─── Navbar ─── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--t), box-shadow var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(16, 16, 16, 0.08);
  border-bottom-color: var(--gray);
}
.nav__inner {
  max-width: 1320px;
  margin: 0 auto;
  height: 100%;
  padding: 0 clamp(1rem, 3vw, 2.2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo { height: 30px; width: auto; transition: filter var(--t); }
.nav:not(.scrolled) .nav__logo { filter: brightness(0) invert(1); }
.nav__menu { display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.2rem); }
.nav__menu a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  position: relative;
  padding: 0.3rem 0;
  transition: color var(--t);
}
.nav.scrolled .nav__menu a { color: var(--ink); }
.nav__menu a:not(.nav__cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transform: skewX(-20deg);
  transition: width var(--t);
}
.nav__menu a:not(.nav__cta):hover::after { width: 100%; }
.nav__menu a:hover { color: var(--orange); }
.nav__cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 0.6rem 1.15rem !important;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.nav__cta:hover { background: var(--orange-deep); }
.nav__quiet { opacity: 0.55; font-weight: 500; }
.nav__quiet:hover { opacity: 1; }

.nav__toggle { display: none; flex-direction: column; gap: 6px; background: none; border: none; padding: 8px; z-index: 1001; }
.nav__toggle span { display: block; width: 27px; height: 2px; background: var(--white); transition: var(--t); }
.nav.scrolled .nav__toggle span { background: var(--ink); }
.nav__toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--ink); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--ink); }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 3rem) clamp(1.2rem, 5vw, 5rem) 0;
  overflow: hidden;
  color: var(--white);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(16,16,16,0.82) 0%, rgba(16,16,16,0.5) 42%, rgba(16,16,16,0.15) 100%),
    linear-gradient(0deg, rgba(16,16,16,0.55), transparent 45%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(-24deg, transparent, transparent 78px, rgba(255,255,255,0.05) 78px, rgba(255,255,255,0.05) 79px);
}
.hero__inner { position: relative; z-index: 2; max-width: 820px; margin-top: auto; }
.hero__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.hero__title .hl { color: var(--orange); }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 300; max-width: 560px; opacity: 0.92; }
.hero__lead strong { font-weight: 600; color: var(--white); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero__stats {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.18);
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  backdrop-filter: blur(6px);
  max-width: 760px;
}
.stat { padding: 1.1rem 1.3rem; background: rgba(16,16,16,0.35); }
.stat__num { display: block; font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1; color: var(--orange); }
.stat__num em { font-style: normal; font-size: 0.5em; display: inline-block; color: var(--white); }
.stat__label { font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.85; }

/* ─── SISTEMAS ─── */
.systems { background: var(--ink); color: var(--white); padding: clamp(4.5rem, 10vw, 8rem) clamp(1.2rem, 5vw, 5rem); position: relative; overflow: hidden; }
.systems::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 72px;
  background: var(--ink-90); clip-path: polygon(0 0, 100% 0, 0 100%);
}
.systems__head { max-width: 720px; margin: 0 auto 2.6rem; text-align: center; }
.systems__head .eyebrow { padding-left: 0; }
.systems__head .eyebrow::before { display: none; }
.systems__sub { color: rgba(255,255,255,0.72); margin-top: 0.8rem; }
.systems__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-bottom: 2.8rem; }
.systab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem;
  text-align: left;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.16);
  padding: 0.85rem 1.4rem;
  min-width: 220px; flex: 1 1 220px; max-width: 300px;
  cursor: pointer;
  transition: var(--t);
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}
.systab__n { font-family: var(--display); font-size: 1rem; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); transition: var(--t); }
.systab__name { font-family: var(--display); font-size: 1.55rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; }
.systab__desc { font-size: 0.82rem; color: rgba(255,255,255,0.5); transition: var(--t); }
.systab:hover { color: var(--white); border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.07); transform: translateY(-2px); }
.systab.is-active { color: var(--white); background: var(--orange); border-color: var(--orange); }
.systab.is-active .systab__n,
.systab.is-active .systab__desc { color: rgba(255,255,255,0.9); }
.systab.is-active::after {
  content: ''; position: absolute; left: 1.4rem; bottom: -0.8rem;
  width: 26px; height: 4px; background: var(--orange);
}

.systems__stage { max-width: 1180px; margin: 0 auto; position: relative; }
.syspanel { display: none; flex-direction: column; gap: clamp(1.4rem, 3vw, 2.2rem); }
.syspanel.is-active { display: flex; animation: fade 0.5s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.sysgallery {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 0.85rem;
  align-items: stretch;
}
.sysshot {
  position: relative;
  margin: 0;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}
.sysshot:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.sysshot::after,
.work__shot::after {
  content: '';
  position: absolute;
  top: 0.55rem; right: 0.55rem;
  z-index: 3;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28);
  background:
    rgba(16,16,16,0.28)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M9 3H3v6M15 3h6v6M9 21H3v-6M21 15v6h-6'/%3E%3Cpath d='M3 3l7 7M21 3l-7 7M3 21l7-7M21 21l-7-7'/%3E%3C/svg%3E")
    center / 15px 15px no-repeat;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0.42;
  transition: opacity var(--t), background-color var(--t), transform var(--t);
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.sysshot:hover::after,
.sysshot:focus-visible::after,
.work__shot:hover::after,
.work__shot:focus-visible::after,
.work__shot.is-active::after {
  opacity: 0.72;
  transform: scale(1.04);
}
.sysshot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s var(--ease);
}
.sysshot:hover img { transform: scale(1.04); }
.sysshot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--white);
}
.sysshot figcaption span { color: var(--orange); font-family: var(--display); font-size: 1rem; letter-spacing: 0.04em; }

.sysshot--info {
  background: linear-gradient(160deg, #1f1f1f 0%, #121212 100%);
  display: flex; flex-direction: column;
  aspect-ratio: auto; min-height: 100%;
}
.sysshot--info figcaption { position: relative; background: transparent; padding: 0.55rem 0.9rem 0.75rem; }
.info {
  flex: 1; display: flex; flex-direction: column; gap: 0.7rem;
  padding: 0.9rem 0.9rem 0.2rem;
}
.info__virtue {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.55rem 0.75rem;
  background: rgba(246,140,26,0.14);
  border-left: 3px solid var(--orange);
}
.info__virtue em {
  font-style: normal; font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
}
.info__virtue strong {
  font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.03em;
  color: var(--orange); font-weight: 400; line-height: 1.05;
}
.info__grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 0.7rem; align-items: center;
  flex: 1;
}
.info__diagram {
  display: grid; place-items: center;
  min-height: 140px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.7rem;
}
.wall { display: flex; height: 120px; width: 78%; box-shadow: 0 10px 28px rgba(0,0,0,0.35); }
.wall i { display: block; height: 100%; }
.wall--steel .w-ext { flex: 0 0 14%; background: linear-gradient(90deg, #6b6b6b, #9a9a9a); }
.wall--steel .w-osb { flex: 0 0 10%; background: #c4a574; }
.wall--steel .w-stud { flex: 0 0 8%; background: linear-gradient(180deg, #d0d0d0, #8e8e8e); }
.wall--steel .w-ins { flex: 1; background: repeating-linear-gradient(90deg, rgba(246,140,26,0.55) 0 5px, rgba(246,140,26,0.2) 5px 10px); }
.wall--steel .w-gypsum { flex: 0 0 12%; background: #f2f2f2; }

.wall--wood .w-ext { flex: 0 0 14%; background: linear-gradient(90deg, #8b5a2b, #c48a4a); }
.wall--wood .w-osb { flex: 0 0 10%; background: #d2b48c; }
.wall--wood .w-stud { flex: 0 0 10%; background: linear-gradient(180deg, #c4a574, #8b6914); }
.wall--wood .w-ins { flex: 1; background: repeating-linear-gradient(0deg, rgba(246,140,26,0.35) 0 4px, rgba(255,255,255,0.08) 4px 8px); }
.wall--wood .w-gypsum { flex: 0 0 12%; background: #f5f0e8; }

.wall--sip { flex-direction: column; width: 70%; height: 130px; }
.wall--sip .w-osb { flex: 0 0 22%; background: linear-gradient(90deg, #d4b896, #b8956a); }
.wall--sip .w-core { flex: 1; background: repeating-linear-gradient(90deg, #f6a01a 0 7px, #e8890e 7px 14px); position: relative; }
.wall--sip .w-core::after {
  content: 'EPS'; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-size: 1.4rem; letter-spacing: 0.12em; color: rgba(0,0,0,0.45);
}

.info__layers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.28rem; }
.info__layers li {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.72rem; color: rgba(255,255,255,0.82); line-height: 1.2;
}
.info__layers li span {
  flex: none; font-family: var(--display); font-size: 0.85rem; color: var(--orange);
  letter-spacing: 0.04em; min-width: 1.4rem;
}

.syspanel__body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.2rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.8rem);
  align-items: start;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}
.syspanel__copy { display: flex; flex-direction: column; gap: 0.55rem; }
.syspanel__kicker { display: block; font-family: var(--display); font-size: 1.3rem; letter-spacing: 0.06em; color: var(--orange); }
.syspanel__body h3 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 700; line-height: 1.15; margin: 0; }
.syspanel__body p { color: rgba(255,255,255,0.66); margin: 0; }
.adv { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; margin: 0; }
.adv li { position: relative; padding-left: 1.5rem; font-size: 0.92rem; color: rgba(255,255,255,0.85); }
.adv li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 0.65rem; height: 0.65rem; background: var(--orange); transform: skewX(-20deg); }
.adv strong { color: var(--white); }
.syspanel__body .btn { margin-top: 0.9rem; align-self: start; }

/* ─── PROCESO (secundario / compacto) ─── */
.process { background: var(--paper); padding: clamp(4.5rem, 10vw, 8rem) clamp(1.2rem, 5vw, 5rem); }
.process--compact {
  padding: clamp(2.2rem, 5vw, 3.4rem) clamp(1.2rem, 5vw, 5rem);
  background: var(--paper-2);
  border-top: 1px solid var(--gray);
  border-bottom: 1px solid var(--gray);
}
.process__inner { max-width: 1240px; margin: 0 auto; }
.process__head { max-width: 640px; margin-bottom: 3rem; }
.process--compact .process__head { margin-bottom: 1.2rem; max-width: 720px; }
.process__head p { color: var(--ink-soft); margin-top: 1rem; }
.process--compact .process__head p { margin-top: 0.4rem; font-size: 0.92rem; color: var(--gray-500); }
.process__title { font-size: clamp(1.6rem, 3.5vw, 2.4rem) !important; line-height: 1 !important; letter-spacing: 0.02em; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.process--compact .steps {
  grid-template-columns: repeat(6, 1fr);
  gap: 0.55rem;
}
.step {
  position: relative;
  background: var(--white);
  padding: 2.2rem 1.6rem 1.6rem;
  border: 1px solid var(--gray);
  border-top: 4px solid var(--orange);
  transition: transform var(--t), box-shadow var(--t);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}
.process--compact .step {
  padding: 1.35rem 0.75rem 0.85rem;
  border-top-width: 3px;
  clip-path: none;
  border-radius: 0;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.process--compact .step:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16,16,16,0.08); }
.step__n { font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--orange-soft); position: absolute; top: 0.6rem; right: 1rem; }
.step__n { color: transparent; -webkit-text-stroke: 1.5px var(--orange); }
.process--compact .step__n {
  font-size: 1.35rem;
  top: 0.35rem; right: 0.45rem;
  -webkit-text-stroke: 1px var(--orange);
  opacity: 0.7;
}
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.process--compact .step h3 { font-size: 0.82rem; margin-bottom: 0.25rem; letter-spacing: 0.02em; }
.step p { color: var(--ink-soft); font-size: 0.92rem; }
.process--compact .step p { font-size: 0.72rem; line-height: 1.35; color: var(--gray-500); }

/* ─── OBRAS / CAROUSEL (sección prioritaria) ─── */
.works { background: var(--ink-90); color: var(--white); padding: clamp(4.5rem, 10vw, 8rem) 0; overflow: hidden; }
.works__head { max-width: 1240px; margin: 0 auto 2.4rem; padding: 0 clamp(1.2rem, 5vw, 5rem); display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1.5rem; }
.works__intro { flex: 1 1 420px; }
.works__head .eyebrow { padding-left: 0; } .works__head .eyebrow::before { display: none; }
.works__sub { color: rgba(255,255,255,0.6); margin-top: 0.9rem; max-width: 640px; }
.works__nav { margin-left: auto; display: flex; gap: 0.6rem; }
.cbtn {
  width: 52px; height: 52px;
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
  font-size: 1.3rem;
  transition: var(--t);
}
.cbtn:hover { background: var(--orange); border-color: var(--orange); }
.carousel { max-width: 1240px; margin: 0 auto; padding: 0 clamp(1.2rem, 5vw, 5rem); }
.carousel__track { display: flex; gap: 1.4rem; transition: transform 0.6s var(--ease); }
.work {
  flex: 0 0 calc((100% - 2.8rem) / 3);
  background: var(--ink);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  transition: border-color var(--t);
}
.work:hover { border-color: var(--orange); }
.work__gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  height: 230px;
  background: #0c0c0c;
}
.work__gallery:has(.work__shot:only-child) {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
.work__shot {
  position: relative; margin: 0; padding: 0; border: 0; background: #111;
  overflow: hidden; cursor: pointer;
}
.work__shot:first-child { grid-row: 1 / -1; }
.work__shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s var(--ease), opacity 0.3s; }
.work__shot:hover img { transform: scale(1.05); }
.work__shot.is-active { outline: 2px solid var(--orange); outline-offset: -2px; z-index: 1; }
.work__badge { position: absolute; top: 1rem; left: 1rem; z-index: 2; background: var(--orange); color: var(--white); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.35rem 0.75rem; pointer-events: none; }
.work__body { padding: 1.4rem 1.5rem 1.7rem; }
.work__meta { display: flex; justify-content: space-between; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.5rem; }
.work__body h3 { font-family: var(--display); font-size: 1.7rem; letter-spacing: 0.02em; margin-bottom: 0.5rem; }
.work__body p { color: rgba(255,255,255,0.78); font-size: 0.95rem; margin-bottom: 0.9rem; line-height: 1.55; }
.work__plazo { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.58); margin-bottom: 1rem; }
.work__more {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--body); font-weight: 700; font-size: 0.74rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange); background: transparent;
  border: 2px solid var(--orange); padding: 0.55rem 1.1rem;
  transition: background var(--t), color var(--t);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.work__more::after { content: '\2192'; }
.work__more:hover { background: var(--orange); color: var(--white); }

/* ─── Modal obra ─── */
.modal { position: fixed; inset: 0; z-index: 2000; display: none; }
.modal.open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(16,16,16,0.78); backdrop-filter: blur(4px); animation: fade 0.3s var(--ease); }
.modal__dialog {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, 92vw); max-height: 90vh; overflow: auto;
  background: var(--ink); color: var(--white);
  border: 1px solid rgba(255,255,255,0.14);
  border-top: 4px solid var(--orange);
  box-shadow: 0 40px 90px rgba(0,0,0,0.55);
  animation: modalIn 0.35s var(--ease);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.modal__close { position: absolute; top: 0.6rem; right: 0.9rem; z-index: 2; background: rgba(0,0,0,0.35); color: var(--white); border: none; width: 40px; height: 40px; font-size: 1.6rem; line-height: 1; border-radius: 50%; transition: background var(--t); }
.modal__close:hover { background: var(--orange); }
.modal__media { position: relative; height: clamp(240px, 42vw, 380px); overflow: hidden; background: #0c0c0c; }
.modal__stage { position: relative; width: 100%; height: 100%; }
#modalImg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  background: #0c0c0c;
}
#modalImg[hidden] { display: none !important; }
.modal__media .work__badge { top: 1rem; left: 1rem; z-index: 3; }
.modal__info {
  position: absolute; inset: 0;
  z-index: 1;
  overflow: auto;
  padding: 1.2rem clamp(1rem, 3vw, 1.8rem) 3.4rem;
  background: linear-gradient(160deg, #1f1f1f, #121212);
  box-sizing: border-box;
  color: var(--white);
}
.modal__info[hidden] { display: none !important; }
.modal__info:not([hidden]) { display: block; }
.modal__info .info {
  padding: 0; gap: 0.85rem;
  min-height: 100%;
  display: flex; flex-direction: column;
}
.modal__info .info__virtue strong { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.modal__info .info__layers li { font-size: 0.85rem; color: rgba(255,255,255,0.88); }
.modal__info .info__grid { flex: 1; min-height: 160px; }
.modal__info .info__diagram { min-height: 160px; }
.modal__info .wall { height: 140px; }
.modal__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 44px; height: 44px;
  background: rgba(0,0,0,0.45); color: var(--white);
  border: 2px solid rgba(255,255,255,0.35);
  font-size: 1.2rem; line-height: 1; cursor: pointer;
  transition: background var(--t), border-color var(--t);
}
.modal__nav:hover { background: var(--orange); border-color: var(--orange); }
.modal__nav--prev { left: 0.7rem; }
.modal__nav--next { right: 0.7rem; }
.modal__thumbs {
  position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.8rem;
  display: flex; gap: 0.4rem; justify-content: center; z-index: 3;
}
.modal__thumbs button {
  width: 54px; height: 40px; padding: 0; border: 2px solid transparent;
  overflow: hidden; background: #111; cursor: pointer; opacity: 0.75; color: var(--white);
}
.modal__thumbs button.is-active { border-color: var(--orange); opacity: 1; }
.modal__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal__thumb--info {
  display: grid; place-items: center;
  font-family: var(--display); font-size: 1rem; letter-spacing: 0.04em;
  background: linear-gradient(145deg, #2a2a2a, #141414) !important;
}
.modal--system .modal__media { height: clamp(320px, 58vw, 460px); }
.modal--system.modal--info-slide .modal__media { height: clamp(360px, 65vw, 520px); }
.works__nav[hidden] { display: none !important; }
.modal__body { padding: 1.6rem clamp(1.4rem, 4vw, 2.4rem) 2rem; }
.modal__body h3 { font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: 0.02em; margin: 0.3rem 0 0.8rem; }
.modal__body > p { color: rgba(255,255,255,0.72); margin-bottom: 1.4rem; }
.modal__facts { display: flex; gap: 2.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.modal__facts strong { display: block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.2rem; }
body.modal-open { overflow: hidden; }

/* ─── NOSOTROS ─── */
.about { background: var(--paper); padding: clamp(4.5rem, 10vw, 8rem) clamp(1.2rem, 5vw, 5rem); }
.about__inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(2rem, 5vw, 4.5rem); }
.about__text p { color: var(--ink-soft); margin: 1.2rem 0; font-size: 1.05rem; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.mv__card { background: var(--white); border: 1px solid var(--gray); border-left: 4px solid var(--orange); padding: 1.3rem 1.4rem; }
.mv__card h3 { font-family: var(--display); font-size: 1.5rem; letter-spacing: 0.03em; margin-bottom: 0.4rem; }
.mv__card p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.values { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.values li { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--gray); padding: 0.4rem 0.9rem; background: var(--white); }
.about__brands { background: var(--ink); color: var(--white); padding: 2rem; align-self: start; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%); }
.about__brands-title { font-family: var(--display); font-size: 1.6rem; letter-spacing: 0.03em; }
.about__brands-sub { color: rgba(255,255,255,0.55); font-size: 0.85rem; margin: 0.5rem 0 1.3rem; }
.brandgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.12); }
.brandgrid span { background: var(--ink); padding: 0.9rem 0.6rem; text-align: center; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em; color: rgba(255,255,255,0.85); }

/* ─── CONTACTO ─── */
.contact { position: relative; background: var(--ink); color: var(--white); padding: clamp(4.5rem, 9vw, 7rem) clamp(1.2rem, 5vw, 5rem) clamp(3rem, 6vw, 5rem); overflow: hidden; }
.contact__diag { position: absolute; top: 0; left: 0; right: 0; height: 90px; background: var(--paper); clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%); }
.contact__inner { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__intro { color: rgba(255,255,255,0.65); margin: 0.8rem 0 1.8rem; }
.form { display: flex; flex-direction: column; gap: 1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.form input, .form select, .form textarea {
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--white);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.75rem 0.85rem;
  transition: border-color var(--t), background var(--t);
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--orange); background: rgba(255,255,255,0.08); }
.form select option { color: var(--ink); }
.form__note { font-size: 0.74rem; color: rgba(255,255,255,0.45); text-transform: none; letter-spacing: 0; font-weight: 400; }

.cinfo { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 1.6rem; }
.cinfo li { display: flex; gap: 0.9rem; align-items: flex-start; }
.cinfo svg { width: 22px; height: 22px; fill: var(--orange); flex-shrink: 0; margin-top: 3px; }
.cinfo strong { display: block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.15rem; }
.cinfo span, .cinfo a { color: rgba(255,255,255,0.85); }
.cinfo a:hover { color: var(--orange); }
.contact__map { overflow: hidden; min-height: 260px; border: 1px solid rgba(255,255,255,0.18); clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 94%); }
.contact__map iframe { width: 100%; height: 100%; min-height: 260px; border: 0; filter: grayscale(40%) contrast(1.05) brightness(0.92); }

/* ─── FOOTER ─── */
.footer { background: var(--ink-90); color: rgba(255,255,255,0.55); padding: 3rem 1.5rem; border-top: 3px solid var(--orange); }
.footer__inner { max-width: 900px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.footer__logo { height: 34px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; font-size: 0.85rem; }
.footer__links a:hover { color: var(--orange); }
.footer__copy { font-size: 0.78rem; opacity: 0.7; }

/* ─── WhatsApp float ─── */
.wa { position: fixed; bottom: clamp(1.2rem, 3vw, 2rem); right: clamp(1.2rem, 3vw, 2rem); z-index: 999; width: 56px; height: 56px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 22px rgba(37,211,102,0.45); transition: transform var(--t); }
.wa svg { width: 30px; height: 30px; fill: var(--white); }
.wa:hover { transform: scale(1.08) translateY(-2px); }

/* ─── Reveal on scroll ─── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .process--compact .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .syspanel__body, .about__inner, .contact__inner { grid-template-columns: 1fr; }
  .info__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .process--compact .steps { grid-template-columns: repeat(3, 1fr); }
  .work { flex: 0 0 calc((100% - 1.4rem) / 2); }
  .systems { padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 2rem); }
  .works { padding: clamp(3.2rem, 8vw, 5.5rem) 0; }
  .about { padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 2rem); }
}
@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; top: 0; right: -100%;
    width: min(300px, 86vw); height: 100vh;
    background: var(--white);
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 1.8rem; padding: 0 2.2rem;
    box-shadow: -10px 0 40px rgba(0,0,0,0.2);
    transition: right var(--t);
  }
  .nav__menu.open { right: 0; }
  .nav__menu a { color: var(--ink) !important; font-size: 1.05rem; }
  .nav__quiet { opacity: 0.65; }
  .hero__stats { grid-template-columns: 1fr; }
  .hero__lead { font-size: 1rem; line-height: 1.55; max-width: none; }
  .hero__actions { flex-wrap: wrap; }
  .form__row { grid-template-columns: 1fr; }
  .work { flex: 0 0 100%; }

  /* Obras mobile: imagen grande + info legible debajo */
  .works__head { padding: 0 1rem; margin-bottom: 1.4rem; gap: 0.8rem; }
  .works__sub { font-size: 0.95rem; color: rgba(255,255,255,0.78); }
  .carousel { padding: 0 1rem; }
  .work__gallery {
    height: min(52vw, 260px);
    grid-template-columns: 1.4fr 1fr;
  }
  .work__body {
    padding: 1.15rem 1.15rem 1.4rem;
  }
  .work__body h3 { font-size: 1.85rem; margin-bottom: 0.35rem; }
  .work__body p {
    color: rgba(255,255,255,0.86);
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .work__more { width: 100%; justify-content: center; padding: 0.7rem 1rem; }

  /* Sistemas mobile: tabs compactos (~15% alto) + galería visible */
  .systems__head { margin-bottom: 0.75rem; }
  .systems__head .h2 { font-size: clamp(1.7rem, 7vw, 2.3rem); }
  .systems__sub { font-size: 0.88rem; color: rgba(255,255,255,0.75); margin-top: 0.4rem; }
  .systems__tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    max-height: 12vh;
  }
  .systab {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.45rem 0.35rem;
    gap: 0;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
  }
  .systab__n,
  .systab__desc { display: none; }
  .systab__name {
    font-size: clamp(0.85rem, 3.4vw, 1.05rem);
    letter-spacing: 0.03em;
    line-height: 1.1;
  }
  .systab.is-active::after { display: none; }
  .systab:hover { transform: none; }
  .sysgallery {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    max-height: min(58vh, 440px);
    padding-right: 0.15rem;
    margin: 0;
  }
  .sysgallery::-webkit-scrollbar { width: 3px; }
  .sysgallery::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.28); border-radius: 2px; }
  .sysshot {
    flex: 0 0 auto;
    width: 100%;
    scroll-snap-align: start;
    aspect-ratio: 4 / 3;
    min-height: min(42vh, 280px);
  }
  .sysshot--info {
    aspect-ratio: auto;
    min-height: min(48vh, 320px);
    flex-basis: auto;
  }
  .sysshot figcaption {
    font-size: 0.78rem;
    padding: 0.7rem 0.85rem;
  }
  .sysshot::after,
  .work__shot::after {
    width: 30px; height: 30px;
    opacity: 0.5;
    background-size: 13px 13px;
  }
  .syspanel__body {
    padding: 1.1rem 1rem;
    gap: 1rem;
  }
  .syspanel__body h3 { font-size: 1.25rem; }
  .syspanel__body p { color: rgba(255,255,255,0.8); font-size: 0.95rem; line-height: 1.55; }
  .adv li { font-size: 0.92rem; color: rgba(255,255,255,0.9); }
  .syspanel__body .btn { width: 100%; justify-content: center; }

  /* Proceso compacto en mobile */
  .process--compact { padding: 1.8rem 1rem; }
  .process--compact .steps {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }
  .process--compact .step {
    flex: 0 0 42vw;
    max-width: 170px;
    scroll-snap-align: start;
    min-height: 110px;
  }

  /* Modal: info + imagen legibles */
  .modal__dialog { width: min(96vw, 760px); max-height: 92vh; }
  .modal__media { height: min(48vh, 320px); }
  .modal--system .modal__media,
  .modal--system.modal--info-slide .modal__media { height: min(52vh, 380px); }
  .modal__body { padding: 1.2rem 1.1rem 1.5rem; }
  .modal__body > p { color: rgba(255,255,255,0.82); font-size: 0.95rem; }
  .modal__info .info__layers li { font-size: 0.8rem; }
  .modal__nav { width: 40px; height: 40px; }
}
@media (max-width: 520px) {
  .mv { grid-template-columns: 1fr; }
  .process--compact .step { flex-basis: 58vw; }
  .hero__title { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .h2 { font-size: clamp(2.1rem, 9vw, 3.2rem); }
  .work__gallery { height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
