/* =========================================================
   BOREAL PINTURAS — Hoja de estilos
   Base: blanco, escala de grises y grafito.
   Los colores del logo se aplican sólo como detalles (--accent*).
   Para ajustarlos a la marca, cambiá las variables de :root.
   ========================================================= */

:root {
  /* Colores de marca (detalles) — reemplazar por los del logo */
  --accent: #e2140c;      /* rojo Boreal */
  --accent-2: #458410;    /* verde Boreal */
  --accent-3: #0e5a2b;    /* verde oscuro (banda institucional) */
  --accent-grad: linear-gradient(90deg, var(--accent) 0 50%, var(--accent-2) 50% 100%);

  /* Base neutra */
  --white: #ffffff;
  --grey-50: #f7f7f6;
  --grey-100: #efefed;
  --grey-200: #e2e2df;
  --grey-300: #cfcfcb;
  --grey-400: #a9a9a5;
  --grey-500: #7d7e7b;
  --grey-600: #5a5b5a;
  --graphite: #2b2d31;
  --graphite-900: #1b1c1f;

  --text: var(--graphite);
  --text-soft: var(--grey-600);
  --line: var(--grey-200);

  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --radius: 4px;
  --radius-lg: 10px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--graphite); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--grey-500);
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--accent-grad); border-radius: 2px;
}
.h-xl { font-size: clamp(40px, 6.2vw, 84px); font-weight: 700; letter-spacing: -0.04em; }
.h-lg { font-size: clamp(32px, 4.2vw, 56px); font-weight: 700; letter-spacing: -0.035em; }
.h-md { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.025em; }
/* El acento en cursiva acompaña el peso del título */
.h-xl .serif, .h-lg .serif, .h-md .serif { font-size: 1.06em; letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--text-soft); line-height: 1.6; }
.muted { color: var(--text-soft); }

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 26px; border: 1px solid var(--graphite); border-radius: 100px;
  font-size: 14px; font-weight: 600; letter-spacing: .02em;
  background: var(--graphite); color: var(--white);
  overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--white); transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
.btn:hover { color: var(--graphite); }
.btn:hover::before { transform: translateY(0); }
.btn .arrow { transition: transform .45s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost { background: transparent; color: var(--graphite); }
.btn--ghost::before { background: var(--graphite); }
.btn--ghost:hover { color: var(--white); }

.btn--light { background: var(--white); color: var(--graphite); border-color: var(--white); }
.btn--light::before { background: var(--graphite-900); }
.btn--light:hover { color: var(--white); }

.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--outline-light::before { background: var(--white); }
.btn--outline-light:hover { color: var(--graphite); border-color: var(--white); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--graphite);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 3px; transition: background-size .5s var(--ease-out);
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow svg { transition: transform .4s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background .5s var(--ease), height .5s var(--ease), box-shadow .5s var(--ease), color .5s var(--ease);
  color: var(--graphite);
}
.header--over-dark { color: var(--white); }
.header.is-scrolled {
  height: 68px; color: var(--graphite);
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 12px; line-height: 1; }
.logo img.logo__mark { width: auto; height: 44px; flex: none; transition: height .5s var(--ease); }
.is-scrolled .logo img.logo__mark { height: 38px; }
.logo__text { display: flex; flex-direction: column; gap: 4px; }
.logo__name { font-size: 21px; font-weight: 800; letter-spacing: .08em; color: var(--accent); transition: color .5s var(--ease); }
.logo__sub { font-size: 10px; font-weight: 700; letter-spacing: .36em; color: var(--accent-2); transition: color .5s var(--ease); }
.header--over-dark:not(.is-scrolled) .logo__name, .header--over-dark:not(.is-scrolled) .logo__sub { color: var(--white); }
body.menu-open .header .logo__name { color: var(--accent); }
body.menu-open .header .logo__sub { color: var(--accent-2); }
.footer .logo__name, .footer .logo__sub { color: var(--white); }
.footer .logo__sub { opacity: .7; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; gap: 32px; }
.nav__link {
  position: relative; font-size: 14px; font-weight: 500; padding: 6px 0; opacity: .8;
  transition: opacity .3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--accent-grad); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { opacity: 1; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.header .btn { padding: 11px 20px; font-size: 13px; }
.header--over-dark:not(.is-scrolled) .btn { background: transparent; border-color: rgba(255,255,255,.5); color: var(--white); }
.header--over-dark:not(.is-scrolled) .btn::before { background: var(--white); }
.header--over-dark:not(.is-scrolled) .btn:hover { color: var(--graphite); }

.burger {
  display: none; width: 44px; height: 44px; border: 0; background: none; color: inherit;
  position: relative; z-index: 120;
}
.burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor;
  transition: transform .45s var(--ease-out), opacity .3s var(--ease), top .45s var(--ease-out);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
body.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: 0; z-index: 110; background: var(--white); color: var(--graphite);
  display: flex; flex-direction: column; justify-content: center; padding: 96px var(--gutter) 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-out);
  visibility: hidden;
}
body.menu-open { overflow: hidden; }
body.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
body.menu-open .header { color: var(--graphite); }
.mobile-menu__list li { overflow: hidden; border-bottom: 1px solid var(--line); }
.mobile-menu__list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; font-size: 30px; letter-spacing: -.02em;
  transform: translateY(100%); transition: transform .7s var(--ease-out);
}
body.menu-open .mobile-menu__list a { transform: translateY(0); }
.mobile-menu__list li:nth-child(2) a { transition-delay: .05s; }
.mobile-menu__list li:nth-child(3) a { transition-delay: .1s; }
.mobile-menu__list li:nth-child(4) a { transition-delay: .15s; }
.mobile-menu__list li:nth-child(5) a { transition-delay: .2s; }
.mobile-menu__foot { margin-top: 40px; display: grid; gap: 6px; font-size: 14px; color: var(--text-soft); }

/* ---------- Hero slider ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 620px; max-height: 1000px;
  background: var(--graphite-900); color: var(--white); overflow: hidden;
}
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 1.2s; }
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide__media { position: absolute; inset: 0; overflow: hidden; }
.slide__media img {
  width: 100%; height: 100%; object-fit: cover; transform: scale(1.12);
  transition: transform 8s linear; filter: grayscale(35%);
}
.slide.is-active .slide__media img { transform: scale(1); }
.slide--flip .slide__media img { transform: scale(-1.12, 1.12); }
.slide--flip.is-active .slide__media img { transform: scale(-1, 1); }
.slide__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,21,24,.82) 0%, rgba(20,21,24,.5) 50%, rgba(20,21,24,.15) 100%),
              linear-gradient(0deg, rgba(20,21,24,.6) 0%, transparent 40%);
}
.slide__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--header-h);
}
.slide__content > * { max-width: 760px; }
.slide__content .eyebrow { color: rgba(255,255,255,.72); margin-bottom: 26px; }
.slide__title { margin-bottom: 26px; font-size: clamp(38px, 5.3vw, 76px); }
.slide__content > .slide__title { max-width: 1040px; }
.slide__title .line { display: block; overflow: hidden; }
.slide__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
.slide.is-active .slide__title .line > span { transform: translateY(0); transition-delay: .35s; }
.slide.is-active .slide__title .line:nth-child(2) > span { transition-delay: .48s; }
.slide__text { color: rgba(255,255,255,.75); max-width: 520px; font-size: 18px; }
.slide__text, .slide__actions, .slide__content .eyebrow {
  opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease-out);
}
.slide.is-active .slide__content .eyebrow { opacity: 1; transform: none; transition-delay: .25s; }
.slide.is-active .slide__text { opacity: 1; transform: none; transition-delay: .7s; }
.slide.is-active .slide__actions { opacity: 1; transform: none; transition-delay: .85s; }
.slide__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }

.hero__controls {
  position: absolute; z-index: 5; left: 0; right: 0; bottom: 40px;
}
.hero__controls .container { display: flex; align-items: center; gap: 28px; }
.hero__count { font-size: 13px; letter-spacing: .1em; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.7); }
.hero__count b { color: var(--white); font-weight: 600; }
.hero__bars { display: flex; gap: 10px; flex: 1; max-width: 360px; }
.hero__bar {
  position: relative; flex: 1; height: 2px; border: 0; padding: 10px 0; background: none;
}
.hero__bar::before, .hero__bar i {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: rgba(255,255,255,.22); border-radius: 2px;
}
.hero__bar i { background: var(--white); transform: scaleX(0); transform-origin: left; right: 0; }
.hero__bar.is-done i { transform: scaleX(1); }
.hero__bar.is-active i { animation: bar var(--slide-duration, 6500ms) linear forwards; }
.hero.is-paused .hero__bar.is-active i { animation-play-state: paused; }
@keyframes bar { to { transform: scaleX(1); } }
.hero__arrows { display: flex; gap: 10px; margin-left: auto; }
.hero__arrow {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: transparent; color: var(--white);
  display: grid; place-items: center; transition: background .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.hero__arrow:hover { background: var(--white); color: var(--graphite); border-color: var(--white); }
.hero__scroll {
  position: absolute; z-index: 5; right: var(--gutter); top: 50%;
  writing-mode: vertical-rl; font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 14px;
}
.hero__scroll::after { content: ""; width: 1px; height: 60px; background: linear-gradient(rgba(255,255,255,.6), transparent); animation: scrollHint 2.4s var(--ease) infinite; }
@keyframes scrollHint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Page hero (páginas internas) ---------- */
.page-hero {
  position: relative; padding: calc(var(--header-h) + 90px) 0 80px;
  background: var(--grey-50); overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line);
}
.page-hero__aurora {
  position: absolute; right: -10%; top: -30%; width: 60%; aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 70%),
              radial-gradient(closest-side at 70% 60%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
  filter: blur(20px); pointer-events: none; animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-6%, 8%) rotate(12deg); } }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; gap: 10px; font-size: 13px; color: var(--grey-500); margin-bottom: 28px; }
.breadcrumb a:hover { color: var(--graphite); }
.page-hero h1 { max-width: 880px; }
.page-hero .lead { max-width: 620px; margin-top: 24px; }

.page-hero--image { background: var(--graphite-900); color: var(--white); padding-bottom: 110px; }
.page-hero--image .page-hero__bg { position: absolute; inset: 0; }
.page-hero--image .page-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(40%); opacity: .45; transform: scale(1.06); animation: slowzoom 14s var(--ease) forwards; }
@keyframes slowzoom { to { transform: scale(1); } }
.page-hero--image .lead, .page-hero--image .breadcrumb { color: rgba(255,255,255,.7); }
.page-hero--image .breadcrumb a:hover { color: var(--white); }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; }
/* ¿Quiénes somos? (portada): menos aire abajo y fondo esfumado suave */
.section--about {
  padding-bottom: clamp(56px, 6vw, 84px);
  background:
    radial-gradient(60% 70% at 92% 18%, color-mix(in srgb, var(--accent-2) 9%, transparent), transparent 70%),
    radial-gradient(40% 45% at 6% 62%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 70%),
    linear-gradient(180deg, var(--white) 0%, var(--grey-50) 100%);
}
.section--about .about__badge { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); }
.section--about .stats { margin-bottom: 32px; }
.section--grey { background: var(--grey-50); }
.section--dark { background: var(--graphite); color: var(--white); }
.section--dark .muted, .section--dark .lead { color: rgba(255,255,255,.66); }
.section--dark .eyebrow { color: rgba(255,255,255,.6); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(48px, 6vw, 80px); flex-wrap: wrap; }
.section__head > div { max-width: 680px; }
.section__head h2 { margin-top: 20px; }
.section__head p { margin: 20px 0 0; }

/* ---------- Nosotros (home) ---------- */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__media { position: relative; }
.about__img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; }
.about__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.6s var(--ease-out); }
.about__img.is-visible img, .reveal.is-visible .about__img img { transform: scale(1); }
.about__badge {
  position: absolute; right: -28px; bottom: 48px; background: var(--white);
  padding: 26px 28px; border-radius: var(--radius-lg); box-shadow: 0 30px 60px -30px rgba(27,28,31,.35);
  max-width: 230px;
}
.about__badge strong { display: block; font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1; margin-bottom: 8px; }
.about__badge > span { font-size: 13px; color: var(--text-soft); line-height: 1.45; display: block; }
.about__badge::before { content: ""; display: block; width: 32px; height: 3px; border-radius: 3px; background: var(--accent-grad); margin-bottom: 18px; }
.about__body h2 { margin: 20px 0 28px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 44px 0; padding-top: 36px; border-top: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(32px, 3.4vw, 46px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.stat > span { display: block; margin-top: 10px; font-size: 13px; color: var(--text-soft); line-height: 1.4; }

/* ---------- Soluciones (tópicos) ---------- */
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.topic {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .6s;
}
.topic:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(27,28,31,.35); border-color: transparent; }
.topic__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--grey-100); }
.topic__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: transform 1.2s var(--ease-out), filter .9s var(--ease); }
.topic:hover .topic__media img { transform: scale(1.06); filter: grayscale(0%); }
.topic__num {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--white);
  background: rgba(27,28,31,.55); backdrop-filter: blur(6px); padding: 6px 11px; border-radius: 100px;
}
.topic__body { display: flex; flex-direction: column; flex: 1; padding: 30px 30px 28px; }
.topic__type { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-500); }
.topic__title { font-size: 24px; margin: 12px 0 14px; }
.topic__desc { font-size: 15px; color: var(--text-soft); margin-bottom: 24px; }
.topic__brands { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.topic__brands small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-400); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 12.5px; font-weight: 500; padding: 5px 12px; border-radius: 100px;
  background: var(--grey-100); color: var(--graphite); transition: background .3s, color .3s;
}
.topic:hover .chip { background: var(--grey-200); }
.topic__line { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent-grad); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out); }
.topic:hover .topic__line { transform: scaleX(1); }

/* ---------- Marcas (carrusel) ---------- */
.brands { padding: 70px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.brands__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.marquee { position: relative; display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; flex: none; gap: 20px; padding-right: 20px; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 50s; }
@keyframes marquee { to { transform: translateX(-100%); } }
.brand {
  flex: none; width: 210px; height: 104px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white);
  color: var(--grey-400); transition: color .4s var(--ease), border-color .4s, box-shadow .4s;
  font-size: 22px; white-space: nowrap;
}
.brand img { max-width: 150px; max-height: 54px; object-fit: contain; filter: grayscale(1) opacity(.55); transition: filter .5s; }
.brand:hover { color: var(--graphite); border-color: var(--grey-300); box-shadow: 0 16px 30px -22px rgba(27,28,31,.3); }
.brand:hover img { filter: none; }
/* Wordmarks tipográficos provisorios (reemplazar por logos) */
.bw-1 { font-weight: 800; letter-spacing: -.03em; }
.bw-2 { font-family: var(--font-serif); font-size: 28px; font-style: italic; }
.bw-3 { font-weight: 300; letter-spacing: .28em; text-transform: uppercase; font-size: 17px; }
.bw-4 { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 19px; }
.bw-5 { font-weight: 500; letter-spacing: -.01em; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.14); border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.service { padding: 44px 36px 40px 0; background: var(--graphite); }
.service:not(:nth-child(3n+1)) { padding-left: 36px; }
.service__icon { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; margin-bottom: 28px; transition: background .5s, border-color .5s, color .5s; }
.service:hover .service__icon { background: var(--white); color: var(--graphite); border-color: var(--white); }
.service__n { float: right; font-family: var(--font-serif); font-style: italic; font-size: 22px; color: rgba(255,255,255,.3); }
.service h3 { font-size: 19px; margin-bottom: 12px; }
.service p { font-size: 14.5px; color: rgba(255,255,255,.62); margin: 0; }
.section--light-services .services { background: var(--line); border-color: var(--line); }
.section--light-services .service { background: var(--white); }
.section--light-services .service p { color: var(--text-soft); }
.section--light-services .service__n { color: var(--grey-300); }
.section--light-services .service__icon { border-color: var(--grey-300); }
.section--light-services .service:hover .service__icon { background: var(--graphite); color: var(--white); border-color: var(--graphite); }

/* ---------- Pilares (Calidad / Innovación / Compromiso) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.pillar { display: flex; gap: 20px; align-items: flex-start; padding: 40px 36px 40px 0; }
.pillar + .pillar { padding-left: 36px; border-left: 1px solid var(--line); }
.pillar__icon { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--grey-100); color: var(--graphite); transition: background .5s, color .5s; }
.pillar:hover .pillar__icon { background: var(--accent-2); color: var(--white); }
.pillar h3 { font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.pillar p { margin: 0; font-size: 14.5px; color: var(--text-soft); }

/* ---------- Áreas abarcadas ---------- */
.areas-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.areas-wrap__head { position: sticky; top: 110px; }
.areas-wrap__head h2 { margin: 20px 0 22px; }
.areas li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 24px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease-out); }
.areas li:first-child { border-top: 1px solid var(--line); }
.areas li:hover { padding-left: 10px; }
.areas__n { font-family: var(--font-serif); font-style: italic; font-size: 30px; line-height: 1; color: var(--grey-300); transition: color .4s; }
.areas li:hover .areas__n { color: var(--accent); }
.areas h3 { font-size: 19px; margin-bottom: 6px; }
.areas p { margin: 0; font-size: 15px; color: var(--text-soft); }

/* ---------- Logística ---------- */
.logistics { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.logistics__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/2; background: var(--grey-100); }
.logistics__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 1.6s var(--ease-out); }
.logistics__media.is-visible img, .reveal.is-visible .logistics__media img { transform: scale(1); }
.logistics h2 { margin: 20px 0 22px; }
.coverage { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 30px; }
.coverage li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 100px; font-size: 14px; font-weight: 500; background: var(--white); transition: border-color .3s, transform .4s var(--ease-out); }
.coverage li:hover { border-color: var(--graphite); transform: translateY(-2px); }
.coverage li svg { color: var(--accent); }

/* ---------- Productos (latas) ---------- */
.products-strip { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 28px; }
.product { width: 104px; display: flex; flex-direction: column; gap: 8px; }
.product__img { aspect-ratio: 4/5; background: var(--white); border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; padding: 8px; overflow: hidden; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.product__img img { width: 100%; height: 100%; object-fit: contain; }
.product:hover .product__img { transform: translateY(-4px); box-shadow: 0 18px 30px -22px rgba(27,28,31,.45); }
.product span { font-size: 11.5px; line-height: 1.3; color: var(--text-soft); }
.product--wide { width: 216px; }
.product--wide .product__img { aspect-ratio: 16/10; }
.products-label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-400); margin-bottom: 12px; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 26px 0 30px; padding: 24px; background: var(--grey-50); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.specs h4 { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-500); margin-bottom: 10px; }
.specs li { font-size: 14.5px; padding: 3px 0; }

/* ---------- Ubicación ---------- */
.location { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border-radius: 16px; overflow: hidden; background: var(--graphite); color: var(--white); }
.location__media { min-height: 420px; position: relative; }
.location__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.location__body { padding: clamp(36px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.location__body .eyebrow { color: rgba(255,255,255,.6); }
.location__body h2 { margin: 18px 0 20px; }
.location__body address { font-style: normal; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.8); margin-bottom: 28px; }

.tagline { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-size: clamp(15px, 1.6vw, 19px); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.tagline b { color: var(--accent); font-weight: 800; }
.tagline span:nth-child(2) b { color: var(--accent-2); }
.tagline i { font-style: normal; color: var(--grey-300); }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.post { display: flex; flex-direction: column; }
.post__media { position: relative; aspect-ratio: 16/11; border-radius: var(--radius-lg); overflow: hidden; background: var(--grey-100); margin-bottom: 24px; }
.post__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(60%); transition: transform 1.1s var(--ease-out), filter .8s; }
.post:hover .post__media img { transform: scale(1.05); filter: grayscale(0); }
.post__cat { position: absolute; left: 16px; top: 16px; background: var(--white); color: var(--graphite); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 100px; }
.post__meta { font-size: 13px; color: var(--grey-500); margin-bottom: 10px; display: flex; gap: 14px; }
.post__title { font-size: 21px; line-height: 1.3; margin-bottom: 12px; transition: color .3s; }
.post:hover .post__title { color: var(--grey-600); }
.post__excerpt { font-size: 15px; color: var(--text-soft); margin-bottom: 18px; }
.post .link-arrow { margin-top: auto; align-self: flex-start; }
.post.is-hidden { display: none; }

.post--featured { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; margin-bottom: 80px; padding-bottom: 80px; border-bottom: 1px solid var(--line); }
.post--featured .post__media { aspect-ratio: 16/10; margin: 0; }
.post--featured .post__title { font-size: clamp(26px, 3vw, 40px); letter-spacing: -.025em; line-height: 1.15; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 50px; }
.filter {
  border: 1px solid var(--line); background: var(--white); color: var(--graphite);
  padding: 9px 18px; border-radius: 100px; font-size: 13.5px; font-weight: 500;
  transition: background .35s var(--ease), color .35s, border-color .35s;
}
.filter:hover { border-color: var(--graphite); }
.filter.is-active { background: var(--graphite); color: var(--white); border-color: var(--graphite); }

/* ---------- Artículo ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article__cover { border-radius: var(--radius-lg); overflow: hidden; margin: -60px auto 64px; max-width: 1080px; aspect-ratio: 16/8; position: relative; z-index: 2; box-shadow: 0 40px 80px -50px rgba(27,28,31,.5); }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article p { font-size: 18px; line-height: 1.8; color: #3b3d42; }
.article h2 { font-size: 30px; margin: 56px 0 20px; }
.article h3 { font-size: 22px; margin: 40px 0 14px; }
.article ul { margin: 0 0 1.4em; }
.article li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 17px; color: #3b3d42; }
.article li::before { content: ""; position: absolute; left: 0; top: 13px; width: 12px; height: 2px; background: var(--accent-grad); }
.article blockquote { margin: 48px 0; padding: 8px 0 8px 32px; border-left: 2px solid var(--graphite); font-family: var(--font-serif); font-style: italic; font-size: 30px; line-height: 1.3; }
.article__tip { background: var(--grey-50); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 32px; margin: 40px 0; }
.article__tip strong { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; color: var(--grey-500); }
.article__tip p { margin: 0; font-size: 16px; }
.article__share { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.share-links { display: flex; gap: 8px; }
.share-links a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: background .3s, color .3s, border-color .3s; }
.share-links a:hover { background: var(--graphite); color: var(--white); border-color: var(--graphite); }

/* ---------- Soluciones (página) ---------- */
.subnav {
  position: sticky; top: 68px; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.subnav__list { display: flex; gap: 6px; overflow-x: auto; padding: 14px 0; scrollbar-width: none; }
.subnav__list::-webkit-scrollbar { display: none; }
.subnav__list a { flex: none; font-size: 13.5px; font-weight: 500; padding: 8px 16px; border-radius: 100px; color: var(--grey-600); transition: background .3s, color .3s; }
.subnav__list a:hover { color: var(--graphite); background: var(--grey-100); }
.subnav__list a.is-active { background: var(--graphite); color: var(--white); }

.solution { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; padding: clamp(70px, 9vw, 120px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.solution:last-child { border-bottom: 0; }
.solution:nth-child(even) .solution__media { order: 2; }
.solution__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5/4; background: var(--grey-100); }
.solution__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease-out); }
.solution.is-visible .solution__media img { transform: scale(1); }
.solution__index { font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--grey-400); }
.solution h2 { margin: 16px 0 20px; }
.solution__uses { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 28px 0 32px; }
.solution__uses li { position: relative; padding-left: 22px; font-size: 15px; }
.solution__uses li::before { content: ""; position: absolute; left: 0; top: 11px; width: 10px; height: 2px; background: var(--accent-grad); }
.solution__brands { padding: 22px 0; border-top: 1px solid var(--line); margin-bottom: 30px; }
.solution__brands small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-400); margin-bottom: 12px; }

/* ---------- Empresa ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.split--center { align-items: center; }
.big-quote { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.2; letter-spacing: -.03em; font-weight: 600; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value { padding: 40px 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); transition: transform .6s var(--ease-out), box-shadow .6s; }
.value:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -34px rgba(27,28,31,.35); }
.value__n { font-family: var(--font-serif); font-style: italic; font-size: 44px; line-height: 1; color: var(--grey-300); margin-bottom: 28px; }
.value h3 { font-size: 22px; margin-bottom: 12px; }
.value p { color: var(--text-soft); font-size: 15px; margin: 0; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 38px 44px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--white); border: 1px solid var(--grey-400); }
.timeline li:last-child::before { background: var(--accent); border-color: var(--accent); }
.timeline h4 { font-size: 18px; margin-bottom: 6px; }
.timeline p { margin: 0; font-size: 15px; color: var(--text-soft); }
.gallery { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--grey-100); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(70%); transition: filter .8s, transform 1.2s var(--ease-out); }
.gallery figure:hover img { filter: grayscale(0); transform: scale(1.04); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--graphite-900); color: var(--white); border-radius: 18px; padding: clamp(50px, 8vw, 100px) clamp(28px, 6vw, 90px); display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; isolation: isolate; }
.cta::before {
  content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; right: -20%; top: -80%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-3) 70%, transparent), transparent),
              radial-gradient(closest-side at 30% 70%, color-mix(in srgb, var(--accent) 28%, transparent), transparent);
  filter: blur(40px); opacity: .55; animation: drift 16s ease-in-out infinite alternate;
}
.cta h2 { max-width: 620px; }
.cta p { color: rgba(255,255,255,.66); margin: 18px 0 0; max-width: 520px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 7vw, 110px); }
.contact-info { display: grid; gap: 0; align-content: start; }
.contact-item { display: flex; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.contact-item:first-child { border-top: 1px solid var(--line); }
.contact-item__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--grey-100); display: grid; place-items: center; }
.contact-item small { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-500); margin-bottom: 4px; }
.contact-item p { margin: 0; font-size: 16px; }
.contact-item a:hover { text-decoration: underline; text-underline-offset: 3px; }
.socials { display: flex; gap: 8px; margin-top: 30px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: background .3s, color .3s, border-color .3s; }
.socials a:hover { background: var(--graphite); color: var(--white); border-color: var(--graphite); }

.form { background: var(--grey-50); border: 1px solid var(--line); border-radius: 16px; padding: clamp(28px, 4vw, 52px); }
.form h2 { margin-bottom: 10px; }
.form > p { color: var(--text-soft); margin-bottom: 34px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { position: relative; display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; margin-bottom: 8px; color: var(--grey-600); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--graphite);
  background: var(--white); border: 1px solid var(--grey-200); border-radius: 8px;
  padding: 14px 16px; transition: border-color .3s, box-shadow .3s; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%232b2d31' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--graphite); box-shadow: 0 0 0 4px rgba(43,45,49,.07); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #c2413b; }
.field__error { font-size: 12.5px; color: #c2413b; margin-top: 6px; height: 0; overflow: hidden; transition: height .3s; }
.field.has-error .field__error { height: 18px; }
.radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-group input { position: absolute; opacity: 0; pointer-events: none; }
.radio-group label { margin: 0; font-size: 13.5px; font-weight: 500; letter-spacing: 0; color: var(--graphite); padding: 9px 16px; border: 1px solid var(--grey-200); background: var(--white); border-radius: 100px; cursor: pointer; transition: all .3s var(--ease); }
.radio-group input:checked + label { background: var(--graphite); color: var(--white); border-color: var(--graphite); }
.radio-group input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.form__foot small { color: var(--grey-500); font-size: 12.5px; max-width: 300px; }
.form__success { display: none; text-align: center; padding: 40px 10px; }
.form.is-sent .form__success { display: block; animation: fadeUp .8s var(--ease-out); }
.form.is-sent form { display: none; }
.form__success .check { width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 50%; background: var(--graphite); color: var(--white); display: grid; place-items: center; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.map { margin-top: 0; height: 460px; background: var(--grey-100); filter: grayscale(1) contrast(1.05); border-top: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-size: 18px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; flex: none; width: 16px; height: 16px; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease-out); }
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] summary .plus::after { transform: rotate(0); }
.faq details p { color: var(--text-soft); padding-bottom: 24px; margin: 0; max-width: 680px; animation: fadeUp .5s var(--ease-out); }

/* ---------- Footer ---------- */
.footer { background: var(--graphite-900); color: rgba(255,255,255,.7); padding: 90px 0 36px; font-size: 14.5px; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .logo { color: var(--white); margin-bottom: 24px; }
.footer__about p { max-width: 320px; }
.footer h4 { color: var(--white); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 22px; }
.footer li { margin-bottom: 10px; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--white); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 30px; font-size: 13px; color: rgba(255,255,255,.45); flex-wrap: wrap; }
.footer .socials a { border-color: rgba(255,255,255,.18); color: var(--white); }
.footer .socials a:hover { background: var(--white); color: var(--graphite); }
.footer__line { height: 3px; background: var(--accent-grad); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: var(--graphite); color: var(--white);
  display: grid; place-items: center; box-shadow: 0 16px 34px -12px rgba(27,28,31,.55);
  transform: translateY(120px); transition: transform .7s var(--ease-out), background .3s;
}
.wa-float.is-visible { transform: none; }
.wa-float:hover { background: #25d366; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--graphite); animation: ping 2.6s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1.1s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
/* El recorte va en la imagen y no en el contenedor: un contenedor recortado al 100% el navegador lo
   considera invisible, el aviso de scroll nunca llega y las fotos no aparecían nunca. */
.reveal-img img { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease-out); }
.reveal-img.is-visible img { clip-path: inset(0 0 0 0); }

/* Page loader */
.page-veil { position: fixed; inset: 0; z-index: 200; background: var(--white); pointer-events: none; transition: opacity .8s var(--ease) .1s; }
body.is-loaded .page-veil { opacity: 0; }
body.is-leaving .page-veil { opacity: 1; transition-delay: 0s; transition-duration: .4s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .topics { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service:not(:nth-child(3n+1)) { padding-left: 0; }
  .service:nth-child(2n) { padding-left: 32px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 26px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav__list, .header .nav .btn { display: none; }
  .burger { display: block; }
  .about, .split, .contact, .solution, .post--featured, .areas-wrap, .logistics, .location { grid-template-columns: 1fr; }
  .areas-wrap__head { position: static; }
  .location__media { min-height: 280px; }
  .solution:nth-child(even) .solution__media { order: 0; }
  .about__badge { right: 16px; }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 180px 180px; }
  .gallery figure:first-child { grid-row: auto; grid-column: span 2; }
  .hero__scroll { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .topics, .posts { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(2n), .service:not(:nth-child(3n+1)) { padding: 32px 0; }
  .specs { grid-template-columns: 1fr 1fr; }
  .product { width: calc(33.33% - 8px); }
  .product--wide { width: calc(66.66% - 4px); }
  .stats { grid-template-columns: 1fr 1fr; }
  .form__grid, .solution__uses { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__arrows { display: none; }
  .brand { width: 160px; height: 84px; font-size: 18px; }
  .slide__text { font-size: 16px; }
  .article p { font-size: 17px; }
  .article blockquote { font-size: 24px; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 220px; }
  .gallery figure:first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Tarjetas parejas (todas del mismo alto y con el contenido alineado) ---------- */
@media (min-width: 641px) {
  .topics, .posts { grid-auto-rows: 1fr; }
  .topic__title { min-height: 2.24em; }                 /* reserva 2 renglones de título */
  .topic__brands .chips { min-height: 68px; align-content: flex-start; } /* reserva 2 filas de marcas */
  .post__title { min-height: 2.6em; }
}

/* ---------- Blog: filtros como enlaces y paginación ---------- */
a.filter { display: inline-block; text-decoration: none; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 70px; }

/* ---------- Formulario: estado del envío ---------- */
.form__status.is-error { color: var(--accent); font-weight: 600; }
button[type="submit"]:disabled { opacity: .6; cursor: wait; }

/* ---------- Artículo: enlace copiado ---------- */
.share-links a.is-copied { background: var(--accent-3); color: var(--white); border-color: var(--accent-3); }

/* ---------- Crédito de diseño en el pie ---------- */
.footer__credito a { color: rgba(255,255,255,.75); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); transition: color .3s, border-color .3s; }
.footer__credito a:hover { color: var(--white); border-color: var(--white); }

/* Servicios en fondo claro: son tarjetas blancas, llevan el mismo margen interno de los dos lados */
.section--light-services .service,
.section--light-services .service:nth-child(2n),
.section--light-services .service:not(:nth-child(3n+1)) { padding: 44px 36px 40px; }
@media (max-width: 640px) {
  .section--light-services .service,
  .section--light-services .service:nth-child(2n),
  .section--light-services .service:not(:nth-child(3n+1)) { padding: 30px 24px; }
}

/* Foto del frente: es vertical y el edificio está en la mitad de abajo; al recortarla se prioriza el local y no el cielo */
img[src$="pdf/frente-local.jpg"] { object-position: 50% 72%; }
