/* =========================================================
   GRÚAS MAI · Sistema visual premium industrial
   Paleta: RAL 1007 amarillo narciso · RAL 7012 gris basalto · RAL 9010 blanco
   ========================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  --topbar-h: 36px;
  --header-offset: calc(var(--topbar-h) + var(--header-h));
  /* Colores corporativos */
  --c-amarillo:        #E8A200;          /* RAL 1007 aprox. (amarillo narciso) */
  --c-amarillo-claro:  #FFC233;
  --c-amarillo-oscuro: #B87B00;
  --c-basalto:         #4A4F54;          /* RAL 7012 */
  --c-basalto-claro:   #6E747A;
  --c-basalto-oscuro:  #2C2F33;
  --c-blanco:          #FFFFFF;          /* RAL 9010 */
  --c-gris-50:         #F7F7F8;
  --c-gris-100:        #ECEDEF;
  --c-gris-200:        #DCDEE1;
  --c-gris-300:        #B7BBC0;
  --c-negro:           #15171A;

  /* Aplicación funcional */
  --c-bg:              var(--c-blanco);
  --c-bg-soft:         var(--c-gris-50);
  --c-bg-dark:         var(--c-basalto-oscuro);
  --c-text:            #1B1D20;
  --c-text-muted:      #6E747A;
  --c-text-on-dark:    #F7F7F8;
  --c-line:            var(--c-gris-200);
  --c-accent:          var(--c-amarillo);
  --c-accent-hover:    var(--c-amarillo-oscuro);

  /* Tipografía */
  --ff-sans: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ff-display: 'Manrope', 'Inter', sans-serif;

  /* Escala tipográfica modular */
  --fs-xs:   0.78rem;
  --fs-sm:   0.88rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.375rem;
  --fs-xl:   1.875rem;
  --fs-2xl:  2.5rem;
  --fs-3xl:  3.5rem;
  --fs-4xl:  4.5rem;
  --fs-hero: clamp(2.4rem, 5.2vw, 4.75rem);

  --lh-tight: 1.1;
  --lh-snug:  1.25;
  --lh-base:  1.55;
  --lh-loose: 1.75;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 800;

  /* Espaciado */
  --space-1:  .25rem;
  --space-2:  .5rem;
  --space-3:  .75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4rem;
  --space-9:  6rem;
  --space-10: 8rem;

  /* Layout */
  --container-max: 1280px;
  --container-px: clamp(1rem, 3vw, 2rem);
  --header-h: 104px;

  /* Bordes y radios */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --radius-xl: 22px;

  /* Sombras */
  --shadow-xs: 0 1px 2px rgba(15,17,20,.04);
  --shadow-sm: 0 4px 12px rgba(15,17,20,.06);
  --shadow:    0 12px 32px rgba(15,17,20,.08);
  --shadow-lg: 0 24px 60px rgba(15,17,20,.14);

  /* Animación */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16,.84,.44,1);
  --t-fast: .15s;
  --t:      .25s;
  --t-slow: .45s;

  /* Z-index */
  --z-header: 100;
  --z-modal: 200;
  --z-cookies: 300;
}

/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }

body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--t) var(--ease); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--ff-display); font-weight: var(--fw-bold); line-height: var(--lh-tight); letter-spacing: -0.02em; color: var(--c-negro); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--c-amarillo); color: var(--c-negro); }

/* ---------- 3. CONTENEDORES ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-px);
}

.section {
  padding-block: clamp(4rem, 9vw, 8rem);
}
.section--soft { background: var(--c-bg-soft); }
.section--dark { background: var(--c-bg-dark); color: var(--c-text-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--c-blanco); }

/* ---------- 4. TIPOGRAFÍA ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-basalto);
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--c-amarillo); display: block;
}
.section--dark .eyebrow { color: var(--c-amarillo-claro); }
.section--dark .eyebrow::before { background: var(--c-amarillo); }

.h-hero { font-size: var(--fs-hero); font-weight: var(--fw-black); line-height: 1.02; letter-spacing: -.035em; }
.h-section { font-size: clamp(1.8rem, 3.5vw, 2.75rem); font-weight: var(--fw-bold); line-height: 1.08; letter-spacing: -.025em; }
.h-card { font-size: var(--fs-lg); font-weight: var(--fw-bold); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--c-basalto); max-width: 60ch; line-height: 1.6; }
.section--dark .lead { color: var(--c-gris-200); }

.text-accent { color: var(--c-amarillo-oscuro); }
.text-muted  { color: var(--c-text-muted); }

/* ---------- 5. BOTONES ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .95rem 1.6rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: var(--c-amarillo);
  color: var(--c-negro);
  box-shadow: 0 8px 22px rgba(232,162,0,.32);
}
.btn--primary:hover { background: var(--c-amarillo-oscuro); color: var(--c-blanco); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(232,162,0,.42); }
.btn--ghost {
  background: transparent;
  color: var(--c-negro);
  border: 1.5px solid var(--c-negro);
}
.btn--ghost:hover { background: var(--c-negro); color: var(--c-blanco); }
.section--dark .btn--ghost { color: var(--c-blanco); border-color: var(--c-blanco); }
.section--dark .btn--ghost:hover { background: var(--c-blanco); color: var(--c-negro); }
.btn--phone {
  background: transparent;
  color: var(--c-negro);
  border: 1.5px solid var(--c-amarillo);
}
.btn--phone:hover { background: var(--c-amarillo); color: var(--c-negro); }
.section--dark .btn--phone { color: var(--c-blanco); }

/* ---------- 6. HEADER ---------- */
.header {
  position: fixed; top: var(--topbar-h); left: 0; right: 0; bottom: auto;
  z-index: var(--z-header);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.header.is-scrolled {
  background: rgba(255,255,255,.98);
  border-bottom-color: var(--c-line);
  box-shadow: 0 2px 14px rgba(15,17,20,.04);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--space-5);
}
.header__brand { display: flex; align-items: center; gap: .8rem; }
.header__brand img { height: 72px; width: auto; transition: height var(--t) var(--ease); }
.header.is-scrolled .header__brand img { height: 56px; }
@media (max-width: 600px) {
  .header__brand img { height: 56px; }
  .header.is-scrolled .header__brand img { height: 48px; }
}
.header__brand-text { display: flex; flex-direction: column; line-height: 1; }
.header__brand-text strong { font-weight: var(--fw-black); font-size: 1.05rem; letter-spacing: -.02em; }
.header__brand-text span { font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: var(--c-basalto); margin-top: 2px; }
.nav { display: flex; align-items: center; gap: var(--space-5); }
.nav__list { display: flex; gap: .25rem; }
.nav__link {
  position: relative;
  padding: .6rem .9rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-basalto-oscuro);
}
.nav__link::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .35rem; height: 2px; background: var(--c-amarillo); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease);
}
.nav__link:hover { color: var(--c-negro); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__cta { display: inline-flex; }

/* Menú móvil */
.nav__toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--radius); border: 1px solid var(--c-line); }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--c-negro); transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.nav__toggle span { position: relative; }
.nav__toggle span::before { position: absolute; top: -7px; }
.nav__toggle span::after  { position: absolute; top:  7px; }
.nav__toggle.is-open span { background: transparent; }
.nav__toggle.is-open span::before { transform: rotate(45deg); top: 0; }
.nav__toggle.is-open span::after  { transform: rotate(-45deg); top: 0; }

@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; }
  .nav__list, .nav__cta { display: none; }
  .nav.is-open .nav__list, .nav.is-open .nav__cta { display: flex; }
  .nav.is-open {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--c-blanco);
    border-bottom: 1px solid var(--c-line);
    flex-direction: column; align-items: stretch;
    padding: var(--space-5) var(--container-px) var(--space-6);
    gap: var(--space-4);
  }
  .nav.is-open .nav__list { flex-direction: column; gap: 0; }
  .nav.is-open .nav__link { padding: .9rem 0; border-bottom: 1px solid var(--c-line); font-size: 1.05rem; }
  .nav.is-open .nav__cta { align-self: flex-start; }
}

/* ---------- 7. HERO ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: clamp(3.5rem, 7vw, 6.5rem);
  background: var(--c-blanco);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; left: 0; top: var(--header-h);
  width: 100%; height: 1px; background: var(--c-line);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero__copy { max-width: 36rem; }
.hero__h1 {
  margin-top: 1.4rem;
  margin-bottom: 1.5rem;
}
.hero__h1 .accent-line {
  display: inline-block; position: relative;
}
.hero__h1 .accent-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.05em;
  height: .12em; background: var(--c-amarillo);
  z-index: -1;
}
.hero__sub {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--c-basalto);
  margin-bottom: 2.25rem;
  max-width: 34rem;
  line-height: 1.55;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.5rem; }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--c-line);
}
.stat__num { font-size: 2rem; font-weight: var(--fw-black); color: var(--c-negro); letter-spacing: -.03em; line-height: 1; }
.stat__num small { font-size: .55em; font-weight: var(--fw-bold); margin-left: .15em; vertical-align: top; color: var(--c-amarillo-oscuro); }
.stat__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--c-basalto); margin-top: .45rem; font-weight: var(--fw-semibold); }

.hero__visual {
  position: relative;
  aspect-ratio: 5 / 6;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--c-gris-100);
  box-shadow: var(--shadow-lg);
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; left: 1.4rem; top: 1.4rem;
  background: var(--c-amarillo);
  color: var(--c-negro);
  padding: .55rem .85rem;
  font-size: .72rem; font-weight: var(--fw-bold);
  letter-spacing: .18em; text-transform: uppercase;
  border-radius: var(--radius-sm);
}
.hero__caption {
  position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.4rem;
  background: rgba(15,17,20,.78);
  color: var(--c-blanco);
  padding: .85rem 1.1rem;
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; gap: .65rem;
  font-size: .85rem; font-weight: var(--fw-medium);
}
.hero__caption svg { width: 18px; height: 18px; color: var(--c-amarillo); flex-shrink: 0; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { aspect-ratio: 4 / 5; order: -1; }
}

/* ---------- 8. SECTION HEAD ---------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head__title { margin-top: 1rem; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- 9. SERVICES CARDS ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2vw, 1.75rem);
}
@media (max-width: 960px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--c-blanco);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease), border-color var(--t-slow) var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--c-gris-300); }
.service-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--c-gris-100);
  overflow: hidden;
}
.service-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.04); }
.service-card__tag {
  position: absolute; left: 1rem; top: 1rem;
  background: rgba(21,23,26,.72);
  color: var(--c-amarillo);
  font-size: 1.55rem; letter-spacing: -.01em;
  font-weight: 800;
  padding: .25rem .7rem .2rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--c-amarillo);
  line-height: 1;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: 0 1px 8px rgba(232,162,0,.35);
}
.service-card__body {
  padding: 1.6rem 1.5rem 1.7rem;
  display: flex; flex-direction: column; flex: 1; gap: .9rem;
}
.service-card__title { font-size: 1.35rem; }
.service-card__desc { color: var(--c-basalto); font-size: .98rem; line-height: 1.55; }
.service-card__list { display: flex; flex-direction: column; gap: .4rem; margin-top: .25rem; }
.service-card__list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: .9rem;
  color: var(--c-basalto-oscuro);
}
.service-card__list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: .85rem; height: 2px; background: var(--c-amarillo);
}
.service-card__cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: .5rem;
  padding-top: 1rem;
  font-size: .85rem; font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--c-negro);
}
.service-card__cta svg { width: 16px; height: 16px; transition: transform var(--t) var(--ease); color: var(--c-amarillo-oscuro); }
.service-card:hover .service-card__cta svg { transform: translateX(4px); }
.service-card--no-photo .service-card__media {
  background:
    linear-gradient(135deg, var(--c-basalto-oscuro), var(--c-basalto));
  display: flex; align-items: center; justify-content: center;
}
.service-card--no-photo .service-card__media svg { width: 60%; height: auto; color: var(--c-amarillo); opacity: .9; }

/* ---------- 10. FOOTER ---------- */
.footer {
  background: var(--c-basalto-oscuro);
  color: var(--c-gris-200);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: 2rem;
  font-size: .92rem;
}
.footer a { color: var(--c-gris-200); }
.footer a:hover { color: var(--c-amarillo); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__title { color: var(--c-blanco); font-size: .82rem; text-transform: uppercase; letter-spacing: .18em; font-weight: var(--fw-bold); margin-bottom: 1rem; }
.footer__brand img { height: 70px; width: auto; filter: brightness(0) invert(1); margin-bottom: 1.2rem; }
.footer__brand p { line-height: 1.55; }
.footer__list li + li { margin-top: .55rem; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  padding-top: 1.5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}
.footer__bottom a { color: rgba(255,255,255,.7); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* ---------- 11. UTILS ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-amarillo); color: var(--c-negro);
  padding: .8rem 1.2rem; font-weight: var(--fw-bold);
  z-index: 999;
}
.skip-link:focus-visible { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- 12. REVEAL ON SCROLL ----------
   Por defecto, todo es visible (fail-safe).
   El JS añade .js al <html> y activa el comportamiento de animación
   sólo si tiene IntersectionObserver. Si JS falla, el contenido NO desaparece. */
.reveal { opacity: 1; transform: none; }
html.js .reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* ---------- 13. BIENVENIDA / INTRO ---------- */
.welcome {
  position: relative;
}
.welcome__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 860px) { .welcome__grid { grid-template-columns: 1fr; } }
.welcome__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--c-gris-100);
  box-shadow: var(--shadow);
}
.welcome__visual img { width: 100%; height: 100%; object-fit: cover; }
.welcome__mark {
  position: absolute; right: -2rem; bottom: -2rem;
  width: 9rem; height: 9rem;
  background: var(--c-amarillo);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-negro);
  font-family: var(--ff-display);
  font-weight: var(--fw-black);
  font-size: 1.05rem;
  letter-spacing: .04em;
  text-align: center;
  padding: 1rem;
  line-height: 1.15;
  box-shadow: var(--shadow);
}
@media (max-width: 860px) { .welcome__mark { right: 1rem; bottom: 1rem; width: 7rem; height: 7rem; font-size: .92rem; } }

.bullets-icon { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
@media (max-width: 600px) { .bullets-icon { grid-template-columns: 1fr; } }
.bullets-icon li {
  display: flex; align-items: flex-start; gap: .8rem;
  font-size: .95rem;
}
.bullets-icon .ic {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: var(--radius);
  background: var(--c-amarillo);
  color: var(--c-negro);
  display: flex; align-items: center; justify-content: center;
}
.bullets-icon .ic svg { width: 18px; height: 18px; }

/* ---------- 14. TIMELINE QUIÉNES SOMOS ---------- */
.timeline {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-left: 1.5rem;
  border-left: 2px solid rgba(255,255,255,.18);
}
.section--dark .timeline { border-left-color: rgba(255,255,255,.18); }
.timeline__item {
  position: relative;
  padding: 0 0 2.5rem 1.5rem;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: -2.05rem; top: .15rem;
  width: 1rem; height: 1rem;
  background: var(--c-amarillo);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--c-bg-dark);
}
.timeline__year {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: var(--fw-black);
  color: var(--c-amarillo);
  letter-spacing: -.02em;
}
.timeline__title {
  font-size: 1.15rem;
  font-weight: var(--fw-bold);
  margin: .25rem 0 .6rem;
  color: var(--c-blanco);
}
.timeline__text { color: var(--c-gris-200); font-size: .98rem; line-height: 1.6; max-width: 50ch; }

.quienes__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}
@media (max-width: 900px) { .quienes__grid { grid-template-columns: 1fr; } }

/* ---------- 15. SERVICIOS DETALLE ---------- */
.svc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.svc-row + .svc-row { border-top: 1px solid var(--c-line); }
.svc-row--reverse { direction: rtl; }
.svc-row--reverse > * { direction: ltr; }
@media (max-width: 860px) { .svc-row { grid-template-columns: 1fr; direction: ltr; } }
.svc-row__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-gris-100);
}
.svc-row__media img { width: 100%; height: 100%; object-fit: cover; }
.svc-row__num {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: var(--fw-black);
  color: var(--c-amarillo);
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: .5rem;
}
.svc-row__title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.svc-row__desc { color: var(--c-basalto); font-size: 1.05rem; line-height: 1.6; max-width: 38rem; margin-bottom: 1.25rem; }
.svc-types {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .85rem;
  margin-top: 1.25rem;
}
@media (max-width: 700px) { .svc-types { grid-template-columns: 1fr; } }
.svc-type {
  padding: 1rem; border: 1px solid var(--c-line); border-radius: var(--radius);
  background: var(--c-blanco);
}
.svc-type strong { display: block; font-size: .98rem; font-weight: var(--fw-bold); margin-bottom: .25rem; }
.svc-type span { font-size: .85rem; color: var(--c-basalto); line-height: 1.45; }

/* ---------- 16. PORTAFOLIO ---------- */
.portfolio__filters {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: .55rem 1.05rem;
  font-size: .82rem; font-weight: var(--fw-semibold);
  border: 1.5px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-blanco);
  color: var(--c-basalto-oscuro);
  transition: all var(--t) var(--ease);
}
.filter-btn:hover { border-color: var(--c-negro); color: var(--c-negro); }
.filter-btn.is-active {
  background: var(--c-negro); border-color: var(--c-negro); color: var(--c-blanco);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-auto-rows: 220px;
  gap: 12px;
}
@media (max-width: 600px) {
  .portfolio__grid { grid-auto-rows: 200px; }
}
.port-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-gris-100);
  cursor: pointer;
  transition: transform var(--t) var(--ease), opacity .35s var(--ease);
}
.port-item--tall { grid-row: span 2; }
.port-item--wide { grid-column: span 2; }
@media (max-width: 600px) { .port-item--wide { grid-column: span 1; } }
.port-item.is-hidden { display: none; }
.port-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.port-item:hover img { transform: scale(1.06); }
.port-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,17,20,.65) 0%, rgba(15,17,20,0) 50%);
  opacity: 0; transition: opacity var(--t) var(--ease);
}
.port-item:hover::after { opacity: 1; }
.port-item__caption {
  position: absolute; left: .9rem; right: .9rem; bottom: .85rem;
  color: var(--c-blanco); font-size: .85rem; font-weight: var(--fw-semibold);
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
  z-index: 1;
}
.port-item:hover .port-item__caption { opacity: 1; transform: none; }
.port-item__tag {
  position: absolute; left: .8rem; top: .8rem;
  background: var(--c-blanco); color: var(--c-negro);
  font-size: .62rem; letter-spacing: .15em; text-transform: uppercase;
  font-weight: var(--fw-bold);
  padding: .35rem .55rem;
  border-radius: 3px;
  z-index: 1;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15,17,20,.94);
  display: none;
  align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  z-index: var(--z-modal);
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 100%; max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  background: rgba(255,255,255,.1);
  color: var(--c-blanco);
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t) var(--ease);
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: var(--c-amarillo); color: var(--c-negro); }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: 1.5rem; text-align: center; color: var(--c-gris-200); font-size: .9rem; padding: 0 4rem; }

/* ---------- 17. FILOSOFÍA / PULLQUOTE ---------- */
.pullquote {
  text-align: center;
  max-width: 60rem;
  margin: 0 auto;
}
.pullquote__text {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: var(--fw-medium);
  line-height: 1.35;
  letter-spacing: -.02em;
  color: var(--c-blanco);
}
.pullquote__text em { color: var(--c-amarillo); font-style: normal; }
.pullquote__author { margin-top: 1.4rem; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.55); }

/* ---------- 18. CONTACTO + FORMULARIO ---------- */
.contacto__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 900px) { .contacto__grid { grid-template-columns: 1fr; } }

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-card {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-blanco);
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.contact-card:hover { border-color: var(--c-amarillo); transform: translateX(4px); }
.contact-card__ic {
  flex-shrink: 0; width: 44px; height: 44px;
  background: var(--c-amarillo);
  color: var(--c-negro);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.contact-card__label { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--c-basalto); font-weight: var(--fw-semibold); }
.contact-card__value { font-size: 1.02rem; font-weight: var(--fw-semibold); color: var(--c-negro); margin-top: .25rem; }
.contact-card__value a { color: inherit; }
.contact-card__value a:hover { color: var(--c-amarillo-oscuro); }

.form {
  background: var(--c-blanco);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}
.form__title { font-size: 1.4rem; margin-bottom: .35rem; }
.form__intro { color: var(--c-basalto); margin-bottom: 1.5rem; font-size: .98rem; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.form__field { display: flex; flex-direction: column; gap: .4rem; }
.form__field--full { grid-column: 1 / -1; }
.form__label {
  font-size: .82rem; font-weight: var(--fw-semibold);
  letter-spacing: .04em; color: var(--c-basalto-oscuro);
}
.form__input, .form__select, .form__textarea {
  font: inherit; color: var(--c-text);
  background: var(--c-blanco);
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  width: 100%;
}
.form__textarea { min-height: 120px; resize: vertical; }
.form__input:focus, .form__select:focus, .form__textarea:focus {
  outline: none; border-color: var(--c-amarillo);
  box-shadow: 0 0 0 4px rgba(232,162,0,.15);
}
.form__check {
  display: flex; gap: .65rem; align-items: flex-start;
  font-size: .9rem; line-height: 1.45;
  margin-block: 1rem;
  color: var(--c-basalto);
}
.form__check input { margin-top: .25rem; accent-color: var(--c-amarillo); }
.form__check a { color: var(--c-amarillo-oscuro); text-decoration: underline; }
.form__submit { width: 100%; justify-content: center; padding: 1rem 1.6rem; }
.form__status {
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: var(--fw-semibold);
  display: none;
}
.form__status.is-success { display: block; background: #E5F4E8; color: #166534; border: 1px solid #86C397; }
.form__status.is-error   { display: block; background: #FBEAEA; color: #991B1B; border: 1px solid #E8A4A4; }
.form__honey {
  position: absolute !important;
  left: -9999px !important; opacity: 0 !important; pointer-events: none !important;
}

/* ---------- 19b. NÚMEROS DESTACADOS / STATS BAR ---------- */
.stats-bar {
  background: var(--c-negro);
  padding-block: clamp(2rem, 4vw, 2.75rem);
}
.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
@media (max-width: 700px) { .stats-bar__inner { grid-template-columns: repeat(2, 1fr); } }
.stats-bar__num {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: var(--fw-black);
  color: var(--c-amarillo);
  letter-spacing: -.04em;
  line-height: 1;
}
.stats-bar__label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(255,255,255,.5);
  margin-top: .45rem;
  font-weight: var(--fw-semibold);
}

/* ---------- 19c. SECTION DIVIDER ---------- */
.section-divider {
  width: 100%; height: 4px;
  background: linear-gradient(90deg, transparent, var(--c-amarillo) 30%, var(--c-amarillo-claro) 60%, transparent);
  border: 0;
  margin: 0;
}

/* ---------- 20. FLOATING BACKGROUND LOGO ---------- */
.bg-floater {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.bg-floater__item {
  position: absolute;
  background: url('../images/icono-grua.png') center / contain no-repeat;
  opacity: 0;
  filter: grayscale(1) brightness(0.4);
  will-change: transform, opacity;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { opacity: 0;    transform: translateY(110vh) translateX(0px)   rotate(-5deg) scale(0.85); }
  8%   { opacity: 0.04; }
  50%  { transform: translateY(40vh)  translateX(var(--sway))           rotate(5deg)  scale(1);    }
  92%  { opacity: 0.03; }
  100% { opacity: 0;    transform: translateY(-15vh) translateX(0px)   rotate(-3deg) scale(0.9);  }
}
@media (prefers-reduced-motion: reduce) { .bg-floater { display: none; } }

/* ---------- 21b. SCROLL TO TOP ---------- */
.scroll-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: var(--z-header);
  width: 48px; height: 48px;
  background: var(--c-amarillo);
  color: var(--c-negro);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(232,162,0,.45);
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--t) var(--ease), visibility var(--t) var(--ease), transform var(--t) var(--ease), background var(--t) var(--ease);
  cursor: pointer;
  border: 0;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--c-amarillo-oscuro); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(232,162,0,.55); }
.scroll-top svg { width: 22px; height: 22px; }

/* ---------- 22. COOKIE BANNER ---------- */

.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 480px; margin: 0 auto;
  background: var(--c-basalto-oscuro);
  color: var(--c-gris-200);
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-cookies);
  transform: translateY(120%);
  transition: transform .4s var(--ease-out);
  font-size: .9rem;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner p { line-height: 1.5; }
.cookie-banner a { color: var(--c-amarillo); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .6rem; margin-top: .9rem; flex-wrap: wrap; }
.cookie-banner__btn { padding: .55rem 1rem; border-radius: var(--radius-sm); font-size: .82rem; font-weight: var(--fw-semibold); }
.cookie-banner__btn--accept { background: var(--c-amarillo); color: var(--c-negro); }
.cookie-banner__btn--reject { background: transparent; color: var(--c-gris-200); border: 1px solid rgba(255,255,255,.2); }


/* =========================================================
   GRÚAS MAI – Estilos adicionales: secciones nuevas,
   fondo flotante, scroll-to-top, stats bar, divider,
   timeline, servicios detalle, portafolio, lightbox,
   filosofía, contacto, formulario, cookies
   ========================================================= */

/* ---------- A. STATS BAR ---------- */
.stats-bar {
  background: var(--c-negro);
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
}
.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
@media (max-width: 700px) { .stats-bar__inner { grid-template-columns: repeat(2, 1fr); } }
.stats-bar__num {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: var(--fw-black);
  color: var(--c-amarillo);
  letter-spacing: -.04em;
  line-height: 1;
}
.stats-bar__label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(255,255,255,.48);
  margin-top: .45rem;
  font-weight: var(--fw-semibold);
}

/* ---------- B. SECTION DIVIDER ---------- */
.section-divider {
  width: 100%; height: 4px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent 0%, var(--c-amarillo) 30%, var(--c-amarillo-claro) 60%, transparent 100%);
}

/* ---------- C. TIMELINE ---------- */
.timeline {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-left: 1.5rem;
  border-left: 2px solid rgba(255,255,255,.18);
}
.timeline__item {
  position: relative;
  padding: 0 0 2.5rem 1.5rem;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: -2.05rem; top: .15rem;
  width: 1rem; height: 1rem;
  background: var(--c-amarillo);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--c-bg-dark);
}
.timeline__year {
  font-family: var(--ff-display);
  font-size: 1.4rem; font-weight: var(--fw-black);
  color: var(--c-amarillo); letter-spacing: -.02em;
}
.timeline__title { font-size: 1.15rem; font-weight: var(--fw-bold); margin: .25rem 0 .6rem; color: var(--c-blanco); }
.timeline__text { color: var(--c-gris-200); font-size: .98rem; line-height: 1.6; max-width: 50ch; }

.quienes__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
/* Columna derecha: sticky para que acompañe el scroll del timeline */
.quienes__grid > div:last-child {
  position: sticky;
  top: calc(var(--topbar-h, 36px) + var(--header-h, 96px) + 1.5rem);
}
@media (max-width: 900px) {
  .quienes__grid { grid-template-columns: 1fr; }
  .quienes__grid > div:last-child { position: static; }
}

/* ---------- D. SERVICIOS DETALLE (svc-row) ---------- */
.svc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.svc-row + .svc-row { border-top: 1px solid var(--c-line); }
.svc-row--reverse { direction: rtl; }
.svc-row--reverse > * { direction: ltr; }
@media (max-width: 860px) { .svc-row { grid-template-columns: 1fr; direction: ltr; } }
.svc-row__media {
  position: relative; aspect-ratio: 4/3;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--c-gris-100); box-shadow: var(--shadow);
}
.svc-row__media img { width: 100%; height: 100%; object-fit: cover; }
.svc-row__num {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 6vw, 4rem); font-weight: var(--fw-black);
  color: var(--c-amarillo); line-height: 1; letter-spacing: -.04em; margin-bottom: .5rem;
}
.svc-row__title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.svc-row__desc { color: var(--c-basalto); font-size: 1.05rem; line-height: 1.6; max-width: 38rem; margin-bottom: 1.25rem; }
.svc-types {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; margin-top: 1.25rem;
}
@media (max-width: 700px) { .svc-types { grid-template-columns: 1fr; } }
.svc-type { padding: 1rem; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-blanco); }
.svc-type strong { display: block; font-size: .98rem; font-weight: var(--fw-bold); margin-bottom: .25rem; }
.svc-type span { font-size: .85rem; color: var(--c-basalto); line-height: 1.45; }

/* ---------- E. PORTAFOLIO ---------- */
.portfolio__filters {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem;
}
.filter-btn {
  padding: .55rem 1.05rem;
  font-size: .82rem; font-weight: var(--fw-semibold);
  border: 1.5px solid var(--c-line); border-radius: 999px;
  background: var(--c-blanco); color: var(--c-basalto-oscuro);
  transition: all var(--t) var(--ease);
}
.filter-btn:hover { border-color: var(--c-negro); color: var(--c-negro); }
.filter-btn.is-active { background: var(--c-negro); border-color: var(--c-negro); color: var(--c-blanco); }

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-auto-rows: 220px;
  gap: 12px;
}
@media (max-width: 600px) { .portfolio__grid { grid-auto-rows: 180px; } }
.port-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--c-gris-100); cursor: pointer;
  transition: transform var(--t) var(--ease);
}
.port-item:hover { transform: scale(1.02); }
.port-item--tall  { grid-row: span 2; }
.port-item--wide  { grid-column: span 2; }
@media (max-width: 600px) { .port-item--wide { grid-column: span 1; } }
.port-item picture { display: block; width: 100%; height: 100%; }
.port-item picture { display: block; width: 100%; height: 100%; }
.port-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.port-item:hover img { transform: scale(1.06); }
.port-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,17,20,.65) 0%, rgba(15,17,20,0) 50%);
  opacity: 0; transition: opacity var(--t) var(--ease);
}
.port-item:hover::after { opacity: 1; }
.port-item__caption {
  position: absolute; left: .9rem; right: .9rem; bottom: .85rem;
  color: var(--c-blanco); font-size: .85rem; font-weight: var(--fw-semibold);
  opacity: 0; transform: translateY(8px); z-index: 1;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
.port-item:hover .port-item__caption { opacity: 1; transform: none; }
.port-item__tag {
  position: absolute; left: .8rem; top: .8rem; z-index: 1;
  background: var(--c-blanco); color: var(--c-negro);
  font-size: .62rem; letter-spacing: .15em; text-transform: uppercase;
  font-weight: var(--fw-bold); padding: .35rem .55rem; border-radius: 3px;
}

/* ---------- F. LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15,17,20,.94);
  display: none; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem); z-index: var(--z-modal);
}
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 100%; max-height: 88vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; background: rgba(255,255,255,.1); color: var(--c-blanco);
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t) var(--ease); border: 0; cursor: pointer;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: var(--c-amarillo); color: var(--c-negro); }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__prev  { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: 1.5rem; text-align: center; color: var(--c-gris-200); font-size: .9rem; padding: 0 4rem; }

/* ---------- G. FILOSOFÍA / PULLQUOTE ---------- */
.pullquote { text-align: center; max-width: 60rem; margin: 0 auto; }
.pullquote__text {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: var(--fw-medium); line-height: 1.35;
  letter-spacing: -.02em; color: var(--c-blanco);
  margin: 0;
}
.pullquote__text em { color: var(--c-amarillo); font-style: normal; }
.pullquote__author { margin-top: 1.4rem; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.5); }

/* ---------- H. CONTACTO + FORMULARIO ---------- */
.contacto__grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 900px) { .contacto__grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-card {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem; border: 1px solid var(--c-line); border-radius: var(--radius);
  background: var(--c-blanco); text-decoration: none; color: inherit;
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.contact-card:hover { border-color: var(--c-amarillo); transform: translateX(4px); }
.contact-card__ic {
  flex-shrink: 0; width: 44px; height: 44px;
  background: var(--c-amarillo); color: var(--c-negro);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
}
.contact-card__label { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--c-basalto); font-weight: var(--fw-semibold); }
.contact-card__value { font-size: 1.02rem; font-weight: var(--fw-semibold); color: var(--c-negro); margin-top: .25rem; }
.contact-card__value a { color: inherit; }
.contact-card__value a:hover { color: var(--c-amarillo-oscuro); }

.form {
  background: var(--c-blanco); border: 1px solid var(--c-line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}
.form__title { font-size: 1.4rem; margin-bottom: .35rem; }
.form__intro { color: var(--c-basalto); margin-bottom: 1.5rem; font-size: .98rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.form__field { display: flex; flex-direction: column; gap: .4rem; }
.form__field--full { grid-column: 1 / -1; }
.form__label { font-size: .82rem; font-weight: var(--fw-semibold); letter-spacing: .04em; color: var(--c-basalto-oscuro); }
.form__input, .form__select, .form__textarea {
  font: inherit; color: var(--c-text); background: var(--c-blanco);
  border: 1.5px solid var(--c-line); border-radius: var(--radius);
  padding: .85rem 1rem; width: 100%;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.form__textarea { min-height: 120px; resize: vertical; }
.form__input:focus, .form__select:focus, .form__textarea:focus {
  outline: none; border-color: var(--c-amarillo);
  box-shadow: 0 0 0 4px rgba(232,162,0,.15);
}
.form__check { display: flex; gap: .65rem; align-items: flex-start; font-size: .9rem; line-height: 1.45; margin-block: 1rem; color: var(--c-basalto); }
.form__check input { margin-top: .25rem; accent-color: var(--c-amarillo); }
.form__check a { color: var(--c-amarillo-oscuro); text-decoration: underline; }
.form__submit { width: 100%; justify-content: center; padding: 1rem 1.6rem; }
.form__status { margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--radius); font-size: .9rem; font-weight: var(--fw-semibold); display: none; }
.form__status.is-success { display: block; background: #E5F4E8; color: #166534; border: 1px solid #86C397; }
.form__status.is-error   { display: block; background: #FBEAEA; color: #991B1B; border: 1px solid #E8A4A4; }
.form__honey { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }

/* ---------- I. COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 480px; margin: 0 auto;
  background: var(--c-basalto-oscuro); color: var(--c-gris-200);
  padding: 1.25rem 1.4rem; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); z-index: var(--z-cookies);
  transform: translateY(130%); transition: transform .4s var(--ease-out);
  font-size: .9rem;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner p { line-height: 1.5; margin: 0; }
.cookie-banner a { color: var(--c-amarillo); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .6rem; margin-top: .9rem; flex-wrap: wrap; }
.cookie-banner__btn { padding: .55rem 1rem; border-radius: var(--radius-sm); font-size: .82rem; font-weight: var(--fw-semibold); cursor: pointer; border: 0; }
.cookie-banner__btn--accept { background: var(--c-amarillo); color: var(--c-negro); }
.cookie-banner__btn--reject { background: transparent; color: var(--c-gris-200); border: 1px solid rgba(255,255,255,.2); }

/* ---------- J. SCROLL TO TOP ---------- */
.scroll-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem;
  z-index: var(--z-header);
  width: 48px; height: 48px;
  background: var(--c-amarillo); color: var(--c-negro);
  border-radius: 50%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(232,162,0,.45);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--t) var(--ease), visibility var(--t) var(--ease), transform var(--t) var(--ease), background var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--c-amarillo-oscuro); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(232,162,0,.55); }
.scroll-top svg { width: 22px; height: 22px; }

/* ---------- K. FLOATING BACKGROUND LOGO ---------- */
.bg-floater {
  position: fixed; inset: 0;
  z-index: 1; pointer-events: none; overflow: hidden;
}
.bg-floater__item {
  position: absolute;
  background: url('../images/icono-grua.png') center / contain no-repeat;
  opacity: 0;
  filter: grayscale(1) brightness(0.35);
  will-change: transform, opacity;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { opacity: 0;    transform: translateY(110vh) translateX(0px)           rotate(-5deg) scale(.85); }
  8%   { opacity: .045; }
  50%  { transform: translateY(40vh)  translateX(var(--sway, 40px))            rotate(5deg)  scale(1);   }
  92%  { opacity: .03; }
  100% { opacity: 0;    transform: translateY(-15vh) translateX(0px)           rotate(-3deg) scale(.9);  }
}
@media (prefers-reduced-motion: reduce) { .bg-floater { display: none; } }

/* ---------- L. BULLETS-ICON (bienvenida) ---------- */
.bullets-icon { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
@media (max-width: 600px) { .bullets-icon { grid-template-columns: 1fr; } }
.bullets-icon li { display: flex; align-items: flex-start; gap: .8rem; font-size: .95rem; }
.bullets-icon .ic {
  flex-shrink: 0; width: 38px; height: 38px;
  border-radius: var(--radius); background: var(--c-amarillo); color: var(--c-negro);
  display: flex; align-items: center; justify-content: center;
}
.bullets-icon .ic svg { width: 18px; height: 18px; }

/* =========================================================
   GRÚAS MAI – Bloque 2: Topbar · Hero Banner · SEO Strip
   Redes sociales · Textura · Welcome fix · Footer social
   ========================================================= */

/* ---------- M. TOPBAR ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--c-negro);
  z-index: calc(var(--z-header) + 1);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar__inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 100%;
}
.topbar__left {
  display: flex; align-items: center; gap: .7rem;
}
.topbar__link {
  display: inline-flex; align-items: center; gap: .35rem;
  color: rgba(255,255,255,.62);
  font-size: .7rem; font-weight: var(--fw-medium);
  white-space: nowrap;
  transition: color var(--t) var(--ease);
}
.topbar__link:hover { color: var(--c-amarillo); }
.topbar__sep { color: rgba(255,255,255,.2); font-size: .65rem; }
@media (max-width: 640px) {
  .topbar__sep--md, .topbar__link--md { display: none; }
}
.topbar__right { display: flex; align-items: center; gap: .3rem; }
.topbar__social {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 4px;
  color: rgba(255,255,255,.45);
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.topbar__social:hover { color: var(--c-amarillo); background: rgba(255,255,255,.07); }

/* ---------- N. NAV SOCIAL ---------- */
.nav__social {
  display: flex; align-items: center; gap: .2rem;
  margin-inline: .4rem;
  padding-inline: .6rem;
  border-left: 1px solid var(--c-line);
  border-right: 1px solid var(--c-line);
}
.nav__social-link {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  color: var(--c-basalto);
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.nav__social-link:hover { color: var(--c-negro); background: var(--c-gris-100); }
@media (max-width: 960px) {
  .nav__social { display: none; }
  .nav.is-open .nav__social {
    display: flex; border: 0; margin: 0;
    padding: .65rem 0;
    border-top: 1px solid var(--c-line);
  }
}

/* ---------- O. HERO BANNER ---------- */
#main { padding-top: var(--header-offset, 140px); }

.hero-banner {
  position: relative;
  height: clamp(520px, 72vh, 860px);
  overflow: hidden;
  background: var(--c-negro);
  /* Remove the main padding-top offset for this element */
  margin-top: 0;
}

.hero-banner__stage {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 3fr 4fr 3fr;
}

.hero-banner__photo { position: relative; overflow: hidden; }
.hero-banner__photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  display: block;
}

/* Lateral B&W */
.hero-banner__photo--l img,
.hero-banner__photo--r img {
  filter: grayscale(1) brightness(.5) contrast(1.1);
}
/* Central color */
.hero-banner__photo--c img { filter: brightness(.85); }

/* Fusión: difuminado en los bordes laterales */
.hero-banner__photo--l::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right,
    rgba(21,23,26,.12) 0%, rgba(21,23,26,.9) 100%);
}
.hero-banner__photo--r::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to left,
    rgba(21,23,26,.12) 0%, rgba(21,23,26,.9) 100%);
}

/* Marca de agua */
.hero-banner__watermark {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display);
  font-size: clamp(3rem, 12vw, 11rem);
  font-weight: var(--fw-black);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-blanco); opacity: .055;
  filter: blur(3px);
  z-index: 2; pointer-events: none; user-select: none;
  white-space: nowrap;
}

/* Gradiente inferior para legibilidad del texto */
.hero-banner__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(21,23,26,0) 15%,
    rgba(21,23,26,.28) 50%,
    rgba(21,23,26,.84) 100%
  );
  z-index: 3; pointer-events: none;
}

/* Contenido superpuesto */
.hero-banner__content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding-bottom: clamp(2.5rem, 5vw, 5rem);
  z-index: 5;
}

.hero-banner .eyebrow { color: var(--c-amarillo-claro); }
.hero-banner .eyebrow::before { background: var(--c-amarillo); }

.hero-banner__h1 {
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: var(--fw-black);
  letter-spacing: -.03em; line-height: 1.02;
  color: var(--c-blanco);
  margin: .8rem 0 1.2rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.3);
}
.hero-banner__h1 .accent-line { position: relative; display: inline-block; }
.hero-banner__h1 .accent-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.04em;
  height: .1em; background: var(--c-amarillo); z-index: -1;
}

.hero-banner__sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255,255,255,.76);
  max-width: 46ch; line-height: 1.55;
  margin-bottom: 2rem;
}

.hero-banner__ctas { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.btn--ghost-white {
  background: transparent;
  color: var(--c-blanco);
  border: 1.5px solid rgba(255,255,255,.5);
}
.btn--ghost-white:hover {
  background: var(--c-blanco); color: var(--c-negro); border-color: var(--c-blanco);
}
.hero-banner .btn--phone { color: var(--c-blanco); border-color: rgba(255,255,255,.3); }
.hero-banner .btn--phone:hover { background: var(--c-amarillo); color: var(--c-negro); border-color: var(--c-amarillo); }

@media (max-width: 860px) {
  /* Con L y R en display:none, el auto-placement ponía C en columna 1 (0px).
     Solución: grid de 1 columna → C ocupa el 100% del ancho. */
  .hero-banner__stage { grid-template-columns: 1fr; }
  .hero-banner__photo--l, .hero-banner__photo--r { display: none; }
  .hero-banner__photo--c { grid-column: 1; grid-row: 1; }
  .hero-banner__content { padding-bottom: 2.5rem; }
}
@media (max-width: 540px) {
  .hero-banner { height: clamp(480px, 85vh, 680px); }
}

/* ---------- P. SEO STRIP ---------- */
.seo-strip {
  background: var(--c-basalto-oscuro);
  border-top: 3px solid var(--c-amarillo);
  padding-block: .85rem;
  overflow: hidden;
}
.seo-strip__inner {
  display: flex; align-items: center; gap: 1.2rem;
}
.seo-strip__badge {
  flex-shrink: 0;
  font-size: .62rem; font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--c-amarillo);
  padding: .3rem .6rem;
  border: 1px solid rgba(232,162,0,.5);
  border-radius: 3px; white-space: nowrap;
}
.seo-strip__track {
  position: relative; flex: 1;
  min-height: 1.5em; overflow: hidden;
}
.seo-strip__item {
  position: absolute; inset: 0;
  font-size: .8rem; color: rgba(255,255,255,.6);
  margin: 0; line-height: 1.5;
  opacity: 0; transform: translateY(7px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.seo-strip__item.is-active { opacity: 1; transform: none; }
@media (max-width: 640px) {
  .seo-strip__badge { display: none; }
  .seo-strip__item { white-space: normal; position: relative; inset: auto; }
  .seo-strip__item:not(.is-active) { display: none; }
  .seo-strip__track { min-height: 2.6em; }
}

/* ---------- Q. WELCOME MARK FIX ---------- */
.welcome__visual-wrap {
  position: relative; /* anchor para .welcome__mark */
}
/* Reasignar reveal al wrapper, no al visual */
.welcome__visual {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--c-gris-100);
  box-shadow: var(--shadow);
}
.welcome__visual img { width: 100%; height: 100%; object-fit: cover; }
/* El mark ahora es relativo al wrapper (sin overflow:hidden) */
.welcome__visual-wrap .welcome__mark { z-index: 2; }

/* ---------- R. TEXTURA DIAGONAL INDUSTRIAL ---------- */
.section--soft {
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent 0px, transparent 14px,
      rgba(74,79,84,.032) 14px, rgba(74,79,84,.032) 15px
    );
}
.section:not(.section--soft):not(.section--dark):not(.welcome) {
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent 0px, transparent 18px,
      rgba(74,79,84,.022) 18px, rgba(74,79,84,.022) 19px
    );
}

/* ---------- S. FOOTER SOCIAL ---------- */
.footer__social {
  display: flex; gap: .6rem; margin-top: 1.2rem;
}
.footer__social-link {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.5);
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.footer__social-link:hover {
  color: var(--c-amarillo);
  border-color: rgba(232,162,0,.5);
  background: rgba(232,162,0,.07);
}

/* =========================================================
   GRÚAS MAI – Correcciones v3: topbar · hero · welcome
   header altura · quienes somos · floater
   ========================================================= */

/* 1. TOPBAR: menos negro, fondo pizarra azulado */
.topbar { background: #1a1f28; }

/* 2. HERO BANNER: reduce altura + overlay más suave */
.hero-banner { height: clamp(460px, 58vh, 720px); }
.hero-banner__overlay {
  background: linear-gradient(
    to bottom,
    rgba(21,23,26,0)   5%,
    rgba(21,23,26,.12) 38%,
    rgba(21,23,26,.80) 100%
  );
}
/* Foto central más luminosa */
.hero-banner__photo--c img { filter: brightness(1); }

/* 3. WELCOME MARK: quitar position:relative del visual
   para que el mark se ancle al wrapper sin overflow:hidden */
.welcome__visual { position: static !important; }

/* 4. QUIÉNES SOMOS: efecto de profundidad en fondo oscuro */
.section--dark {
  background:
    radial-gradient(ellipse 70% 60% at 12% 45%, rgba(232,162,0,.055) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 88% 80%, rgba(74,79,84,.4) 0%, transparent 55%),
    linear-gradient(160deg, #2a2d32 0%, #1c1f24 55%, #15171A 100%);
  background-image:
    radial-gradient(ellipse 70% 60% at 12% 45%, rgba(232,162,0,.055) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 88% 80%, rgba(74,79,84,.4) 0%, transparent 55%),
    linear-gradient(160deg, #2a2d32 0%, #1c1f24 55%, #15171A 100%),
    repeating-linear-gradient(-45deg, transparent 0px, transparent 22px, rgba(255,255,255,.008) 22px, rgba(255,255,255,.008) 23px);
}

/* 5a. HEADER: altura reducida */
:root { --header-h: 96px; }
.header__inner { min-height: var(--header-h); }
.header__brand img { height: 80px; }
.header.is-scrolled .header__brand img { height: 52px; }
.header.is-scrolled .header__inner { min-height: 64px; }
@media (max-width: 600px) {
  .header__brand img { height: 60px; }
  .header.is-scrolled .header__brand img { height: 46px; }
}

/* 5b. HEADER: smart hide – desaparece al bajar, reaparece al subir */
.header {
  will-change: transform;
  transition:
    background var(--t) var(--ease),
    border-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    min-height .3s var(--ease),
    transform .3s var(--ease-out);
}
.header.is-hidden { transform: translateY(-100%); }

/* 6. FLOATER: más visible */
@keyframes floatUp {
  0%   { opacity: 0;    transform: translateY(110vh) translateX(0px)           rotate(-5deg) scale(.82); }
  8%   { opacity: .082; }
  50%  { transform: translateY(40vh)  translateX(var(--sway, 40px))            rotate(5deg)  scale(1.05); }
  92%  { opacity: .055; }
  100% { opacity: 0;    transform: translateY(-15vh) translateX(0px)           rotate(-3deg) scale(.9);  }
}

/* =========================================================
   GRÚAS MAI – v4: Welcome collage · Picture fix · Topbar email
   ========================================================= */

/* FIX GLOBAL: picture height en contenedores de tamaño fijo */
.welcome__collage picture,
.welcome__collage img,
.quienes-photo picture { display: block; width: 100%; height: 100%; }
.welcome__collage img,
.quienes-photo img { object-fit: cover; }

/* WELCOME COLLAGE: dos imágenes en composición */
.welcome__collage {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 5px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  background: var(--c-gris-100);
}
.welcome__col-main,
.welcome__col-side { overflow: hidden; position: relative; }
.welcome__col-side img { object-position: center 20%; }

/* Quita el welcome__visual antiguo si coexiste */
.welcome__visual { display: none; }

/* TOPBAR: email rectangular, sin redes sociales */
.topbar__email-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .22rem .65rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 3px;
  font-size: .7rem; color: rgba(255,255,255,.6);
  white-space: nowrap;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.topbar__email-btn:hover {
  color: var(--c-amarillo);
  border-color: rgba(232,162,0,.4);
  background: rgba(255,255,255,.04);
}
@media (max-width: 500px) { .topbar__email-btn { display: none; } }

/* =========================================================
   GRÚAS MAI – v5b: Quiénes somos — collage cronológico
   ========================================================= */
.quienes-collage {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: clamp(420px, 72vh, 680px);
  box-shadow: var(--shadow-lg);
  background: var(--c-basalto-oscuro);
}
.quienes-collage__row {
  overflow: hidden;
  position: relative;
}
.quienes-collage__row picture { display: block; width: 100%; height: 100%; }
.quienes-collage__row img     { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.quienes-collage__row:hover img { transform: scale(1.05); }

/* FUSIÓN: gradiente inferior en fila 1 y 2 que se funde con la siguiente */
.quienes-collage__row:not(.quienes-collage__row--last)::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 38%;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(21,23,26,.55) 60%,
    rgba(21,23,26,.92) 100%
  );
  pointer-events: none;
  z-index: 1;
}
/* FUSIÓN: gradiente superior en fila 2 y 3 que recibe la imagen anterior */
.quienes-collage__row:not(:first-child)::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 30%;
  background: linear-gradient(to top,
    transparent 0%,
    rgba(21,23,26,.6) 60%,
    rgba(21,23,26,.92) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Etiqueta de época */
.quienes-collage__era {
  position: absolute; bottom: .7rem; left: .8rem;
  font-size: .6rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--c-amarillo);
  background: rgba(21,23,26,.6);
  padding: .22rem .55rem;
  border-radius: 3px;
  border-left: 2px solid var(--c-amarillo);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2;
}
/* Caption solo en la última fila */
.quienes-collage__row--last::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(21,23,26,.75) 0%, rgba(21,23,26,.04) 55%, transparent 100%);
  pointer-events: none;
  z-index: 1;
  height: 100%;
}
.quienes-collage__caption {
  display: block;
  margin-top: .9rem;
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
  padding-left: .25rem;
  border-left: 2px solid var(--c-amarillo);
  padding-left: .6rem;
}

@media (max-width: 900px) {
  .quienes-collage { min-height: 360px; height: auto; aspect-ratio: 3/4; }
}

/* =========================================================
   GRÚAS MAI – v5: Filosofía carrusel
   ========================================================= */

/* Track: contiene todos los slides apilados */
.filo-track {
  position: relative;
  min-height: 9rem; /* evita salto de layout */
}
.filo-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  pointer-events: none;
}
.filo-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  position: relative; /* ocupa espacio en el flujo */
  pointer-events: auto;
}

/* Barra de nav: flechas + dots */
.filo-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem;
  margin-top: 2.2rem;
}
.filo-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.5);
  background: transparent;
  cursor: pointer;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.filo-btn:hover {
  color: var(--c-amarillo);
  border-color: rgba(232,162,0,.45);
  background: rgba(255,255,255,.06);
}
.filo-dots {
  display: flex; gap: .45rem; align-items: center;
}
.filo-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  border: none; cursor: pointer; padding: 0;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
}
.filo-dot.is-active {
  background: var(--c-amarillo);
  transform: scale(1.35);
}

/* =========================================================
   GRÚAS MAI – v7: Sistema de gradientes HSL
   =========================================================

   NOMENCLATURA
   --grad-marca    → identidad oscura, fondos principales
   --grad-seccion  → calidez sutil para secciones claras
   --grad-acento   → CTAs y elementos de marca activos
   --grad-overlay  → fade vertical sobre imágenes
   ========================================================= */

:root {
  /* ── PRIMARIO: diagonal industrial cool-dark
     Referencia: #2a2d32 → #1c1f24 → #15171A en HSL
     Uso: topbar, stats-bar, footer, seo-strip           */
  --grad-marca: linear-gradient(
    160deg,
    hsl(220, 10%, 17%) 0%,
    hsl(218, 14%, 12%) 52%,
    hsl(216, 12%,  9%) 100%
  );

  /* ── SECUNDARIO: papel cálido premium
     Apenas perceptible; da temperatura a fondos blancos.
     Uso: secciones claras, welcome, contacto            */
  --grad-seccion: linear-gradient(
    158deg,
    hsl(40, 28%, 98%) 0%,
    hsl(37, 18%, 95%) 100%
  );

  /* ── ACENTO: amber vivo → oro profundo
     Más rico que el plano #E8A200; luz en la esquina superior.
     Uso: btn--primary, tags activos, indicadores        */
  --grad-acento: linear-gradient(
    135deg,
    hsl(44, 100%, 54%) 0%,
    hsl(37, 100%, 44%) 100%
  );

  /* Versión hover: más luminosa, mantiene el degradado   */
  --grad-acento-hover: linear-gradient(
    135deg,
    hsl(44, 100%, 60%) 0%,
    hsl(37, 100%, 50%) 100%
  );

  /* ── OVERLAY: fade sobre fotografías
     Sombra cooler que el negro puro → coherente con --grad-marca */
  --grad-overlay: linear-gradient(
    to top,
    hsla(218, 20%, 6%, .90) 0%,
    hsla(218, 20%, 6%, .28) 52%,
    hsla(218, 20%, 6%, 0)  100%
  );

  /* Overlay horizontal (hero lateral / paneles)          */
  --grad-overlay-h: linear-gradient(
    to right,
    hsla(218, 20%, 6%, .88) 0%,
    hsla(218, 20%, 6%, .18) 55%,
    hsla(218, 20%, 6%, 0)  100%
  );
}

/* ── APLICACIONES ─────────────────────────────────────── */

/* TOPBAR: plano → marca */
.topbar { background: var(--grad-marca) !important; }

/* STATS-BAR: negro plano → marca */
.stats-bar { background: var(--grad-marca); }

/* SEO-STRIP: mismo sistema que topbar */
.seo-strip { background: var(--grad-marca); }

/* FOOTER: basalto plano → marca (más oscuro, diferenciado) */
.footer {
  background:
    linear-gradient(
      160deg,
      hsl(220, 12%, 11%) 0%,
      hsl(218, 16%, 8%)  55%,
      hsl(216, 14%, 6%)  100%
    );
}

/* BTN--PRIMARY: amarillo plano → acento */
.btn--primary { background: var(--grad-acento); box-shadow: 0 8px 24px hsla(40, 100%, 40%, .32); }
.btn--primary:hover { background: var(--grad-acento-hover); box-shadow: 0 14px 32px hsla(40, 100%, 44%, .44); color: var(--c-negro); transform: translateY(-2px); }

/* FILTER BUTTON activo: plano → marca */
.filter-btn.is-active { background: var(--grad-marca); border-color: transparent; }

/* SERVICE-CARD TAG en hover: fondo oscuro → acento */
.service-card:hover .service-card__tag {
  background: var(--grad-acento);
  color: hsl(216, 14%, 8%);
  border-left-color: hsl(216, 14%, 8%);
}

/* SECCIONES CLARAS: calidez sutil bajo la textura diagonal */
.section:not(.section--soft):not(.section--dark):not(.welcome) {
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent 0px, transparent 18px,
      hsla(218, 8%, 50%, .022) 18px, hsla(218, 8%, 50%, .022) 19px
    ),
    var(--grad-seccion);
}
.section--soft {
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent 0px, transparent 14px,
      hsla(218, 8%, 50%, .032) 14px, hsla(218, 8%, 50%, .032) 15px
    ),
    var(--grad-seccion);
}
.welcome {
  background: var(--grad-seccion);
}

/* SECTION--DARK: conserva los radiales de profundidad,
   reemplaza la base lineal hardcoded por --grad-marca    */
.section--dark {
  background:
    radial-gradient(ellipse 70% 60% at 12% 45%, hsla(40, 100%, 45%, .055) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 88% 80%, hsla(215, 10%, 40%, .4)   0%, transparent 55%),
    var(--grad-marca),
    repeating-linear-gradient(-45deg, transparent 0px, transparent 22px, hsla(0, 0%, 100%, .008) 22px, hsla(0, 0%, 100%, .008) 23px);
}

/* FILO DOTS activo: acento */
.filo-dot.is-active { background: var(--grad-acento); }

/* =========================================================
   GRÚAS MAI – v8b: Botón flotante WhatsApp
   ========================================================= */

.whatsapp-btn {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;          /* encima del scroll-top */
  z-index: var(--z-fixed, 900);
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,211,102,.45), 0 2px 6px rgba(0,0,0,.18);
  transition: transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              background var(--t) var(--ease);
  opacity: 0;
  pointer-events: none;
  transform: scale(.8) translateY(8px);
}
/* Aparece junto con el scroll-top (mismo umbral, via JS) */
.whatsapp-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}
.whatsapp-btn:hover {
  background: #1ebe5d;
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,.55), 0 2px 8px rgba(0,0,0,.2);
}
.whatsapp-btn:active {
  transform: scale(.95);
  transition-duration: .08s;
}

/* Pulso de atención: llama la vista sin molestar */
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.4); }
  50%       { box-shadow: 0 4px 16px rgba(37,211,102,.45), 0 0 0 10px rgba(37,211,102,0); }
}
.whatsapp-btn.is-visible {
  animation: waPulse 2.8s ease-in-out 1.5s 3;  /* 3 pulsos al aparecer, luego para */
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-btn { animation: none !important; }
}

/* =========================================================
   GRÚAS MAI – v8: Jerarquía de conversión
   ========================================================= */

/* Hero: "Ver servicios" degradado a enlace de texto
   → elimina competencia visual con el CTA primario     */
.hero-banner__nav-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.65);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: .05em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.25);
  padding-bottom: .15rem;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.hero-banner__nav-link svg { transition: transform var(--t) var(--ease); opacity: .6; }
.hero-banner__nav-link:hover { color: var(--c-blanco); border-color: var(--c-amarillo); }
.hero-banner__nav-link:hover svg { transform: translateX(4px); opacity: 1; }

/* CTA-STRIP: franja de conversión mid-page
   Versión oscura (en secciones --soft o neutras)      */
.cta-strip {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem 2rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1.75rem 2.25rem;
  background: var(--grad-marca);
  border-radius: var(--radius-xl);
  border-left: 4px solid var(--c-amarillo);
  box-shadow: 0 8px 32px hsla(216, 20%, 6%, .18);
}
.cta-strip__text {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: var(--fw-semibold);
  color: var(--c-blanco);
  line-height: 1.4;
  flex: 1; min-width: 18ch;
}

/* Versión clara (sobre secciones --soft)              */
.cta-strip--light {
  background: var(--c-blanco);
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-amarillo);
  box-shadow: 0 4px 20px hsla(216, 20%, 6%, .08);
}
.cta-strip--light .cta-strip__text { color: var(--c-negro); }

@media (max-width: 600px) {
  .cta-strip { flex-direction: column; align-items: flex-start; }
  .cta-strip .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   GRÚAS MAI – v6: Animaciones · Hover · Microinteracciones
   ========================================================= */

/* --- REVEAL: variantes direccionales ---
   Usar reveal--left / reveal--right en columnas alternas
   para reforzar la lectura en Z del layout */
html.js .reveal--left  { transform: translateX(-28px) translateY(0); }
html.js .reveal--right { transform: translateX(28px)  translateY(0); }
html.js .reveal--scale { transform: scale(.97) translateY(0); }
html.js .reveal--left.is-visible,
html.js .reveal--right.is-visible,
html.js .reveal--scale.is-visible { transform: none; opacity: 1; }

.reveal-delay-4 { transition-delay: .32s; }
.reveal-delay-5 { transition-delay: .44s; }

/* --- BOTONES: press feedback (estado :active) ---
   La escala cae al soltar → sensación táctil real */
.btn:active {
  transform: translateY(1px) scale(.97) !important;
  box-shadow: none !important;
  transition-duration: .08s !important;
}

/* Flecha → se desplaza levemente al hover (excepto iconos de teléfono) */
.btn:not(.btn--phone):hover svg { transform: translateX(3px); }
.btn svg { transition: transform var(--t) var(--ease); }

/* Ghost buttons: sombra sutil al hover */
.btn--ghost:hover  { box-shadow: 0 6px 18px rgba(21,23,26,.14); }
.btn--phone:hover  { box-shadow: 0 6px 18px rgba(232,162,0,.22); }

/* --- SERVICE CARD: título en amarillo al hover ---
   La tarjeta ya sube, el título reafirma el foco */
.service-card__title {
  transition: color var(--t) var(--ease);
}
.service-card:hover .service-card__title { color: var(--c-amarillo-oscuro); }

/* Número decorativo (01/02/03): escala al hover */
.service-card__tag {
  transition: transform var(--t) var(--ease), background var(--t) var(--ease);
}
.service-card:hover .service-card__tag {
  transform: scale(1.06);
  background: rgba(21,23,26,.88);
}

/* --- CONTACT CARD: ícono con color de marca al hover --- */
.contact-card__ic {
  transition: transform var(--t) var(--ease),
              background var(--t) var(--ease),
              color var(--t) var(--ease);
}
.contact-card:hover .contact-card__ic {
  transform: scale(1.15);
  background: var(--c-amarillo);
  color: var(--c-negro);
}

/* --- SVC-ROW: imagen escala al hacer hover en la fila --- */
.svc-row__media img {
  transition: transform .8s var(--ease);
}
.svc-row:hover .svc-row__media img { transform: scale(1.04); }

/* Número decorativo: fade a amarillo al hover de la fila */
.svc-row__num {
  transition: color var(--t-slow) var(--ease),
              transform var(--t-slow) var(--ease);
}
.svc-row:hover .svc-row__num {
  color: var(--c-amarillo);
  transform: translateX(4px);
}

/* --- FILTER BUTTONS: elevación + retorno rápido --- */
.filter-btn {
  transition: background var(--t) var(--ease),
              color     var(--t) var(--ease),
              border-color var(--t) var(--ease),
              transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease);
}
.filter-btn:hover:not(.is-active) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21,23,26,.12);
}
.filter-btn:active { transform: scale(.95); transition-duration: .08s; }

/* --- TIMELINE DOTS: pulso al hover del item --- */
@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0   rgba(232,162,0,.55); }
  65%  { box-shadow: 0 0 0 9px rgba(232,162,0,0);   }
  100% { box-shadow: 0 0 0 0   rgba(232,162,0,0);   }
}
.timeline__dot {
  transition: transform var(--t) var(--ease);
}
.timeline__item:hover .timeline__dot {
  transform: scale(1.3);
  animation: dotPulse .9s ease-out;
}
.timeline__year {
  transition: color var(--t) var(--ease);
}
.timeline__item:hover .timeline__year { color: var(--c-amarillo); }

/* --- FOOTER: underline deslizante en los enlaces --- */
.footer__list a {
  position: relative;
  display: inline-block;
}
.footer__list a::after {
  content: '';
  position: absolute; left: 0; bottom: -1px;
  width: 0; height: 1px;
  background: var(--c-amarillo);
  transition: width var(--t) var(--ease);
}
.footer__list a:hover::after { width: 100%; }

/* --- STATS BAR: leve elevación por item --- */
.stats-bar__inner > div {
  transition: transform var(--t) var(--ease);
  cursor: default;
}
.stats-bar__inner > div:hover { transform: translateY(-3px); }

/* --- NAV LINKS: la línea de subrayado ya existe,
   añadimos transición más suave en el color del texto */
.nav__link {
  transition: color var(--t) var(--ease);
}

/* --- FORM: ring de foco con transición de color limpia --- */
.form__input,
.form__select,
.form__textarea {
  transition: border-color var(--t) var(--ease),
              box-shadow  var(--t) var(--ease);
}

/* --- SCROLL-TOP button: elevación al hover --- */
.scroll-top {
  transition: background var(--t) var(--ease),
              transform   var(--t) var(--ease),
              opacity     var(--t) var(--ease),
              box-shadow  var(--t) var(--ease);
}
.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(232,162,0,.38);
}
.scroll-top:active { transform: translateY(0) scale(.93); }

/* --- LOGO: leve scale al hover --- */
.header__brand {
  transition: opacity var(--t) var(--ease);
}
.header__brand:hover { opacity: .82; }

/* --- RESPETA prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
  .reveal, html.js .reveal, html.js .reveal.is-visible,
  .btn, .service-card, .contact-card, .filter-btn,
  .svc-row__media img, .timeline__dot, .footer__list a::after,
  .scroll-top, .quienes-collage__row img {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* =========================================================
   GRÚAS MAI – v9: Reset de elementos semánticos
   Estilos para ol.timeline y dl.svc-types tras la migración
   de nav→ol y div→dl en la auditoría semántica.
   ========================================================= */

/* Reset de lista del navegador para la timeline */
ol.timeline {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* dl.svc-types: dt ocupa el rol visual de strong,
   dd el de span — sin cambios de layout, solo tipografía */
.svc-types dt {
  display: block;
  font-size: .95rem;
  font-weight: var(--fw-bold);
  color: var(--c-negro);
  margin-bottom: .2rem;
}
.svc-types dd {
  font-size: .85rem;
  color: var(--c-basalto);
  line-height: 1.5;
  margin-left: 0;   /* override del margin-left por defecto del navegador */
}

/* =========================================================
   GRÚAS MAI – v10: Typewriter cursor — Hero H1
   Barra vertical fina en color de marca, parpadeo suave,
   desaparece sin brusquedad al completarse el texto.
   ========================================================= */

@keyframes twBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes twFade {
  to { opacity: 0; width: 0; margin-left: 0; }
}

.tw-cursor {
  display: inline-block;
  width: 3px;
  height: 0.78em;
  background: var(--c-amarillo);
  border-radius: 1px;
  margin-left: 4px;
  vertical-align: middle;
  animation: twBlink .72s step-end infinite;
}

/* Cuando termina de escribir: fundido suave y colapso */
.tw-cursor--done {
  animation: twFade .55s ease forwards;
  animation-delay: .4s;
}

/* Sin motion: ocultar el cursor directamente */
@media (prefers-reduced-motion: reduce) {
  .tw-cursor { display: none; }
}

/* =========================================================
   GRÚAS MAI – v12: Svc-preview — banner visual 3 servicios
   Tarjetas enlazadas a servicios.html con foto + overlay
   ========================================================= */

.svc-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.svc-preview__card {
  position: relative;
  display: block;
  height: 440px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}

.svc-preview__card picture {
  display: block;
  width: 100%;
  height: 100%;
}
.svc-preview__card img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform .9s cubic-bezier(.25,.46,.45,.94);
}
.svc-preview__card:hover img { transform: scale(1.1); }

.svc-preview__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    hsla(218,20%,6%,.92) 0%,
    hsla(218,20%,6%,.55) 42%,
    hsla(218,20%,6%,.18) 100%
  );
  transition: background .4s ease;
}
.svc-preview__card:hover .svc-preview__overlay {
  background: linear-gradient(
    to top,
    hsla(218,20%,6%,.96) 0%,
    hsla(218,20%,6%,.68) 50%,
    hsla(218,20%,6%,.22) 100%
  );
}

.svc-preview__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.75rem 1.75rem 2rem;
}

.svc-preview__num {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--c-amarillo);
  line-height: 1;
  margin-bottom: .6rem;
  opacity: .75;
  transition: opacity var(--t) var(--ease);
}
.svc-preview__card:hover .svc-preview__num { opacity: 1; }

.svc-preview__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-blanco);
  margin: 0 0 .55rem;
  transition: color var(--t) var(--ease);
}

.svc-preview__desc {
  font-size: .87rem;
  color: rgba(255,255,255,.68);
  line-height: 1.45;
  margin: 0 0 1.1rem;
}

.svc-preview__cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-amarillo);
  border-bottom: 1px solid rgba(232,162,0,.35);
  padding-bottom: 2px;
  transition: border-color var(--t) var(--ease), gap var(--t) var(--ease);
}
.svc-preview__card:hover .svc-preview__cta {
  border-color: var(--c-amarillo);
  gap: .55rem;
}

@media (max-width: 900px) {
  .svc-preview__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .svc-preview__card { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .svc-preview__card img { transform: scale(1) !important; transition: none; }
  .svc-preview__overlay  { transition: none; }
}

/* =========================================================
   GRÚAS MAI – v11: Brand strip — franja valla de obra
   Imagen panorámica full-width sin container.
   Punto de inserción: entre servicios detalle y portafolio.
   ========================================================= */

.brand-strip {
  position: relative;
  width: 100%;
  height: clamp(320px, 52vw, 620px);
  overflow: hidden;
  display: block;
}

/* La imagen cubre el área, con ligero zoom de entrada en viewport */
.brand-strip img {
  display: block;
  width: 100%;
  height: 100% !important;  /* override del reset global img { height: auto } */
  object-fit: cover;
  object-position: center 62%;
  transform: scale(1.18);
  transition: transform 2.0s cubic-bezier(.25, .46, .45, .94);
  will-change: transform;
}

/* Zoom se activa cuando el strip entra en pantalla */
.brand-strip.is-visible img {
  transform: scale(1);
}

/* Overlay: gradientes superior e inferior para fusión con secciones adyacentes */
.brand-strip__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    hsla(218, 20%, 6%, .40) 0%,
    hsla(218, 20%, 6%, .04) 22%,
    hsla(218, 20%, 6%, .04) 74%,
    hsla(218, 20%, 6%, .48) 100%
  );
  pointer-events: none;
}

@media (max-width: 768px) {
  .brand-strip {
    height: clamp(220px, 72vw, 400px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-strip img {
    transform: scale(1) !important;
    transition: none;
  }
}


/* =========================================================
   GRÚAS MAI – v13: Revisión móvil general
   Correcciones de layout, portfolio y hero para pantallas ≤600px
   ========================================================= */

/* ---- PORTFOLIO: 2 columnas en móvil ----
   minmax(220px,1fr) forzaba 1 columna única muy ancha en 375px.
   Con 2 columnas fijas, el portfolio tiene densidad visual correcta. */
@media (max-width: 600px) {
  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    gap: 6px;
  }
  /* tall ocupa 2 filas → 300px de alto: legible sin ser excesivo */
  .port-item--tall { grid-row: span 2; }
  /* wide ya tiene span 1 en el bloque anterior — sin cambio necesario */
}

/* ---- FILTROS: scroll horizontal en lugar de multi-línea ----
   6 botones en 375px no caben en 2 líneas sin ocupar 120px+ de alto */
@media (max-width: 600px) {
  .portfolio__filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;           /* Firefox */
    padding-bottom: .5rem;
    /* sangría hasta el borde del viewport para scroll continuo */
    margin-right: calc(-1 * var(--container-px));
    padding-right: var(--container-px);
  }
  .portfolio__filters::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; }
}

/* ---- HERO: CTAs apilados en pantallas pequeñas ----
   3 botones en fila → desbordamiento en ≤420px */
@media (max-width: 480px) {
  .hero-banner__h1 {
    font-size: clamp(1.9rem, 8.5vw, 2.4rem);
    margin: .6rem 0 1rem;
  }
  .hero-banner__sub {
    font-size: .98rem;
    margin-bottom: 1.5rem;
  }
  .hero-banner__ctas {
    flex-direction: column;
    align-items: stretch;
    gap: .6rem;
  }
  .hero-banner__ctas .btn {
    justify-content: center;
    text-align: center;
  }
  .hero-banner__nav-link {
    justify-content: center;
    border: 1.5px solid rgba(255,255,255,.25);
    border-radius: var(--radius);
    padding: .85rem 1.4rem;
    width: 100%;
    color: rgba(255,255,255,.8);
  }
}

/* ---- STATS BAR: 2 columnas en 380px ya existen,
   evitar recorte de texto en pantallas muy pequeñas ---- */
@media (max-width: 360px) {
  .stats-bar__num   { font-size: 1.55rem; }
  .stats-bar__label { font-size: .6rem; letter-spacing: 0; }
}

/* ---- SERVICE PREVIEW CARDS: descripción oculta en móvil pequeño ----
   El texto no cabe en tarjeta de 240px de alto */
@media (max-width: 480px) {
  .svc-preview__card  { height: 220px; }
  .svc-preview__desc  { display: none; }
}

/* ---- SECTION HEAD: eyebrow + título más compactos en móvil ---- */
@media (max-width: 480px) {
  .section {
    padding-block: clamp(2.5rem, 8vw, 4rem);
  }
  .h-section {
    font-size: clamp(1.55rem, 6vw, 1.9rem);
  }
  .lead {
    font-size: .97rem;
  }
}

/* ---- BRAND STRIP: altura proporcional ajustada en móvil ---- */
@media (max-width: 480px) {
  .brand-strip {
    height: clamp(180px, 55vw, 260px);
  }
}

/* ---- FOOTER: alineación en móvil ---- */
@media (max-width: 500px) {
  .footer__title { font-size: .8rem; }
  .footer__legal { flex-direction: column; align-items: flex-start; gap: .4rem; }
}

/* ---- LIGHTBOX: imagen más compacta en móvil ---- */
@media (max-width: 600px) {
  .lightbox__img     { max-height: 70vh; }
  .lightbox__caption { padding: 0 1rem; font-size: .8rem; bottom: .75rem; }
}

/* ---- HERO NAV-LINK: se convierte en boton completo en movil ---- */
@media (max-width: 480px) {
  .hero-banner__nav-link {
    display: flex;
    justify-content: center;
    align-items:
    align-items: center;
    border: 1.5px solid rgba(255,255,255,.22);
    border-bottom: 1.5px solid rgba(255,255,255,.22);
    border-radius: var(--radius);
    padding: .85rem 1.4rem;
    text-align: center;
  }
}

/* =========================================================
   GRÚAS MAI – v14: Contact cards con WhatsApp
   contact-card--phone: enlace tel + icono WA independiente
   ========================================================= */

/* La tarjeta pasa a ser un div con dos zonas clickables */
.contact-card--phone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;          /* el padding lo llevan los hijos */
  gap: 0;
  cursor: default;
  transition: border-color var(--t) var(--ease);
}
.contact-card--phone:hover {
  transform: none;     /* anula el translateX del base */
  border-color: var(--c-amarillo);
}

/* Zona principal (icono + etiqueta + número): enlace tel */
.contact-card__main {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius) 0 0 var(--radius);
  transition: background var(--t) var(--ease);
}
.contact-card__main:hover {
  background: rgba(232,162,0,.06);
}

/* Separador vertical entre las dos zonas */
.contact-card--phone .contact-card__main {
  border-right: 1px solid var(--c-line);
}

/* Zona WhatsApp: icono verde a la derecha */
.contact-card__wa {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  flex-shrink: 0;
  align-self: stretch;
  color: #25D366;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.contact-card__wa:hover {
  background: #25D366;
  color: var(--c-blanco);
}
.contact-card__wa svg {
  width: 18px;
  height: 18px;
}

/* =========================================================
   GRÚAS MAI – v15: Mapa de ubicación + fix contacto
   ========================================================= */

/* Columna de tarjetas de contacto: compacta, gap reducido */
.contact-info {
  align-self: start;
  gap: .75rem;
}

/* Columna derecha (formulario): desplazada para alinearse con el lead */
.contacto__grid > *:nth-child(2) {
  padding-top: clamp(3rem, 6vw, 5rem);
}

/* Bloque intro (eyebrow + h2 + lead) dentro de la columna izquierda */
.contacto__intro {
  margin-bottom: 1.25rem;
}
.contacto__intro .h-section {
  margin-bottom: 0;
}
.contacto__intro .lead {
  margin-top: .75rem;
  font-size: clamp(.9rem, 1.2vw, 1rem);
  color: var(--c-basalto);
  max-width: 48ch;
}

/* Mapa full-width entre el contacto y el footer */
.location-map {
  width: 100%;
  overflow: hidden;
  line-height: 0;   /* elimina el espacio bajo el iframe */
}
.location-map iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 40vw, 480px);
  border: 0;
  filter: grayscale(15%) contrast(1.02);   /* tono ligeramente más frío */
}
@media (max-width: 600px) {
  .location-map iframe { height: 260px; }
}
