/* ==========================================================================
   GRÚAS TREJO — Premium industrial stylesheet
   ========================================================================== */

:root {
  /* Brand */
  --ink: #14171c;
  --graphite: #1b1f26;
  --steel: #232932;
  --slate: #2e3640;
  --amber: #ffb400;
  --amber-deep: #e89e00;
  --amber-dark: #b97f00;

  /* Neutrals */
  --paper: #f6f7f9;
  --white: #ffffff;
  --line: #e4e7ec;
  --line-dark: rgba(255, 255, 255, 0.08);
  --txt: #3c434d;
  --txt-soft: #6a7280;
  --txt-inverse: rgba(255, 255, 255, 0.82);
  --txt-inverse-soft: rgba(255, 255, 255, 0.6);

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 20, 26, 0.06), 0 4px 12px rgba(16, 20, 26, 0.06);
  --shadow-md: 0 4px 10px rgba(16, 20, 26, 0.08), 0 16px 40px rgba(16, 20, 26, 0.12);
  --shadow-lg: 0 10px 24px rgba(16, 20, 26, 0.16), 0 32px 64px rgba(16, 20, 26, 0.22);
  --topbar-h: 38px;
  --nav-h: 84px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--txt);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; }

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.text-amber { color: var(--amber); }
.text-amber-dark { color: var(--amber-dark); font-style: normal; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 8px;
  line-height: 1;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--solid {
  background: linear-gradient(180deg, var(--amber) 0%, var(--amber-deep) 100%);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(255, 180, 0, 0.32);
}
.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255, 180, 0, 0.45);
}

.btn--outline {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
}
.btn--outline:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(255, 180, 0, 0.08);
  transform: translateY(-2px);
}

.btn--ghost {
  border: 1.5px solid var(--line-dark);
  color: var(--white);
}
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }

.btn--dark {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(16, 20, 26, 0.35);
}
.btn--dark:hover { transform: translateY(-2px); background: #000; }

.btn--whatsapp {
  background: #1fbe5f;
  color: var(--white);
  box-shadow: 0 8px 22px rgba(31, 190, 95, 0.35);
}
.btn--whatsapp:hover { transform: translateY(-2px); background: #18a953; }

.btn--lg { padding: 17px 34px; font-size: 18px; }
.btn--block { width: 100%; }

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--topbar-h);
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
  font-size: 12.5px;
  color: var(--txt-inverse-soft);
  transition: transform 0.35s var(--ease);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.02em;
}
.topbar__item svg { color: var(--amber); flex-shrink: 0; }
.topbar__badge {
  color: var(--amber);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11.5px;
  transition: color 0.2s;
}
a.topbar__badge:hover { color: var(--white); }
a.topbar__badge svg { color: #2ee06f; }
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ee06f;
  box-shadow: 0 0 0 0 rgba(46, 224, 111, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 224, 111, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(46, 224, 111, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 224, 111, 0); }
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.nav {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(20, 23, 28, 0.92) 0%, rgba(20, 23, 28, 0.78) 100%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
  transition: height 0.3s var(--ease), background 0.3s var(--ease),
              box-shadow 0.3s var(--ease), top 0.35s var(--ease);
}
.nav.is-scrolled {
  height: 68px;
  top: 0;
  background: rgba(17, 20, 25, 0.97);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
body.topbar-hidden .topbar { transform: translateY(-100%); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(100% - 48px, 1280px);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}
.nav__logo {
  height: 46px;
  width: auto;
  transition: height 0.3s var(--ease);
}
.nav.is-scrolled .nav__logo { height: 38px; }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.nav__brand-text strong {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--white);
}
.nav__brand-text strong em { font-style: normal; color: var(--amber); }
.nav__brand-text small {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--txt-inverse-soft);
  margin-top: 3px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav__link {
  position: relative;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--txt-inverse);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover { color: var(--white); }
.nav__link.is-active { color: var(--amber); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.nav__phone {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
}
.nav__phone svg { color: var(--amber); }
.nav__phone span { display: flex; flex-direction: column; line-height: 1.2; }
.nav__phone small {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--txt-inverse-soft);
}
.nav__phone strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.nav__phone:hover strong { color: var(--amber); }
.nav__cta { padding: 12px 22px; font-size: 15px; }
.nav__cta-mobile { display: none; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__burger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--topbar-h) + var(--nav-h) + 40px) 0 110px;
  overflow: hidden;
  color: var(--white);
}
.hero__bg,
.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__bg img {
  object-fit: cover;
  object-position: 62% 38%;
  animation: heroZoom 18s var(--ease) both;
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 16, 20, 0.92) 0%, rgba(13, 16, 20, 0.72) 38%, rgba(13, 16, 20, 0.28) 72%, rgba(13, 16, 20, 0.45) 100%),
    linear-gradient(0deg, rgba(13, 16, 20, 0.85) 0%, rgba(13, 16, 20, 0) 32%);
}
.hero__stripe {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--amber) 0 22px,
    var(--ink) 22px 44px
  );
  opacity: 0.95;
}

.hero__content { position: relative; max-width: 780px; }

.hero__eyebrow,
.section__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}
.eyebrow-line {
  width: 46px;
  height: 2px;
  background: var(--amber);
  flex-shrink: 0;
}

.hero__title {
  margin: 22px 0 24px;
  font-family: var(--font-display);
  font-size: clamp(52px, 7.2vw, 92px);
  font-weight: 800;
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}
.hero__sub {
  max-width: 600px;
  font-size: clamp(16px, 1.4vw, 18.5px);
  line-height: 1.7;
  color: var(--txt-inverse);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 38px;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--txt-inverse);
}
.hero__trust svg { color: var(--amber); flex-shrink: 0; }

.hero__scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  transition: border-color 0.25s;
}
.hero__scroll span {
  width: 4px;
  height: 9px;
  border-radius: 4px;
  background: var(--amber);
  animation: scrollHint 1.8s var(--ease) infinite;
}
.hero__scroll:hover { border-color: var(--amber); }
@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ==========================================================================
   STATS
   ========================================================================== */
.stats {
  position: relative;
  background: var(--graphite);
  border-bottom: 1px solid var(--line-dark);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 52px 0;
}
.stat {
  text-align: center;
  padding: 6px 18px;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 56px;
  width: 1px;
  background: var(--line-dark);
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.6vw, 58px);
  font-weight: 800;
  line-height: 1;
  color: var(--amber);
  letter-spacing: 0.01em;
}
.stat__label {
  display: block;
  margin-top: 9px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--txt-inverse-soft);
}

/* ==========================================================================
   SECTIONS (shared)
   ========================================================================== */
.section { padding: 110px 0; }

.section__head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.section__head .section__eyebrow { justify-content: center; }
.section__head--left { margin: 0 0 44px; text-align: left; }
.section__head--left .section__eyebrow { justify-content: flex-start; }

.section__title {
  margin: 16px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.04;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}
.section__sub {
  font-size: 17px;
  color: var(--txt-soft);
  line-height: 1.7;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services { background: var(--paper); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.service-card__media {
  position: relative;
  aspect-ratio: 4 / 2.9;
  overflow: hidden;
}
.service-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16, 20, 26, 0.42) 0%, rgba(16, 20, 26, 0) 45%);
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.07); }
.service-card__tag {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  padding: 7px 14px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 30px 30px 28px;
  position: relative;
}
.service-card__icon {
  position: absolute;
  top: -28px;
  right: 26px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--amber);
  border-radius: 14px;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.service-card:hover .service-card__icon {
  transform: rotate(-6deg) scale(1.06);
}
.service-card__body h3 {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}
.service-card__body p {
  font-size: 15px;
  color: var(--txt-soft);
  margin-bottom: 22px;
  flex: 1;
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-dark);
  transition: gap 0.25s var(--ease), color 0.2s;
}
.service-card__link:hover { color: var(--ink); gap: 13px; }

/* ==========================================================================
   WHY US
   ========================================================================== */
.why { background: var(--white); overflow: hidden; }

.why__grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 70px;
  align-items: center;
}

.why__media { position: relative; }
.why__media > img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}
.why__frame {
  position: absolute;
  inset: 26px -26px -26px 26px;
  border: 2px solid var(--amber);
  border-radius: var(--radius);
  z-index: 0;
}
.why__badge {
  position: absolute;
  z-index: 2;
  left: -22px;
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: var(--ink);
  border-radius: 12px;
  border-left: 4px solid var(--amber);
  box-shadow: var(--shadow-lg);
}
.why__badge-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
}
.why__badge-text {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--txt-inverse);
}

.why__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 30px;
  margin-top: 8px;
}
.why__item { display: flex; gap: 16px; align-items: flex-start; }
.why__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--ink) 0%, var(--steel) 100%);
  color: var(--amber);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.why__item h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 4px;
}
.why__item p { font-size: 14.5px; color: var(--txt-soft); line-height: 1.6; }

.why__cta {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 38px;
  flex-wrap: wrap;
}
.why__phone { display: flex; flex-direction: column; line-height: 1.25; }
.why__phone small {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--txt-soft);
}
.why__phone strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.03em;
}
.why__phone:hover strong { color: var(--amber-dark); }

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.projects {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(255, 180, 0, 0.07), transparent 60%),
    var(--graphite);
}
.projects .section__title { color: var(--white); }
.projects .section__sub { color: var(--txt-inverse-soft); }

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  gap: 26px;
}

.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  isolation: isolate;
}
.project-card--featured {
  grid-column: span 2;
  grid-row: span 2;
}
.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
  z-index: -1;
}
.project-card:hover img { transform: scale(1.06); }
.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(8deg, rgba(13, 16, 20, 0.92) 6%, rgba(13, 16, 20, 0.42) 46%, rgba(13, 16, 20, 0.08) 75%);
  transition: background 0.4s var(--ease);
  z-index: 0;
}

.project-card__content {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 30px;
  color: var(--white);
  z-index: 1;
}
.project-card__meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-inverse-soft);
  margin-bottom: 8px;
}
.project-card__meta span { color: var(--amber); }
.project-card__content h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.08;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.project-card--featured .project-card__content h3 { font-size: 38px; }
.project-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--txt-inverse);
  max-width: 520px;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0.92;
}
.project-card__chip {
  display: inline-block;
  padding: 6px 13px;
  background: rgba(255, 180, 0, 0.14);
  border: 1px solid rgba(255, 180, 0, 0.5);
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
}

/* Gallery strip */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 26px;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-sm);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 30px 18px 14px;
  background: linear-gradient(0deg, rgba(13, 16, 20, 0.85), transparent);
  color: var(--txt-inverse);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
  position: relative;
  background: linear-gradient(100deg, var(--amber) 0%, #ffc432 100%);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(20, 23, 28, 0.05) 0 26px,
    transparent 26px 52px
  );
}
.cta-band__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 66px 0;
  flex-wrap: wrap;
}
.cta-band__text h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 54px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
}
.cta-band__text h2 em { font-style: normal; text-decoration: underline 4px; text-underline-offset: 7px; }
.cta-band__text p {
  margin-top: 12px;
  max-width: 560px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(20, 23, 28, 0.78);
}
.cta-band__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { background: var(--paper); }

.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

.contact__cards { display: grid; gap: 14px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s var(--ease);
}
a.contact-card:hover {
  transform: translateX(5px);
  border-color: var(--amber);
  box-shadow: var(--shadow-md);
}
.contact-card__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--ink), var(--steel));
  color: var(--amber);
  border-radius: 11px;
}
.contact-card span:last-child { display: flex; flex-direction: column; }
.contact-card small {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--txt-soft);
}
.contact-card strong {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.contact__coverage {
  margin-top: 22px;
  padding: 24px;
  background: var(--ink);
  border-radius: var(--radius);
  color: var(--txt-inverse);
}
.contact__coverage h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 8px;
}
.contact__coverage h3 svg { color: var(--amber); }
.contact__coverage p { font-size: 14px; color: var(--txt-inverse-soft); }
.coverage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.coverage-chips li {
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--txt-inverse);
  background: rgba(255, 255, 255, 0.04);
}
.coverage-chips li:last-child {
  border-color: rgba(255, 180, 0, 0.5);
  color: var(--amber);
  background: rgba(255, 180, 0, 0.1);
}

/* Form */
.contact__form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 38px;
  position: relative;
  overflow: hidden;
}
.contact__form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 18px, var(--ink) 18px 36px);
}
.contact__form h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.contact__form-sub {
  font-size: 14px;
  color: var(--txt-soft);
  margin: 4px 0 26px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--txt);
  margin-bottom: 7px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 9px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236a7280' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: #a3aab5; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--amber);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 180, 0, 0.16);
}
.form-field input.is-invalid,
.form-field select.is-invalid,
.form-field textarea.is-invalid {
  border-color: #e23d3d;
  box-shadow: 0 0 0 4px rgba(226, 61, 61, 0.12);
}
.contact__form-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--txt-soft);
  text-align: center;
}
.contact__form-note a { color: var(--amber-dark); font-weight: 600; }
.contact__form-note a:hover { text-decoration: underline; }

.contact__map {
  margin-top: 34px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.contact__map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
  filter: grayscale(0.2) contrast(1.02);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--ink);
  color: var(--txt-inverse-soft);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
  gap: 48px;
  padding: 72px 0 56px;
}
.footer__logo { width: 132px; height: auto; }
.footer__brand p {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}
.footer__social { display: flex; gap: 10px; margin-top: 22px; }
.footer__social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  color: var(--txt-inverse);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.footer__social a:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  transform: translateY(-3px);
}

.footer__col h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer__col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--amber);
}
.footer__col a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  transition: color 0.2s, padding-left 0.25s var(--ease);
}
.footer__col a:hover { color: var(--amber); padding-left: 6px; }
.footer__address,
.footer__coverage {
  display: flex;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.footer__address svg { margin-top: 4px; color: var(--amber); flex-shrink: 0; }
.footer__tel {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 19px !important;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
}
.footer__tel svg { color: var(--amber); }

.footer__bottom {
  border-top: 1px solid var(--line-dark);
  padding: 22px 0;
}
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ==========================================================================
   WHATSAPP FAB
   ========================================================================== */
.wa-fab {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 70;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  background: #1fbe5f;
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(31, 190, 95, 0.45);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.wa-fab:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 34px rgba(31, 190, 95, 0.55);
}
.wa-fab__tip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
  box-shadow: var(--shadow-md);
}
.wa-fab:hover .wa-fab__tip {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .nav__phone { display: none; }
  .why__grid { gap: 48px; }
  .projects__grid { grid-auto-rows: 260px; }
}

@media (max-width: 920px) {
  :root { --nav-h: 72px; }

  /* backdrop-filter creates a containing block that would trap the fixed drawer */
  .nav {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(17, 20, 25, 0.97);
  }

  .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 360px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 110px 30px 40px;
    background: var(--ink);
    border-left: 1px solid var(--line-dark);
    box-shadow: -30px 0 60px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    overflow-y: auto;
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__link {
    font-size: 19px;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line-dark);
  }
  .nav__link::after { display: none; }
  .nav__cta-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
  }

  body.menu-open { overflow: hidden; }

  .services__grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }

  .why__grid { grid-template-columns: 1fr; }
  .why__media { max-width: 520px; margin-inline: auto; }
  .why__frame { inset: 18px -14px -14px 18px; }

  .projects__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 320px;
  }
  .project-card--featured { grid-column: auto; grid-row: auto; min-height: 380px; }
  .project-card--featured .project-card__content h3 { font-size: 30px; }

  .gallery { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; margin-top: 26px; }

  .contact__grid { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; padding: 56px 0 44px; }
}

@media (max-width: 640px) {
  .section { padding: 78px 0; }

  .topbar { font-size: 11.5px; }
  .topbar__item { white-space: nowrap; }
  .topbar__item--hide-sm { display: none; }
}

@media (max-width: 520px) {
  .topbar__inner { justify-content: center; }
  .topbar__item:first-child { display: none; }
}

@media (max-width: 640px) {

  .container { width: min(100% - 36px, var(--container)); }

  .hero { padding-bottom: 90px; }
  .hero__actions .btn { width: 100%; }
  .hero__trust { gap: 10px 18px; }
  .hero__scroll { display: none; }

  .stats__grid { grid-template-columns: 1fr 1fr; gap: 26px 0; padding: 40px 0; }
  .stat + .stat::before { display: none; }
  .stat:nth-child(even)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 48px;
    width: 1px;
    background: var(--line-dark);
  }

  .why__badge { left: 10px; bottom: 18px; padding: 14px 18px; }
  .why__badge-num { font-size: 34px; }
  .why__list { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact__form { padding: 28px 22px; }

  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom-inner { justify-content: center; text-align: center; }

  .wa-fab { right: 18px; bottom: 18px; width: 54px; height: 54px; }
}

/* ==========================================================================
   WORDPRESS — páginas internas y utilidades
   ========================================================================== */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.page-hero {
  background:
    radial-gradient(900px 400px at 80% -20%, rgba(255, 180, 0, 0.08), transparent 60%),
    var(--graphite);
  padding: calc(var(--topbar-h) + var(--nav-h) + 70px) 0 58px;
  border-bottom: 4px solid var(--amber);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 54px);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--white);
}
.page-hero p { margin-top: 10px; color: var(--txt-inverse-soft); }

.entry-content {
  max-width: 820px;
  margin: 56px auto 96px;
}
.entry-content > * + * { margin-top: 1.15em; }
.entry-content h2,
.entry-content h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.1;
  margin-top: 1.6em;
}
.entry-content h2 { font-size: 32px; }
.entry-content h3 { font-size: 25px; }
.entry-content a { color: var(--amber-dark); font-weight: 600; }
.entry-content a:hover { text-decoration: underline; }
.entry-content ul,
.entry-content ol { padding-left: 1.3em; }
.entry-content ul { list-style: disc; }
.entry-content img { border-radius: var(--radius-sm); height: auto; }
.entry-content blockquote {
  border-left: 4px solid var(--amber);
  padding: 8px 0 8px 20px;
  color: var(--txt-soft);
}
.alignleft { float: left; margin: 6px 24px 12px 0; }
.alignright { float: right; margin: 6px 0 12px 24px; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--txt-soft); margin-top: 6px; }

.posts-list { max-width: 820px; margin: 56px auto 96px; display: grid; gap: 28px; }
.posts-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  background: var(--white);
}
.posts-list h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 26px; line-height: 1.1; }
.posts-list h2 a:hover { color: var(--amber-dark); }
.posts-list time { font-size: 13px; color: var(--txt-soft); }
