/* ===========================================================
   Constructora G7 — Landing
   Sober, minimal corporate system. Red as a brand seal.
   =========================================================== */

:root {
  /* Brand */
  --accent: #C5302A;          /* serious bermellón (overridable via Tweaks) */
  --accent-ink: color-mix(in srgb, var(--accent) 78%, #000);      /* darker red for hover/press */
  --accent-tint: color-mix(in srgb, var(--accent) 10%, transparent);

  /* Neutrals */
  --ink: #17191B;             /* near-black charcoal: headings, footer */
  --ink-soft: #34383C;        /* body strong */
  --body: #4A4F54;            /* body text */
  --muted: #84898E;           /* captions, meta */
  --line: #E5E5E0;            /* hairlines */
  --line-strong: #D6D6CF;
  --bg: #FFFFFF;
  --bg-alt: #F6F6F3;          /* warm off-white section */
  --bg-charcoal: #161719;

  /* Type */
  --font-display: 'Roboto Condensed', sans-serif;
  --font-body: 'Roboto Condensed', sans-serif;

  /* Layout */
  --maxw: 1240px;
  --gutter: 40px;
  --nav-h: 84px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { position: relative; }
.section-pad { padding: clamp(72px, 9vw, 132px) 0; }
.bg-alt { background: var(--bg-alt); }

/* Eyebrow: small red rule + uppercase label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.center { justify-content: center; }

.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
}
.section-head p {
  margin-top: 20px;
  font-size: clamp(16px, 1.4vw, 18.5px);
  color: var(--body);
  max-width: 620px;
}
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 15px 28px;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .2s var(--ease);
}
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ===========================================================
   NAV
   =========================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease), height .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  height: 72px;
}

/* Logo lockup */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-img { height: 40px; width: auto; display: block; }
/* Nav: light logo by default (hero), dark logo when scrolled */
.logo-img--dark { display: none; }
.nav.scrolled .logo-img--light { display: none; }
.nav.scrolled .logo-img--dark { display: block; }
.logo .word {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  line-height: 1.05;
}
.logo .word .t1 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
}
.logo .word .t2 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
}
/* On hero (not scrolled): white text */
.nav:not(.scrolled) .logo .word .t1 { color: #fff; }
.nav:not(.scrolled) .logo .word .t2 { color: #fff; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.92); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .28s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--accent); }
.nav:not(.scrolled) .nav-links a:hover { color: #fff; }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { padding: 12px 22px; }

.hamburger {
  display: none;
  background: none;
  border: none;
  width: 44px; height: 44px;
  position: relative;
  z-index: 201;
  padding: 0;
}
.hamburger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease), background .3s;
}
.nav:not(.scrolled) .hamburger span { background: #fff; }
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }
.hamburger.open span { background: var(--ink); }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px var(--gutter) var(--gutter);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-menu-logo img { height: 38px; width: auto; }
.mobile-menu-logo .word { display: flex; flex-direction: column; line-height: 1.15; }
.mobile-menu-logo .t1 { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: 0.04em; text-transform: uppercase; }
.mobile-menu-logo .t2 { font-family: var(--font-body); font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0.03em; }
.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu a:not(.btn) {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.02em;
}
.mobile-menu a .idx { font-family: var(--font-body); font-size: 12px; color: var(--accent); font-weight: 600; }
.mobile-menu .btn { margin-top: 28px; width: 100%; }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  color: #fff;
  overflow: hidden;
}
.hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero .scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(15,16,18,0.55) 0%, rgba(15,16,18,0.25) 35%, rgba(15,16,18,0.65) 100%);
}
.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(72px, 11vh, 130px);
  padding-top: var(--nav-h);
}
.hero-inner { max-width: 880px; }
.hero .kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.hero .kicker::before {
  content: ""; width: 38px; height: 2px; background: var(--accent);
}
.hero h1 {
  color: #fff;
  font-size: clamp(38px, 6.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero h1 .em { color: var(--accent); }
.hero .sub {
  margin-top: 26px;
  font-size: clamp(17px, 1.7vw, 21px);
  max-width: 560px;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}
.hero .hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero scroll cue */
.hero .scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero .scroll-cue .line {
  width: 1px; height: 38px;
  background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0));
  animation: cue 2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.4); opacity: .4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Hero layout: CENTERED — content at true center */
[data-hero="centered"] .hero .container {
  align-items: center;
  text-align: center;
  justify-content: center;
  padding-bottom: 0;
}
[data-hero="centered"] .hero-inner { max-width: 768px; }
[data-hero="centered"] .hero h1 {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 58px);
  letter-spacing: 0.05em;
  line-height: 1;
}
[data-hero="centered"] .hero .hero-sub {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.02em;
  margin-top: 10px;
}
[data-hero="centered"] .hero .kicker { justify-content: center; }
[data-hero="centered"] .hero .hero-actions { justify-content: center; }
[data-hero="centered"] .hero .hero-actions .btn { padding: 11px 21px; font-size: 12px; }

/* Hero layout: SPLIT (text panel left, image right) */
[data-hero="split"] .hero { color: var(--ink); }
[data-hero="split"] .hero .scrim { display: none; }
[data-hero="split"] .hero .hero-bg {
  left: auto; right: 0;
  width: 50%;
}
[data-hero="split"] .hero .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(22,23,25,0.18), rgba(22,23,25,0));
}
[data-hero="split"] .hero .container { align-items: center; }
[data-hero="split"] .hero-inner { max-width: 540px; padding-right: 40px; }
[data-hero="split"] .hero .kicker { color: var(--accent); }
[data-hero="split"] .hero h1 { color: var(--ink); }
[data-hero="split"] .hero .sub { color: var(--body); }
[data-hero="split"] .hero .scroll-cue { color: var(--muted); }
[data-hero="split"] .hero .scroll-cue .line { background: linear-gradient(var(--muted), transparent); }
[data-hero="split"] .nav:not(.scrolled) .logo .word .t1 { color: var(--ink); }
[data-hero="split"] .nav:not(.scrolled) .logo .word .t2 { color: var(--muted); }
[data-hero="split"] .nav:not(.scrolled) .nav-links a { color: var(--ink-soft); }
[data-hero="split"] .nav:not(.scrolled) .hamburger span { background: var(--ink); }
[data-hero="split"] .btn-ghost-light { color: var(--ink); border-color: var(--line-strong); }
[data-hero="split"] .btn-ghost-light:hover { border-color: var(--ink); background: transparent; }

/* ===========================================================
   STATS BAR
   =========================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat {
  padding: 44px 36px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat .num .plus { color: var(--accent); font-size: 0.7em; }
.stat .label {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.45;
}

/* ===========================================================
   EMPRESA (about) — two-column editorial
   =========================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-copy h2 { font-size: clamp(30px, 4vw, 48px); }
.about-copy .lead {
  margin-top: 24px;
  font-size: 18.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.about-copy p + p { margin-top: 18px; }
.about-copy .mvv { margin-top: 36px; display: grid; gap: 0; }
.mvv-item { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.mvv-item:first-child { padding-top: 0; border-top: none; }
.mvv-item .bar { display: none; }
.mvv-item h4 {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}
.about-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.about-figure:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.28);
}
.about-figure img { width: 100%; height: 100%; object-fit: cover; }
.about-figure .tag {
  position: absolute;
  left: -1px; bottom: 24px;
  background: var(--accent);
  color: #fff;
  padding: 16px 22px;
  max-width: 220px;
}
.about-figure .tag .big {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700; line-height: 1;
}
.about-figure .tag .small { font-size: 13px; margin-top: 6px; opacity: 0.92; }

/* ===========================================================
   SERVICIOS
   =========================================================== */
.svc-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.svc-card {
  background: var(--bg);
  padding: 40px 36px 44px;
  transition: background .3s var(--ease);
  position: relative;
}
.bg-alt .svc-card { background: var(--bg-alt); }
.svc-card:hover { background: var(--bg); }
.bg-alt .svc-card:hover { background: #fff; }
.svc-card .icon {
  width: 46px; height: 46px;
  color: var(--accent);
  margin-bottom: 26px;
}
.svc-card .icon svg { width: 100%; height: 100%; }
.svc-card .num {
  position: absolute; top: 30px; right: 34px;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600; color: var(--line-strong);
}
.svc-card h3 { font-size: 21px; margin-bottom: 12px; }
.svc-card p { font-size: 15.5px; color: var(--body); }
.svc-card .underline {
  margin-top: 24px; width: 0; height: 2px; background: var(--accent);
  transition: width .35s var(--ease);
}
.svc-card:hover .underline { width: 48px; }

/* ===========================================================
   POR QUÉ G7 — charcoal band
   =========================================================== */
.why {
  background: var(--bg-charcoal);
  color: rgba(255,255,255,0.82);
}
.why h2 { color: #fff; font-size: clamp(30px, 4vw, 48px); }
.why .eyebrow { color: #fff; }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.why .lead { font-size: 18.5px; margin-top: 24px; color: rgba(255,255,255,0.78); line-height: 1.6; }
.why-points { margin-top: 36px; display: grid; gap: 4px; }
.why-point {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.why-point .tick {
  color: var(--accent); flex: none; margin-top: 2px;
}
.why-point h4 { color: #fff; font-family: var(--font-body); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.why-point p { font-size: 14.5px; color: rgba(255,255,255,0.62); }
.why-figure {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 18px;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.why-figure:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.28);
}
.why-figure img { width: 100%; height: 100%; object-fit: cover; }
.why-figure .float {
  position: absolute; right: 0; top: 32px;
  background: #fff; color: var(--ink);
  padding: 16px 22px; max-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.why-figure .float .num { font-family: var(--font-display); font-size: 38px; font-weight: 700; color: var(--accent); line-height: 1; }
.why-figure .float .lbl { font-size: 13px; color: var(--body); margin-top: 8px; }

/* ===========================================================
   PROYECTOS — carousel
   =========================================================== */
.proj-carousel {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 56px;
}
.carousel-viewport {
  flex: 1;
  overflow: hidden;
  padding: 18px 0;
  margin: -18px 0;
}
.carousel-track {
  position: relative;
  display: flex;
  gap: 24px;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
}
.carousel-slide .proj-card {
  width: 100%;
}
.carousel-btn {
  flex: none;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  color: var(--ink);
  transition: background .22s, border-color .22s, color .22s, transform .22s, box-shadow .22s;
}
.carousel-btn:hover:not([disabled]) {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(197,48,42,0.3);
}
.carousel-btn[disabled] {
  opacity: 0.28;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}
.carousel-dots .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  padding: 0;
  transition: background .25s, width .25s, border-radius .25s;
}
.carousel-dots .dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: 5px;
}
.proj-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.proj-card:hover {
  transform: translateY(-10px);
  box-shadow: none;
}
.proj-card .img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.proj-card .img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.proj-card:hover .img-wrap img { transform: scale(1.06); }
.proj-card .cat {
  position: absolute; top: 14px; left: 14px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 5px 11px;
  border-radius: 5px;
}
.proj-card .proj-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.proj-card h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.proj-card .loc {
  font-size: 13px; color: var(--muted);
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 14px;
}
.proj-card .price {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.proj-card .price span { font-size: 26px; }
.proj-card .divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 13px 0;
}
.proj-card .specs {
  display: flex; gap: 18px;
  font-size: 14px; color: var(--ink); font-weight: 500;
}
.proj-card .specs span { display: flex; align-items: center; gap: 6px; }
.proj-card .desc {
  font-size: 13.5px; color: var(--body);
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}
.proj-card .btn-details {
  display: block; text-align: center;
  padding: 11px 20px;
  border: 1.5px solid #ddd;
  border-radius: 9px;
  font-size: 14px; font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: #f5f5f5;
  transition: background .22s, color .22s, border-color .22s;
}
.proj-card .btn-details:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.proj-card .proj-actions {
  display: flex;
  gap: 10px;
}
.proj-card .proj-actions .btn-details { flex: 1; }
.proj-card .btn-tour {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 16px;
  border: 1.5px solid var(--accent);
  border-radius: 9px;
  font-size: 14px; font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  background: transparent;
  white-space: nowrap;
  transition: background .22s, color .22s;
}
.proj-card .btn-tour:hover {
  background: var(--accent);
  color: #fff;
}


/* ===========================================================
   EQUIPO
   =========================================================== */
.team-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.team-grid.wide { grid-template-columns: repeat(4, 1fr); }
.team-card { }
.team-card .photo {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--bg-alt);
  overflow: hidden;
}
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card .photo .ph {
  position: absolute; inset: 0;
  display: flex;
  align-items: center; justify-content: center;
  color: var(--accent);
}
.worker-icon {
  width: 52%; height: auto;
  opacity: 0.85;
}
.team-card .photo::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 4px; background: var(--accent);
  transition: width .4s var(--ease);
}
.team-card:hover .photo::after { width: 100%; }
.team-card h3 { font-size: 20px; margin-top: 22px; }
.team-card .role {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-top: 6px;
}
.team-card .bio { font-size: 14.5px; color: var(--body); margin-top: 12px; }

.team-note {
  margin-top: 40px;
  padding: 28px 34px;
  background: var(--bg-alt);
  border-top: 2px solid var(--accent);
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 820px;
}
.bg-alt .team-note { background: #fff; }

/* ===========================================================
   GALERÍA — mosaic
   =========================================================== */
.gallery {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 12px;
}
.gcell {
  position: relative; overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}
.gcell--hidden { display: none; }
.gcell img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
  display: block;
}
.gcell:hover img { transform: scale(1.07); }
.gallery-more {
  margin-top: 36px;
  text-align: center;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lb-img-wrap {
  max-width: 90vw; max-height: 88vh;
  display: flex; align-items: center; justify-content: center;
}
.lb-img {
  max-width: 90vw; max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  transition: opacity .2s ease;
}
.lb-close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1); color: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lb-close:hover { background: var(--accent); border-color: var(--accent); }
.lb-prev, .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1); color: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s, opacity .2s;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.2); }
.lb-prev[disabled], .lb-next[disabled] { opacity: 0.25; cursor: not-allowed; }
.lb-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.6); font-size: 13px; font-weight: 500; letter-spacing: 0.05em;
}

/* ===========================================================
   CONTACTO
   =========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
}
.contact-info .eyebrow { margin-bottom: 22px; }
.contact-info h2 { font-size: clamp(28px, 3.4vw, 42px); }
.contact-info .lead { margin-top: 20px; font-size: 17px; color: var(--body); max-width: 420px; }
.info-list { margin-top: 40px; display: grid; gap: 4px; }
.info-row {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.info-row:last-child { border-bottom: 1px solid var(--line); }
.info-row .ic { color: var(--accent); flex: none; margin-top: 2px; }
.info-row .k { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.info-row .v { font-size: 17px; color: var(--ink); margin-top: 4px; font-weight: 500; }

/* Form */
.form-card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: clamp(28px, 3vw, 44px);
}
.bg-alt .form-card { background: #fff; }
.field { margin-bottom: 22px; }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 0; }
.field label {
  display: block; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 9px;
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  padding: 14px 16px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.field textarea { resize: vertical; min-height: 130px; }
.field.invalid input, .field.invalid textarea { border-color: var(--accent); }
.field .err { font-size: 12.5px; color: var(--accent); margin-top: 7px; display: none; }
.field.invalid .err { display: block; }
.form-card .btn { width: 100%; margin-top: 6px; }
.form-sent {
  text-align: center; padding: 30px 10px;
}
.form-sent .check {
  width: 56px; height: 56px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--accent-tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.form-sent h3 { font-size: 24px; margin-bottom: 10px; }
.form-sent p { color: var(--body); }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer {
  background: var(--bg-charcoal);
  color: rgba(255,255,255,0.6);
  padding-top: 80px;
}
.footer .logo .word .t1 { color: #fff; }
.footer .logo .word .t2 { color: rgba(255,255,255,0.55); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand p { margin-top: 22px; font-size: 15px; max-width: 320px; line-height: 1.6; }
.footer-col h5 {
  font-family: var(--font-body); color: #fff; font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 20px;
}
.footer-col a, .footer-col .li {
  display: block; font-size: 15px; padding: 7px 0;
  color: rgba(255,255,255,0.6);
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--accent); }
.socials { display: flex; gap: 12px; margin-top: 8px; }
.socials a {
  width: 40px; height: 40px; padding: 0;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all .25s var(--ease);
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 0 40px;
  font-size: 13.5px;
}
.footer-bottom .legal { display: flex; gap: 24px; }
.footer-bottom .legal a:hover { color: #fff; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
  .stat { border-top: 1px solid var(--line); padding: 32px 20px; }
  .stat:nth-child(-n+2) { border-top: none; }
  .why-grid { grid-template-columns: 1fr; }
  .why-figure { aspect-ratio: 16/10; max-height: 420px; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; }
}

@media (max-width: 900px) {
  :root { --gutter: 26px; }
  .nav-links { display: none; }
  .nav-cta .btn:not(.hamburger) { display: none; }
  .hamburger { display: block; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-figure { aspect-ratio: 16/10; max-height: 420px; }
  .about-figure .tag { padding: 9px 14px; max-width: 150px; bottom: 14px; }
  .about-figure .tag .big { font-size: 19px; }
  .about-figure .tag .small { font-size: 11px; }
  .why-figure .float { padding: 9px 14px; max-width: 140px; right: 0; top: 16px; }
  .why-figure .float .num { font-size: 22px; }
  .why-figure .float .lbl { font-size: 11px; }
  [data-hero="split"] .hero .hero-bg { position: relative; width: 100%; height: 40vh; }
  [data-hero="split"] .hero { flex-direction: column; }
  [data-hero="split"] .hero .container { padding-top: 0; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .carousel-btn { width: 44px; height: 44px; }
  .carousel-slide { flex: 0 0 calc((100% - 24px) / 2); }
  .team-grid.wide { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section-pad { padding: 64px 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .proj-carousel { gap: 10px; }
  .carousel-btn { width: 38px; height: 38px; }
  .carousel-slide { flex: 0 0 100%; }
  .team-grid, .team-grid.wide { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .field.row2 { grid-template-columns: 1fr; gap: 0; }
  .field.row2 .field { margin-bottom: 22px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
  .hero h1 { font-size: clamp(34px, 11vw, 54px); }
}

/* ===== Project Detail Modal ===== */
.proj-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease);
}
.proj-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.proj-modal-bd {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.proj-modal-panel {
  position: relative;
  background: var(--bg);
  border-radius: 12px;
  width: min(880px, calc(100vw - 32px));
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  transform: translateY(18px);
  transition: transform 0.22s var(--ease);
}
.proj-modal.open .proj-modal-panel { transform: translateY(0); }
.proj-modal-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: 14px 14px 0;
  background: var(--bg);
}
.proj-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: background 0.2s;
  flex-shrink: 0;
}
.proj-modal-close:hover { background: var(--accent); }
.proj-modal-body { padding: 12px 32px 40px; }
.proj-modal-cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.proj-modal-title { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 6px 0 4px; }
.proj-modal-loc {
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}
.proj-modal-stats {
  display: flex;
  gap: 32px;
  margin: 22px 0 0;
  padding: 18px 22px;
  background: var(--bg-alt);
  border-radius: 8px;
  flex-wrap: wrap;
}
.proj-modal-stat .val {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1;
}
.proj-modal-stat .key {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.proj-modal-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 24px;
}
.proj-modal-gallery img {
  width: 100%;
  border-radius: 6px;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
  cursor: zoom-in;
  transition: opacity 0.18s;
}
.proj-modal-gallery img:hover { opacity: 0.88; }

/* button variant of btn-details */
button.btn-details { width: 100%; font-family: inherit; }



@media (max-width: 600px) {
  .proj-modal-body { padding: 20px 20px 28px; }
  .proj-modal-gallery { grid-template-columns: 1fr; }
  .proj-modal-stats { gap: 18px; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}
