/* ==========================================================================
   DOCHE CONSTRUCCIONES S.A.
   Concepto visual: los "marcos en perspectiva" del isotipo + la precisión
   de un plano técnico. Rojo DOCHE, grafito y hormigón claro.
   ========================================================================== */

:root {
  /* Marca (muestreada del logo) */
  --red: #910608;
  --red-700: #6d0406;
  --red-400: #e0484c;
  --steel: #848688;
  --steel-light: #bdbfc1;

  /* Neutros */
  --ink: #0e0e10;
  --ink-2: #141417;
  --ink-3: #1c1c20;
  --paper: #f3f1ec;
  --paper-2: #e9e6df;
  --white: #ffffff;
  --text: #131315;
  --muted: #5c5e63;
  --text-inv: #f2f1ee;
  --muted-inv: #a2a3a8;
  --line: rgba(19, 19, 21, .14);
  --line-inv: rgba(255, 255, 255, .13);
  --wa: #25d366;

  /* Fondos de sección (paleta del sitio original; dos seguidos nunca repiten) */
  --bg-white: #ffffff;
  --bg-blush: #f6e9ea;
  --bg-grey: #e6e6e6;
  --bg-warm: #faf8f5;
  --bg-steel: #edeff1;
  --bg-sand: #f4eee6;
  --bg-wine: #5a0b0d;
  --line-brand: rgba(145, 6, 8, .16);

  /* Tipografía */
  --f-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Movimiento */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);

  /* Layout */
  --nav-h: 72px;
  --ticker-h: 54px;
  --gutter: clamp(20px, 4.2vw, 56px);
  --maxw: 1360px;
  --section-y: clamp(96px, 12vw, 176px);

  /* Intro */
  --intro-delay: 0s;
}
@media (min-width: 1024px) {
  :root { --nav-h: 84px; --ticker-h: 62px; }
}
html.is-intro { --intro-delay: 1.9s; }

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) - 1px);
}
html.intro-lock,
html.nav-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg-white);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
main { display: block; overflow-x: clip; }

img,
video,
svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button,
input,
textarea,
select { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -.02em;
}
p { margin: 0 0 1em; }

::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red-400); outline-offset: 3px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -80px; left: 16px;
  z-index: 3000;
  padding: 12px 18px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Secciones ---------- */
.section {
  position: relative;
  padding-block: var(--section-y);
}
/* Secciones con texto claro sobre foto o bordó (sin negro) */
.theme-dark {
  background: var(--bg-wine);
  color: var(--text-inv);
}

.section-head {
  display: grid;
  gap: 28px;
  margin-bottom: clamp(48px, 7vw, 104px);
}
@media (min-width: 960px) {
  .section-head.split {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    align-items: end;
    column-gap: clamp(40px, 6vw, 96px);
  }
}
.section-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted);
}
.section-kicker .idx { color: var(--red); }
.section-kicker .rule {
  width: 44px;
  height: 2px;
  background: var(--red);
}
.theme-dark .section-kicker { color: var(--muted-inv); }
.theme-dark .section-kicker .idx { color: var(--red-400); }

.section-title {
  margin: 0;
  font-size: clamp(40px, 6.2vw, 92px);
  font-weight: 650;
  font-stretch: 106%;
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.section-intro {
  max-width: 44ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.6;
}
.theme-dark .section-intro { color: var(--muted-inv); }

/* ---------- Revelado (solo con JS activo) ---------- */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition:
    opacity 1s var(--ease) calc(var(--d, 0) * 1ms),
    transform 1.2s var(--ease) calc(var(--d, 0) * 1ms);
}
.js-ready [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
/* Elementos revelables que además tienen transiciones propias de hover */
.js-ready .quote-card[data-reveal] {
  transition:
    opacity 1s var(--ease) calc(var(--d, 0) * 1ms),
    transform 1.2s var(--ease) calc(var(--d, 0) * 1ms),
    color .55s var(--ease),
    border-color .55s ease;
}
.js-ready .resource-card[data-reveal] {
  transition:
    opacity 1s var(--ease) calc(var(--d, 0) * 1ms),
    transform 1.2s var(--ease) calc(var(--d, 0) * 1ms),
    border-color .5s ease;
}
/* Respaldo: si main.js no llegara a cargar, el contenido aparece igual */
.js-ready:not(.js-loaded) [data-reveal] { animation: revealFailsafe .6s ease 4s forwards; }
@keyframes revealFailsafe { to { opacity: 1; transform: none; } }
.js-ready [data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .1em;
  margin-bottom: -.1em;
}
.js-ready [data-split] .w > span {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  transition: transform 1.15s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms + var(--d, 0) * 1ms);
}
.js-ready [data-split].is-in .w > span { transform: none; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  --btn-fill: #fff;
  --btn-fg-hover: var(--red);
  position: relative;
  display: inline-flex;
  align-items: stretch;
  min-height: 58px;
  padding: 0;
  border: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: color .5s var(--ease), translate .7s var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-fill);
  transform: translate3d(0, 101%, 0);
  transition: transform .65s var(--ease);
}
.btn:hover,
.btn:focus-visible { color: var(--btn-fg-hover); }
.btn:hover::before,
.btn:focus-visible::before { transform: none; }
.btn-label {
  display: flex;
  align-items: center;
  padding: 0 26px;
}
.btn-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  border-left: 1px solid rgba(255, 255, 255, .25);
  overflow: hidden;
  font-size: 18px;
  transition: border-color .5s;
}
.btn-icon i {
  grid-area: 1 / 1;
  transition: transform .65s var(--ease);
}
.btn-icon i + i { transform: translate3d(-60px, 0, 0); }
.btn:hover .btn-icon i:first-child { transform: translate3d(60px, 0, 0); }
.btn:hover .btn-icon i + i { transform: none; }
.btn:hover .btn-icon { border-color: rgba(145, 6, 8, .2); }

.btn-whatsapp {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  --btn-fill: var(--wa);
  --btn-fg-hover: #fff;
}
.btn-wa-icon {
  display: grid;
  place-items: center;
  width: 62px;
  background: var(--wa);
  color: #fff;
  font-size: 24px;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  color: var(--text);
  transition: top .6s var(--ease), color .45s ease;
}
.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 var(--line);
  opacity: 1;
  transition: background-color .45s ease, opacity .45s ease;
}
.navbar.is-solid::before { background: rgba(255, 255, 255, .88); }
.navbar.is-hidden { top: calc(var(--nav-h) * -1 - 4px); }

.nav-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.nav-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}
/* La entrada se anima en los hijos: una animación de transform en .nav-content
   lo volvería contenedor del menú móvil (position: fixed) y lo recortaría. */
.brand,
.hamburger {
  animation: navIn 1.1s var(--ease) both;
  animation-delay: calc(var(--intro-delay) + .15s);
}
@media (min-width: 1024px) {
  .nav-links {
    animation: navIn 1.1s var(--ease) both;
    animation-delay: calc(var(--intro-delay) + .25s);
  }
}
@keyframes navIn {
  from { opacity: 0; transform: translate3d(0, -28px, 0); }
}
.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 8px 0;
}
.brand-logo {
  width: auto;
  height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  opacity: .82;
  transition: opacity .3s ease;
}
.nav-links a:hover,
.nav-links a.active { opacity: 1; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .55s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}
.nav-links .nav-cta {
  margin-left: 12px;
  padding: 0 22px;
  border: 1px solid currentColor;
  opacity: 1;
  transition: background-color .4s ease, border-color .4s ease, color .4s ease;
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover,
.nav-links .nav-cta.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.hamburger {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-right: -12px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.hamburger span {
  position: absolute;
  width: 26px;
  height: 1.5px;
  background: currentColor;
  transition: transform .55s var(--ease);
}
.hamburger span:first-child { transform: translate3d(0, -4px, 0); }
.hamburger span:last-child { transform: translate3d(0, 4px, 0); }
.nav-open .hamburger span:first-child { transform: rotate(45deg); }
.nav-open .hamburger span:last-child { transform: rotate(-45deg); }

@media (max-width: 1023.98px) {
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: calc(var(--nav-h) + 20px) var(--gutter) 48px;
    overflow-y: auto;
    background: var(--bg-white);
    color: var(--text);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .75s var(--ease-io), visibility 0s linear .75s;
  }
  .nav-open .nav-links {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition: clip-path .75s var(--ease-io), visibility 0s;
  }
  .nav-links li {
    overflow: hidden;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a,
  .nav-links .nav-cta {
    display: flex;
    align-items: baseline;
    gap: 18px;
    height: auto;
    margin: 0;
    padding: 16px 0;
    border: 0;
    font-family: var(--f-display);
    font-size: clamp(30px, 8.6vw, 54px);
    font-weight: 600;
    font-stretch: 108%;
    letter-spacing: -.025em;
    line-height: 1.05;
    opacity: 1;
    transform: translate3d(0, 105%, 0);
    transition: transform .8s var(--ease), color .3s ease;
  }
  .nav-links a::after { display: none; }
  .nav-links .nav-cta:hover,
  .nav-links .nav-cta.active { background: none; color: var(--red); }
  .nav-links a.active { color: var(--red); }
  .nav-open .nav-links a {
    transform: none;
    transition-delay: calc(.18s + var(--i, 0) * .06s);
  }
  .nav-open .navbar { color: var(--text); }
  .nav-open .navbar::before { opacity: 0; }
  .nav-open .nav-progress { opacity: 0; }
}
@media (min-width: 1024px) {
  .brand-logo { height: 40px; }
  .hamburger { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-wine);
  color: #fff;
}
/* La intro se dibuja sobre blanco, como el logo */
.is-intro .hero { background: var(--bg-white); }
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  will-change: transform;
}
.hero-media-inner {
  position: absolute;
  inset: 0;
}
.hero-video,
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.hero-image {
  transform-origin: 60% 40%;
  animation: kenburns 28s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.02); }
  to { transform: scale(1.13) translate3d(-1.2%, -1%, 0); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(24, 10, 10, .6) 0%, rgba(24, 10, 10, .14) 26%, rgba(34, 8, 10, .2) 50%, rgba(58, 8, 10, .86) 100%),
    radial-gradient(130% 90% at 72% 30%, transparent 35%, rgba(46, 8, 10, .42) 100%);
}

/* Líneas de plano */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.hero-grid span {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .12) 18%, rgba(255, 255, 255, .12) 82%, transparent);
  transform: scaleY(0);
  transform-origin: 50% 0;
  animation: gridDraw 1.8s var(--ease-io) forwards;
  animation-delay: calc(var(--intro-delay) + var(--i) * .09s);
}
.hero-grid span:nth-child(2),
.hero-grid span:nth-child(4) { display: none; }
@media (min-width: 900px) {
  .hero-grid span:nth-child(2),
  .hero-grid span:nth-child(4) { display: block; }
}
@keyframes gridDraw { to { transform: scaleY(1); } }

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding-top: calc(var(--nav-h) + 22px);
  padding-bottom: calc(var(--ticker-h) + clamp(24px, 3.4vw, 44px));
  will-change: transform, opacity;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}
.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  animation: fadeUp 1.1s var(--ease) both;
  animation-delay: calc(var(--intro-delay) + .6s);
}
.hero-meta-item:first-child::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--red-400);
}
.hero-coords { animation-delay: calc(var(--intro-delay) + .7s); }

.hero-title {
  margin: 0;
  line-height: 1;
}
.hero-logo {
  width: clamp(180px, 36vh, 400px);
  width: clamp(180px, 36svh, 400px);
  height: auto;
  animation: fadeUp 1.3s var(--ease) both;
  animation-delay: calc(var(--intro-delay) + .12s);
}
@keyframes rise { to { transform: none; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
}
@keyframes fadeIn { from { opacity: 0; } }

.hero-foot {
  position: relative;
  display: grid;
  gap: 24px;
  margin-top: clamp(24px, 3.4vw, 44px);
  padding-top: clamp(22px, 2.6vw, 34px);
}
.hero-foot::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255, 255, 255, .26);
  transform: scaleX(0);
  transform-origin: 0 50%;
  animation: lineDraw 1.5s var(--ease-io) forwards;
  animation-delay: calc(var(--intro-delay) + .35s);
}
@keyframes lineDraw { to { transform: scaleX(1); } }
.hero-lead {
  max-width: 36ch;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(16.5px, 1.45vw, 21px);
  line-height: 1.5;
  animation: fadeUp 1.1s var(--ease) both;
  animation-delay: calc(var(--intro-delay) + .65s);
}
.hero-foot .btn {
  justify-self: start;
  animation: fadeUp 1.1s var(--ease) both;
  animation-delay: calc(var(--intro-delay) + .78s);
}
.hero-scroll { display: none; }
@media (min-width: 900px) {
  .hero-foot {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: 40px;
  }
  .hero-scroll {
    position: relative;
    display: block;
    width: 1px;
    height: 64px;
    margin-left: 6px;
    background: rgba(255, 255, 255, .24);
    overflow: hidden;
    animation: fadeIn 1s ease both;
    animation-delay: calc(var(--intro-delay) + 1s);
  }
  .hero-scroll::after {
    content: '';
    position: absolute;
    inset: -10px -22px;
  }
  .hero-scroll span {
    position: absolute;
    top: 0; left: 0;
    width: 1px;
    height: 40%;
    background: #fff;
    animation: scrollCue 2.4s var(--ease-io) infinite;
  }
}
@keyframes scrollCue {
  0% { transform: translate3d(0, -100%, 0); }
  65%, 100% { transform: translate3d(0, 260%, 0); }
}

/* Servicios del hero: cada uno una sola vez; una línea de progreso los recorre */
.hero-services {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  border-top: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: stripIn 1.3s var(--ease) both;
  animation-delay: calc(var(--intro-delay) + .55s);
}
@keyframes stripIn {
  from { transform: translate3d(0, 100%, 0); }
}
.hero-services ul {
  position: relative;
  height: var(--ticker-h);
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
  list-style: none;
}
/* En el celular se ve un servicio por vez */
.hero-services li {
  position: absolute;
  inset: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity .5s ease, transform .6s var(--ease);
}
.hero-services li.is-active {
  opacity: 1;
  transform: none;
}
.hero-services a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-bottom: 6px;
  color: #fff;
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 600;
  font-stretch: 116%;
  letter-spacing: .22em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}
.hs-dots {
  position: absolute;
  left: 50%;
  bottom: 9px;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}
.hs-dots span {
  width: 14px;
  height: 2px;
  background: rgba(255, 255, 255, .32);
  transition: width .4s var(--ease), background-color .4s ease;
}
.hs-dots span.is-active {
  width: 28px;
  background: var(--red-400);
}
/* En escritorio se ven los seis y la línea va pasando de uno a otro */
@media (min-width: 900px) {
  .hero-services ul {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .hero-services li {
    position: relative;
    inset: auto;
    opacity: 1;
    transform: none;
    border-left: 1px solid rgba(255, 255, 255, .14);
  }
  .hero-services li:last-child { border-right: 1px solid rgba(255, 255, 255, .14); }
  .hero-services a {
    width: 100%;
    padding: 0 10px;
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
    letter-spacing: .18em;
    line-height: 1.25;
    transition: color .4s ease;
  }
  .hero-services a::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--red-400);
    transform: scaleX(0);
    transform-origin: 0 50%;
  }
  .hero-services a.is-active,
  .hero-services a:hover { color: #fff; }
  .hero-services a.is-active::after { animation: svcProgress var(--svc-dur, 3s) linear forwards; }
  .hs-dots { display: none; }
}
@keyframes svcProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Intro: archivo original del logo, sin reconstrucciones ---------- */
.intro { display: none; }
.is-intro .intro {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  pointer-events: none;
  animation: introGone .01s linear 2.3s forwards;
}
@keyframes introGone { to { visibility: hidden; } }
.intro-mark {
  width: min(72vw, 520px);
  height: auto;
  animation: introLogo 2.3s var(--ease) both;
}
@keyframes introLogo {
  0% { opacity: 0; transform: translate3d(0, 16px, 0); }
  15%, 65% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}
.is-intro .hero-media { animation: introPortal 2.3s ease both; }
.is-intro .hero-overlay { animation: introFade 1s ease 1.55s both; }
@keyframes introFade { from { opacity: 0; } }
@keyframes introPortal {
  0%, 60% { opacity: 0; }
  100% { opacity: 1; }
}

/* ==========================================================================
   01 · Descripción general
   ========================================================================== */
.overview { background: var(--bg-white); }
.statement {
  max-width: 23em;
  margin: 0 0 clamp(72px, 10vw, 140px);
  font-family: var(--f-display);
  font-size: clamp(26px, 3.55vw, 54px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.025em;
}
.statement strong {
  color: var(--red);
  font-weight: 700;
}
.js-ready .statement .w {
  opacity: .16;
  transition: opacity .4s ease;
}
.js-ready .statement .w.on { opacity: 1; }

.overview-grid {
  display: grid;
  gap: 56px;
}
@media (min-width: 960px) {
  .overview-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: clamp(56px, 7vw, 120px);
    align-items: center;
  }
}
.overview-text > p {
  max-width: 44ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
}
.overview-bullets {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.overview-bullets li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(16.5px, 1.3vw, 19px);
  font-weight: 550;
  line-height: 1.35;
}
.overview-bullets .bi {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--red);
  font-size: 15px;
  transition: background-color .4s, color .4s, border-color .4s;
}
.overview-bullets li:hover .bi {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* Marco con capas del isotipo (imagen al frente, franjas detrás) */
.layered {
  --step: clamp(12px, 2.2vw, 34px);
  position: relative;
  margin: 0 0 0 calc(var(--step) * 3);
}
.layered-media {
  position: relative;
  z-index: 4;
  aspect-ratio: 1891 / 1166;
  overflow: hidden;
  background: var(--paper-2);
}
.layered-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.layer {
  position: absolute;
  top: calc(var(--n) * 5.15%);
  bottom: calc(var(--n) * 5.15%);
  left: calc(var(--step) * var(--n) * -1);
  width: calc(var(--step) + 1px);
  clip-path: polygon(0 0, 100% calc(var(--step) * .379), 100% calc(100% - var(--step) * .379), 0 100%);
  transition: transform 1.2s var(--ease), opacity .8s ease;
  transition-delay: calc(.85s + var(--n) * .13s);
}
.layer-1 { --n: 1; z-index: 3; background: var(--red); }
.layer-2 { --n: 2; z-index: 2; background: var(--steel); }
.layer-3 { --n: 3; z-index: 1; background: var(--steel-light); }

.js-ready .layered[data-reveal] { opacity: 1; transform: none; }
.js-ready .layered .layer {
  opacity: 0;
  transform: translate3d(calc(var(--step) * var(--n)), 0, 0);
}
.js-ready .layered.is-in .layer { opacity: 1; transform: none; }
.js-ready .layered .layered-media {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.4s var(--ease-io);
}
.js-ready .layered.is-in .layered-media { clip-path: inset(0 0 0 0); }
.js-ready .layered .layered-media img {
  transform: scale(1.2);
  transition: transform 2.2s var(--ease) .1s;
}
.js-ready .layered.is-in .layered-media img { transform: none; }

/* ==========================================================================
   Motivos para elegirnos (rosado suave de la marca)
   ========================================================================== */
.reasons { background: var(--bg-blush); }
.reasons-grid {
  display: grid;
  border-top: 1px solid var(--line-brand);
}
@media (min-width: 900px) {
  .reasons-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reasons-grid .card + .card { border-left: 1px solid var(--line-brand); }
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(28px, 3vw, 44px);
  border-bottom: 1px solid var(--line-brand);
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 900px) {
  .card { min-height: 380px; }
}
/* Luz que sigue al cursor */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .95), transparent 62%);
  opacity: 0;
  transition: opacity .5s ease;
}
.card::after {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .9s var(--ease);
}
.card:hover::before { opacity: 1; }
.card:hover::after { transform: scaleX(1); }
.card-top {
  display: flex;
  align-items: center;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line-brand);
  background: #fff;
  color: var(--red);
  font-size: 24px;
  transition: background-color .45s ease, border-color .45s ease, color .45s ease, transform .8s var(--ease);
}
.card:hover .card-icon {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: rotate(-90deg);
}
.card:hover .card-icon i { transform: rotate(90deg); }
.card-icon i { transition: transform .8s var(--ease); }
.card h3 {
  margin-top: auto;
  padding-top: clamp(12px, 3vw, 40px);
  color: var(--text);
  font-size: clamp(25px, 2.3vw, 34px);
  font-weight: 600;
  font-stretch: 104%;
  letter-spacing: -.02em;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

/* ==========================================================================
   Servicios: los seis a la vista; la tarjeta se expande al pasar el mouse
   ========================================================================== */
.services { background: var(--bg-grey); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.services-row { display: contents; }
.service-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #cfcfcf;
  color: #fff;
  outline-offset: -3px;
}
.service-media {
  position: absolute;
  inset: 0;
}
.service-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transition: transform 1.4s var(--ease), filter .8s ease;
}
.service-card:hover .service-media img,
.service-card:focus-visible .service-media img { transform: scale(1.06); }
/* Reel de Arquitectura: aparece sobre la foto desenfocada al pasar el mouse */
.service-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  opacity: 0;
  transition: opacity .6s ease;
}
.service-card.is-playing .service-video { opacity: 1; }
.service-card.is-playing .service-media img {
  filter: blur(18px) brightness(.55);
  transform: scale(1.2);
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(40, 6, 8, .18) 0%, transparent 30%, transparent 48%, rgba(40, 6, 8, .82) 100%);
  pointer-events: none;
}
.service-plus,
.service-title {
  position: absolute;
  z-index: 2;
}
.service-plus {
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .55);
  color: #fff;
  font-size: 16px;
  transition: background-color .45s ease, border-color .45s ease;
}
.service-plus i { transition: transform .8s var(--ease); }
.service-card:hover .service-plus {
  background: var(--red);
  border-color: var(--red);
}
.service-card:hover .service-plus i { transform: rotate(90deg); }
.service-title {
  left: clamp(16px, 2vw, 28px);
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 26px);
  margin: 0;
  color: #fff;
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 650;
  font-stretch: 106%;
  line-height: 1.08;
  letter-spacing: -.015em;
}
.service-title::before {
  content: '';
  display: block;
  width: 30px;
  height: 3px;
  margin-bottom: 12px;
  background: var(--red-400);
  transition: width .7s var(--ease);
}
.service-card:hover .service-title::before { width: 64px; }
/* Resaltado al llegar desde la cinta de servicios del hero */
.service-card.is-highlight { animation: cardPulse 1.3s var(--ease) 2; }
@keyframes cardPulse {
  0%, 100% { outline: 4px solid rgba(224, 72, 76, 0); }
  40% { outline: 4px solid rgba(224, 72, 76, 1); }
}
@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .services-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    height: clamp(320px, 38vh, 440px);
    transition: grid-template-columns .9s var(--ease);
  }
  .service-card { aspect-ratio: auto; }
}
@media (min-width: 900px) and (hover: hover) {
  .services-row:has(> .service-card:nth-child(1):hover) { grid-template-columns: 1.75fr 1fr 1fr; }
  .services-row:has(> .service-card:nth-child(2):hover) { grid-template-columns: 1fr 1.75fr 1fr; }
  .services-row:has(> .service-card:nth-child(3):hover) { grid-template-columns: 1fr 1fr 1.75fr; }
}

/* ==========================================================================
   04 · Clientes: doble cinta infinita
   ========================================================================== */
.clients { background: var(--bg-warm); }
.js-ready .marquees[data-reveal] { transform: none; }
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee + .marquee { margin-top: 14px; }
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 70s linear infinite;
}
.marquee.is-reverse .marquee-track {
  animation-direction: reverse;
  animation-duration: 82s;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.client-logo {
  --s: 1;
  --tile-w: clamp(168px, 18vw, 232px);
  position: relative;
  flex: none;
  width: var(--tile-w);
  height: calc(var(--tile-w) * .5625);
  margin-right: 14px;
  overflow: hidden;
  background: var(--tile-bg, #fff);
  border: 1px solid var(--line);
  transition: border-color .5s ease, filter .6s ease;
}
/* Caja fija centrada en ambos ejes; el logo se ajusta adentro sin deformarse */
.client-logo img {
  position: absolute;
  inset: 0;
  width: calc(74% * var(--s));
  height: calc(62% * var(--s));
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.client-logo.has-bg { border-color: transparent; }
.client-logo.has-bg img { mix-blend-mode: normal; }
@media (hover: hover) {
  .client-logo { filter: grayscale(1) contrast(1.04); }
  .client-logo img { opacity: .9; transition: opacity .6s ease; }
  .client-logo.has-bg img { opacity: 1; }
  .client-logo:hover { filter: none; border-color: rgba(145, 6, 8, .4); }
  .client-logo:hover img { opacity: 1; }
}

/* ==========================================================================
   CTA WhatsApp
   ========================================================================== */
.cta-wsp {
  overflow: hidden;
  padding-block: clamp(120px, 17vw, 240px);
  text-align: center;
}
.cta-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  top: -14%;
  left: 0;
  width: 100%;
  height: 128%;
  max-width: none;
  object-fit: cover;
  will-change: transform;
}
.cta-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 65% at 50% 52%, rgba(90, 11, 13, .78), rgba(90, 11, 13, .42)),
    linear-gradient(180deg, rgba(60, 8, 10, .5), transparent 30%, transparent 70%, rgba(60, 8, 10, .6));
}
.cta-inner { position: relative; z-index: 1; }
.cta-wsp .section-title {
  max-width: 13ch;
  margin-inline: auto;
  color: #fff;
  font-size: clamp(42px, 7.4vw, 118px);
}
.cta-wsp .section-intro {
  margin: clamp(24px, 3vw, 36px) auto clamp(36px, 4.4vw, 56px);
  color: rgba(255, 255, 255, .82);
  max-width: 38ch;
}
.cta-actions {
  display: flex;
  justify-content: center;
}
.cta-btn .btn-label {
  padding: 0 28px;
  font-size: 14.5px;
  letter-spacing: .08em;
}
.cta-btn { min-height: 64px; }

/* ==========================================================================
   05 · Ventajas: columna fija + isotipo que se dibuja
   ========================================================================== */
.advantages { background: var(--bg-steel); }
.adv-layout {
  display: grid;
  gap: 24px;
}
.adv-aside .section-head { margin-bottom: 0; }
.adv-mark { display: none; }
.adv-list { border-top: 1px solid var(--line); }
.adv-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(32px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--line);
}
.adv-icon {
  display: grid;
  place-items: center;
  width: clamp(52px, 5vw, 68px);
  height: clamp(52px, 5vw, 68px);
  background: var(--red);
  color: #fff;
  font-size: clamp(22px, 2vw, 28px);
  transition: transform .8s var(--ease);
}
.adv-body h3 {
  margin: 0 0 14px;
  font-size: clamp(26px, 2.8vw, 42px);
  font-weight: 650;
  font-stretch: 106%;
  letter-spacing: -.025em;
}
.adv-body p {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16.5px, 1.3vw, 18px);
}
@media (min-width: 960px) {
  .adv-layout {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(56px, 8vw, 140px);
    align-items: start;
  }
  .adv-aside {
    position: sticky;
    top: calc(var(--nav-h) + 48px);
  }
  .adv-mark {
    display: block;
    width: auto;
    height: clamp(130px, 22vh, 210px);
    margin-top: clamp(32px, 5vh, 56px);
    overflow: visible;
  }
  .adv-mark path {
    fill-opacity: 0;
    stroke: var(--text);
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: calc(1 - clamp(0, (var(--draw, 0) - var(--o, 0)) * 2.5, 1));
    transition: fill-opacity .9s ease, stroke-opacity .9s ease;
  }
  .adv-mark.is-filled path {
    fill-opacity: 1;
    stroke-opacity: 0;
  }
  .adv-mark.is-filled path:nth-child(n + 4) { transition-delay: .15s; }
  .js-ready .adv-item {
    opacity: .28;
    transition:
      opacity .6s ease,
      transform 1.2s var(--ease) calc(var(--d, 0) * 1ms);
  }
  .js-ready .adv-item.is-in { opacity: .28; }
  .js-ready .adv-item.is-in.is-current { opacity: 1; }
  .adv-item { min-height: 36vh; align-content: center; }
  .adv-item.is-current .adv-icon { transform: rotate(-8deg) scale(1.06); }
}
@media (min-width: 960px) and (max-height: 760px) {
  .adv-mark { display: none; }
}

/* ==========================================================================
   06 · Cotizaciones
   ========================================================================== */
.quotes {
  background: var(--red);
  color: #fff;
  overflow: hidden;
}
.quotes::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, #000, transparent 75%);
  pointer-events: none;
}
.quotes .container { position: relative; }
.quotes .section-kicker { color: rgba(255, 255, 255, .72); }
.quotes .section-kicker .idx { color: #fff; }
.quotes .section-intro { color: rgba(255, 255, 255, .84); }
.quotes-actions {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .quotes-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
.quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-height: clamp(220px, 22vw, 300px);
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
  transition: color .55s var(--ease), border-color .55s ease;
}
.quote-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform .75s var(--ease);
}
.quote-card:hover,
.quote-card:focus-visible {
  color: var(--red);
  border-color: #fff;
}
.quote-card:hover::before,
.quote-card:focus-visible::before { transform: scaleY(1); }
.quote-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.quote-icon { font-size: 34px; line-height: 1; }
.quote-arrow {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 20px;
  transition: transform .8s var(--ease), background-color .5s, color .5s;
}
.quote-card:hover .quote-arrow {
  transform: rotate(45deg);
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.quote-title {
  max-width: 16ch;
  font-family: var(--f-display);
  font-size: clamp(26px, 2.9vw, 42px);
  font-weight: 650;
  font-stretch: 106%;
  line-height: 1.04;
  letter-spacing: -.025em;
}

/* ==========================================================================
   Contacto (arena clara)
   ========================================================================== */
.contact { background: var(--bg-sand); }
.contact-grid {
  display: grid;
  gap: 56px;
}
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(48px, 6vw, 104px);
    align-items: stretch;
  }
}
.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.info-list > li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.45;
}
.info-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-brand);
  background: #fff;
  color: var(--red);
  font-size: 20px;
  transition: background-color .45s ease, border-color .45s ease, color .45s ease;
}
.info-list > li:hover .info-icon {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.info-list a {
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .6s var(--ease);
}
.info-list a:hover { background-size: 100% 1px; }
.contact-agent .avatar {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--bg-sand), 0 0 0 4px rgba(145, 6, 8, .45);
}
.agent-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.agent-text strong {
  color: var(--text);
  font-weight: 600;
}
.agent-text a {
  justify-self: start;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: .06em;
}
.info-list .agent-wa {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  transition: transform .5s var(--ease);
}
.info-list .agent-wa:hover { transform: scale(1.08) rotate(-8deg); }

.contact-map {
  display: flex;
  flex-direction: column;
}
.layered-map {
  --step: clamp(10px, 1.6vw, 24px);
  flex: 1;
}
.layered-map .layered-media {
  aspect-ratio: auto;
  height: 100%;
  min-height: clamp(340px, 42vw, 520px);
  background: #e9e3da;
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(.85) contrast(1.05);
  transition: filter .9s ease;
}
.contact-map:hover iframe,
.map-embed:focus-within iframe { filter: none; }
.map-link {
  margin: 16px 0 0 calc(var(--step, 24px) * 3);
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.contact-map .map-link { margin-left: calc(clamp(10px, 1.6vw, 24px) * 3); }
.map-link a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid rgba(145, 6, 8, .35);
  transition: border-color .3s ease;
}
.map-link a:hover { border-color: var(--red); }

.company-resources {
  display: grid;
  gap: 16px;
  margin-top: clamp(56px, 7vw, 96px);
}
@media (min-width: 900px) {
  .company-resources { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.company-block,
.resource-card,
.social-block {
  position: relative;
  padding: clamp(24px, 2.4vw, 32px);
  border: 1px solid var(--line);
  background: #fff;
}
.company-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.company-label .bi { color: var(--red); font-size: 14px; }
.contact-company {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(22px, 1.9vw, 26px);
  font-weight: 650;
  font-stretch: 104%;
}
.contact-fiscal {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 13.5px;
  letter-spacing: .04em;
}
.resource-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  color: var(--text);
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
  transition: border-color .5s ease, color .5s var(--ease);
}
.resource-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .8s var(--ease);
}
.resource-card:hover {
  border-color: var(--red);
  color: #fff;
}
.resource-card:hover::before { transform: scaleX(1); }
.resource-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--red);
  color: #fff;
  font-size: 24px;
  transition: background-color .5s ease;
}
.resource-card:hover .resource-icon { background: rgba(255, 255, 255, .16); }
.resource-text { display: grid; gap: 4px; }
.resource-text strong { font-weight: 650; font-size: 17px; }
.resource-text span {
  color: var(--muted);
  font-size: 14.5px;
  transition: color .5s ease;
}
.resource-card:hover .resource-text span { color: rgba(255, 255, 255, .85); }
.resource-arrow {
  font-size: 20px;
  transition: transform .6s var(--ease);
}
.resource-card:hover .resource-arrow { transform: translate3d(0, 3px, 0); }

.social-cta {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}
.social-cta strong { color: var(--text); font-weight: 650; font-size: 17px; }
.social-cta .muted { color: var(--muted); font-size: 14.5px; }
.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.btn-social {
  --brand: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
  transition: background-color .4s ease, border-color .4s ease, color .4s ease;
}
.btn-social .bi { color: var(--brand); transition: color .4s ease; }
.btn-social.facebook { --brand: #1877f2; }
.btn-social.instagram { --brand: #e4405f; }
.btn-social.whatsapp { --brand: #1ebe5b; }
.btn-social.facebook:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.btn-social.instagram:hover { background: #e4405f; border-color: #e4405f; color: #fff; }
.btn-social.whatsapp:hover { background: #1ebe5b; border-color: #1ebe5b; color: #fff; }
.btn-social:hover .bi { color: #fff; }

/* Formulario (opcional) */
.contact-form { margin-top: 40px; }
.form {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  background: #fff;
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.field label {
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.field input,
.field textarea {
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 17px;
  outline: none;
  transition: border-color .3s ease;
}
.field input:focus,
.field textarea:focus { border-color: var(--red); }
.field input::placeholder,
.field textarea::placeholder { color: rgba(19, 19, 21, .35); }
.form-alert {
  margin-bottom: 14px;
  padding: 12px 14px;
  font-weight: 600;
}
.form-alert.alert-success { background: #e6f4ea; color: #137333; }
.form-alert.alert-error { background: #fdecea; color: #b3261e; }

/* ==========================================================================
   Footer (bordó profundo)
   ========================================================================== */
.footer {
  overflow: hidden;
  padding-top: clamp(80px, 10vw, 140px);
  background: var(--bg-wine);
  color: rgba(255, 255, 255, .74);
}
.footer-top {
  display: grid;
  gap: 48px;
}
@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 96px);
  }
}
.footer-logo-link { display: inline-block; }
.footer-logo {
  width: 180px;
  height: auto;
}
.footer-brand p {
  max-width: 34ch;
  margin: 26px 0 0;
  font-size: 16px;
  line-height: 1.6;
}
.footer-nav ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-nav a,
.footer-contact a {
  color: #fff;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .6s var(--ease);
}
.footer-nav a:hover,
.footer-contact a:hover { background-size: 100% 1px; }
.footer-contact {
  display: grid;
  align-content: start;
  gap: 10px;
  font-size: 15.5px;
}
.footer-contact > a { justify-self: start; overflow-wrap: anywhere; }
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: none;
  font-size: 17px;
  transition: background-color .4s ease, border-color .4s ease, color .4s ease;
}
.footer-social a:hover {
  border-color: #fff;
  background: #fff;
  color: var(--bg-wine);
}

.footer-bottom {
  margin-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}
.footer-bottom p {
  margin: 0;
  font-size: 13.5px;
}
.to-top {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .24);
  color: #fff;
  font-size: 17px;
  text-decoration: none;
  transition: background-color .4s ease, border-color .4s ease, color .4s ease;
}
.to-top i { transition: transform .6s var(--ease); }
.to-top:hover {
  border-color: #fff;
  background: #fff;
  color: var(--bg-wine);
}
.to-top:hover i { transform: translate3d(0, -3px, 0); }
@media (max-width: 639.98px) {
  /* deja lugar al botón flotante de WhatsApp */
  .footer-bottom { padding-bottom: 84px; }
}

/* ==========================================================================
   WhatsApp flotante
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: clamp(16px, 2.2vw, 28px);
  bottom: clamp(16px, 2.2vw, 28px);
  z-index: 900;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  font-size: 27px;
  text-decoration: none;
  box-shadow: 0 14px 34px -8px rgba(37, 211, 102, .6);
  animation: floatIn 1s var(--ease) both;
  animation-delay: calc(var(--intro-delay) + 1.1s);
  transition: transform .5s var(--ease);
}
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: pulse 2.6s var(--ease) infinite;
  animation-delay: 2s;
}
.whatsapp-float:hover { transform: scale(1.08); }
@keyframes floatIn { from { opacity: 0; transform: scale(.4); } }
@keyframes pulse {
  0% { transform: scale(1); opacity: .75; }
  100% { transform: scale(1.75); opacity: 0; }
}

/* ==========================================================================
   Secciones opcionales (se activan desde .env)
   ========================================================================== */
/* Experiencia en números */
.stats { background: var(--bg-white); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-card {
  padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 28px);
  border-bottom: 1px solid var(--line);
}
.stat-card + .stat-card { border-left: 1px solid var(--line); }
.stat-value {
  color: var(--red);
  font-family: var(--f-display);
  font-size: clamp(34px, 4.2vw, 64px);
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: -.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Obras destacadas */
.featured { background: var(--bg-white); }
.featured-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 768px) { .featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.work-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
}
.work-media { overflow: hidden; background: var(--paper-2); }
.work-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.work-card:hover .work-media img { transform: scale(1.05); }
.work-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
}
.work-info h3 { margin: 0; font-size: 19px; }
.muted { color: var(--muted); }
.work-info .muted {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(58, 8, 10, .82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; }
.lightbox-dialog {
  width: min(960px, 92vw);
  overflow: hidden;
  background: #fff;
  animation: modalIn .5s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translate3d(0, 20px, 0) scale(.98); } }
.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-wine);
}
.lightbox-title { margin: 0; color: #fff; font-size: 20px; }
.lightbox-close {
  border: 0;
  background: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-body {
  display: grid;
  gap: 14px;
  max-height: 85vh;
  padding: 20px;
  overflow: auto;
}
.work-desc { margin: 0; color: var(--muted); }
.work-slider {
  position: relative;
  display: grid;
  place-items: center;
}
.work-slider img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  background: var(--paper-2);
  transition: opacity .3s ease;
}
.work-slider-nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--red);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transform: translateY(-50%);
}
.work-prev { left: 10px; }
.work-next { right: 10px; }
.work-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.work-dots button {
  width: 22px;
  height: 3px;
  padding: 0;
  border: 0;
  background: var(--line);
  cursor: pointer;
}
.work-dots button[aria-selected="true"] { background: var(--red); }

/* ==========================================================================
   Movimiento reducido
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .marquee-track,
  .hero-image,
  .whatsapp-float::before { animation: none !important; }
  .marquee { overflow-x: auto; }
}

/* Íconos cargados en diferido: reservan su lugar para que no haya saltos */
i.bi { display: inline-block; min-width: 1em; }
