/* ==========================================================================
   Coop. de Trabajo Aires de Rosario Ltda. — Hoja de estilos principal
   https://coopairesrosario.com.ar
   Nota: el sitio NO desactiva animaciones con prefers-reduced-motion a pedido
   del cliente (pulse, barrido del hero y marquesinas deben verse siempre).
   ========================================================================== */

:root {
  --primary: #044081;
  --primary-light: #0a5cb3;
  --primary-dark: #022b58;
  --secondary: #6A7C7D;
  --secondary-dark: #4a5859;
  --footer-bg: #5f7072;
  --text: #212121;
  --text-soft: #4a4a4a;
  --bg: #ffffff;
  --bg-soft: #f3f5f6;
  --line: #e2e6e8;
  --wa: #25D366;
  --wa-dark: #128C4B;

  --grad-primary: linear-gradient(135deg, #0b63bf 0%, #044081 55%, #022b58 100%);
  --grad-secondary: linear-gradient(115deg, #6A7C7D 0%, #56686a 55%, #3f4c4d 100%);
  --grad-wa: linear-gradient(135deg, #2fe07a 0%, #1fb158 100%);

  --font-title: "Teko", "Arial Narrow", sans-serif;
  --font-text: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1600px;
  --gutter: clamp(16px, 3vw, 40px);
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 4px 14px rgba(4, 30, 60, .08);
  --shadow-md: 0 14px 40px rgba(4, 30, 60, .14);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --topbar-h: 38px;
  --header-h: 92px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--primary-light); }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 500;
  text-transform: uppercase;
  line-height: .95;
  color: var(--text);
  margin: 0 0 .4em;
  letter-spacing: .01em;
}
.teko, .btn, .subtitle { font-family: var(--font-title); text-transform: uppercase; }

:focus-visible { outline: 3px solid #f2b705; outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 3000;
  background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-family: var(--font-title); text-transform: uppercase; font-size: 1.2rem;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(64px, 8vw, 120px) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }

/* ---------- Headings de sección ---------- */
.subtitle {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 1.35rem; font-weight: 500; letter-spacing: .08em;
  color: var(--primary); margin-bottom: 10px; line-height: 1;
}
.subtitle::before {
  content: ""; width: 34px; height: 2px; background: var(--grad-primary); border-radius: 2px;
}
.subtitle--light { color: #fff; }
.subtitle--light::before { background: #fff; }
.section-title { font-size: clamp(2.6rem, 4.6vw, 4.4rem); }
.section-title .hl { color: var(--primary); }
.section-head { margin-bottom: clamp(32px, 4vw, 56px); max-width: 900px; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--center .subtitle { justify-content: center; }
.section-head p { color: var(--text-soft); font-size: 1.1rem; }

/* Animación de títulos (palabras que suben) */
.anim-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.anim-title .w > span {
  display: inline-block; transform: translateY(105%) rotate(4deg); opacity: 0;
  transition: transform .9s var(--ease), opacity .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.anim-title.is-in .w > span { transform: none; opacity: 1; }
.no-js .anim-title .w > span { transform: none; opacity: 1; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--grad-primary);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-size: 1.3rem; font-weight: 400; letter-spacing: .05em; line-height: 1;
  padding: .62em 1.45em .48em;
  border-radius: 999px; border: 2px solid transparent;
  background: var(--btn-bg); color: #fff;
  box-shadow: 0 6px 18px rgba(4, 64, 129, .22);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s, color .3s, border-color .3s;
  isolation: isolate;
  white-space: nowrap;
}
.btn i { font-size: .9em; margin-top: -.12em; }
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(4, 64, 129, .3); }
.btn--wa { --btn-bg: var(--grad-wa); box-shadow: 0 6px 18px rgba(37, 211, 102, .28); }
.btn--wa:hover { box-shadow: 0 10px 26px rgba(37, 211, 102, .38); }
.btn--sm { font-size: 1.15rem; padding: .55em 1.2em .42em; }
.btn--outline { background: transparent; border-color: currentColor; color: var(--primary); box-shadow: none; }
.btn--outline:hover { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: none; }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.75); color: #fff; box-shadow: none; }
.btn--outline-light:hover { background: #fff; color: var(--primary); border-color: #fff; box-shadow: none; }
.btn--ghost {
  background: transparent; box-shadow: none; color: var(--primary); padding-left: 0; padding-right: 0;
  font-size: 1.2rem;
}
.btn--ghost:hover { transform: none; box-shadow: none; color: var(--primary-light); }
.btn--ghost i { transition: transform .3s var(--ease); }
.btn--ghost:hover .fa-arrow-right { transform: translateX(5px); }
.btn--ghost:hover .fa-arrow-left { transform: translateX(-5px); }
.btn--glass {
  background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.55); color: #fff; box-shadow: none;
}
.btn--glass:hover { background: #fff; color: var(--primary); }

/* Efecto pulse con anillo expansivo (siempre activo) */
.pulse::before, .pulse::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -1;
  box-shadow: 0 0 0 0 var(--pulse-color, rgba(4, 64, 129, .55));
  animation: pulse-ring 2.2s cubic-bezier(.25, .8, .35, 1) infinite;
  pointer-events: none;
}
.pulse::after { animation-delay: 1.1s; }
.btn--wa.pulse, .wa-float.pulse { --pulse-color: rgba(37, 211, 102, .6); }
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 var(--pulse-color, rgba(4, 64, 129, .55)); opacity: 1; }
  80%, 100% { box-shadow: 0 0 0 18px rgba(0, 0, 0, 0); opacity: 0; }
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--primary); color: #fff; font-size: .875rem;
  height: var(--topbar-h); display: flex; align-items: center; position: relative; z-index: 1001;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar a { color: #fff; }
.topbar a:hover { color: #cfe3ff; }
.topbar i { margin-right: 8px; opacity: .9; }
.topbar__item { display: inline-flex; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: #fff;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(4, 30, 60, .1); }
.header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  height: var(--header-h); transition: height .35s var(--ease);
}
.is-scrolled .header__inner { height: 76px; }
.logo { display: inline-flex; position: relative; z-index: 1; justify-self: start; }
.logo img { height: 62px; width: auto; transition: height .35s var(--ease), opacity .3s; }
.is-scrolled .logo img { height: 54px; }
.logo .logo--light { display: none; }

/* Header transparente sobre el hero (solo inicio) */
.home .site-header { position: absolute; top: var(--topbar-h); left: 0; right: 0; background: transparent; box-shadow: none; }
.home .site-header .logo--light { display: block; }
.home .site-header .logo--dark { display: none; }
.home .site-header .nav__link { color: #fff; }
.home .site-header .nav-toggle { color: #fff; border-color: rgba(255,255,255,.5); }
.home .site-header.is-scrolled {
  position: fixed; top: 0; background: #fff; box-shadow: 0 8px 28px rgba(4, 30, 60, .1);
  animation: header-down .5s var(--ease);
}
.home .site-header.is-scrolled .logo--light { display: none; }
.home .site-header.is-scrolled .logo--dark { display: block; }
.home .site-header.is-scrolled .nav__link { color: var(--text); }
.home .site-header.is-scrolled .nav-toggle { color: var(--primary); border-color: var(--line); }
@keyframes header-down { from { transform: translateY(-100%); } to { transform: none; } }

.nav { justify-self: center; }
.nav__list { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 44px); }
.nav__link {
  position: relative; display: inline-block; padding: 8px 0 4px;
  font-family: var(--font-title); font-weight: 400; text-transform: uppercase;
  font-size: 1.45rem; letter-spacing: .05em; line-height: 1; color: var(--text);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link:hover { color: var(--primary); }
.home .site-header:not(.is-scrolled) .nav__link:hover { color: #fff; }
.nav__link[aria-current="page"] { color: var(--primary); }
.home .site-header:not(.is-scrolled) .nav__link[aria-current="page"] { color: #fff; }
.nav .nav__head, .nav .nav__cta-mobile, .nav .nav__social { display: none; }

.header__actions { justify-self: end; display: flex; align-items: center; gap: 14px; }
.header__cta { font-size: 1.2rem; padding: .55em 1.2em .42em; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--primary);
  align-items: center; justify-content: center; font-size: 1.2rem;
}
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(2, 20, 40, .55); z-index: 1099;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
.nav-open .site-header { z-index: 1200; }
.nav-open .wa-float { opacity: 0; pointer-events: none; }

/* ---------- Título de página ---------- */
.page-title {
  position: relative; z-index: 2;
  background: var(--grad-primary); color: #fff;
  padding: 34px 0 28px;
  box-shadow: 0 12px 30px rgba(2, 30, 62, .25);
  overflow: hidden;
}
.page-title::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 2px, transparent 2px 22px),
    radial-gradient(600px 200px at 85% 0%, rgba(255, 255, 255, .12), transparent 70%);
}
.page-title .container { position: relative; }
.page-title h1, .page-title__heading { font-family: var(--font-title); text-transform: uppercase; font-weight: 500; line-height: .95; color: #fff; font-size: clamp(2.8rem, 5vw, 4.4rem); margin: 0 0 4px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .6rem; opacity: .75; }
.breadcrumb a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.45); }
.breadcrumb a:hover { color: #fff; text-decoration-color: #fff; }
.breadcrumb [aria-current] { color: #fff; font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: max(660px, 100vh); min-height: max(660px, 100svh);
  color: #fff; overflow: hidden; display: flex; align-items: center;
  background: var(--primary-dark);
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  z-index: 1;
}
.hero__slide.is-active { z-index: 2; }
.hero__img { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); }
.hero__slide.is-active .hero__img { animation: kenburns 7s linear forwards; }
.hero__slide.is-entering { z-index: 3; animation: wipe-next 1.15s var(--ease) forwards; }
.hero__slide.is-entering.from-left { animation-name: wipe-prev; }
.hero__slide.is-entering .hero__img { animation: kenburns 7s linear forwards; }
@keyframes wipe-next { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes wipe-prev { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 24, 52, .62) 0%, rgba(2, 24, 52, .38) 45%, rgba(2, 24, 52, .08) 100%),
    linear-gradient(0deg, rgba(2, 24, 52, .35) 0%, transparent 35%);
}
.hero__content {
  position: relative; z-index: 5; width: 100%;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: 120px;
}
.hero__text { max-width: 1050px; }
@media (min-width: 992px) { .hero__content { padding-left: max(var(--gutter), 100px); padding-right: max(var(--gutter), 100px); } }
.hero .subtitle { color: #fff; font-size: clamp(1.25rem, 1.6vw, 1.6rem); }
.hero .subtitle::before { background: #fff; }
.hero h1 { color: #fff; font-size: clamp(3rem, 6vw, 5.5rem); line-height: .9; margin-bottom: 22px; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero__lead { font-size: clamp(1.05rem, 1.3vw, 1.3rem); max-width: 720px; color: rgba(255,255,255,.95); margin-bottom: 34px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 70px); margin-top: 54px; }
.stat { min-width: 140px; }
.stat__num { font-family: var(--font-title); font-size: clamp(3rem, 4.6vw, 4.6rem); line-height: .85; font-weight: 500; display: block; }
.stat__label { display: block; font-size: .95rem; color: rgba(255,255,255,.92); border-top: 1px solid rgba(255,255,255,.35); padding-top: 8px; margin-top: 6px; }
.hero__arrow {
  position: absolute; top: 50%; z-index: 6; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.45); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  transition: background .3s, color .3s, transform .3s;
}
.hero__arrow:hover { background: #fff; color: var(--primary); }
.hero__arrow--prev { left: 18px; }
.hero__arrow--next { right: 18px; }
.hero__dots { position: absolute; z-index: 6; right: var(--gutter); bottom: 44px; display: flex; gap: 10px; }
.hero__dot { width: 34px; height: 4px; border: 0; padding: 0; border-radius: 4px; background: rgba(255,255,255,.4); position: relative; overflow: hidden; }
.hero__dot.is-active::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: dot-fill 5s linear forwards; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__down {
  position: absolute; z-index: 6; left: 50%; bottom: 26px; transform: translateX(-50%);
  color: #fff; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  animation: bounce 2s ease-in-out infinite;
}
.hero__down:hover { color: var(--primary); background: #fff; }
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Marquesina de texto ---------- */
.marquee-text {
  background: var(--grad-primary); background-size: 200% 200%;
  animation: grad-shift 12s ease infinite;
  color: #fff; overflow: hidden; width: 100%; padding: 18px 0;
  position: relative;
}
@keyframes grad-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.marquee-text .marquee__set { --gap: 0px; }
.marquee-text--secondary { background: var(--grad-secondary); background-size: 200% 200%; }
.marquee-text__item {
  font-family: var(--font-title); text-transform: uppercase; font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.9rem); line-height: 1; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 34px; padding-right: 34px;
}
.marquee-text__item i { font-size: .45em; opacity: .7; }

/* ---------- Marquesinas (genérico) ---------- */
.marquee { overflow: hidden; width: 100%; }
.marquee__track {
  display: flex; width: max-content; gap: 0;
  animation: marquee var(--marquee-duration, 32s) linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee-text:hover .marquee__track { animation-play-state: running; }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.marquee__set { display: flex; gap: var(--gap, 20px); padding-right: var(--gap, 20px); flex-shrink: 0; }

/* Tarjetas de servicios en marquesina */
.services-marquee { padding-bottom: 8px; }
.svc-card {
  position: relative; flex: 0 0 auto;
  width: clamp(250px, calc((100vw - 100px) / 5), 420px);
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; display: block; color: #fff;
  background: var(--primary-dark);
}
.svc-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.svc-card:hover img, .svc-card:focus-visible img { transform: scale(1.12); }
.svc-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(2, 30, 62, .88) 0%, rgba(2, 30, 62, .25) 45%, transparent 70%);
  transition: opacity .4s;
}
.svc-card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 24px; }
.svc-card__icon {
  width: 46px; height: 46px; border-radius: 50%; background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 1.1rem;
  box-shadow: 0 0 0 4px rgba(255,255,255,.15);
}
.svc-card__title { font-family: var(--font-title); text-transform: uppercase; font-size: 2rem; line-height: .95; display: block; color: #fff; }
.svc-card__more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  font-family: var(--font-title); text-transform: uppercase; font-size: 1.15rem; letter-spacing: .05em; opacity: .9;
}
.svc-card__more i { transition: transform .3s var(--ease); font-size: .85em; }
.svc-card:hover .svc-card__more i { transform: translateX(6px); }
.center-cta { text-align: center; margin-top: 44px; }

/* Galería en marquesina */
.gallery-strip { padding: clamp(40px, 5vw, 70px) 0; }
.gallery-strip__item { flex: 0 0 auto; width: 350px; height: 350px; border-radius: var(--radius); overflow: hidden; }
.gallery-strip__item img { width: 350px; height: 350px; object-fit: cover; transition: transform .9s var(--ease); }
.gallery-strip__item:hover img { transform: scale(1.12); }

/* ---------- Beneficios ---------- */
.benefits { background: var(--bg-soft); overflow: hidden; }
.benefits::before {
  content: ""; position: absolute; width: 700px; height: 700px; right: -260px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(4, 64, 129, .09), transparent 70%); pointer-events: none;
}
.benefits__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(32px, 4vw, 80px); align-items: start; }
.benefits__intro { position: sticky; top: 120px; }
.benefits__intro p { color: var(--text-soft); }
.benefits__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.benefit {
  background: #fff; border-radius: var(--radius); padding: 34px 30px; position: relative; overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.benefit::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--grad-primary); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.benefit:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.benefit:hover::before { transform: scaleX(1); }
.benefit__icon {
  width: 64px; height: 64px; border-radius: 16px; background: var(--grad-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 22px;
  transition: transform .5s var(--ease);
}
.benefit:hover .benefit__icon { transform: rotate(-8deg) scale(1.06); }
.benefit__num { position: absolute; right: 24px; top: 16px; font-family: var(--font-title); font-size: 3.4rem; line-height: 1; color: rgba(4, 64, 129, .08); }
.benefit h3 { font-size: 1.9rem; margin-bottom: 8px; }
.benefit p { color: var(--text-soft); margin: 0; font-size: 1rem; }

/* ---------- Instagram ---------- */
.instagram { background: #fff; padding: clamp(56px, 6vw, 90px) 0; }
.instagram__head { text-align: center; margin-bottom: 26px; }
.instagram__head .subtitle { justify-content: center; }
.instagram__head .subtitle::after { content: ""; width: 34px; height: 2px; background: var(--grad-primary); border-radius: 2px; }
.instagram__feed { width: 90vw; margin: 0 auto; background: #fff; min-height: 200px; }

/* ---------- Empresa ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 90px); align-items: center; }
.split--stretch { align-items: stretch; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius); aspect-ratio: 1 / 1; object-fit: cover; }
.split__media .badge {
  position: absolute; right: -18px; bottom: 34px; background: var(--grad-primary); color: #fff;
  border-radius: var(--radius); padding: 18px 26px; box-shadow: var(--shadow-md);
}
.badge__num { font-family: var(--font-title); font-size: 3.4rem; line-height: .85; display: block; }
.badge__txt { font-size: .9rem; display: block; }
.split__text p { color: var(--text-soft); }
.split__text .lead { font-size: 1.2rem; color: var(--text); }
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 22px 0 30px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.checklist i { color: var(--primary); margin-top: 5px; }

/* ---------- Grilla de soluciones ---------- */
.svc-grid { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 28px; }
.svc-grid > * { flex: 0 1 calc((100% - 56px) / 3); display: flex; }
.svc-box {
  display: flex; flex-direction: column; width: 100%; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden; color: var(--text);
  transition: box-shadow .45s var(--ease), transform .45s var(--ease);
}
.svc-box:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); color: var(--text); }
.svc-box__media { position: relative; }
.svc-box__img { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.svc-box__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.svc-box:hover .svc-box__img img { transform: scale(1.1); }
.svc-box__icon {
  position: absolute; left: 28px; bottom: -32px; z-index: 3;
  width: 66px; height: 66px; border-radius: 16px; background: var(--grad-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  box-shadow: 0 10px 24px rgba(4, 64, 129, .35); border: 4px solid #fff;
  transition: transform .5s var(--ease);
}
.svc-box:hover .svc-box__icon { transform: translateY(-6px) rotate(-6deg); }
.svc-box__body { padding: 50px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.svc-box__body h3 { font-size: 2.1rem; margin-bottom: 8px; }
.svc-box__body p { color: var(--text-soft); font-size: 1rem; flex: 1; }
.svc-box__body .btn--ghost { align-self: flex-start; }

.diff-banner {
  margin-top: clamp(50px, 6vw, 90px); background: var(--grad-primary); color: #fff;
  border-radius: calc(var(--radius) * 1.6); padding: clamp(32px, 4vw, 60px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(28px, 4vw, 70px); align-items: center;
  position: relative; overflow: hidden;
}
.diff-banner::after {
  content: ""; position: absolute; right: -120px; bottom: -180px; width: 460px; height: 460px; border-radius: 50%;
  border: 60px solid rgba(255,255,255,.05); pointer-events: none;
}
.diff-banner h2 { color: #fff; font-size: clamp(2.4rem, 3.6vw, 3.6rem); }
.diff-banner p { color: rgba(255,255,255,.9); }
.diff-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; position: relative; z-index: 1; }
.diff-list li { display: flex; gap: 14px; align-items: flex-start; }
.diff-list i {
  flex: 0 0 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.diff-list strong { display: block; font-family: var(--font-title); text-transform: uppercase; font-weight: 500; font-size: 1.5rem; line-height: 1; margin-bottom: 3px; }
.diff-list span { font-size: .95rem; color: rgba(255,255,255,.88); line-height: 1.45; display: block; }

/* Página de servicio individual */
.svc-detail__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 18px 0 30px; }
.svc-detail__list li { display: flex; gap: 10px; }
.svc-detail__list i { color: var(--primary); margin-top: 5px; }
.svc-detail__media img { aspect-ratio: 4 / 3.4; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.other-svcs { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: .5em 1.2em .38em; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  font-family: var(--font-title); text-transform: uppercase; font-size: 1.2rem; letter-spacing: .04em; line-height: 1;
  transition: background .3s, color .3s, border-color .3s;
}
.chip i { color: var(--primary); font-size: .85em; transition: color .3s; }
.chip:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip:hover i { color: #fff; }

/* ---------- Proyectos ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.project-card { display: flex; flex-direction: column; }
.project-card__img { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.project-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.project-card:hover .project-card__img img { transform: scale(1.1); }
.project-card__meta { font-size: .85rem; color: var(--secondary-dark); margin: 16px 0 4px; display: flex; gap: 8px; align-items: center; }
.project-card__title { font-size: 1.85rem; margin: 0 0 8px; line-height: .98; }
.project-card__title a { color: var(--text); }
.project-card__title a:hover { color: var(--primary); }
.project-card .btn--ghost { align-self: flex-start; margin-top: auto; }

.project-detail { align-items: start; }
.project-detail__info { position: sticky; top: 110px; }
.project-detail__info h1, .project-detail__info h2 { font-size: clamp(2.6rem, 4vw, 3.8rem); margin-top: 10px; }
.project-detail__info p { color: var(--text-soft); }
.project-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 4px 0 22px; font-size: .95rem; color: var(--text-soft); }
.project-facts i { color: var(--primary); margin-right: 6px; }
.project-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project-gallery--single { grid-template-columns: 1fr; }
.project-gallery a { display: block; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 1 / 1; }
.project-gallery--single a { aspect-ratio: auto; }
.project-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-gallery a::after {
  content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.6rem; background: rgba(4, 64, 129, .45); opacity: 0; transition: opacity .35s;
}
.project-gallery a:hover img { transform: scale(1.08); }
.project-gallery a:hover::after, .project-gallery a:focus-visible::after { opacity: 1; }
.project-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 30px; border-top: 1px solid var(--line); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 3000; background: rgba(5, 14, 26, .94);
  display: flex; align-items: center; justify-content: center; padding: 60px 80px;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: 100%; max-height: 100%; border-radius: var(--radius-sm); box-shadow: 0 20px 60px rgba(0,0,0,.5); transform: scale(.96); transition: transform .4s var(--ease); }
.lightbox.is-open .lightbox__img { transform: none; }
.lightbox__btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08); color: #fff; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; transition: background .3s, color .3s;
}
.lightbox__btn:hover { background: #fff; color: var(--primary); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-family: var(--font-title); font-size: 1.3rem; letter-spacing: .1em; }

/* ---------- Contacto ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-bottom: clamp(40px, 5vw, 70px); }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 28px; text-align: center;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.contact-card__icon {
  width: 78px; height: 78px; margin: 0 auto 20px; border-radius: 50%; background: var(--grad-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
  box-shadow: 0 0 0 8px rgba(4, 64, 129, .08);
}
.contact-card--wa .contact-card__icon { background: var(--grad-wa); box-shadow: 0 0 0 8px rgba(37, 211, 102, .12); }
.contact-card h2 { font-size: 2rem; margin-bottom: 6px; }
.contact-card p, .contact-card a { margin: 0; color: var(--text-soft); word-break: break-word; }
.contact-card a { color: var(--primary); font-weight: 600; }

.contact-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; align-items: stretch; }
.map-box { border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--bg-soft); }
.map-box iframe { width: 100%; height: 100%; min-height: 420px; display: block; border: 0; }
.form-box { background: var(--bg-soft); border-radius: var(--radius); padding: clamp(28px, 3.4vw, 50px); }
.form-box h2 { font-size: clamp(2.2rem, 3vw, 3rem); }
.form-box > p { color: var(--text-soft); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field label .req { color: #b3261e; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 13px 16px; border: 1px solid #c7cfd3; border-radius: var(--radius-sm); background: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(4, 64, 129, .15); }
.field.has-error input, .field.has-error textarea { border-color: #b3261e; }
.field__error { color: #b3261e; font-size: .85rem; min-height: 0; display: none; }
.field.has-error .field__error { display: block; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 0; border-radius: var(--radius-sm); font-weight: 600; }
.form-status:not(:empty) { padding: 14px 18px; }
.form-status.is-ok { background: #e3f5ea; color: #145c33; }
.form-status.is-error { background: #fbe7e6; color: #8c1d18; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.form-actions small { color: var(--text-soft); }
.btn[disabled] { opacity: .7; pointer-events: none; }

.social { display: flex; gap: 12px; flex-wrap: wrap; }
.social a {
  width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-primary); color: #fff; font-size: 1.1rem; transition: transform .3s var(--ease);
}
.social a:hover { transform: translateY(-3px); color: #fff; }
.form-social { display: flex; align-items: center; gap: 14px; margin: 4px 0 24px; font-weight: 600; flex-wrap: wrap; }

/* ---------- 404 ---------- */
.error-page { text-align: center; }
.error-page__code {
  font-family: var(--font-title); font-size: clamp(9rem, 22vw, 18rem); line-height: .8;
  background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block;
}
.error-page p { max-width: 560px; margin: 0 auto 28px; color: var(--text-soft); }
.error-page .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--grad-primary); color: #fff; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #dce9ff; }
.footer__row { padding: 34px 0; }
.footer__divider { height: 1px; background: rgba(255,255,255,.25); border: 0; margin: 0; }
.footer__top { display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: center; }
.footer__logo img { height: 84px; width: auto; }
.footer__nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; }
.footer__nav a { font-family: var(--font-title); text-transform: uppercase; font-weight: 500; font-size: 1.4rem; letter-spacing: .05em; }
.footer__social { justify-self: end; display: flex; gap: 14px; }
.footer__social a {
  width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.footer__social a:hover { background: #fff; color: var(--primary); transform: translateY(-3px); }
.footer__mid { display: grid; grid-template-columns: 65fr 35fr; padding: 54px 0; }
.footer__claim { padding-right: clamp(24px, 4vw, 70px); }
.footer__claim p {
  font-family: var(--font-title); text-transform: uppercase; color: #fff; font-weight: 400;
  font-size: clamp(2.4rem, 4vw, 4.2rem); line-height: .95; margin: 0 0 24px;
}
.footer__contact { border-left: 1px solid rgba(255,255,255,.3); padding: 10px 0 10px clamp(24px, 4vw, 70px); }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 9px; font-size: .97rem; line-height: 1.4; }
.footer__contact li i { width: 18px; margin-top: 3px; text-align: center; }
.footer__contact .footer__wa { font-family: var(--font-title); text-transform: uppercase; font-size: 2.3rem; line-height: 1; margin-bottom: 14px; align-items: center; }
.footer__contact .footer__wa i { font-size: 1.7rem; margin-top: -4px; width: 26px; }
.footer__bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 22px 0; font-size: .92rem; }
.to-top {
  justify-self: start; background: none; border: 0; color: #fff; padding: 6px 0;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-title); text-transform: uppercase; font-size: 1.3rem; letter-spacing: .06em; line-height: 1;
}
.to-top i { transition: transform .3s var(--ease); }
.to-top:hover i { transform: translateY(-4px); }
.footer__copy { text-align: center; margin: 0; }
.footer__copy a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 1500;
  width: 62px; height: 62px; border-radius: 50%; background: var(--grad-wa); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
  box-shadow: 0 10px 26px rgba(18, 140, 75, .4);
  transition: transform .3s var(--ease);
}
.wa-float:hover { color: #fff; transform: scale(1.07); }
.wa-float__tip {
  position: absolute; right: calc(100% + 14px); top: 50%; transform: translate(8px, -50%);
  background: #fff; color: var(--text); white-space: nowrap; font-family: var(--font-text); font-size: .92rem; font-weight: 600;
  padding: 9px 14px; border-radius: 8px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility .3s; pointer-events: none;
}
.wa-float__tip::after {
  content: ""; position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  border: 7px solid transparent; border-left-color: #fff;
}
.wa-float:hover .wa-float__tip, .wa-float:focus-visible .wa-float__tip { opacity: 1; visibility: visible; transform: translate(0, -50%); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1400px) {
  .projects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefits__layout { grid-template-columns: 1fr; }
  .benefits__intro { position: static; max-width: 820px; }
}

@media (max-width: 1150px) {
  :root { --header-h: 80px; }
  .header__inner { grid-template-columns: auto 1fr; }
  .logo img { height: 54px; }
  .nav-toggle { display: inline-flex; }

  /* Menú móvil: panel fijo, por encima del logo y del header */
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1100;
    width: min(380px, 88vw); background: #fff;
    display: flex; flex-direction: column; padding: 22px 28px 30px;
    transform: translateX(100%); visibility: hidden;
    transition: transform .45s var(--ease), visibility .45s;
    box-shadow: -20px 0 50px rgba(0,0,0,.2); overflow-y: auto;
  }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav .nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
  .nav__head img { height: 50px; width: auto; }
  .nav__close {
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
    color: var(--primary); font-size: 1.2rem; display: inline-flex; align-items: center; justify-content: center;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav .nav__link, .home .site-header .nav .nav__link, .home .site-header:not(.is-scrolled) .nav__link:hover { color: var(--text); font-size: 1.9rem; display: block; padding: 14px 0 10px; }
  .nav .nav__link[aria-current="page"], .home .site-header:not(.is-scrolled) .nav .nav__link[aria-current="page"] { color: var(--primary); }
  .nav__link::after { display: none; }
  .nav .nav__cta-mobile { display: inline-flex; margin-top: 28px; align-self: flex-start; }
  .nav .nav__social { display: flex; margin-top: auto; padding-top: 28px; }

  .home .site-header:not(.is-scrolled) .header__cta { box-shadow: none; }

  .svc-grid > * { flex-basis: calc((100% - 28px) / 2); }
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diff-banner { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer__social { justify-self: center; }
  .footer__mid { grid-template-columns: 1fr; gap: 34px; }
  .footer__claim { padding-right: 0; }
  .footer__contact { border-left: 0; border-top: 1px solid rgba(255,255,255,.3); padding: 30px 0 0; }
}

@media (max-width: 991px) {
  .split, .contact-split { grid-template-columns: 1fr; }
  .split__media .badge { right: 16px; }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-detail__info { position: static; }
  .hero__arrow { top: auto; bottom: 26px; transform: none; width: 46px; height: 46px; }
  .hero__arrow--prev { left: var(--gutter); }
  .hero__arrow--next { left: calc(var(--gutter) + 56px); right: auto; }
  .hero__dots { bottom: 46px; }
}

@media (max-width: 767px) {
  :root { --topbar-h: 4px; --header-h: 72px; }
  body { font-size: 1rem; }
  .topbar { height: 4px; }
  .topbar .container { display: none; }
  .header__cta span { display: none; }
  .header__cta { width: 46px; height: 46px; padding: 0; font-size: 1.3rem; }
  .header__cta i { margin: 0; }
  .logo img, .is-scrolled .logo img { height: 48px; }
  .is-scrolled .header__inner { height: 68px; }
  .hero__content { padding-top: calc(var(--header-h) + 30px); padding-bottom: 110px; }
  .hero__stats { gap: 22px; margin-top: 40px; }
  .hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .stat { min-width: 0; }
  .stat__label { font-size: .82rem; }
  .hero__down { display: none; }
  .svc-grid > * { flex-basis: 100%; }
  .svc-card { width: 72vw; }
  .gallery-strip__item, .gallery-strip__item img { width: 260px; height: 260px; }
  .benefits__grid, .checklist, .diff-list, .svc-detail__list, .form-grid, .contact-cards { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .page-title { padding: 26px 0 22px; }
  .footer__bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-bottom: 96px; }
  .to-top { justify-self: center; }
  .footer__nav ul { gap: 8px 22px; }
  .lightbox { padding: 70px 12px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; transform: none; }
  .lightbox__prev { left: 14px; }
  .lightbox__next { right: 14px; }
  .wa-float { right: 16px; bottom: 16px; width: 58px; height: 58px; }
  .wa-float__tip { display: none; }
  .project-nav { flex-direction: column; }
}
