/* =========================================================
   LIMAY SERVICIOS — Sistema visual
   Bootstrap 5.3 + capa corporativa propia
   ========================================================= */

:root {
  --ink: #14171A;
  --ink-2: #1F2429;
  --graphite: #2B3137;
  --steel: #5E6873;
  --mist: #F4F2EE;
  --sand: #E9E4DB;
  --line: #E2DED6;
  --white: #FFFFFF;
  --orange: #F14A29;
  --orange-d: #D23B1C;
  --orange-soft: rgba(241, 74, 41, .12);

  --ff-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 84px;

  --bs-body-font-family: var(--ff-body);
  --bs-body-color: var(--graphite);
  --bs-link-color-rgb: 241, 74, 41;
  --bs-border-color: var(--line);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--graphite);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, .display-x {
  font-family: var(--ff-head);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.12;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); }
p { margin-bottom: 1.1rem; }
a { text-decoration: none; transition: color .25s var(--ease); }
img { max-width: 100%; height: auto; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 3000;
  background: var(--ink); color: #fff; padding: .6rem 1rem;
}
.skip-link:focus { top: 1rem; color: #fff; }

.text-orange { color: var(--orange) !important; }
.text-steel { color: var(--steel) !important; }
.bg-mist { background: var(--mist); }
.bg-ink { background: var(--ink); color: rgba(255, 255, 255, .72); }
.bg-ink h2, .bg-ink h3, .bg-ink h4 { color: #fff; }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--ff-head);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 34px; height: 2px; background: currentColor;
  transform-origin: left; transform: scaleX(var(--line-s, 1));
  transition: transform 1s var(--ease-out) .2s;
}
.eyebrow.on-dark { color: #fff; }
.eyebrow.on-dark::before { background: var(--orange); }
.lead-x { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.6; color: var(--ink); font-weight: 400; }
.statement {
  font-family: var(--ff-head); font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.3;
  letter-spacing: -.02em; color: var(--ink);
}
.statement em { font-style: normal; color: var(--orange); }

/* ---------- Botones ---------- */
.btn-x {
  --h: 54px;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: .7rem;
  height: var(--h); padding: 0 1.6rem;
  font-family: var(--ff-head); font-weight: 600; font-size: .92rem; letter-spacing: .01em;
  border: 1.5px solid transparent; border-radius: 0;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn-x::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: translateY(101%); transition: transform .45s var(--ease-out);
}
.btn-x:hover::after, .btn-x:focus-visible::after { transform: translateY(0); }
.btn-x i { transition: transform .35s var(--ease); }
.btn-x:hover i.bi-arrow-right, .btn-x:hover i.bi-arrow-up-right { transform: translateX(4px); }

.btn-orange { background: var(--orange); color: #fff; }
.btn-orange::after { background: var(--ink); }
.btn-orange:hover { color: #fff; }

.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line::after { background: var(--ink); }
.btn-line:hover { color: #fff; }

.btn-line-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-line-light::after { background: #fff; }
.btn-line-light:hover { color: var(--ink); border-color: #fff; }

.btn-sm-x { --h: 44px; padding: 0 1.2rem; font-size: .85rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--ff-head); font-weight: 600; font-size: .92rem;
  color: var(--ink); padding-bottom: 4px;
  background: linear-gradient(var(--orange), var(--orange)) no-repeat left bottom / 0 2px;
  transition: background-size .45s var(--ease-out), color .3s;
}
.link-arrow i { color: var(--orange); transition: transform .35s var(--ease); }
.link-arrow:hover { color: var(--ink); background-size: 100% 2px; }
.link-arrow:hover i { transform: translateX(5px); }
.link-arrow.on-dark { color: #fff; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 4000;
  display: grid; place-items: center;
  background: var(--ink);
  transition: transform .9s var(--ease-out) .1s, visibility 0s 1s;
}
.preloader svg { width: 92px; height: 92px; overflow: visible; }
.preloader svg path {
  transform-box: fill-box; transform-origin: center;
  opacity: 0; animation: ringIn 1.1s var(--ease-out) forwards;
}
.preloader svg path:nth-child(1) { animation-delay: .30s; }
.preloader svg path:nth-child(2) { animation-delay: .20s; }
.preloader svg path:nth-child(3) { animation-delay: .10s; }
.preloader svg path:nth-child(4) { animation-delay: 0s; }
.preloader .bar {
  position: absolute; left: 50%; bottom: 18%; width: 140px; height: 2px;
  transform: translateX(-50%); background: rgba(255,255,255,.12); overflow: hidden;
}
.preloader .bar::after {
  content: ""; position: absolute; inset: 0; background: var(--orange);
  transform-origin: left; animation: barLoad 1.2s var(--ease) forwards;
}
.is-loaded .preloader { transform: translateY(-100%); visibility: hidden; }
@keyframes ringIn {
  0% { opacity: 0; transform: scale(.4) rotate(-40deg); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes barLoad { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Cortina de transición entre páginas */
.page-curtain {
  position: fixed; inset: 0; z-index: 3900; pointer-events: none;
  background: var(--orange); transform: translateY(100%);
  transition: transform .55s var(--ease-out);
}
.is-leaving .page-curtain { transform: translateY(0); }

/* Barra de progreso de lectura */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 2100; height: 3px; width: 100%;
  background: var(--orange); transform-origin: left; transform: scaleX(0);
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--ink); color: rgba(255,255,255,.65);
  font-size: .8rem; letter-spacing: .01em;
}
.topbar .container { display: flex; align-items: center; gap: 1.6rem; min-height: 40px; }
.topbar a { color: rgba(255,255,255,.8); }
.topbar a:hover { color: #fff; }
.topbar i { color: var(--orange); margin-right: .4rem; }
.topbar .ms-auto { color: rgba(255,255,255,.55); }

/* ---------- Header / navbar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 2000;
  transition: transform .45s var(--ease), background-color .35s, box-shadow .35s;
  background: #fff; border-bottom: 1px solid var(--line);
}
.site-header .navbar { min-height: var(--header-h); padding: 0; }
.brand img { height: 46px; width: auto; display: block; }
.brand .logo-light { display: none; }

.site-header .nav-link {
  position: relative;
  font-family: var(--ff-head); font-weight: 500; font-size: .92rem;
  color: var(--ink); padding: .5rem 0 !important;
}
.site-header .nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.site-header .nav-link:hover::after,
.site-header .nav-link.active::after { transform: scaleX(1); transform-origin: left; }
.site-header .dropdown-menu {
  border: 0; border-radius: 0; padding: .6rem 0; min-width: 280px;
  box-shadow: 0 24px 60px rgba(20,23,26,.14); border-top: 2px solid var(--orange);
}
.site-header .dropdown-item {
  font-size: .92rem; padding: .7rem 1.4rem; color: var(--ink);
  transition: padding .3s var(--ease), color .2s, background .2s;
}
.site-header .dropdown-item small { display: block; color: var(--steel); font-size: .78rem; }
.site-header .dropdown-item:hover { background: var(--mist); color: var(--orange); padding-left: 1.7rem; }
.navbar-toggler { border: 0; padding: .4rem; box-shadow: none !important; }
.burger { width: 28px; height: 14px; position: relative; display: block; }
.burger span {
  position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink);
  transition: transform .35s var(--ease), top .35s var(--ease), background .3s;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 12px; }
.navbar-toggler[aria-expanded="true"] .burger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .burger span:nth-child(2) { top: 6px; transform: rotate(-45deg); }

/* Header transparente sobre el hero (portada / páginas internas) */
.has-hero .site-header {
  position: fixed; left: 0; right: 0; top: 40px;
  background: transparent; border-bottom-color: rgba(255,255,255,.14);
}
.has-hero .site-header .nav-link { color: #fff; }
.has-hero .site-header .brand .logo-light { display: block; }
.has-hero .site-header .brand .logo-dark { display: none; }
.has-hero .site-header .burger span { background: #fff; }

.site-header.is-solid,
.has-hero .site-header.is-solid {
  top: 0; background: rgba(255,255,255,.97);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom-color: var(--line); box-shadow: 0 10px 40px rgba(20,23,26,.07);
}
.has-hero .site-header.is-solid .nav-link { color: var(--ink); }
.has-hero .site-header.is-solid .brand .logo-light { display: none; }
.has-hero .site-header.is-solid .brand .logo-dark { display: block; }
.has-hero .site-header.is-solid .burger span { background: var(--ink); }
.site-header.is-hidden { transform: translateY(-110%); }

@media (max-width: 991.98px) {
  :root { --header-h: 72px; }
  .brand img { height: 38px; }
  .site-header .navbar-collapse {
    position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100dvh - var(--header-h));
    background: var(--ink); padding: 2rem 1.5rem; overflow-y: auto;
  }
  .site-header .navbar-collapse.collapsing { transition: height .35s var(--ease); }
  .site-header .nav-link, .has-hero .site-header.is-solid .nav-link {
    color: #fff; font-size: 1.5rem; padding: .7rem 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .site-header .nav-link::after { display: none; }
  .site-header .dropdown-menu { background: transparent; box-shadow: none; border: 0; padding: 0 0 .6rem 1rem; }
  .site-header .dropdown-item { color: rgba(255,255,255,.8); padding: .5rem 0; }
  .site-header .dropdown-item small { color: rgba(255,255,255,.45); }
  .site-header .dropdown-item:hover { background: transparent; padding-left: .3rem; }
}

/* ---------- Hero portada ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 640px;
  background: var(--ink); color: #fff; overflow: hidden;
}
.hero .carousel-inner, .hero .carousel-item { height: 100%; }
.hero .carousel-item { transition: opacity 1.2s var(--ease) !important; }
.hero .slide-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.14);
}
.hero .carousel-item.active .slide-img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.hero .scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,16,18,.86) 0%, rgba(14,16,18,.55) 45%, rgba(14,16,18,.1) 100%),
    linear-gradient(0deg, rgba(14,16,18,.6) 0%, transparent 40%);
}
.hero .caption {
  position: absolute; inset: 0; display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 40px);
}
.hero .caption .inner { max-width: 850px; }
.hero h1, .hero .h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 5rem); margin-bottom: 1.4rem; }
.hero p.sub { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(255,255,255,.82); max-width: 600px; margin-bottom: 2.2rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Animación de entrada del texto del hero (palabra por palabra) */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 60ms + var(--d, 0ms)); }
.hero .anim-up { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.hero .eyebrow { --line-s: 0; }
.is-loaded .carousel-item.active .split .w > span { transform: translateY(0); }
.is-loaded .carousel-item.active .anim-up { opacity: 1; transform: none; }
.is-loaded .carousel-item.active .eyebrow { --line-s: 1; }
.is-loaded .carousel-item.active .anim-up.d1 { transition-delay: .55s; }
.is-loaded .carousel-item.active .anim-up.d2 { transition-delay: .75s; }
.is-loaded .carousel-item.active .anim-up.d0 { transition-delay: .15s; }

/* Controles del hero: numeración + progreso */
.hero-ui {
  position: absolute; left: 0; right: 0; bottom: 2.4rem; z-index: 5;
}
.hero-ui .container { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.hero-tabs { display: flex; gap: 2rem; flex: 1; max-width: 760px; }
.hero-tabs button {
  flex: 1; text-align: left; background: none; border: 0; padding: 1rem 0 0; color: rgba(255,255,255,.55);
  font-family: var(--ff-head); font-size: .8rem; font-weight: 500; position: relative; cursor: pointer;
  border-top: 1px solid rgba(255,255,255,.25); transition: color .3s;
}
.hero-tabs button b { display: block; font-size: .75rem; color: var(--orange); margin-bottom: .2rem; font-weight: 600; }
.hero-tabs button::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 100%;
  background: #fff; transform: scaleX(0); transform-origin: left;
}
.hero-tabs button.active { color: #fff; }
.hero-tabs button.active::before { animation: tabProgress var(--slide-ms, 7000ms) linear forwards; }
@keyframes tabProgress { to { transform: scaleX(1); } }
.scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  color: rgba(255,255,255,.7); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
}
.scroll-cue span.line { width: 1px; height: 54px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.scroll-cue span.line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%;
  background: var(--orange); animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
@media (max-width: 767.98px) {
  .hero-tabs button span { display: none; }
  .hero-tabs { gap: .8rem; }
  .scroll-cue { display: none; }
  .hero .caption { align-items: flex-end; padding-bottom: 7rem; }
}

/* ---------- Hero de página interna ---------- */
.page-hero {
  position: relative; min-height: 78vh; display: flex; align-items: flex-end;
  color: #fff; background: var(--ink); overflow: hidden;
  padding: calc(var(--header-h) + 120px) 0 5rem;
}
.page-hero .bg { position: absolute; inset: -8% 0 0 0; height: 116%; width: 100%; object-fit: cover; will-change: transform; }
.page-hero .scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,16,18,.88), rgba(14,16,18,.35)), linear-gradient(0deg, rgba(14,16,18,.65), transparent 55%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 900px; margin-bottom: 1.2rem; }
.page-hero p { color: rgba(255,255,255,.82); font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 680px; margin: 0; }
.page-hero.compact { min-height: 0; padding-bottom: 4rem; }
.page-hero .bg-pattern {
  position: absolute; right: -8%; top: 50%; width: min(620px, 70vw); transform: translateY(-50%);
  opacity: .08;
}
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.4rem; font-size: .82rem; color: rgba(255,255,255,.6); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--orange); }
.crumbs a { color: rgba(255,255,255,.85); }
.crumbs a:hover { color: #fff; }

/* ---------- Secciones ---------- */
.sec { padding: clamp(5rem, 10vw, 8.5rem) 0; position: relative; }
.sec-sm { padding: clamp(3.5rem, 6vw, 5rem) 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(2.8rem, 5vw, 4.5rem); }
.sec-head p { color: var(--steel); font-size: 1.1rem; margin-top: 1rem; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-num {
  font-family: var(--ff-head); font-size: .78rem; color: var(--steel);
  letter-spacing: .14em; display: block; margin-bottom: .4rem;
}
.hairline { height: 1px; background: var(--line); border: 0; opacity: 1; margin: 0; }

/* ---------- Cifras ---------- */
.stats { border-top: 1px solid var(--line); }
.stat { padding: 2.2rem 1.5rem 2.2rem 0; border-bottom: 1px solid var(--line); height: 100%; }
@media (min-width: 768px) { .stat { border-bottom: 0; border-right: 1px solid var(--line); padding-left: 1.75rem; } .stats .col-md-3:first-child .stat { padding-left: 0; } .stats .col-md-3:last-child .stat { border-right: 0; } }
.stat .num {
  font-family: var(--ff-head); font-weight: 600; color: var(--ink);
  font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -.04em;
  display: flex; align-items: baseline; gap: .15rem;
}
.stat .num small { font-size: .5em; color: var(--orange); font-weight: 600; }
.stat p { margin: .8rem 0 0; color: var(--steel); font-size: .95rem; line-height: 1.5; }

/* ---------- Tarjetas de unidades de negocio ---------- */
.biz-card {
  position: relative; display: block; overflow: hidden; color: #fff;
  aspect-ratio: 4 / 5; background: var(--ink);
}
@media (min-width: 992px) { .biz-card { aspect-ratio: 5 / 6; } }
.biz-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.biz-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(14,16,18,.92) 0%, rgba(14,16,18,.35) 50%, rgba(14,16,18,.05) 100%);
  transition: background .6s var(--ease);
}
.biz-card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; z-index: 3;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out);
}
.biz-card .body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(1.6rem, 3vw, 2.8rem); }
.biz-card .tag { font-family: var(--ff-head); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.biz-card h3 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin: .7rem 0 0; }
.biz-card .more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.biz-card .more > div { overflow: hidden; }
.biz-card .more p { color: rgba(255,255,255,.8); margin: 1rem 0 1.2rem; max-width: 460px; }
.biz-card .go {
  position: absolute; top: clamp(1.4rem, 2.6vw, 2.2rem); right: clamp(1.4rem, 2.6vw, 2.2rem); z-index: 2;
  width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4); font-size: 1.3rem; transition: background .4s, border-color .4s, transform .5s var(--ease-out);
}
.biz-card:hover img { transform: scale(1.07); }
.biz-card:hover::after { transform: scaleX(1); }
.biz-card:hover .more, .biz-card:focus-visible .more { grid-template-rows: 1fr; }
.biz-card:hover .go { background: var(--orange); border-color: var(--orange); transform: rotate(45deg); }
@media (hover: none) { .biz-card .more { grid-template-rows: 1fr; } }

/* ---------- Pilares / features ---------- */
.pillar {
  padding: 2.4rem 2rem; height: 100%; background: #fff; border: 1px solid var(--line);
  position: relative; overflow: hidden; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s;
}
.pillar::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.pillar:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(20,23,26,.08); border-color: transparent; }
.pillar:hover::before { transform: scaleX(1); }
.pillar .ico {
  width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 1.6rem;
  background: var(--orange-soft); color: var(--orange); font-size: 1.5rem;
  transition: background .4s, color .4s;
}
.pillar:hover .ico { background: var(--orange); color: #fff; }
.pillar h3 { font-size: 1.2rem; margin-bottom: .8rem; }
.pillar p { color: var(--steel); font-size: .98rem; margin: 0; }

/* ---------- Bloque split imagen + texto ---------- */
.media-frame { position: relative; overflow: hidden; background: var(--sand); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-16x10 { aspect-ratio: 16 / 10; }
.ratio-1x1 { aspect-ratio: 1; }
.media-badge {
  position: absolute; left: 0; bottom: 0; background: var(--orange); color: #fff;
  padding: 1.4rem 1.8rem; font-family: var(--ff-head);
}
.media-badge strong { display: block; font-size: 2.2rem; line-height: 1; letter-spacing: -.03em; }
.media-badge span { font-size: .8rem; opacity: .9; }
.offset-deco { position: relative; }
.offset-deco::before {
  content: ""; position: absolute; right: -22px; top: -22px; width: 55%; height: 55%;
  border-top: 2px solid var(--orange); border-right: 2px solid var(--orange); pointer-events: none;
}

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative; padding: 1rem 0 1rem 2.4rem; border-bottom: 1px solid var(--line);
}
.checklist li:first-child { border-top: 1px solid var(--line); }
.checklist li::before {
  content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 1rem;
  color: var(--orange); font-size: 1.15rem; line-height: 1.6;
}
.checklist strong { color: var(--ink); font-weight: 600; }

/* ---------- Servicio detallado (cards numeradas) ---------- */
.svc-item {
  border-top: 1px solid var(--line); padding: 2rem 0; height: 100%;
  transition: border-color .4s;
}
.svc-item .n { font-family: var(--ff-head); font-size: .8rem; color: var(--orange); font-weight: 600; letter-spacing: .1em; }
.svc-item h3 { font-size: 1.25rem; margin: .7rem 0 .7rem; }
.svc-item p { color: var(--steel); margin: 0; font-size: .98rem; }
.svc-item i { font-size: 1.6rem; color: var(--ink); display: block; margin-bottom: 1rem; transition: color .3s, transform .5s var(--ease-out); }
.svc-item:hover { border-color: var(--orange); }
.svc-item:hover i { color: var(--orange); transform: translateY(-4px); }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
@media (max-width: 991.98px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 2rem 1.8rem 2rem 0; position: relative; }
.step::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line);
}
.step::after {
  content: ""; position: absolute; top: -5px; left: 0; width: 11px; height: 11px; background: var(--orange);
  transform: rotate(45deg);
}
.step .n { font-family: var(--ff-head); font-size: 2.6rem; font-weight: 600; color: var(--sand); line-height: 1; display: block; margin: .8rem 0 .8rem; }
.bg-mist .step .n { color: #DAD3C6; }
.step h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.step p { color: var(--steel); font-size: .95rem; margin: 0; }

/* ---------- Trayectoria / referencias ---------- */
.ref {
  display: grid; grid-template-columns: 140px 1fr; gap: 1.5rem;
  padding: 2rem 0; border-bottom: 1px solid rgba(255,255,255,.12);
}
.ref:first-child { border-top: 1px solid rgba(255,255,255,.12); }
.ref .label { font-family: var(--ff-head); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); padding-top: .35rem; }
.ref h3 { color: #fff; font-size: 1.3rem; margin-bottom: .5rem; }
.ref p { margin: 0; color: rgba(255,255,255,.65); font-size: .98rem; }
@media (max-width: 575.98px) { .ref { grid-template-columns: 1fr; gap: .4rem; } }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.8rem, 1.6vw, 1.4rem); }
.gallery .gi { grid-column: span 4; position: relative; overflow: hidden; background: var(--sand); }
.gallery .gi.w8 { grid-column: span 8; }
.gallery .gi.w6 { grid-column: span 6; }
.gallery .gi img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 1.2s var(--ease-out); display: block; }
.gallery .gi.w8 img { aspect-ratio: auto; height: 100%; }
.gallery .gi figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.4rem 1.1rem;
  background: linear-gradient(0deg, rgba(14,16,18,.85), transparent);
  color: #fff; font-family: var(--ff-head); font-size: .92rem; font-weight: 500;
  transform: translateY(14px); opacity: .92; transition: transform .5s var(--ease-out), opacity .5s;
}
.gallery .gi figcaption small { display: block; color: var(--orange); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .2rem; }
.gallery .gi:hover img { transform: scale(1.06); }
.gallery .gi:hover figcaption { transform: none; opacity: 1; }
@media (max-width: 767.98px) { .gallery .gi, .gallery .gi.w8, .gallery .gi.w6 { grid-column: span 12; } .gallery .gi.w8 img { aspect-ratio: 4/3; } }

/* ---------- Zona de cobertura (GEO) ---------- */
.zones { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1.6rem 0 0; }
.zones li {
  border: 1px solid var(--line); padding: .5rem 1rem; font-size: .9rem; color: var(--ink);
  background: #fff; transition: border-color .3s, color .3s, transform .3s var(--ease);
}
.zones li.main { background: var(--ink); border-color: var(--ink); color: #fff; }
.zones li i { color: var(--orange); margin-right: .35rem; }
.zones li:hover { border-color: var(--orange); transform: translateY(-2px); }
.map-wrap { position: relative; height: 100%; min-height: 420px; background: var(--sand); overflow: hidden; }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.85) contrast(1.05); transition: filter .6s; }
.map-wrap:hover iframe { filter: none; }
.map-pin {
  position: absolute; left: 1.2rem; top: 1.2rem; z-index: 2; background: #fff; padding: 1rem 1.2rem;
  box-shadow: 0 16px 40px rgba(20,23,26,.15); font-size: .88rem; max-width: 260px; line-height: 1.5;
}
.map-pin strong { font-family: var(--ff-head); color: var(--ink); display: block; }

/* ---------- FAQ ---------- */
.faq .accordion-item { border: 0; border-bottom: 1px solid var(--line); background: transparent; border-radius: 0 !important; }
.faq .accordion-item:first-child { border-top: 1px solid var(--line); }
.faq .accordion-button {
  font-family: var(--ff-head); font-weight: 500; font-size: 1.12rem; color: var(--ink);
  padding: 1.5rem 3rem 1.5rem 0; background: transparent; box-shadow: none !important; line-height: 1.4;
}
.faq .accordion-button::after {
  background-image: none; content: "+"; font-size: 1.8rem; font-weight: 300; color: var(--orange);
  width: auto; height: auto; line-height: 1; position: absolute; right: 0; transform: none; transition: transform .4s var(--ease);
}
.faq .accordion-button:not(.collapsed)::after { transform: rotate(45deg); }
.faq .accordion-button:not(.collapsed) { color: var(--orange); }
.faq .accordion-body { padding: 0 3rem 1.6rem 0; color: var(--steel); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; background: var(--orange); color: #fff;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}
.cta h2 { color: #fff; max-width: 760px; }
.cta p { color: rgba(255,255,255,.88); font-size: 1.1rem; max-width: 600px; }
.cta .deco { position: absolute; right: -6%; top: 50%; width: min(560px, 60vw); transform: translateY(-50%); opacity: .14; pointer-events: none; }
.cta .deco path { fill: #fff; }
.cta .btn-orange { background: var(--ink); }
.cta .btn-orange::after { background: #fff; }
.cta .btn-orange:hover { color: var(--ink); }

/* ---------- Contacto ---------- */
.contact-card { background: var(--ink); color: rgba(255,255,255,.75); padding: clamp(2rem, 4vw, 3rem); height: 100%; }
.contact-card h2, .contact-card h3 { color: #fff; }
.c-line { display: flex; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.c-line i { color: var(--orange); font-size: 1.2rem; margin-top: .15rem; }
.c-line small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: .15rem; }
.c-line a { color: #fff; }
.c-line a:hover { color: var(--orange); }
.form-label { font-family: var(--ff-head); font-weight: 500; font-size: .85rem; color: var(--ink); }
.form-control, .form-select {
  border-radius: 0; border: 0; border-bottom: 1.5px solid #CFC9BE; padding: .8rem 0; background-color: transparent;
  font-size: 1rem; transition: border-color .3s;
}
.form-select { padding-right: 2rem; background-position: right 0 center; }
.form-control:focus, .form-select:focus { box-shadow: none; border-color: var(--orange); background-color: transparent; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
#formMsg .alert { border-radius: 0; border: 0; border-left: 3px solid; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.6); font-size: .95rem; position: relative; overflow: hidden; }
.footer .f-top { padding: clamp(4rem, 7vw, 6rem) 0 3rem; position: relative; z-index: 1; }
.footer h4 { color: #fff; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.4rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .7rem; }
.footer a { color: rgba(255,255,255,.75); }
.footer a:hover { color: var(--orange); }
.footer .f-logo img { height: 52px; width: auto; margin-bottom: 1.6rem; }
.footer .f-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.6rem 0; font-size: .82rem; position: relative; z-index: 1; }
.footer .f-bottom .container { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; }
.footer .f-deco { position: absolute; right: -120px; bottom: -160px; width: 520px; opacity: .05; pointer-events: none; }
.footer .f-deco path { fill: #fff; }
.social { display: flex; gap: .6rem; margin-top: 1.6rem; }
.social a {
  width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18);
  color: #fff; transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.social a:hover { background: var(--orange); border-color: var(--orange); color: #fff; transform: translateY(-3px); }

/* Botón flotante WhatsApp + volver arriba */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 1900;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; font-size: 1.6rem; box-shadow: 0 12px 30px rgba(0,0,0,.2);
  transition: transform .35s var(--ease);
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366;
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { color: #fff; transform: scale(1.08); }
.to-top {
  position: fixed; right: 30px; bottom: 94px; z-index: 1900; width: 42px; height: 42px;
  display: grid; place-items: center; background: var(--ink); color: #fff; border: 0;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .35s, transform .35s var(--ease), background .3s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--orange); }

/* =========================================================
   ANIMACIONES DE SCROLL  ([data-anim])
   ========================================================= */
.js [data-anim] { transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), clip-path 1.3s var(--ease-out); transition-delay: var(--delay, 0ms); }
.js [data-anim="fade-up"] { opacity: 0; transform: translateY(48px); }
.js [data-anim="fade-in"] { opacity: 0; }
.js [data-anim="fade-left"] { opacity: 0; transform: translateX(-56px); }
.js [data-anim="fade-right"] { opacity: 0; transform: translateX(56px); }
.js [data-anim="zoom"] { opacity: 0; transform: scale(.92); }
.js [data-anim="reveal"] { clip-path: inset(0 100% 0 0); }
.js [data-anim="reveal-up"] { clip-path: inset(100% 0 0 0); }
.js [data-anim].in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.js .eyebrow[data-anim], .js [data-anim] .eyebrow { --line-s: 0; }
.js [data-anim].in .eyebrow, .js .eyebrow[data-anim].in { --line-s: 1; }

/* Revelado de imagen con barrido naranja (estilo corporativo) */
.js .wipe { position: relative; overflow: hidden; }
.js .wipe::after {
  content: ""; position: absolute; inset: 0; z-index: 2; background: var(--orange);
  transform: scaleX(0); transform-origin: left;
}
.js .wipe > img, .js .wipe > picture { opacity: 0; transform: scale(1.18); transition: opacity 0s .55s, transform 1.6s var(--ease-out) .5s; }
.js .wipe.in::after { animation: wipe 1.15s var(--ease-out) forwards; animation-delay: var(--delay, 0ms); }
.js .wipe.in > img, .js .wipe.in > picture { opacity: 1; transform: scale(1); }
@keyframes wipe {
  0% { transform: scaleX(0); transform-origin: left; }
  48% { transform: scaleX(1); transform-origin: left; }
  52% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* Encabezados con texto partido al hacer scroll */
.js .split-scroll .w > span { transform: translateY(105%); }
.js .split-scroll.in .w > span { transform: translateY(0); }

/* Respeto a usuarios con movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .js [data-anim], .js .wipe > img, .split .w > span, .hero .anim-up { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js .wipe::after { display: none; }
  .preloader { display: none; }
}

/* Mobile: sin topbar, header pegado arriba */
@media (max-width: 767.98px) {
  .has-hero .site-header { top: 0; }
}
.gallery .gi.w6 img { aspect-ratio: 3 / 2; }
@media (min-width: 768px) { .hero .caption { padding-bottom: 110px; } }
.page-curtain { visibility: hidden; transition: transform .55s var(--ease-out), visibility 0s .55s; }
.is-leaving .page-curtain { transition: transform .55s var(--ease-out); }
.is-leaving .page-curtain { visibility: visible; }
@media (max-width: 991.98px) {
  .site-header:has(.navbar-collapse.show) { background: var(--ink) !important; border-bottom-color: rgba(255,255,255,.1); }
  .site-header:has(.navbar-collapse.show) .logo-light { display: block !important; }
  .site-header:has(.navbar-collapse.show) .logo-dark { display: none !important; }
  .site-header:has(.navbar-collapse.show) .burger span { background: #fff !important; }
}
.gallery .gi figcaption { background: linear-gradient(0deg, rgba(14,16,18,.92) 10%, rgba(14,16,18,0)); padding-top: 3rem; }
