/* ============================================================
   SERVIALUM PUEBLA — Sistema de diseño
   Paleta y tipografías originales, arquitectura nueva.
   ============================================================ */

:root {
  /* Marca */
  --navy:      #0d1b2a;
  --navy-2:    #1b263b;
  --steel:     #415a77;
  --silver:    #e0e1dd;
  --accent:    #f4a300;
  --accent-2:  #d98a00;

  /* Superficies */
  --bg:        #ffffff;
  --bg-soft:   #f6f7f9;
  --bg-dark:   #0a1420;
  --border:    #e6e8ee;
  --border-dk: rgba(255,255,255,0.12);

  /* Texto */
  --ink:       #0d1b2a;
  --ink-2:     #3c4759;
  --ink-mute:  #6b7688;
  --on-dark:   rgba(255,255,255,0.92);
  --on-dark-2: rgba(255,255,255,0.62);

  /* Sombras */
  --sh-xs: 0 1px 2px rgba(13,27,42,.06);
  --sh-sm: 0 4px 14px rgba(13,27,42,.08);
  --sh-md: 0 14px 40px rgba(13,27,42,.14);
  --sh-lg: 0 30px 80px rgba(13,27,42,.22);
  --glow:  0 10px 34px rgba(244,163,0,.38);

  /* Formas */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Métrica */
  --container: 1240px;
  --gutter: 1.5rem;
  --header-h: 84px;

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

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

::selection { background: var(--accent); color: #1a1200; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4, h5 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-mute);
  line-height: 1.75;
}

/* ---------- Layout ---------- */
.container {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}
.container-wide {
  width: min(1600px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.section { padding: clamp(3.25rem, 5.2vw, 4.75rem) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy); color: var(--on-dark); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--flush-top { padding-top: 0; }
.section--tight { padding-block: clamp(2.25rem, 4vw, 3.25rem); }

/* Encabezado de sección */
.sec-head { margin-bottom: clamp(1.75rem, 3vw, 2.4rem); max-width: 760px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--split {
  max-width: none;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.sec-head--split > div:first-child { max-width: 680px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .85rem;
  font-family: 'Poppins', sans-serif;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .34em; text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 34px; height: 2px; background: var(--accent); flex: none;
}
.sec-head--center .eyebrow::after {
  content: ""; width: 34px; height: 2px; background: var(--accent); flex: none;
}
.section--dark .eyebrow { color: var(--accent); }

.sec-head p { color: var(--ink-mute); font-size: 1.05rem; margin-top: .4rem; }
.section--dark .sec-head p { color: var(--on-dark-2); }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #1a1200;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.75rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: 'Poppins', sans-serif;
  font-size: .92rem; font-weight: 600; letter-spacing: .01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .25s, color .25s, border-color .25s;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-3px); }

.btn--primary { box-shadow: var(--glow); }
.btn--primary:hover { background: var(--accent-2); box-shadow: 0 16px 42px rgba(244,163,0,.5); }

.btn--dark { --btn-bg: var(--navy); --btn-fg: #fff; box-shadow: 0 10px 30px rgba(13,27,42,.24); }
.btn--dark:hover { --btn-bg: var(--navy-2); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: #fff;
  border-color: rgba(255,255,255,.4);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.btn--outline {
  --btn-bg: transparent; --btn-fg: var(--navy);
  border-color: var(--border);
}
.btn--outline:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

/* Enlace con flecha */
.arrow-link {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .92rem;
  color: var(--accent-2);
  transition: gap .25s var(--ease);
}
.arrow-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.arrow-link:hover { gap: .85rem; }
.section--dark .arrow-link { color: var(--accent); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 200;
  height: var(--header-h);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.site-header::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,12,20,.72), rgba(6,12,20,0));
  opacity: 1; transition: opacity .35s var(--ease);
  pointer-events: none;
}
.site-header.is-stuck {
  height: 72px;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--border), 0 8px 30px rgba(13,27,42,.07);
}
.site-header.is-stuck::after { opacity: 0; }

/* El ancho/centrado lo da .container: así el logo nunca queda pegado al borde. */
.nav { display: flex; align-items: center; gap: 1.25rem; height: 100%; }

.brand { display: flex; align-items: center; flex: none; }
.brand img {
  width: 104px; height: auto;
  transition: width .35s var(--ease), filter .35s var(--ease);
}
.is-stuck .brand img {
  width: 84px;
  filter: brightness(.78) contrast(1.25) drop-shadow(0 1px 1px rgba(13,27,42,.2));
}

/* Menú */
.nav-menu {
  display: flex; align-items: center; gap: .2rem;
  margin-left: auto;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a,
.nav-menu > li > button {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .6rem .95rem;
  background: none; border: 0; cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: .93rem; font-weight: 600;
  color: #fff;
  border-radius: 8px;
  transition: color .25s, opacity .25s;
}
.is-stuck .nav-menu > li > a,
.is-stuck .nav-menu > li > button { color: var(--navy); }

.nav-menu > li > a::after,
.nav-menu > li > button::after { display: none; }

.nav-menu > li > a > span,
.nav-menu > li > button > span.label { position: relative; }
.nav-menu > li > a > span::after,
.nav-menu > li > button > span.label::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .32s var(--ease-out);
}
.nav-menu > li:hover > a > span::after,
.nav-menu > li:hover > button > span.label::after,
.nav-menu > li.is-current > a > span::after,
.nav-menu > li.is-current > button > span.label::after { transform: scaleX(1); }

.caret {
  width: 9px; height: 9px; flex: none;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .28s var(--ease);
}
.has-drop.is-open .caret { transform: translateY(1px) rotate(-135deg); }

/* Dropdown */
.drop {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translate(-50%, 10px);
  min-width: 268px;
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--sh-md);
  padding: .5rem;
  opacity: 0; visibility: hidden;
  transition: opacity .28s var(--ease), transform .28s var(--ease-out), visibility .28s;
}
.has-drop.is-open .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.drop::before {
  content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px;
}
.drop a {
  display: flex; align-items: center; gap: .75rem;
  padding: .72rem .9rem;
  border-radius: var(--r-sm);
  font-size: .92rem; font-weight: 500;
  color: var(--ink);
  transition: background .2s, color .2s, padding-left .25s var(--ease);
}
.drop a i {
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
  opacity: 0; transition: opacity .2s;
  flex: none;
}
.drop a:hover { background: var(--bg-soft); color: var(--accent-2); padding-left: 1.1rem; }
.drop a:hover i { opacity: 1; }

.nav-cta { flex: none; margin-left: .5rem; }
.nav-cta .btn { padding: .72rem 1.35rem; font-size: .88rem; }

/* Hamburguesa */
.burger {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  background: none; border: 0; cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute; left: 11px; right: 11px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s, background .3s;
}
.is-stuck .burger span { background: var(--navy); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger.is-open span { background: var(--navy); }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1000px) {
  .burger { display: block; }
  .nav-cta { display: none; }

  /* backdrop-filter convierte al header en bloque contenedor de sus hijos
     position:fixed, lo que recortaba el menú lateral al alto del header. */
  .site-header.is-stuck {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
  }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto;   /* top+bottom a 0: alto exacto del viewport */
    width: min(380px, 84vw);
    background: #fff;
    flex-direction: column; align-items: stretch;
    gap: .15rem;
    padding: 5.5rem 1.4rem 2rem;
    margin: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(101%);
    transition: transform .45s var(--ease-out);
    box-shadow: var(--sh-lg);
    z-index: 1;
  }
  .nav-menu.is-open { transform: none; }
  .nav-menu > li > a,
  .nav-menu > li > button,
  .is-stuck .nav-menu > li > a,
  .is-stuck .nav-menu > li > button {
    color: var(--navy);
    width: 100%; justify-content: space-between;
    padding: 1rem .25rem; font-size: 1.08rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .nav-menu > li > a > span::after,
  .nav-menu > li > button > span.label::after { display: none; }
  .drop {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; padding: .25rem 0 .5rem .6rem;
    min-width: 0;
    display: none;
  }
  .has-drop.is-open .drop { display: block; transform: none; }
  .drop a { padding: .65rem .5rem; font-size: .95rem; }
  /* Debe quedar POR DEBAJO del header (z-index 200); si no, oscurece el
     propio menú lateral, que vive dentro del header. */
  .nav-mask {
    position: fixed; inset: 0; z-index: 190;
    background: rgba(6,12,20,.32);
    opacity: 0; visibility: hidden;
    transition: opacity .35s, visibility .35s;
  }
  .nav-mask.is-open { opacity: 1; visibility: visible; }
}

/* ============================================================
   HERO — slideshow cinematográfico
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero-stage { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.hero-slide.is-active img {
  animation: kenburns 9s var(--ease) forwards;
}
@keyframes kenburns {
  from { transform: scale(1.02) translate3d(0,0,0); }
  to   { transform: scale(1.16) translate3d(-1.5%, -1.5%, 0); }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(8,16,26,.94) 0%, rgba(8,16,26,.74) 42%, rgba(8,16,26,.32) 72%, rgba(8,16,26,.5) 100%),
    linear-gradient(180deg, rgba(8,16,26,.5) 0%, transparent 30%, rgba(8,16,26,.55) 100%);
}

.hero-inner {
  position: relative; z-index: 2;
  padding-top: calc(var(--header-h) + 2.25rem);
  padding-bottom: 6.5rem;
  max-width: 720px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .95rem;
  font-family: 'Poppins', sans-serif;
  font-size: .76rem; font-weight: 700;
  letter-spacing: .38em; text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: ""; width: 46px; height: 2px; background: var(--accent); flex: none;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.3vw, 4.2rem);
  margin-bottom: 1.9rem;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Barra inferior del hero */
.hero-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  border-top: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(8,16,26,0), rgba(8,16,26,.55));
  backdrop-filter: blur(4px);
}
.hero-bar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1.05rem 0;
}
.hero-facts { display: flex; gap: clamp(1.5rem, 4vw, 3.5rem); }
.hero-fact b {
  display: block;
  font-family: 'Poppins', sans-serif; font-size: clamp(1.4rem,2.4vw,2rem); font-weight: 800;
  color: var(--accent); line-height: 1;
}
.hero-fact span {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.66);
}
/* Controles del slideshow */
.hero-nav { display: flex; align-items: center; gap: 1.2rem; }
.hero-dots { display: flex; gap: .55rem; }
.hero-dot {
  width: 30px; height: 3px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.3); border-radius: 999px;
  overflow: hidden; position: relative;
  transition: background .3s;
}
.hero-dot.is-active { background: rgba(255,255,255,.25); }
.hero-dot.is-active::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent); transform-origin: left;
  animation: dotFill 6s linear forwards;
}
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.scroll-cue {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.scroll-cue i {
  width: 1px; height: 30px; background: rgba(255,255,255,.3); position: relative; overflow: hidden;
}
.scroll-cue i::after {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  animation: cueRun 2s var(--ease) infinite;
}
@keyframes cueRun {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

@media (max-width: 860px) {
  .hero-bar-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .scroll-cue { display: none; }
  .hero-inner { padding-bottom: 12rem; }
}
@media (max-width: 520px) {
  .hero-facts { gap: 1.4rem; }
  .hero-fact span { font-size: .62rem; letter-spacing: .1em; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--accent);
  color: #1a1200;
  padding: 1.05rem 0;
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex; align-items: center;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 1.6rem;
  padding: 0 1.6rem;
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: clamp(.85rem, 1.3vw, 1.05rem);
  letter-spacing: .22em; text-transform: uppercase;
  white-space: nowrap;
}
.marquee-item::after {
  content: ""; width: 7px; height: 7px; background: #1a1200;
  transform: rotate(45deg); flex: none; opacity: .55;
}

/* ============================================================
   CARRUSEL genérico (scroll-snap)
   ============================================================ */
.carousel { position: relative; }
.carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  padding-bottom: .5rem;
}
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-track {
  display: flex;
  gap: clamp(.9rem, 1.6vw, 1.5rem);
}
.carousel-track > * {
  scroll-snap-align: start;
  flex: 0 0 auto;
}
/* sangrado a los bordes de la ventana (dentro de .container) */
.carousel--bleed .carousel-viewport {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
}

/* Controles */
.carousel-ui {
  display: flex; align-items: center; gap: 1.25rem;
  margin-top: 2rem;
}
.carousel-ui--top { margin: 0; }
.carousel-btns { display: flex; gap: .6rem; flex: none; }
.cbtn {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease-out), opacity .25s;
}
.cbtn svg { width: 18px; height: 18px; }
.cbtn:hover:not(:disabled) { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-2px); }
.cbtn:disabled { opacity: .3; cursor: default; }
.section--dark .cbtn { background: transparent; border-color: var(--border-dk); color: #fff; }
.section--dark .cbtn:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #1a1200; }

.carousel-progress {
  flex: 1; height: 3px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  min-width: 60px;
}
.section--dark .carousel-progress { background: var(--border-dk); }
.carousel-progress span {
  display: block; height: 100%;
  background: var(--accent);
  border-radius: 999px;
  width: 30%;
  transition: width .3s var(--ease), transform .3s var(--ease);
}

.carousel-dots { display: flex; gap: .5rem; flex: none; }
.carousel-dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px;
  background: var(--border); cursor: pointer;
  transition: background .25s, width .3s var(--ease-out);
}
.carousel-dots button.is-active { background: var(--accent); width: 30px; }
.section--dark .carousel-dots button { background: var(--border-dk); }
.section--dark .carousel-dots button.is-active { background: var(--accent); }

.carousel-count {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: .85rem; color: var(--ink-mute); flex: none;
  letter-spacing: .05em;
}
.carousel-count b { color: var(--ink); }
.section--dark .carousel-count { color: var(--on-dark-2); }
.section--dark .carousel-count b { color: #fff; }

/* ============================================================
   TARJETAS DE SERVICIO (carrusel)
   ============================================================ */
.svc-card {
  position: relative;
  width: clamp(262px, 25vw, 340px);
  aspect-ratio: 3 / 3.7;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
  box-shadow: var(--sh-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); }
.svc-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease-out), filter .6s;
  z-index: -2;
}
.svc-card:hover img { transform: scale(1.08); }
.svc-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,16,26,0) 32%, rgba(8,16,26,.72) 66%, rgba(8,16,26,.95) 100%);
  transition: opacity .5s;
}
.svc-card-body {
  position: absolute; inset: auto 0 0 0;
  padding: clamp(1.4rem, 2vw, 1.9rem);
  color: #fff;
}
.svc-num {
  position: absolute; top: 1.4rem; right: 1.5rem;
  font-family: 'Poppins', sans-serif; font-weight: 800;
  font-size: .8rem; letter-spacing: .1em;
  color: rgba(255,255,255,.5);
}
.svc-card h3 { color: #fff; margin-bottom: .45rem; }
.svc-card p {
  color: rgba(255,255,255,.76);
  font-size: .93rem; line-height: 1.6;
  margin: 0 0 1rem;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .55s var(--ease-out), opacity .4s, margin .55s var(--ease-out);
}
.svc-card:hover p, .svc-card:focus-visible p { max-height: 120px; opacity: 1; }
.svc-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .88rem;
  color: var(--accent);
}
.svc-cta svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.svc-card:hover .svc-cta svg { transform: translateX(5px); }
@media (max-width: 700px) {
  .svc-card p { max-height: 120px; opacity: 1; }
}

/* ============================================================
   INTRO / SPLIT con collage
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.split--reverse > *:first-child { order: 2; }
@media (max-width: 940px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split--reverse > *:first-child { order: 0; }
}

.collage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(.7rem, 1.4vw, 1.1rem);
}
.collage img {
  width: 100%; border-radius: var(--r);
  aspect-ratio: 3/3.5; object-fit: cover;
  box-shadow: var(--sh-sm);
}
.collage img:nth-child(1) { aspect-ratio: 3/3.9; }
.collage img:nth-child(2) { margin-top: clamp(1.2rem, 3vw, 2.2rem); }
.collage img:nth-child(3) { aspect-ratio: 3/1.7; grid-column: 1 / -1; }
.collage-badge {
  position: absolute; z-index: 2;
  right: -14px; bottom: 14%;
  background: var(--accent);
  color: #1a1200;
  border-radius: var(--r);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--glow);
  text-align: center;
  min-width: 132px;
}
.collage-badge b {
  display: block;
  font-family: 'Poppins', sans-serif; font-size: 1.9rem; font-weight: 800; line-height: 1;
}
.collage-badge span {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
}
@media (max-width: 520px) { .collage-badge { right: 0; padding: .85rem 1rem; min-width: 108px; } }

/* Listado de logros */
.tick-list { display: grid; gap: .9rem; margin: 1.8rem 0 2.2rem; }
.tick-list li {
  display: flex; align-items: flex-start; gap: .85rem;
  color: var(--ink-2); font-size: 1rem;
}
.tick-list svg {
  width: 22px; height: 22px; flex: none; margin-top: .2rem;
  color: var(--accent-2);
}
.section--dark .tick-list li { color: var(--on-dark); }
.section--dark .tick-list svg { color: var(--accent); }

/* ============================================================
   CONTADORES
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 880px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 430px) { .stats { grid-template-columns: 1fr; } }
.section--dark .stats, .stats--dark { background: var(--border-dk); border-color: var(--border-dk); }
.stat {
  background: #fff;
  padding: clamp(1.6rem, 3vw, 2.4rem) 1.5rem;
  text-align: center;
}
.section--dark .stat, .stats--dark .stat { background: var(--navy); }
.stat b {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 800;
  color: var(--accent-2); line-height: 1; margin-bottom: .5rem;
  letter-spacing: -.03em;
}
.section--dark .stat b, .stats--dark .stat b { color: var(--accent); }
.stat span {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 600;
}
.section--dark .stat span, .stats--dark .stat span { color: var(--on-dark-2); }

/* ============================================================
   FORTALEZAS interactivas
   ============================================================ */
.strengths {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 940px) { .strengths { grid-template-columns: 1fr; } }

.str-list { display: grid; }
.str-item {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem;
  padding: 1.4rem 1.2rem;
  background: none; border: 0; border-bottom: 1px solid var(--border);
  cursor: pointer;
  border-radius: var(--r);
  transition: background .35s var(--ease);
}
.section--dark .str-item { border-bottom-color: var(--border-dk); }
.str-item:first-child { border-top: 1px solid var(--border); }
.section--dark .str-item:first-child { border-top-color: var(--border-dk); }
.str-item.is-active { background: var(--bg-soft); }
.section--dark .str-item.is-active { background: rgba(255,255,255,.05); }
.str-num {
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: .9rem;
  color: var(--ink-mute);
  padding-top: .2rem;
  transition: color .3s;
}
.str-item.is-active .str-num { color: var(--accent-2); }
.section--dark .str-item.is-active .str-num { color: var(--accent); }
.str-item h3 {
  font-size: 1.15rem; margin: 0 0 .1rem;
  transition: color .3s;
}
.section--dark .str-item h3 { color: #fff; }
.str-item.is-active h3 { color: var(--accent-2); }
.section--dark .str-item.is-active h3 { color: var(--accent); }
.str-item p {
  margin: 0; font-size: .95rem; color: var(--ink-mute);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s var(--ease-out), opacity .35s, margin .5s var(--ease-out);
}
.section--dark .str-item p { color: var(--on-dark-2); }
.str-item.is-active p { max-height: 140px; opacity: 1; margin-top: .4rem; }

.str-visual {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3.8;
  box-shadow: var(--sh-md);
  background: var(--navy);
}
.str-visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity .8s var(--ease), transform 1.2s var(--ease-out);
}
.str-visual img.is-active { opacity: 1; transform: scale(1); }
.str-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8,16,26,.5));
  pointer-events: none;
}

/* ============================================================
   GALERÍA (carrusel + lightbox)
   ============================================================ */
.shot {
  width: clamp(236px, 27vw, 360px);
  aspect-ratio: 4/4.2;
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  background: var(--bg-soft);
  box-shadow: var(--sh-xs);
}
.shot img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.shot:hover img { transform: scale(1.07); }
.shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(8,16,26,.4));
  opacity: 0; transition: opacity .4s;
}
.shot:hover::after { opacity: 1; }
.shot-zoom {
  position: absolute; right: 14px; bottom: 14px;
  width: 40px; height: 40px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--navy);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s, transform .35s var(--ease-out);
}
.shot-zoom svg { width: 17px; height: 17px; }
.shot:hover .shot-zoom { opacity: 1; transform: none; }
.shot--tall { aspect-ratio: 3/3.9; }
.shot--wide { aspect-ratio: 4/3; width: clamp(280px, 33vw, 440px); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(6,12,20,.95);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%; max-height: 84vh;
  border-radius: var(--r);
  box-shadow: var(--sh-lg);
  transform: scale(.96);
  transition: transform .45s var(--ease-out);
}
.lightbox.is-open img { transform: scale(1); }
.lb-btn {
  position: absolute;
  width: 52px; height: 52px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: background .25s, transform .25s;
}
.lb-btn:hover { background: var(--accent); border-color: var(--accent); color: #1a1200; }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem); }
.lb-prev  { left: clamp(.6rem,3vw,2.5rem); top: 50%; transform: translateY(-50%); }
.lb-next  { right: clamp(.6rem,3vw,2.5rem); top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.06); }
.lb-counter {
  position: absolute; bottom: clamp(1rem,3vw,2rem); left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7); font-family: 'Poppins',sans-serif; font-size: .85rem;
  letter-spacing: .1em;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(115deg, var(--navy) 0%, var(--navy-2) 55%, #22344d 100%);
  color: #fff;
  padding: clamp(2.8rem, 6vw, 4.5rem) clamp(1.6rem, 5vw, 4rem);
  display: grid; grid-template-columns: 1.4fr auto; gap: 2.5rem; align-items: center;
  box-shadow: var(--sh-lg);
}
.cta::before {
  content: ""; position: absolute; z-index: -1;
  width: 460px; height: 460px; right: -120px; top: -180px;
  background: radial-gradient(circle, rgba(244,163,0,.42), transparent 68%);
}
.cta::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(115deg, #000, transparent 70%);
}
.cta h2 { color: #fff; margin-bottom: .55rem; }
.cta p { color: rgba(255,255,255,.76); max-width: 560px; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
@media (max-width: 880px) {
  .cta { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGE HERO (interiores)
   ============================================================ */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(4rem, 8vw, 6.5rem)) 0 clamp(3.5rem, 7vw, 6rem);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
}
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  animation: slowZoom 18s var(--ease) forwards;
}
@keyframes slowZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(8,16,26,.94) 0%, rgba(8,16,26,.76) 50%, rgba(8,16,26,.45) 100%),
    linear-gradient(180deg, rgba(8,16,26,.55), transparent 45%);
}
.page-hero h1 { color: #fff; max-width: 15ch; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 620px; font-size: 1.08rem; margin: .8rem 0 0; }
.crumbs {
  display: flex; align-items: center; gap: .55rem;
  font-size: .84rem; color: rgba(255,255,255,.6);
  margin-bottom: 1.4rem; flex-wrap: wrap;
}
.crumbs a { color: var(--accent); font-weight: 600; }
.crumbs a:hover { color: #ffbe3a; }
.crumbs span.sep { opacity: .45; }

/* ============================================================
   DETALLE DE SERVICIO
   ============================================================ */
.spec-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.spec {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.6rem 1.5rem;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
}
.spec:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: transparent; }
.spec-ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a1200;
  display: grid; place-items: center; margin-bottom: 1rem;
}
.spec-ico svg { width: 21px; height: 21px; }
.spec h4 { margin-bottom: .35rem; }
.spec p { margin: 0; font-size: .93rem; color: var(--ink-mute); }

/* Chips de servicios relacionados */
.chip-row { display: flex; flex-wrap: wrap; gap: .65rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: .9rem; font-weight: 600; font-family: 'Poppins', sans-serif;
  color: var(--ink);
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease-out);
}
.chip:hover { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-2px); }
.chip.is-current { background: var(--accent); border-color: var(--accent); color: #1a1200; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1000px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.8rem 1.6rem;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
}
.contact-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform .4s var(--ease-out);
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: transparent; }
.contact-card:hover::before { transform: scaleY(1); }
.contact-ico {
  width: 76px; height: 76px; border-radius: 20px;
  background: var(--bg-soft); color: var(--accent-2);
  display: grid; place-items: center; margin-bottom: 1.25rem;
  transition: background .35s, color .35s;
}
.contact-ico svg { width: 34px; height: 34px; }
@media (max-width: 640px) {
  .contact-ico { width: 64px; height: 64px; border-radius: 18px; }
  .contact-ico svg { width: 29px; height: 29px; }
}
.contact-card:hover .contact-ico { background: var(--accent); color: #1a1200; }
.contact-card h4 { margin-bottom: .3rem; }
.contact-card a, .contact-card span.val {
  color: var(--ink-mute); font-size: .96rem; word-break: break-word;
}
.contact-card a:hover { color: var(--accent-2); }

.map-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
  height: clamp(340px, 46vh, 520px);
  border: 1px solid var(--border);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.18); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.66);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 1.6rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .5;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
@media (max-width: 940px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { width: 128px; margin-bottom: 1.2rem; }
.footer-brand p { font-size: .95rem; line-height: 1.7; max-width: 34ch; }
.footer-col h5 {
  color: #fff; font-size: .78rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer-col li { margin-bottom: .7rem; font-size: .95rem; }
.footer-col a { transition: color .22s, padding-left .28s var(--ease); display: inline-block; }
.footer-col a:hover { color: var(--accent); padding-left: 6px; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--border-dk);
  display: grid; place-items: center;
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease-out);
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #1a1200; transform: translateY(-3px); padding: 0; }
.footer-social svg { width: 17px; height: 17px; }

.footer-bottom {
  border-top: 1px solid var(--border-dk);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  font-size: .85rem; color: rgba(255,255,255,.45);
}
.footer-bottom a { color: var(--accent); font-weight: 600; }
.footer-bottom a:hover { color: #ffbe3a; }

/* ============================================================
   WHATSAPP flotante
   ============================================================ */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 300;
  width: 58px; height: 58px; border-radius: 999px;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 32px rgba(37,211,102,.45);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid #25D366; opacity: .7;
  animation: waPulse 2.6s var(--ease) infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: .6; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
.wa-float:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 18px 40px rgba(37,211,102,.55); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* ============================================================
   ANIMACIONES DE ENTRADA
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="left"]  { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="zoom"]  { transform: scale(.94); }
[data-reveal="none"]  { transform: none; }

/* Ventanas de escritorio bajas (con barra del navegador): el hero
   se compacta para caber sin necesidad de pantalla completa. */
@media (min-width: 701px) and (max-height: 800px) {
  .hero-inner {
    padding-top: calc(var(--header-h) + 1.5rem);
    padding-bottom: 5.75rem;
  }
  .hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); margin-bottom: 1.6rem; }
  .hero-eyebrow { margin-bottom: 1.1rem; }
  .hero-actions .btn { padding: .82rem 1.5rem; }
  .hero-bar-inner { padding: .85rem 0; }
  .hero-fact b { font-size: 1.55rem; }
}
@media (min-width: 701px) and (max-height: 640px) {
  .hero-inner { padding-top: calc(var(--header-h) + .9rem); padding-bottom: 5.25rem; }
  .hero h1 { font-size: clamp(2rem, 3.9vw, 2.9rem); margin-bottom: 1.35rem; }
}

/* ============================================================
   MÓVIL — texto corrido más pequeño (los títulos no cambian)
   ============================================================ */
@media (max-width: 640px) {
  body { font-size: .92rem; line-height: 1.62; }

  .lead,
  .page-hero p,
  .sec-head p { font-size: .95rem; line-height: 1.62; }

  .tick-list li { font-size: .9rem; }
  .spec p,
  .svc-card p,
  .str-item p,
  .contact-card a,
  .contact-card span.val { font-size: .87rem; line-height: 1.55; }

  .footer-brand p,
  .footer-col li { font-size: .88rem; }
  .footer-bottom { font-size: .78rem; }
  .crumbs { font-size: .76rem; }
  .cta p { font-size: .92rem; }
  .stat span { font-size: .68rem; letter-spacing: .1em; }
}

/* ============================================================
   MÓVIL — el hero completo cabe en una pantalla
   ============================================================ */
@media (max-width: 700px) {
  .hero { min-height: 100svh; }
  .hero-inner {
    padding-top: calc(var(--header-h) + .5rem);
    padding-bottom: 8.5rem;
  }
  .hero-eyebrow {
    font-size: .62rem; letter-spacing: .24em;
    gap: .6rem; margin-bottom: .9rem;
  }
  .hero-eyebrow::before { width: 26px; }
  .hero h1 { font-size: clamp(2.05rem, 9vw, 2.9rem); margin-bottom: 1.5rem; }
  .hero-actions { gap: .6rem; }
  .hero-actions .btn { padding: .78rem 1.25rem; font-size: .85rem; }

  .hero-bar-inner { padding: .85rem 0; gap: .7rem; }
  .hero-facts { gap: 1.1rem; width: 100%; justify-content: space-between; }
  .hero-fact b { font-size: 1.25rem; margin-bottom: .2rem; }
  .hero-fact span { font-size: .55rem; letter-spacing: .07em; }
  .hero-dot { width: 24px; }
}
@media (max-width: 700px) and (max-height: 700px) {
  .hero-inner { padding-bottom: 7.5rem; }
  .hero h1 { font-size: clamp(1.85rem, 7.6vw, 2.4rem); margin-bottom: 1.25rem; }
}

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