/* =========================================================
   Tec Grúas S.A.S - Estilos base (Maquinaria pesada)
   Tema Claro/Oscuro + Navbar contraste + Modal + Dropdown
   + Nosotros (integrado con grúa overlay) + Gancho por scroll
========================================================= */

/* ---------------- RESET ---------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ---------------- VARIABLES ---------------- */
:root {
  --header-h: 92px;

  --yellow: #f5b300;
  --orange: #ff7a00;


  /* ✅ Cliente: detalles azules (acento) */
  --blue: #004d96;

  /* Opacidades listas para usar */
  --blue-08: rgba(0,77,150,.08);
  --blue-12: rgba(0,77,150,.12);
  --blue-18: rgba(0,77,150,.18);
  --blue-35: rgba(0,77,150,.35);
  --blue-45: rgba(0,77,150,.45);
  --blue-65: rgba(0,77,150,.65);

  /* ✅ “Color de detalle” (si el cliente te dio otro color extra, cámbialo aquí) */
  --detail: var(--orange);
  --radius: 16px;
  --shadow: 0 12px 40px rgba(0,0,0,.18);
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue";
}

body {
  font-family: var(--font);
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  transition: background .25s ease, color .25s ease;
}

/* ---------------- THEME LIGHT ---------------- */
body[data-theme="light"]{
  --bg: #ffffff;
  --text: #121317;
  --soft: #f5f6f8;

  --nav-bg: rgba(255, 255, 255, .88);
  --nav-text: #121317;
  --nav-border: rgba(0,0,0,.10);

  --card: #ffffff;
  --muted: rgba(0,0,0,.65);
}

/* ---------------- THEME DARK ---------------- */
body[data-theme="dark"]{
  --bg: #0a0b0f;
  --text: #f3f4f7;
  --soft: #101219;

  --nav-bg: rgba(12, 13, 17, .78);
  --nav-text: #f3f4f7;
  --nav-border: rgba(255,255,255,.10);

  --card: #141622;
  --muted: rgba(255,255,255,.70);
}

/* ---------------- CONTAINER ---------------- */
.container{
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

/* ✅ Header más ancho (menos espacios laterales SOLO en el menú) */
.topbar .container{
  width: min(1500px, calc(100% - 20px));
}

.container_header{
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.headerHazard{
  display: block;
  width: 100%;
  max-width: 100%;
  height: 12px;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      135deg,
      var(--yellow) 0px,
      var(--yellow) 16px,
      rgba(0,0,0,0.85) 16px,
      rgba(0,0,0,0.85) 32px
    );
  opacity: .95;
  animation: footerStripes 6.5s linear infinite;
}

/* =========================================================
   TOPBAR
========================================================= */
.topbar{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 999;

  background: var(--nav-bg);
  color: var(--nav-text);
  border-bottom: 1px solid var(--nav-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar.scrolled{
  box-shadow: 0 12px 30px rgba(0,0,0,.20);
}

.topbar__inner{
  position: relative;
  z-index: 2;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Línea industrial */
.hazard-bar{
  position: relative;
  z-index: 1;
  pointer-events: none;
  height: 12px;
  width: 100%;
  background:
    repeating-linear-gradient(
      135deg,
      var(--yellow) 0px,
      var(--yellow) 16px,
      rgba(0,0,0,0.85) 16px,
      rgba(0,0,0,0.85) 32px
    );
  opacity: .92;
}

/* Brand */
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
}

.logo-badge{
  background: #fff;
  border-radius: 16px;
  padding: 7px 12px;
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

.brand__logo{
  height: 70px;
  width: auto;
}

.brand__text{
  display: grid;
  line-height: 1.05;
}

.brand__name{
  font-weight: 900;
  letter-spacing: .2px;
}

.brand__tag{
  font-size: 12px;
  color: var(--muted);
}

/* =========================================================
   NAV
========================================================= */
.nav{
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__list{
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
  align-items: center;
}

.nav__link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  color: var(--nav-text);
  transition: background .2s ease, transform .2s ease, color .2s ease;
}

.nav__link:hover{
  background: rgba(245,179,0,.62);
  transform: translateY(-1px);
}

.nav__link--btn{
  border: 0;
  cursor: pointer;
  background: transparent;
}

.caret{
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  opacity: .8;
  transform: translateY(1px);
}

/* Actions */
.nav__actions{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 6px;
}

/* =========================================================
   SOCIAL (COLORES REALES)
========================================================= */
.social{
  display: flex;
  align-items: center;
  gap: 8px;
}

.social__btn{
  width: 38px;
  height: 38px;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  line-height: 0;

  background: var(--yellow);
  color: #121317; /* logo negro */
  border: 1px solid rgba(0,0,0,.18);
  box-shadow: 0 10px 26px rgba(0,0,0,.18);

  transform: translateY(0);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.social__btn svg{
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
  opacity: .95;
}

.social__btn--fb{ background: var(--yellow); }
.social__btn--wa{ background: var(--yellow); }
.social__btn--ig{ background: var(--yellow); }


.social__btn:hover{
  transform: translateY(-2px);
  filter: brightness(1.05) saturate(1.1);
  box-shadow: 0 14px 34px rgba(0,0,0,.25);
}

/* Buttons */
.btn{
  border: 0;
  cursor: pointer;
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 14px;
  transition: transform .2s ease, filter .2s ease, background .2s ease;
}
.btn:hover{ transform: translateY(-1px); }

.btn--primary{
  background: linear-gradient(135deg, var(--yellow), var(--detail));
  color: #141414;
  box-shadow: 0 14px 28px rgba(245,179,0,.18);
}
.btn--ghost{
  background: transparent;
  color: var(--nav-text);

  /* Azul como acento (amarillo sigue siendo el protagonista en hover global) */
  border: 1px solid var(--blue-35);
}
.btn--ghost:hover{
  background: var(--blue-08);
  border-color: var(--blue-45);
}

.btn--login{
  background: rgba(0,0,0,.10);
  color: var(--nav-text);
  border: 1px solid var(--nav-border);
}
body[data-theme="dark"] .btn--login{
  background: rgba(255,255,255,.06);
}

/* Icon buttons */
.icon-btn{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--nav-border);
  background: rgba(255,255,255,.12);
  color: var(--nav-text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
body[data-theme="dark"] .icon-btn{ background: rgba(255,255,255,.06); }

.icon-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(245,179,0,.45);
  background: rgba(245,179,0,.12);

  /* borde/halo azul sutil */
  box-shadow: 0 0 0 4px var(--blue-12);
}


/* Burger (mobile) */
.menu-toggle{ display: none; }
.burger{
  width: 18px; height: 14px;
  display: grid; gap: 3px;
}
.burger span{
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  opacity: .9;
}

/* =========================================================
   DROPDOWN
========================================================= */
.dropdown{ position: relative; }

.dropdown__menu{
  position: absolute;
  top: 52px;
  left: 0;
  min-width: 190px;
  padding: 8px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--nav-border);
    border-top: 3px solid var(--blue-35);
box-shadow: var(--shadow);

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: .18s ease;
  z-index: 50;
}
.dropdown__menu.open{
  opacity: 1;
  transform: translateY(0px);
  pointer-events: auto;
}
.dropdown__item{
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  color: var(--text);
}
.dropdown__item:hover{
  background: rgba(245,179,0,.16);          /* ✅ amarillo */
  box-shadow: inset 4px 0 0 var(--blue-65); /* ✅ detalle azul */
}


/* =========================================================
   HERO
========================================================= */
.hero{
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-h);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero__media{ position: absolute; inset: 0; }
.hero__video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}
.hero__overlay{
  position: absolute;
  inset: 0;
  background:
    /* ✅ detalle azul (sutil) */
    radial-gradient(circle at 76% 22%, rgba(0,77,150,.22), transparent 42%),
    /* ✅ amarillo predominante */
    radial-gradient(circle at 30% 20%, rgba(245,179,0,.20), transparent 40%),
    linear-gradient(180deg, rgba(0,0,0,.70), rgba(0,0,0,.55));
}

.hero__content{
  position: relative;
  text-align: center;
  padding: clamp(18px, 4vw, 44px) 0;
  background: transparent;
  color: #fff;
  max-width: 980px;
  margin: 0 auto;
}
.hero__title{
  margin: 0 0 12px 0;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 950;
  letter-spacing: .2px;
  text-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.hero__subtitle{
  margin: 0 auto;
  max-width: 860px;
  font-size: clamp(25px, 3vw, 28px);
  opacity: .95;
  line-height: 1.5;
}
.hero__cta{
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}


.hero__tagline{
  margin: 0 auto 12px auto;
  font-size: clamp(20px, 2.6vw, 32px);
  font-weight: 950;
  line-height: 1.12;
  color: rgba(255,255,255,.96);
  text-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.hero__lead{
  margin: 0 auto;
  max-width: 920px;
  color: rgba(255,255,255,.86);
  line-height: 1.65;
  font-weight: 650;
}
.hero__proof{
  margin: 12px 0 0 0;
  color: rgba(255,255,255,.90);
  font-weight: 900;
  letter-spacing: .02em;
}
.hero .btn--ghost{
  color: #fff;
  border-color: rgba(255,255,255,.35);
  background: rgba(0,0,0,.14);
}
.hero .btn--ghost:hover{
  background: rgba(245,179,0,.12);
  border-color: rgba(245,179,0,.45);
}


/* =========================================================
   SECTIONS
========================================================= */
.section{
  padding: 80px 0;
  background: var(--bg);
}
.section--soft{
  background: var(--soft);
}
.section__title{
  margin: 0 0 10px 0;
  font-size: 28px;
  font-weight: 950;
}
.section__text{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* =========================================================
   NOSOTROS (INTEGRADO CON GRÚA)
========================================================= */
.nosotros{
  padding: 96px 0;
  overflow: hidden; /* evita scroll horizontal por grúa grande */
}

.nosotros__wrap{
  position: relative;
}

/* texto por encima de la grúa */
.nosotros__content{
  position: relative;
  z-index: 2;

  /* deja el título “debajo del brazo” */
  padding-top: clamp(70px, 8vw, 135px);

  /* reserva espacio a la derecha (mástil) */
  padding-right: clamp(0px, 26vw, 460px);
}

/* animación de entrada del texto */
.nosotros__content > *{
  opacity: 0;
  transform: translateY(18px);
  filter: blur(4px);
  transition: opacity .55s ease, transform .55s ease, filter .55s ease;
}
.nosotros.is-inview .nosotros__content > *{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.nosotros.is-inview .nosotros__kicker{ transition-delay: .05s; }
.nosotros.is-inview .nosotros__title{ transition-delay: .12s; }
.nosotros.is-inview .nosotros__lead{ transition-delay: .20s; }
.nosotros.is-inview .nosotros__list{ transition-delay: .28s; }
.nosotros.is-inview .nosotros__banner{ transition-delay: .40s; }

.nosotros__kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  color: var(--muted);
}
.nosotros__kicker::before{
  content: "";
  width: 44px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow), var(--detail));
  box-shadow: 0 12px 26px rgba(245,179,0,.18);
}
.nosotros__kicker::after{
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(0,77,150,.25);
  transform: translateY(1px);
}

.nosotros__title{
  margin: 12px 0 12px 0;
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 980;
  line-height: 1.03;
  letter-spacing: -.02em;
}
.nosotros__title span{
  background: linear-gradient(135deg, var(--yellow), var(--detail));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nosotros__lead{
  margin: 0 0 18px 0;
  line-height: 1.55;
  font-size: 16px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(245,179,0,.14), transparent 70%);
  border: 1px solid var(--nav-border);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
}

.nosotros__list{
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.nosotros__list li{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--nav-border);
  background: rgba(0,0,0,.04);
  color: var(--text);
  font-weight: 850;
}
body[data-theme="dark"] .nosotros__list li{
  background: rgba(255,255,255,.04);
}

.nosotros__list li::before{
  content: "✓";
  width: 22px;
  height: 22px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 950;
  color: #141414;
  background: linear-gradient(135deg, var(--yellow), var(--detail));
  box-shadow: 0 12px 26px rgba(245,179,0,.18);
}

.nosotros__banner{
  position: relative;
  background: linear-gradient(135deg, #d9a900, #b97b00);
  background: var(--yellow);
  color: #121317; /* logo negro */
  padding: 18px 18px;
  border-radius: 18px;
  line-height: 1.45;
  font-weight: 850;
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.16);
  overflow: hidden;
}
.nosotros__banner::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 10px;
  width: 100%;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(0,0,0,.85) 0px,
      rgba(0,0,0,.85) 14px,
      rgba(255,255,255,.22) 14px,
      rgba(255,255,255,.22) 28px
    );
  opacity: .65;
}

/* =========================================================
   GRÚA OVERLAY (SIN RECUADRO)
   - capas para forzar: gancho ATRÁS / grúa ADELANTE
   - gancho se mueve con scroll (JS: --hook-x)
========================================================= */
.craneOverlay{
  position: absolute;
  z-index: 1;
  pointer-events: none;

  /* clave: stacking context propio */
  isolation: isolate;

  /* 🔧 Ajusta para encajar como tu imagen */
  top: clamp(-120px, -8vw, -70px);
  right: clamp(-260px, -18vw, -120px);

  width: clamp(820px, 92vw, 1400px);
  aspect-ratio: 2048 / 1553;
}

/* capas */
.craneOverlay__layer{
  position: absolute;
  inset: 0;
}
.craneOverlay__layer--back{ z-index: 1; }   /* gancho atrás */
.craneOverlay__layer--front{ z-index: 10; } /* grúa adelante */

/* imágenes */
.craneOverlay__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right top;
}

/* reflejo */
.craneOverlay__mirrored{
  transform: scaleX(-1);
  transform-origin: center;
}

/* grúa (adelante) */
.craneOverlay__base{
  filter: drop-shadow(0 26px 40px rgba(0,0,0,.18));
}

/* gancho: se mueve con scroll */
.craneOverlay__hookSlide{
  position: absolute;
  inset: 0;
  transform: translateX(var(--hook-x, 0%));
  will-change: transform;
}

/* Reduce motion */

@media (max-width: 780px){
  .caseSlide.is-active .caseLogoCard,
  .caseSlide.is-active .caseInfoPanel,
  .caseSlide.is-active .casePhoto{
    --px: 0px !important;
    --py: 0px !important;
  }
}


/* Ajuste fino móvil: evita que el rótulo de la foto se corte hacia la izquierda */
@media (max-width: 780px){
  .casePhoto{
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
    transform: translate3d(0,0,0) !important;
  }

  .caseSlide.is-active .casePhoto{
    transform: translate3d(0,0,0) !important;
  }

  .casePhoto::after{
    left: 0;
    right: 0;
    bottom: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 16px 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    border-top: 1px solid rgba(255,255,255,.34);
  }
}

@media (max-width: 420px){
  .casePhoto::after{
    bottom: 10px;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 9px;
    letter-spacing: .08em;
  }
}

@media (prefers-reduced-motion: reduce){
  .craneOverlay__hookSlide{
    transform: translateX(0%);
  }
}

/* =========================================================
   MODAL
========================================================= */
.modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 2000;
}
.modal.open{ opacity: 1; pointer-events: auto; }

.modal__card{
  width: min(440px, 100%);
  background: var(--card);
  border: 1px solid var(--nav-border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.modal__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 10px 16px;
}
.modal__title{
  margin: 0;
  font-size: 18px;
  font-weight: 950;
}
.modal__form{
  padding: 0 16px 18px 16px;
  display: grid;
  gap: 10px;
}
.field{ display: grid; gap: 6px; }
.field__label{
  font-size: 13px;
  font-weight: 900;
  color: var(--muted);
}
.input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--nav-border);
  background: transparent;
  color: var(--text);
  outline: none;
}
.input:focus{
  border-color: rgba(245,179,0,.7);
  box-shadow:
    0 0 0 4px rgba(245,179,0,.16),  /* ✅ amarillo */
    0 0 0 7px rgba(0,77,150,.10);   /* ✅ detalle azul */
}

.input-wrap{ position: relative; }
.eye-btn{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--nav-border);
  background: rgba(245,179,0,.12);
  cursor: pointer;
}
.btn--full{ width: 100%; }
.helper{
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 980px){
  .brand__text{ display: none; }

  /* ✅ Mantener la grúa integrada como overlay (no en flujo arriba del texto) */
  .nosotros__content{
    padding-top: clamp(54px, 10vw, 96px);
    padding-right: 0;
  }

  .nosotros__list{ grid-template-columns: 1fr; }

  .craneOverlay{
    position: absolute;
    top: clamp(-120px, -22vw, -60px);
    right: clamp(-320px, -60vw, -150px);
    width: clamp(520px, 155vw, 900px);
    margin: 0;
    opacity: .95;
  }
}

@media (max-width: 860px){
  .menu-toggle{ display: grid; }

  .nav{
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: min(360px, 92vw);
    height: calc(100vh - var(--header-h));
    background: var(--card);
    border-left: 1px solid var(--nav-border);
    box-shadow: var(--shadow);
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;

    transform: translateX(110%);
    transition: transform .22s ease;
  }

  body.nav-open .nav{ transform: translateX(0%); }

  .nav__list{
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .nav__link{
    width: 100%;
    justify-content: space-between;
    background: rgba(245,179,0,.10);
  }

  .nav__actions{ justify-content: space-between; }

  .dropdown__menu{
    position: static;
    min-width: 100%;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    display: none;
    box-shadow: none;
    background: transparent;
    border: 0;
    padding: 0;
  }

  .dropdown__menu.open{
    display: grid;
    gap: 6px;
    margin-top: 6px;
  }

  .dropdown__item{ background: rgba(0,0,0,.06); }
  body[data-theme="dark"] .dropdown__item{ background: rgba(255,255,255,.05); }
}


/* =========================================================
   AJUSTE ANDROID — MENÚ SUPERIOR MÓVIL
   Evita que el botón hamburguesa quede oculto hacia la derecha.
========================================================= */
@media (max-width: 860px){
  .topbar{
    width: 100vw;
    max-width: 100vw;
    overflow: visible;
  }

  .topbar .container{
    width: 100%;
    max-width: 100vw;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    margin-left: 0;
    margin-right: 0;
  }

  .topbar__inner{
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    overflow: visible;
  }

  .brand{
    min-width: 0;
    max-width: calc(100% - 60px);
    flex: 0 1 auto;
  }

  .brand__text{
    display: none;
  }

  .logo-badge{
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 14px;
  }

  .brand__logo{
    height: 62px;
    max-width: 92px;
    object-fit: contain;
  }

  .menu-toggle{
    display: grid !important;
    position: absolute;
    top: 50%;
    right: max(12px, env(safe-area-inset-right));
    z-index: 1004;
    width: 42px;
    height: 42px;
    min-width: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
    transform: translateY(-50%);
    background: rgba(255,255,255,.88);
    border-color: rgba(0,0,0,.14);
    box-shadow: 0 12px 28px rgba(0,0,0,.16);
  }

  .menu-toggle:hover{
    transform: translateY(-50%);
  }

  .menu-toggle .burger{
    width: 19px;
    height: 15px;
  }

  .menu-toggle .burger span{
    background: #121317;
  }

  .nav{
    top: var(--header-h);
    right: max(8px, env(safe-area-inset-right));
    width: min(340px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    height: calc(100dvh - var(--header-h) - 12px);
    max-height: calc(100dvh - var(--header-h) - 12px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 20px 0 0 20px;
    transform: translate3d(calc(100% + 24px), 0, 0);
    will-change: transform;
  }

  body.nav-open .nav{
    transform: translate3d(0, 0, 0);
  }

  .nav__actions{
    gap: 8px;
    flex-wrap: wrap;
  }

  .social{
    gap: 6px;
  }

  .social__btn,
  .theme-toggle{
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .btn--login{
    min-height: 36px;
    padding: 9px 12px;
  }
}

@media (max-width: 420px){
  .topbar .container{
    padding-left: 10px;
    padding-right: 10px;
  }

  .brand__logo{
    height: 58px;
    max-width: 86px;
  }

  .menu-toggle{
    right: 10px;
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .nav{
    right: 8px;
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    border-radius: 18px;
  }
}

.hero__overlay{ pointer-events: none; }


/* =========================================================
   SERVICIOS
========================================================= */

.servicios{
  padding: 86px 0;
}

.servicios__header{
  text-align: center;
  max-width: 900px;
  margin: 0 auto 28px auto;
}

.servicios__kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  color: var(--muted);
}

.servicios__kicker::before{
  content: "";
  width: 44px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow), var(--detail));
  box-shadow: 0 12px 26px rgba(245,179,0,.18);
}

.servicios__title{
  margin: 12px 0 10px 0;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 980;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.servicios__title span{
  background: linear-gradient(135deg, var(--yellow), var(--detail));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.servicios__subtitle{
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.55;
}

.servicios__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.serviceCard{
  position: relative;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--nav-border);
  box-shadow: 0 18px 44px rgba(0,0,0,.10);
  overflow: hidden;
  display: grid;
  scroll-margin-top: calc(var(--header-h) + 34px);
}

.serviceCard::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(245,179,0,.22), transparent 42%),
    linear-gradient(180deg, rgba(0,77,150,.10), transparent 64%);
  box-shadow:
    inset 0 0 0 2px rgba(245,179,0,.80),
    inset 0 0 0 5px rgba(0,77,150,.16);
}

.serviceCard.is-targeted{
  border-color: rgba(245,179,0,.82);
  animation: serviceTargetLift 1.35s ease both;
}

.serviceCard.is-targeted::after{
  animation: serviceTargetGlow 1.35s ease both;
}

@keyframes serviceTargetLift{
  0%{
    transform: translateY(0);
    box-shadow: 0 18px 44px rgba(0,0,0,.10);
  }
  24%{
    transform: translateY(-4px);
    box-shadow:
      0 24px 62px rgba(0,0,0,.16),
      0 0 0 6px rgba(245,179,0,.16),
      0 0 0 10px rgba(0,77,150,.08);
  }
  100%{
    transform: translateY(0);
    box-shadow: 0 18px 44px rgba(0,0,0,.10);
  }
}

@keyframes serviceTargetGlow{
  0%{ opacity: 0; }
  16%{ opacity: 1; }
  64%{ opacity: .72; }
  100%{ opacity: 0; }
}

.serviceCard--featured{
  border-color: rgba(245,179,0,.40);
  box-shadow: 0 22px 62px rgba(245,179,0,.12);
}

.serviceCard__media{
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.serviceCard__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .35s ease;
}

.serviceCard:hover .serviceCard__media img{
  transform: scale(1.07);
}

.serviceCard__overlay{
  position: absolute;
  inset: 0;
  padding: 16px 16px;
  display: grid;
  align-content: end;
  gap: 8px;

  background:
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.70));
  background: var(--yellow);
  color: #121317; /* logo negro */

  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}

.serviceCard__overlay h3{
  margin: 0;
  font-size: 18px;
  font-weight: 950;
}

.serviceCard__overlay p{
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  opacity: .95;
}

.serviceCard:hover .serviceCard__overlay,
.serviceCard.is-active .serviceCard__overlay{
  opacity: 1;
  transform: translateY(0);
}

.serviceCard__body{
  padding: 16px 16px 18px 16px;
  display: grid;
  gap: 10px;
}

.serviceCard__title{
  margin: 0;
  font-size: 18px;
  font-weight: 950;
}

.serviceCard__text{
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.serviceCard__btn{
  justify-self: start;
}

.serviceCard__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---- Servicios responsive (evita tarjetas delgadas en móvil) ---- */
@media (max-width: 1020px){
  .servicios{ padding: 72px 0; }
  .servicios__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 620px){
  .servicios{ padding: 62px 0; }
  .servicios__header{ margin-bottom: 18px; }
  .servicios__grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .serviceCard{ border-radius: 16px; }
  .serviceCard__media{ aspect-ratio: 16 / 11; }
  .serviceCard__body{ padding: 14px 14px 16px 14px; }
  .serviceCard__overlay{ padding: 14px; }
}

@media (max-width: 420px){
  .serviceCard__btn{
    width: 100%;
    justify-content: center;
  }
}


/* =========================================================
   HISTORIA / MISIÓN / VISIÓN / VALORES (NUEVA SECCIÓN)
========================================================= */
.story{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(0,77,150,.10), transparent 46%),
    radial-gradient(circle at 18% 18%, rgba(245,179,0,.10), transparent 42%),
    radial-gradient(circle at 82% 84%, rgba(0,0,0,.08), transparent 46%),
    linear-gradient(180deg, #ffffff, var(--soft));
}

body[data-theme="dark"] .story{
  background:
    radial-gradient(circle at 82% 18%, rgba(0,77,150,.12), transparent 48%),
    radial-gradient(circle at 20% 18%, rgba(245,179,0,.12), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(0,0,0,.45), transparent 55%),
    linear-gradient(180deg, rgba(18,20,26,1), rgba(10,11,15,1));
}

.story__wrap{ position: relative; z-index: 2; }


/* ===== Fondo con líneas geométricas (sin franjas hazard) ===== */
.story::after{
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 0;
  pointer-events: none;
  opacity: .16;
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,.10) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(45deg, rgba(0,0,0,.06) 0 1px, transparent 1px 26px);
}

body[data-theme="dark"] .story::after{
  opacity: .18;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.10) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 1px, transparent 1px 26px);
}

/* ===== Geometría tipo brochure (diagonales) ===== */
.story__geo{
  position: absolute;
  border-radius: 26px;
  pointer-events: none;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  will-change: transform;
  filter: drop-shadow(0 24px 60px rgba(0,0,0,.22));
  opacity: .95;
}

.story__geo--white{
  left: -28%;
  top: -34%;
  width: 44%;
  height: 190%;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(16deg);
}

.story__geo--black{
  left: -24%;
  top: -36%;
  width: 36%;
  height: 200%;
  background: rgba(12,13,17,.82);
  border: 1px solid rgba(255,255,255,.10);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(16deg);
  opacity: .78;
}

.story__geo--yellow{
  left: -18%;
  top: -36%;
  width: 10%;
  height: 210%;
  background: linear-gradient(180deg, var(--yellow), var(--orange));
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(16deg);
  opacity: .92;
}

.story__geo--corner{
  right: -18%;
  bottom: -40%;
  width: 54%;
  height: 72%;
  background:
    linear-gradient(135deg, rgba(0,0,0,.10), rgba(0,0,0,0)),
    radial-gradient(circle at 20% 30%, rgba(245,179,0,.10), transparent 60%);
  border: 1px solid rgba(0,0,0,.08);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(-14deg);
  opacity: .55;
}

body[data-theme="dark"] .story__geo--corner{
  border-color: rgba(255,255,255,.10);
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,0)),
    radial-gradient(circle at 20% 30%, rgba(245,179,0,.12), transparent 60%);
}

.story__geo--lines{
  inset: 0;
  border-radius: 0;
  filter: none;
  opacity: .10;
  background:
    repeating-linear-gradient(-32deg, rgba(245,179,0,.20) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(32deg, rgba(0,0,0,.10) 0 1px, transparent 1px 40px);
}
body[data-theme="dark"] .story__geo--lines{
  opacity: .12;
  background:
    repeating-linear-gradient(-32deg, rgba(245,179,0,.22) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(32deg, rgba(255,255,255,.10) 0 1px, transparent 1px 40px);
}


.story__header{
  max-width: 980px;
  margin: 0 0 18px 0;
  text-align: left;
}

.story__kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  letter-spacing: .14em;
  font-size: 12px;
  color: var(--muted);
}

.story__kicker::before{
  content: "";
  width: 34px;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--yellow), var(--detail));
  transform: skewX(-18deg);
  box-shadow: 0 12px 26px rgba(245,179,0,.18);
  opacity: .95;
}

.story__title{
  margin: 10px 0 8px 0;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 980;
  letter-spacing: -.02em;
}

.story__subtitle{
  margin: 0 auto;
  max-width: 780px;
  color: var(--muted);
  line-height: 1.6;
}

.story__grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: start;
}

.story__twocol{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.storyCard,
.valuesCard{
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--nav-border);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(0,0,0,.10);
  padding: 18px 18px;
}

.storyCard::before,
.valuesCard::before{
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 190px;
  height: 190px;
  background: linear-gradient(135deg, var(--yellow), var(--detail));
  transform: rotate(18deg);
  opacity: .10;
  filter: blur(.1px);
}

.storyCard::after,
.valuesCard::after{
  content: "";
  position: absolute;
  left: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 28px;
  border: 1px solid rgba(0,0,0,.10);
  transform: rotate(-12deg);
  opacity: .35;
}

body[data-theme="dark"] .storyCard::after,
body[data-theme="dark"] .valuesCard::after{
  border-color: rgba(255,255,255,.12);
  opacity: .25;
}


.storyCard__title{
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 980;
  letter-spacing: -.01em;
}

.storyCard__title::after{
  content: "";
  display: block;
  width: 74px;
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow), var(--detail));
  transform: skewX(-18deg);
  opacity: .95;
}

.storyCard__text{
  margin: 0 0 10px 0;
  color: var(--muted);
  line-height: 1.65;
}

.storyCard__text:last-child{ margin-bottom: 0; }

.valuesCard__title{
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 980;
}

.valuesCard__subtitle{
  margin: 0 0 14px 0;
  color: var(--muted);
  line-height: 1.5;
}

.valuesList{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.valuesList__item{
  border-radius: 16px;
  padding: 12px 12px;
  background: rgba(245,179,0,.08);
  border: 1px solid rgba(245,179,0,.16);
  border-left: 4px solid var(--blue-45);
}

body[data-theme="dark"] .valuesList__item{
  background: rgba(245,179,0,.06);
  border-color: rgba(245,179,0,.14);
}

.valuesList__name{
  display: block;
  font-weight: 980;
  margin-bottom: 6px;
}

.valuesList__desc{
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

/* ===== Layout nuevo: Historia -> Misión/Visión -> Valores con imagen deslizante ===== */
.story__content{
  display: grid;
  gap: 18px;
  align-items: start;
}

.story__twocol{ margin-top: 0; }

.storyCard--wide{
  padding: 20px 20px;
}

.storyValues{
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.storyValues__header{
  max-width: 980px;
}

.storyValues__title{
  margin: 0 0 6px 0;
  font-size: 20px;
  font-weight: 980;
}

.storyValues__subtitle{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}


/* =========================================================
   VALORES (EDITORIAL CENTRADO)
   - Desktop: contenedor centrado con leve desplazamiento izquierda/derecha.
     · Filas normales: texto (centro-derecha) + imagen a la derecha (pegada al card)
     · Filas .valueRow--alt: texto (centro-izquierda) + imagen a la izquierda (pegada al card)
   - Mobile: texto arriba + imagen centrada abajo
========================================================= */

.valueRows{
  display: grid;
  gap: 5px; /* 🔧 separación vertical entre valores (−1/3) */
  margin-top: 4px;
}

.valueRow{
  position: relative;
  overflow: visible;
}

/* Agrupa texto + imagen (lo que se centra y se desplaza) */
.valueRow__inner{
  width: min(1100px, 100%);
  margin: 0 auto;

  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;

  transform: translateX(var(--shift, 0px));
  will-change: transform;
}

/* Tarjeta SOLO del texto (altura según contenido) */
.valueRow__text{
  position: relative;
  z-index: 3;

  background: var(--card);
  border: 1px solid var(--nav-border);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(0,0,0,.10);

  padding: 16px 18px;

  /* No se estira infinito */
  flex: 0 1 720px;
  max-width: 720px;
}

.valueRow__name{
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 980;
  letter-spacing: -.01em;
}

.valueRow__desc{
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* Imagen PNG flotante (sin marco) */
.valueRow__art{
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  pointer-events: none;
  flex: 0 0 auto;
}

/* PNG + parallax (JS setea --vx/--vy/--vs/--vo) */
.valueRow__img{
  width: calc(clamp(200px, 22vw, 380px) - 12px);
  max-height: 250px;
  height: auto;
  object-fit: contain;
  display: block;

  /* 🔧 Offset vertical fijo (sube/baja todas) */
  --img-up: 70px;

  transform: translate3d(
      var(--vx, 0px),
      calc(var(--vy, 0px) - var(--img-up)),
      0
    )
    scale(var(--vs, 1));

  opacity: var(--vo, 1);
  will-change: transform, opacity;
  filter: drop-shadow(0 16px 22px rgba(0,0,0,.22));
}

@media (min-width: 981px){
  .valueRow__img{ --img-up: 120px; }
}

/* Si falta la imagen, deja un guiño geométrico mínimo */
.valueRow__art.is-missing{
  min-height: 120px;
}
.valueRow__art.is-missing::after{
  content:"";
  width: min(320px, 70vw);
  height: 120px;
  border-radius: 18px;
  opacity: .10;
  background:
    linear-gradient(135deg, rgba(245,179,0,.25), rgba(245,179,0,0)),
    repeating-linear-gradient(90deg, rgba(0,0,0,.10) 0 1px, transparent 1px 16px);
}
body[data-theme="dark"] .valueRow__art.is-missing::after{
  opacity: .12;
  background:
    linear-gradient(135deg, rgba(245,179,0,.20), rgba(245,179,0,0)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.10) 0 1px, transparent 1px 16px);
}

/* =========================
   DESKTOP: alternancia “centro-izq / centro-der”
========================= */
@media (min-width: 981px){
  /* Filas normales: un poco hacia la derecha */
  .valueRow{ --shift: clamp(18px, 3vw, 70px); }

  /* Filas alternas: un poco hacia la izquierda + imagen a la izquierda */
  .valueRow.valueRow--alt{ --shift: clamp(-70px, -3vw, -18px); }
  .valueRow.valueRow--alt .valueRow__inner{ flex-direction: row-reverse; }

  /* ✅ Desktop: compactar separación vertical real (la imagen NO define la altura de la fila)
     La imagen se posiciona ABSOLUTA dentro del contenedor centrado. */
  :root{
    --val-img-space: 360px; /* debe coincidir con el MAX de width clamp() */
    --val-img-gap: 10px;    /* distancia real entre texto e imagen */
  }

  .valueRow__inner{
    position: relative;
    justify-content: flex-start;
    gap: 0;
    padding-right: calc(var(--val-img-space) + var(--val-img-gap));
  }

  .valueRow__art{
    position: absolute;
    top: 0;
    right: 0;
    width: var(--val-img-space);
    justify-content: flex-end;
  }

  /* Alterna: imagen a la izquierda */
  .valueRow.valueRow--alt .valueRow__inner{
    flex-direction: row; /* anula row-reverse */
    padding-right: 0;
    padding-left: calc(var(--val-img-space) + var(--val-img-gap));
  }

  .valueRow.valueRow--alt .valueRow__art{
    left: 0;
    right: auto;
    justify-content: flex-start;
  }

}


/* =========================
   MÓVIL/TABLET: apilar y centrar
========================= */
@media (max-width: 980px){
  .valueRows{ gap: 8px; }

  .valueRow__inner{
    flex-direction: column;
    align-items: center;
    transform: none;
  }

  .valueRow__text{
    max-width: 100%;
    width: 100%;
    flex: 0 0 auto;   /* ✅ evita altura exagerada en flex-column */
  }

  .valueRow__art{ justify-content: center; }

  .valueRow__img{
    width: min(320px, 74vw);
    max-height: 240px;
  }
}
REVEAL: “placa metálica” que se desliza y revela texto ===== */
.reveal{ position: relative; overflow: hidden; }

.reveal > *{
  position: relative;
  z-index: 3;
}

.reveal::after{ display:none !important; }

body[data-theme="light"] .reveal::after{ display:none !important; }

.reveal::before{
  content: "";
  position: absolute;
  left: -12%;
  top: 14px;
  width: 124%;
  height: 10px;
  z-index: 2;
  opacity: .95;
  background: linear-gradient(90deg, var(--yellow), rgba(245,179,0,0));
  transform: translateX(0%) skewX(-22deg);
  transition: transform .85s cubic-bezier(.2,.8,.2,1);
}

.reveal.is-revealed::after,
.reveal.is-revealed::before{
  transform: translateX(120%);
}

/* ===== PARALLAX layers (imágenes / formas) ===== */
.story__layers{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.story__layer{
  position: absolute;
  opacity: .90;
  filter: drop-shadow(0 18px 44px rgba(0,0,0,.25));
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  will-change: transform;
}

.story__layer--operator{
  width: min(520px, 46vw);
  left: -6vw;
  bottom: -10vw;
  opacity: .85;
}

.story__layer--crane{
  width: min(640px, 54vw);
  right: -10vw;
  top: -8vw;
  opacity: .35;
}

.story__shape{
  position: absolute;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  will-change: transform;
  opacity: .9;
}

.story__shape--plate{
  width: min(560px, 56vw);
  height: 220px;
  right: -14vw;
  bottom: 8vw;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    radial-gradient(circle at 20% 30%, rgba(245,179,0,.12), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,0));
  border: 1px solid rgba(255,255,255,.10);
}

body[data-theme="light"] .story__shape--plate{
  border-color: rgba(0,0,0,.10);
  background:
    linear-gradient(135deg, rgba(0,0,0,.06), rgba(0,0,0,.02)),
    radial-gradient(circle at 20% 30%, rgba(245,179,0,.10), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,0));
}

.story__shape--gear{
  width: 240px;
  height: 240px;
  left: 56%;
  top: 12%;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.10);
  background:
    radial-gradient(circle at 50% 50%, rgba(245,179,0,.12), transparent 62%),
    repeating-conic-gradient(from 0deg, rgba(0,0,0,.12) 0 8deg, rgba(0,0,0,0) 8deg 18deg);
  opacity: .18;
  filter: blur(.2px);
}


body[data-theme="dark"] .story__shape--gear{
  border-color: rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 50% 50%, rgba(245,179,0,.14), transparent 62%),
    repeating-conic-gradient(from 0deg, rgba(255,255,255,.10) 0 8deg, rgba(255,255,255,0) 8deg 18deg);
  opacity: .16;
}


.story__shape--stripes{
  left: -30%;
  top: 34%;
  width: 160%;
  height: 140px;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.65), rgba(255,255,255,0) 55%),
    linear-gradient(135deg, rgba(0,0,0,.40), rgba(0,0,0,0));
  opacity: .15;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(-14deg);
}


body[data-theme="dark"] .story__shape--stripes{
  background:
    linear-gradient(90deg, rgba(255,255,255,.10), rgba(255,255,255,0) 55%),
    linear-gradient(135deg, rgba(0,0,0,.55), rgba(0,0,0,0));
  opacity: .14;
}

/* Responsive */
@media (max-width: 980px){
  .story__grid{ grid-template-columns: 1fr; }
  .story__twocol{ grid-template-columns: 1fr; }

  .story__layer--operator{ width: min(520px, 82vw); left: -18vw; bottom: -22vw; opacity: .55; }
  .story__layer--crane{ width: min(720px, 98vw); right: -28vw; top: -22vw; }
  .story__shape--plate{ right: -24vw; bottom: 18vw; height: 180px; }
  .story__shape--gear{ left: 62%; top: 6%; width: 200px; height: 200px; }
}

/* =========================================================
   JS-GATED ANIMATIONS
   - If main.js fails to load, the site must remain readable.
   - When JS loads, it adds html.js and animations activate.
========================================================= */

/* NOSOTROS: visible by default; animate only when JS is active */
.nosotros__content > *{
  opacity: 1;
  transform: none;
  filter: none;
}
html.js .nosotros__content > *{
  opacity: 0;
  transform: translateY(18px);
  filter: blur(4px);
  transition: opacity .55s ease, transform .55s ease, filter .55s ease;
}
html.js .nosotros.is-inview .nosotros__content > *{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* REVEAL: revealed by default; cover+slide only when JS is active */
.reveal::after,
.reveal::before{
  transform: translateX(120%);
}
html.js .reveal::after,
html.js .reveal::before{
  transform: translateX(0%);
}
html.js .reveal.is-revealed::after,
html.js .reveal.is-revealed::before{
  transform: translateX(120%);
}


/* === FIX: eliminar cuadros negros/translúcidos en Historia y Valores === */
.story__geo--black,
.story__shape--plate,
.story__shape--stripes{ /* stripes también puede verse como placa oscura; si la quieres, borra esta línea */
  display: none !important;
}

/* =========================================================
   DARK MODE: Mejor contraste para títulos/subtítulos
   (Historia / Valores) — evita que se pierdan sobre fondos claros
   Pega al final (ya incluido en este archivo)
========================================================= */

body[data-theme="dark"] .story::after{
  /* baja un poco la intensidad de las líneas claras del fondo */
  opacity: .10;
}

body[data-theme="dark"] .story__geo--white{
  /* evita “manchas” claras detrás del texto */
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.08);
  opacity: .22;
}

body[data-theme="dark"] .story__geo--lines{
  opacity: .08;
}

body[data-theme="dark"] .story__header{
  /* backplate sutil detrás del encabezado para legibilidad */
  background: rgba(0,0,0,.50);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 14px 16px;
  backdrop-filter: blur(6px);
}

body[data-theme="dark"] .story__kicker{
  color: rgba(255,255,255,.78);
}

body[data-theme="dark"] .story__title,
body[data-theme="dark"] .story .section__title,
body[data-theme="dark"] .story h2,
body[data-theme="dark"] .story h3{
  color: rgba(255,255,255,.94);
  text-shadow: 0 2px 14px rgba(0,0,0,.65);
}

body[data-theme="dark"] .story__subtitle,
body[data-theme="dark"] .story p{
  /* subcopy más clara y con sombra para contrastar sobre visos */
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}

/* Si tienes títulos tipo “NUESTRA HISTORIA / VALORES” como texto suelto, forzamos contraste */
body[data-theme="dark"] .story [class*="title"],
body[data-theme="dark"] .story [class*="Title"]{
  text-shadow: 0 2px 14px rgba(0,0,0,.65);
}


/* =========================================================
   AJUSTE: Separación vertical entre VALORES en ESCRITORIO
   Pedido: ~2 cm (solo desktop). Móvil se mantiene igual.
========================================================= */
@media (min-width: 981px){
  .valueRows{
    gap: 2cm !important; /* ≈ 75.6px en CSS px (96dpi) */
  }
}



/* =========================================================
   CIFRAS / CONTADOR TECH (Blue corporate + números naranja)
   - Fondo azul corporativo
   - Número grande naranja (con brillo sutil)
   - Etiqueta blanca + subtítulo gris claro
   - Animaciones: reveal + scan + shimmer + count blur/lift
========================================================= */
#cifras{ scroll-margin-top: calc(var(--header-h) + 18px); }

.section.stats{
  position: relative;
  overflow: hidden;
  padding: 64px 0;

  /* Azul corporativo + profundidad */
  background:
    radial-gradient(1200px 620px at 16% 38%, rgba(245,179,0,.22), transparent 55%),
    radial-gradient(900px 520px at 82% 28%, rgba(255,122,0,.16), transparent 60%),
    radial-gradient(760px 520px at 50% 94%, rgba(255,255,255,.10), transparent 62%),
    linear-gradient(135deg, #004d96 0%, #003c75 52%, #002a55 100%);
  color: #fff;

  /* Amarillo sigue dominando “marca”: borde industrial */
  border-top: 4px solid rgba(245,179,0,.88);
  border-bottom: 4px solid rgba(245,179,0,.70);
}

/* Rejilla “tech” + scanlines suaves */
.section.stats::before{
  content:"";
  position:absolute;
  inset:-160px -120px;
  pointer-events:none;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.10) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 34px);
  opacity:.14;
  transform: translate3d(0,0,0);
  animation: statsGridDrift 16s ease-in-out infinite alternate;
}
@keyframes statsGridDrift{
  0%{ transform: translate3d(-10px,-6px,0) scale(1.01); opacity:.12; }
  100%{ transform: translate3d(10px,8px,0) scale(1.03); opacity:.18; }
}

/* “Hologlow” móvil */
.section.stats::after{
  content:"";
  position:absolute;
  inset:-140px -120px;
  pointer-events:none;
  background:
    radial-gradient(circle at 25% 35%, rgba(0,77,150,.55), transparent 52%),
    radial-gradient(circle at 72% 28%, rgba(0,77,150,.35), transparent 60%),
    radial-gradient(circle at 45% 85%, rgba(0,77,150,.30), transparent 58%);
  opacity:.45;
  filter: blur(0px);
  animation: statsGlowPulse 7.5s ease-in-out infinite;
}
@keyframes statsGlowPulse{
  0%,100%{ opacity:.35; transform: translate3d(0,0,0) scale(1); }
  50%{ opacity:.62; transform: translate3d(0,-6px,0) scale(1.03); }
}

.stats__wrap{ position: relative; z-index: 2; }

.stats__grid{
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;

  border-radius: 22px;
  overflow: hidden;

  /* Glass + borde doble */
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    0 24px 70px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(0,0,0,.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Película brillante en loop MUY sutil */
.stats__grid::before{
  content:"";
  position:absolute;
  inset:-2px;
  pointer-events:none;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.12) 20%, transparent 42%);
  transform: translateX(-65%);
  opacity: .0;
}
.stats__grid:hover::before{
  opacity: .55;
  animation: statsSheen 1.25s ease-out 1;
}
@keyframes statsSheen{
  0%{ transform: translateX(-65%); }
  100%{ transform: translateX(65%); }
}

/* Barrido “scan” cuando inicia el conteo */
.stats__grid::after{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: inherit;
  pointer-events:none;
  background:
    linear-gradient(90deg, transparent 0%, rgba(245,179,0,.34) 45%, transparent 100%),
    linear-gradient(90deg, transparent 0%, rgba(0,77,150,.40) 50%, transparent 100%);
  transform: translateX(-120%);
  opacity: 0;
}
.stats__grid.is-counting::after{
  animation: statsScan 1.35s cubic-bezier(.2,.9,.2,1) 1;
}
@keyframes statsScan{
  0%{ transform: translateX(-120%); opacity: 0; }
  12%{ opacity: .95; }
  100%{ transform: translateX(120%); opacity: 0; }
}

/* Cards */
.stat{
  position: relative;
  text-align: center;
  padding: 24px 18px 22px;
  isolation: isolate;
  transition: transform .28s ease, background .28s ease;
  transform: translateZ(0);
}

/* Separadores */
.stat{ border-right: 1px solid rgba(255,255,255,.16); }
.stat:nth-child(4){ border-right: 0; }

/* Fondo interactivo por card */
.stat::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 50% 22%, rgba(0,77,150,.55), transparent 60%),
    radial-gradient(circle at 50% 95%, rgba(245,179,0,.12), transparent 58%);
  opacity: 0;
  transition: opacity .28s ease;
  z-index: 0;
}

/* “Border sweep” tech */
.stat::after{
  content:"";
  position:absolute;
  left: 14px; right: 14px; bottom: 10px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(245,179,0,.95), rgba(0,77,150,.75), transparent);
  opacity: .20;
  transform: translateX(-18%);
  transition: opacity .28s ease;
  z-index: 0;
}

.stat:hover{
  transform: translateY(-6px) scale(1.01);
  background: rgba(255,255,255,.06);
}
.stat:hover::before{ opacity: .95; }
.stat:hover::after{ opacity: .55; }

/* Número */
.stat__num{
  position: relative;
  z-index: 1;
  font-size: clamp(38px, 3.6vw, 54px);
  font-weight: 1000;
  line-height: 1;
  letter-spacing: .4px;

  /* Orange con brillo */
  color: var(--orange);
  text-shadow:
    0 18px 52px rgba(0,0,0,.55),
    0 0 22px rgba(245,179,0,.16);
  font-variant-numeric: tabular-nums;
}

/* Efecto “energía” durante el conteo (se desactiva con reduce motion) */
.stat.is-counting .stat__num{
  animation: numBreath .85s ease-in-out infinite alternate;
}
@keyframes numBreath{
  0%{ filter: brightness(1) saturate(1); transform: translateY(0); }
  100%{ filter: brightness(1.08) saturate(1.08); transform: translateY(-2px); }
}

/* El valor recibe blur/lift desde JS via CSS vars */
.stat__value{
  display: inline-block;
  filter: blur(var(--blur, 0px));
  transform: translateY(var(--lift, 0px));
  transition: filter .22s ease, transform .22s ease;
  will-change: filter, transform;
}

/* Etiqueta + subtítulo */
.stat__label{
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-weight: 950;
  color: #fff;
  font-size: 14px;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Punto “tech” azul */
.stat__label::before{
  content:"";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(0,77,150,.95);
  box-shadow: 0 0 0 4px rgba(0,77,150,.22), 0 0 22px rgba(0,77,150,.35);
  display: inline-block;
}

/* Subrayado animado en hover */
.stat__label::after{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(0,77,150,.0), rgba(0,77,150,.85), rgba(245,179,0,.65), rgba(0,77,150,0));
  opacity: .0;
  transform: translateY(3px) scaleX(.92);
  transition: opacity .28s ease, transform .28s ease;
}
.stat:hover .stat__label::after{
  opacity: .85;
  transform: translateY(0) scaleX(1);
}

.stat__sub{
  position: relative;
  z-index: 1;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.25;
  color: rgba(255,255,255,.80);
}

/* Reveal “más pro” */
.stat[data-reveal]{
  opacity: 0;
  transform: translateY(18px);
  filter: blur(10px);
  transition: opacity .65s ease, transform .65s ease, filter .65s ease;
}
.stat.is-revealed{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Pop final + halo */
@keyframes statPop2{
  0%{ transform: scale(.94); filter: brightness(.98); }
  55%{ transform: scale(1.08); filter: brightness(1.08); }
  100%{ transform: scale(1); filter: brightness(1); }
}
.stat.is-counted .stat__num{ animation: statPop2 .75s cubic-bezier(.2,.9,.2,1) both; }

/* Responsive */
@media (max-width: 900px){
  .stats__grid{ grid-template-columns: repeat(2, 1fr); }
  .stat{ border-right: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
  .stat:nth-child(2n){ border-right: 0; }
  .stat:nth-last-child(-n+2){ border-bottom: 0; }
}
@media (max-width: 520px){
  .section.stats{ padding: 52px 0; }
  .stats__grid{ grid-template-columns: 1fr; }
  .stat{ border-right: 0; }
  .stat{ border-bottom: 1px solid rgba(255,255,255,.16); }
  .stat:last-child{ border-bottom: 0; }
}

/* Reduce motion: sin loops */

@media (max-width: 780px){
  .caseSlide.is-active .caseLogoCard,
  .caseSlide.is-active .caseInfoPanel,
  .caseSlide.is-active .casePhoto{
    --px: 0px !important;
    --py: 0px !important;
  }
}


/* Ajuste fino móvil: evita que el rótulo de la foto se corte hacia la izquierda */
@media (max-width: 780px){
  .casePhoto{
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
    transform: translate3d(0,0,0) !important;
  }

  .caseSlide.is-active .casePhoto{
    transform: translate3d(0,0,0) !important;
  }

  .casePhoto::after{
    left: 0;
    right: 0;
    bottom: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 16px 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    border-top: 1px solid rgba(255,255,255,.34);
  }
}

@media (max-width: 420px){
  .casePhoto::after{
    bottom: 10px;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 9px;
    letter-spacing: .08em;
  }
}

@media (prefers-reduced-motion: reduce){
  .section.stats::before,
  .section.stats::after{ animation: none !important; }
  .stats__grid:hover::before{ animation: none !important; }
  .stat.is-counting .stat__num{ animation: none !important; }
}

/* =========================================================
   DOLORES DEL CLIENTE (S4)
========================================================= */
.pains{
  padding: 86px 0;
  background:
    radial-gradient(900px 420px at 18% 18%, rgba(0,77,150,.10), transparent 60%),
    radial-gradient(900px 420px at 86% 14%, rgba(245,179,0,.14), transparent 60%),
    var(--bg);
}

.pains__wrap{
  position: relative;
}

.pains__header{
  max-width: 1200px;
  margin-bottom: 18px;
}

.pains__kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0,77,150,.12);
  border: 1px solid rgba(0,77,150,.25);
  color: var(--blue);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

body[data-theme="dark"] .pains__kicker{
  background: rgba(0,77,150,.18);
  border-color: rgba(0,77,150,.35);
  color: rgba(255,255,255,.92);
}

.pains__title{
  margin: 14px 0 8px 0;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 1000;
  letter-spacing: -.02em;
}

.pains__subtitle{
  margin: 0 0 10px 0;
  color: var(--muted);
  line-height: 1.65;
}

.pains__lead{
  margin: 14px 0 0 0;
  font-weight: 900;
}

.pains__leadAccent{
  color: var(--orange);
}

.pains__list{
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.painRow{
  --radius-row: 18px;

  position: relative;
  border-radius: var(--radius-row);
  overflow: hidden;

  display: grid;
  grid-template-columns: 132px 1fr 1fr;
  min-height: 108px;

  border: 1px solid rgba(0,0,0,.10);
  background: var(--card);
  box-shadow: 0 16px 50px rgba(0,0,0,.12);

  transform: translateY(14px);
  opacity: 0;
  transition:
    transform .55s cubic-bezier(.2,.9,.2,1),
    opacity .55s ease,
    box-shadow .25s ease,
    border-color .25s ease;
  transition-delay: calc(var(--i, 0) * 90ms);
}

body[data-theme="dark"] .painRow{
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 16px 60px rgba(0,0,0,.35);
}

.painRow.is-in{
  transform: translateY(0);
  opacity: 1;
}

.painRow::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: translateX(-60%);
  opacity: 0;
}

.painRow.is-in::before{
  opacity: .9;
  animation: painScan 1.1s ease-out .05s both;
}

@keyframes painScan{
  to{ transform: translateX(60%); opacity: 0; }
}

.painRow:hover{
  transform: translateY(-4px);
  border-color: rgba(0,77,150,.30);
  box-shadow: 0 22px 72px rgba(0,0,0,.18);
}

.painRow__icon{
  background:
    radial-gradient(260px 160px at 30% 20%, rgba(245,179,0,.22), transparent 55%),
    linear-gradient(180deg, rgba(0,77,150,.98), rgba(0,45,92,.98));
  color: #fff;
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 16px 12px;
  position: relative;
}

.painRow__icon::after{
  content:"";
  position:absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(245,179,0,.95), transparent);
  opacity: .9;
}

.painRow__badge{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
}

.painRow__badge svg{
  width: 22px;
  height: 22px;
  fill: currentColor;
  opacity: .96;
  transform: translateY(0) scale(1);
}

.painRow.is-in .painRow__badge svg{
  animation: iconPop .65s cubic-bezier(.2,.9,.2,1) .1s both;
}

@keyframes iconPop{
  0%{ transform: translateY(6px) scale(.92); opacity:.2; }
  60%{ transform: translateY(-2px) scale(1.06); opacity:1; }
  100%{ transform: translateY(0) scale(1); opacity:1; }
}

.painRow__key{
  font-weight: 1000;
  letter-spacing: .02em;
  font-size: 13px;
}

.painRow__pane{
  padding: 16px 16px 14px;
  display:flex;
  flex-direction: column;
  justify-content: center;
}

.painRow__pane--pain{
  background:
    radial-gradient(300px 140px at 30% 30%, rgba(255,86,86,.15), transparent 60%),
    rgba(255, 73, 73, .08);
  border-right: 1px solid rgba(0,0,0,.06);
}

.painRow__pane--sol{
  background:
    radial-gradient(300px 140px at 70% 30%, rgba(71, 214, 138, .18), transparent 60%),
    rgba(71, 214, 138, .08);
}

body[data-theme="dark"] .painRow__pane--pain{
  border-right-color: rgba(255,255,255,.08);
}

.painRow__title{
  margin: 0 0 6px 0;
  font-weight: 1000;
  font-size: 13px;
  letter-spacing: .01em;
  color: rgba(0,0,0,.72);
}

body[data-theme="dark"] .painRow__title{
  color: rgba(255,255,255,.82);
}

.painRow__text{
  margin: 0;
  color: rgba(0,0,0,.70);
  line-height: 1.55;
  font-size: 13px;
}

body[data-theme="dark"] .painRow__text{
  color: rgba(255,255,255,.72);
}

@media (max-width: 980px){
  .painRow{
    grid-template-columns: 112px 1fr;
    grid-template-rows: auto auto;
  }
  .painRow__pane--sol{
    grid-column: 1 / -1;
    border-top: 1px solid rgba(0,0,0,.06);
  }
  body[data-theme="dark"] .painRow__pane--sol{ border-top-color: rgba(255,255,255,.08); }
}

@media (max-width: 520px){
  .pains{ padding: 70px 0; }
  .painRow{ grid-template-columns: 1fr; }
  .painRow__icon{ flex-direction: row; justify-content: flex-start; text-align: left; }
  .painRow__badge{ width: 40px; height: 40px; border-radius: 12px; }
  .painRow__key{ font-size: 14px; }
  .painRow__pane{ padding: 14px 14px 12px; }
  .painRow__pane--pain{ border-right: 0; border-top: 1px solid rgba(0,0,0,.06); }
  body[data-theme="dark"] .painRow__pane--pain{ border-top-color: rgba(255,255,255,.08); }
}

/* Reduce motion */

@media (max-width: 780px){
  .caseSlide.is-active .caseLogoCard,
  .caseSlide.is-active .caseInfoPanel,
  .caseSlide.is-active .casePhoto{
    --px: 0px !important;
    --py: 0px !important;
  }
}


/* Ajuste fino móvil: evita que el rótulo de la foto se corte hacia la izquierda */
@media (max-width: 780px){
  .casePhoto{
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
    transform: translate3d(0,0,0) !important;
  }

  .caseSlide.is-active .casePhoto{
    transform: translate3d(0,0,0) !important;
  }

  .casePhoto::after{
    left: 0;
    right: 0;
    bottom: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 16px 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    border-top: 1px solid rgba(255,255,255,.34);
  }
}

@media (max-width: 420px){
  .casePhoto::after{
    bottom: 10px;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 9px;
    letter-spacing: .08em;
  }
}

@media (prefers-reduced-motion: reduce){
  .stats__grid.is-counting::after,
  .painRow.is-in::before,
  .stat:hover::before,
  .painRow.is-in .painRow__badge svg{
    animation: none !important;
  }
  .painRow,
  .stat{
    transition: none !important;
  }
}

/* =========================================================
   CÓMO TRABAJAMOS (S8) — Proceso en 5 pasos
========================================================= */
.how{
  padding: 86px 0;
  background:
    radial-gradient(900px 420px at 12% 18%, rgba(0,77,150,.10), transparent 60%),
    radial-gradient(900px 420px at 88% 16%, rgba(245,179,0,.12), transparent 60%),
    linear-gradient(180deg, var(--soft), var(--bg));
}

body[data-theme="dark"] .how{
  background:
    radial-gradient(900px 420px at 12% 18%, rgba(0,77,150,.18), transparent 60%),
    radial-gradient(900px 420px at 88% 16%, rgba(245,179,0,.10), transparent 60%),
    var(--bg);
}

.how__wrap{ position: relative; }

.how__header{
  max-width: 980px;
  margin: 0 auto 22px auto;
  text-align: center;
}

.how__kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  color: var(--muted);
}

.how__kicker::before{
  content:"";
  width: 44px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow), var(--detail));
  box-shadow: 0 12px 26px rgba(245,179,0,.18);
}

.how__title{
  margin: 12px 0 10px 0;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 980;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.how__subtitle{
  margin: 0 auto;
  max-width: 820px;
  color: var(--muted);
  line-height: 1.55;
}

.how__list{
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 22px;
  isolation: isolate;
}

/* Línea vertical (progreso por scroll con --how-p) */
.how__list::before{
  content:"";
  position:absolute;
  left: 46px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0,77,150,.18), rgba(0,77,150,.06));
  opacity: .9;
  z-index: 0;
}

.how__list::after{
  content:"";
  position:absolute;
  left: 46px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(245,179,0,.95), rgba(255,122,0,.85));
  transform-origin: top;
  transform: scaleY(var(--how-p, 0));
  opacity: .95;
  z-index: 0;
}

body[data-theme="dark"] .how__list::before{
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
  opacity: .55;
}

/* Tarjeta */
.howStep{
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr 140px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--nav-border);
  box-shadow: 0 18px 44px rgba(0,0,0,.10);
  overflow: hidden;
  min-height: 112px;
  z-index: 1;
  transform: translateZ(0);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease;
}

/* Punto sobre la línea */
.howStep::before{
  content:"";
  position:absolute;
  left: 46px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--card);
  border: 2px solid rgba(0,77,150,.35);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  z-index: 2;
}

body[data-theme="dark"] .howStep::before{
  border-color: rgba(0,77,150,.55);
  box-shadow: 0 14px 32px rgba(0,0,0,.35);
}

/* Sheen en hover */
.howStep::after{
  content:"";
  position:absolute;
  inset:-2px;
  pointer-events:none;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.16) 18%, transparent 42%);
  transform: translateX(-65%);
  opacity: 0;
  z-index: 1;
}
@media (hover:hover){
  .howStep:hover::after{
    opacity: .75;
    animation: howSheen 1.15s ease-out 1;
  }
}
@keyframes howSheen{
  0%{ transform: translateX(-65%); }
  100%{ transform: translateX(65%); }
}

/* Bloque número */
.howStep__num{
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--detail), var(--yellow));
  color: #fff;
}

.howStep__num span{
  font-weight: 1000;
  font-size: 22px;
  letter-spacing: .04em;
  text-shadow: 0 16px 44px rgba(0,0,0,.35);
}

/* Detalle industrial en el número */
.howStep__num::before{
  content:"";
  position:absolute;
  inset: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  background:
    radial-gradient(120px 60px at 35% 25%, rgba(255,255,255,.25), transparent 60%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.10) 0 1px, transparent 1px 14px);
  opacity: .55;
}

/* Cuerpo */
.howStep__body{
  padding: 16px 18px 14px;
  display: grid;
  align-content: center;
  gap: 8px;
}

.howStep__title{
  margin: 0;
  font-size: 16px;
  font-weight: 1000;
  letter-spacing: -.01em;
}

.howStep__text{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.howStep__meta{ margin-top: 2px; }

.howStep__time{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  color: rgba(0,0,0,.72);
  background: rgba(255,122,0,.10);
  border: 1px solid rgba(255,122,0,.22);
}

body[data-theme="dark"] .howStep__time{
  color: rgba(255,255,255,.82);
  background: rgba(255,122,0,.10);
  border-color: rgba(255,122,0,.24);
}

.howStep__time svg{
  width: 15px;
  height: 15px;
  opacity: .95;
}

/* Tag lateral */
.howStep__tag{
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  letter-spacing: .02em;
  font-size: 12px;
  color: #0f5a33;
  background:
    radial-gradient(240px 120px at 50% 15%, rgba(71,214,138,.18), transparent 60%),
    rgba(71,214,138,.10);
  border-left: 1px solid var(--nav-border);
}

body[data-theme="dark"] .howStep__tag{
  color: rgba(255,255,255,.86);
  background:
    radial-gradient(240px 120px at 50% 15%, rgba(71,214,138,.18), transparent 60%),
    rgba(71,214,138,.08);
}

/* Hover + “current step” */
@media (hover:hover){
  .howStep:hover{
    transform: translateY(-6px);
    border-color: rgba(245,179,0,.35);
    box-shadow: 0 26px 70px rgba(0,0,0,.14);
  }
  .howStep:hover::before{
    border-color: rgba(245,179,0,.65);
    box-shadow: 0 0 0 5px rgba(245,179,0,.14), 0 16px 44px rgba(0,0,0,.18);
  }
}

.howStep.is-current{
  border-color: rgba(0,77,150,.38);
  box-shadow: 0 26px 70px rgba(0,77,150,.10);
}
.howStep.is-current::before{
  border-color: rgba(0,77,150,.80);
  box-shadow: 0 0 0 5px rgba(0,77,150,.16), 0 16px 44px rgba(0,0,0,.18);
}

/* Reveal (usa la misma clase is-revealed del JS) */
html.js .how__header[data-reveal]{
  opacity: 0;
  transform: translateY(14px);
  filter: blur(8px);
  transition: opacity .65s ease, transform .65s ease, filter .65s ease;
}
html.js .how__header.is-revealed{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

html.js .howStep[data-reveal]{
  opacity: 0;
  transform: translateY(18px);
  filter: blur(10px);
  transition: opacity .65s ease, transform .65s ease, filter .65s ease;
  transition-delay: calc(var(--i, 0) * 90ms);
}
html.js .howStep.is-revealed{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Responsive */
@media (max-width: 980px){
  .how__list::before,
  .how__list::after{
    display: none;
  }

  .howStep{
    grid-template-columns: 78px 1fr;
    grid-template-rows: auto;
  }

  .howStep::before{ display: none; }

  .howStep__tag{
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    margin: 12px 12px 0 0;
    padding: 8px 12px;
    border-left: 0;
    border-radius: 999px;
    height: fit-content;
  }

  .howStep__body{
    padding: 16px 14px 14px;
  }
}

@media (max-width: 520px){
  .how{ padding: 70px 0; }
  .howStep{ grid-template-columns: 72px 1fr; }
  .howStep__num span{ font-size: 20px; }
  .howStep__title{ font-size: 15px; }
  .howStep__text{ font-size: 13px; }
  .howStep__time{ font-size: 11.5px; }
}

/* Reduce motion */

@media (max-width: 780px){
  .caseSlide.is-active .caseLogoCard,
  .caseSlide.is-active .caseInfoPanel,
  .caseSlide.is-active .casePhoto{
    --px: 0px !important;
    --py: 0px !important;
  }
}


/* Ajuste fino móvil: evita que el rótulo de la foto se corte hacia la izquierda */
@media (max-width: 780px){
  .casePhoto{
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
    transform: translate3d(0,0,0) !important;
  }

  .caseSlide.is-active .casePhoto{
    transform: translate3d(0,0,0) !important;
  }

  .casePhoto::after{
    left: 0;
    right: 0;
    bottom: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 16px 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    border-top: 1px solid rgba(255,255,255,.34);
  }
}

@media (max-width: 420px){
  .casePhoto::after{
    bottom: 10px;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 9px;
    letter-spacing: .08em;
  }
}

@media (prefers-reduced-motion: reduce){
  .howStep,
  .howStep::after,
  .how__header[data-reveal],
  .howStep[data-reveal],
  .how__list::after{
    transition: none !important;
    animation: none !important;
  }
}

/* =========================================================
   PATCH v2 (Cómo trabajamos)
   - Quita el "punto" de selección sobre el número
   - Mejora responsive en tablets/móviles (evita solapes del tag y ajusta grid)
========================================================= */

/* 1) Elimina el punto sobre la línea (dot) */
.howStep::before,
.howStep:hover::before,
.howStep.is-current::before{
  display: none !important;
  content: none !important;
}

/* 2) Responsive más sólido (tablets incl. 1024px) */
@media (max-width: 1100px){
  /* ocultamos la línea vertical en layouts compactos */
  .how__list::before,
  .how__list::after{ display: none !important; }

  .howStep{
    grid-template-columns: 76px 1fr;
    grid-template-rows: auto 1fr;
    min-height: unset;
  }

  /* el bloque del número ocupa ambas filas para que la tarjeta se vea firme */
  .howStep__num{ grid-row: 1 / -1; }

  /* el tag va en una fila propia (arriba) sin pisar el contenido */
  .howStep__tag{
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    margin: 12px 12px 0 0;
    padding: 8px 12px;
    border-left: 0;
    border-radius: 999px;
    height: fit-content;
    line-height: 1;
    white-space: nowrap;
  }

  /* el contenido queda abajo */
  .howStep__body{
    grid-column: 2;
    grid-row: 2;
    padding: 10px 14px 14px;
  }
}

@media (max-width: 520px){
  .how{ padding: 66px 0; }

  .howStep{ grid-template-columns: 68px 1fr; }

  .howStep__num span{ font-size: 19px; }

  .howStep__tag{
    margin: 10px 10px 0 0;
    padding: 6px 10px;
    font-size: 11px;
  }

  .howStep__body{ padding: 10px 12px 12px; }

  .howStep__time{ padding: 7px 9px; }
}

@media (max-width: 380px){
  .howStep{
    grid-template-columns: 62px 1fr;
    border-radius: 16px;
  }
  .howStep__title{ font-size: 14.5px; }
  .howStep__text{ font-size: 12.8px; }
}




/* =========================================================
   CASOS DE ÉXITO — Carrusel tipo lámina corporativa
   Estructura: título + datos de grúa + logo constructora + logo proyecto + foto
========================================================= */
.cases{
  position: relative;
  padding: clamp(72px, 8vw, 112px) 0;
  overflow: hidden;
  background:
    radial-gradient(980px 520px at 9% 14%, var(--blue-08), transparent 60%),
    radial-gradient(760px 440px at 92% 8%, rgba(245,179,0,.14), transparent 58%),
    linear-gradient(180deg, var(--soft) 0%, var(--bg) 72%);
}

.cases::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.26), transparent 18%, transparent 82%, rgba(255,255,255,.14)),
    radial-gradient(circle at 12% 86%, rgba(245,179,0,.08), transparent 22%);
}
body[data-theme="dark"] .cases::before{
  background:
    linear-gradient(90deg, rgba(255,255,255,.03), transparent 18%, transparent 82%, rgba(255,255,255,.03)),
    radial-gradient(circle at 12% 86%, rgba(245,179,0,.05), transparent 22%);
}

.cases__wrap{ position: relative; z-index: 1; }

.cases__header{
  text-align:center;
  max-width: 920px;
  margin: 0 auto 28px;
}

.cases__kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:12px;
  font-weight:950;
  letter-spacing:.16em;
  color:var(--muted);
}
.cases__kicker::before,
.cases__kicker::after{
  content:"";
  width:40px;
  height:5px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--yellow), var(--detail));
}

.cases__title{
  margin: 14px 0 10px;
  font-size: clamp(28px, 3.4vw, 50px);
  line-height: 1.04;
  font-weight: 980;
}

.cases__subtitle{
  margin:0 auto;
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  line-height:1.65;
}

.casesCarousel{
  --cases-auto: 7000ms;
  margin-top: 24px;
  position: relative;
}

.casesFrame{
  position: relative;
  overflow: hidden;
  contain: layout paint;
  border-radius: clamp(22px, 2vw, 34px);
  border: 1px solid rgba(0,0,0,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(249,249,247,.98));
  box-shadow: 0 28px 80px rgba(0,0,0,.14);
  touch-action: pan-y;
}
body[data-theme="dark"] .casesFrame{
  border-color: rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(22,24,32,.96), rgba(14,16,22,.99));
}

.casesTrack{
  display:flex !important;
  gap:0 !important;
  padding:0 !important;
  margin:0 !important;
  align-items: stretch;
  transition: transform .72s cubic-bezier(.22,.78,.22,1);
  will-change: transform;
}

.caseSlide{
  width: var(--case-slide-w, 100%);
  min-width: var(--case-slide-w, 100%);
  max-width: var(--case-slide-w, 100%);
  flex: 0 0 var(--case-slide-w, 100%);
  flex-basis: var(--case-slide-w, 100%);
  display:block !important;
  scroll-snap-align:none !important;
  background:transparent;
  overflow:hidden;
  box-sizing:border-box;
  backface-visibility:hidden;
  transform: translateZ(0);
}


.caseShowcase{
  position: relative;
  display:grid;
  grid-template-columns: minmax(250px, 24%) minmax(330px, 33%) minmax(380px, 1.18fr);
  grid-template-rows: auto auto 1fr;
  grid-template-areas:
    "title title photo"
    "constructor info photo"
    "project info photo";
  align-items: start;
  column-gap: clamp(24px, 2.4vw, 40px);
  row-gap: 14px;
  min-height: clamp(470px, 43vw, 590px);
  padding: 74px 32px 18px;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(540px 300px at 6% 88%, rgba(245,179,0,.10), transparent 62%),
    radial-gradient(360px 210px at 94% 8%, rgba(0,77,150,.08), transparent 58%),
    linear-gradient(135deg, rgba(255,255,255,.99), rgba(246,246,244,.98));
}
body[data-theme="dark"] .caseShowcase{
  background:
    radial-gradient(540px 300px at 6% 88%, rgba(245,179,0,.08), transparent 62%),
    radial-gradient(360px 210px at 94% 8%, rgba(0,77,150,.14), transparent 58%),
    linear-gradient(135deg, rgba(18,20,28,.99), rgba(16,18,24,.99));
}

.caseShowcase::before{
  content:"";
  position:absolute;
  inset: 16px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.50);
  pointer-events:none;
}
body[data-theme="dark"] .caseShowcase::before{
  border-color: rgba(255,255,255,.06);
}
.caseShowcase::after{ display:none; }

.caseShowcase__noise{
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.18;
  background:
    linear-gradient(120deg, rgba(255,255,255,.12), rgba(255,255,255,0) 24%),
    radial-gradient(circle at 14% 86%, rgba(0,77,150,.08), transparent 18%),
    radial-gradient(circle at 90% 14%, rgba(245,179,0,.08), transparent 16%);
}

.caseCount{
  position:absolute;
  top: 18px;
  left: 18px;
  z-index: 4;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(245,179,0,.92);
  color: #111318;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .1em;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

.caseSlogan{
  position:absolute;
  top: 18px;
  right: 28px;
  z-index: 3;
  margin:0;
  font-family: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
  font-size: clamp(22px, 2.3vw, 38px);
  line-height:1;
  color: currentColor;
  transform: translateY(-14px);
  opacity:0;
  transition: opacity .6s ease, transform .75s cubic-bezier(.22,.78,.22,1);
}

.caseProjectTitle,
.caseLogoCard,
.caseInfoPanel,
.casePhoto{
  --px: 0px;
  --py: 0px;
  --entry-x: 0px;
  --entry-y: 0px;
  --entry-scale: 1;
  position: relative;
  z-index: 2;
  transform: translate3d(calc(var(--entry-x) + var(--px)), calc(var(--entry-y) + var(--py)), 0) scale(var(--entry-scale));
  opacity: 0;
  filter: blur(5px);
  transition: opacity .65s ease, transform .82s cubic-bezier(.22,.78,.22,1), filter .65s ease;
}

.caseProjectTitle{
  grid-area: title;
  margin:0;
  width: min(95%, 760px);
  color: var(--yellow);
  font-size: clamp(32px, 4.3vw, 68px);
  line-height: .92;
  letter-spacing: .012em;
  font-weight: 1000;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 10px 24px rgba(245,179,0,.12);
  --entry-x: -42px;
}
.caseProjectTitle::before{
  content:"CASO DE ÉXITO";
  display:block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .24em;
  opacity: .54;
}
.caseProjectTitle::after{
  content:"";
  display:block;
  width: clamp(100px, 14vw, 150px);
  height: 6px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow), rgba(245,179,0,.1));
  box-shadow: 0 10px 26px rgba(245,179,0,.20);
}

.caseLogoCard{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow:none;
  filter: blur(5px);
}
.caseLogoCard::before{
  display:block;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.caseLogoCard--constructor{ grid-area: constructor; --entry-x: -36px; }
.caseLogoCard--constructor::before{ content:"Constructora"; }
.caseLogoCard--project{ grid-area: project; --entry-y: 22px; }
.caseLogoCard--project::before{ content:"Proyecto"; }
.caseLogoCard img{
  width:auto;
  max-width: min(100%, 360px);
  max-height: 126px;
  object-fit: contain;
  object-position:left center;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.10));
}
.caseLogoCard--project img{ max-height: 136px; }

.caseInfoPanel{
  grid-area: info;
  --entry-y: 28px;
  padding: 20px 18px 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.74));
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 18px 42px rgba(0,0,0,.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  filter: blur(5px);
}
body[data-theme="dark"] .caseInfoPanel{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 18px 42px rgba(0,0,0,.24);
}
.caseInfoPanel::before{
  content:"Ficha del proyecto";
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(245,179,0,.12);
  color: inherit;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.caseInfoPanel h4{
  margin:0 0 12px;
  font-size: clamp(20px, 1.6vw, 28px);
  line-height:1.05;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}
.caseEquipment{ margin:0; }
.caseEquipment__name{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin: 0 0 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(245,179,0,.14);
  font-size: 14px;
  font-weight: 900;
  line-height:1.1;
}
.caseEquipment__name::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:50%;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  box-shadow: 0 0 0 4px rgba(245,179,0,.16);
}
.caseSpecsList{
  margin:0;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.caseSpecsList div{
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(0,0,0,.035);
  border: 1px solid rgba(0,0,0,.05);
}
body[data-theme="dark"] .caseSpecsList div{
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.05);
}
.caseSpecsList dt{
  margin:0 0 5px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--muted);
}
.caseSpecsList dt::after{ content:""; }
.caseSpecsList dd{
  margin:0;
  font-size: clamp(15px, .98vw, 18px);
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap:anywhere;
}

.casePhoto{
  grid-area: photo;
  --entry-x: 38px;
  min-height: 0;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 5 / 6;
  justify-self: end;
  align-self: center;
  padding: 12px;
  border-radius: 30px 30px 96px 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(248,248,246,.82));
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 24px 56px rgba(0,0,0,.16);
  overflow:hidden;
  filter: blur(5px);
}
body[data-theme="dark"] .casePhoto{
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border-color: rgba(255,255,255,.08);
}
.casePhoto::before{
  content:"";
  position:absolute;
  inset: 11px;
  border-radius: 20px 20px 82px 20px;
  border: 1px solid rgba(245,179,0,.30);
  pointer-events:none;
  z-index:2;
}
.casePhoto::after{
  content:"Vista del proyecto";
  position:absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  z-index:2;
  padding-top: 18px;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,.34);
}
.casePhoto img{
  width:100%;
  height:100%;
  object-fit: cover;
  border-radius: 20px 20px 74px 20px;
  transform: scale(1.04);
  transition: transform .88s cubic-bezier(.22,.78,.22,1), filter .65s ease;
}

.caseSlide.is-active .caseSlogan,
.caseSlide.is-active .caseProjectTitle,
.caseSlide.is-active .caseLogoCard,
.caseSlide.is-active .caseInfoPanel,
.caseSlide.is-active .casePhoto{
  opacity:1;
  filter: blur(0);
  --entry-x: 0px;
  --entry-y: 0px;
  --entry-scale: 1;
}
.caseSlide.is-active .casePhoto img{ transform: scale(1); }
.caseSlide.is-active .caseProjectTitle{ transition-delay: .06s; }
.caseSlide.is-active .caseLogoCard--constructor{ transition-delay: .14s; }
.caseSlide.is-active .caseLogoCard--project{ transition-delay: .24s; }
.caseSlide.is-active .caseInfoPanel{ transition-delay: .18s; }
.caseSlide.is-active .casePhoto{ transition-delay: .22s; }
.caseSlide.is-active .caseSlogan{ transform: translateY(0); }

.casesNav{
  display:grid;
  grid-template-columns: 54px 1fr 54px;
  align-items:center;
  gap: 10px;
  margin-top: 12px;
}
.caseNavBtn{
  height:46px;
  width:54px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.72);
  color: var(--text);
  font-size:28px;
  font-weight:900;
  cursor:pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  box-shadow: 0 14px 26px rgba(0,0,0,.16);
}
body[data-theme="dark"] .caseNavBtn{
  border-color: rgba(255,255,255,.10);
  background: rgba(20,22,34,.72);
}
.caseNavBtn:hover{
  transform: translateY(-1px);
  border-color: rgba(245,179,0,.45);
  background: rgba(245,179,0,.18);
}
.caseDots{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  padding:0 6px;
}
.caseDot{
  width:9px;
  height:9px;
  border-radius:999px;
  border:0;
  cursor:pointer;
  background: rgba(0,0,0,.20);
  transition: transform .2s ease, background .2s ease, width .2s ease;
}
body[data-theme="dark"] .caseDot{ background: rgba(255,255,255,.24); }
.caseDot.is-active{
  width:28px;
  background: rgba(245,179,0,.95);
  transform: translateY(-1px);
}
.casesProgress{
  margin-top:10px;
  height:3px;
  border-radius:999px;
  background: rgba(0,0,0,.10);
  overflow:hidden;
}
body[data-theme="dark"] .casesProgress{ background: rgba(255,255,255,.12); }
.casesProgress__bar{
  display:block;
  height:100%;
  width:100%;
  transform-origin:left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  border-radius:999px;
}
@keyframes casesFill{ from{ transform: scaleX(0); } to{ transform: scaleX(1); } }

@media (max-width: 1180px){
  .caseShowcase{
    grid-template-columns: minmax(210px, 24%) minmax(290px, 33%) minmax(330px, 1.12fr);
    padding: 70px 24px 18px;
    column-gap: 22px;
    min-height: clamp(450px, 42vw, 560px);
  }
  .caseProjectTitle{ font-size: clamp(30px, 4vw, 58px); }
  .casePhoto{ max-width: 400px; }
}

@media (max-width: 980px){
  .caseShowcase{
    grid-template-columns: minmax(176px, 23%) minmax(270px, 34%) minmax(290px, 1fr);
    column-gap: 18px;
    padding: 70px 20px 18px;
    min-height: clamp(430px, 40vw, 520px);
  }
  .caseProjectTitle{ font-size: clamp(28px, 4.1vw, 46px); }
  .caseInfoPanel{ padding: 18px 16px 16px; }
  .caseSpecsList{ grid-template-columns: 1fr; }
  .caseLogoCard img{ max-height: 112px; }
  .caseLogoCard--project img{ max-height: 120px; }
  .casePhoto{ max-width: 360px; aspect-ratio: 4 / 5; }
}

@media (max-width: 780px){
  .cases{
    padding: 52px 0;
  }

  .cases__header{
    margin-bottom: 14px;
  }

  .casesCarousel{
    margin-top: 14px;
  }

  .casesFrame{
    border-radius: 22px;
  }

  .caseShowcase{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "title title"
      "constructor project"
      "info info"
      "photo photo";
    row-gap: 12px;
    column-gap: 12px;
    min-height: 0;
    padding: 56px 16px 16px;
  }

  .caseShowcase::before{
    inset: 10px;
    border-radius: 22px;
  }

  .caseShowcase::after{
    display:none;
  }

  .caseCount{
    top: 14px;
    left: 14px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .caseSlogan{
    top: 14px;
    right: 14px;
    max-width: 170px;
    text-align:right;
    font-size: 20px;
  }

  .caseProjectTitle{
    width:100%;
    font-size: clamp(26px, 8.2vw, 42px);
    line-height: .94;
  }

  .caseProjectTitle::before{
    margin-bottom: 8px;
    font-size: 10px;
    letter-spacing: .18em;
  }

  .caseProjectTitle::after{
    width: 118px;
    height: 5px;
    margin-top: 10px;
  }

  .caseLogoCard{
    gap: 7px;
    min-width: 0;
  }

  .caseLogoCard::before{
    font-size: 10px;
    letter-spacing: .13em;
  }

  .caseLogoCard img{
    max-width: 100%;
    max-height: 76px;
  }

  .caseLogoCard--project img{
    max-height: 82px;
  }

  .caseInfoPanel{
    padding: 14px;
    border-radius: 20px;
  }

  .caseInfoPanel::before{
    margin-bottom: 10px;
    padding: 6px 9px;
    font-size: 9.5px;
    letter-spacing: .12em;
  }

  .caseInfoPanel h4{
    margin-bottom: 10px;
    font-size: clamp(18px, 5vw, 22px);
    line-height: 1.08;
  }

  .caseEquipment__name{
    margin-bottom: 10px;
    padding: 6px 10px;
    font-size: 13px;
  }

  .caseSpecsList{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .caseSpecsList div{
    padding: 9px 10px;
    border-radius: 14px;
  }

  .caseSpecsList dt{
    margin-bottom: 4px;
    font-size: 9.5px;
    letter-spacing: .09em;
  }

  .caseSpecsList dd{
    font-size: 14px;
    line-height: 1.15;
  }

  .casePhoto{
    min-height: 0;
    max-width: none;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 8px;
    border-radius: 22px 22px 54px 22px;
  }

  .casePhoto::before{
    inset: 7px;
    border-radius: 16px 16px 44px 16px;
  }

  .casePhoto::after{
    left: 20px;
    right: 20px;
    bottom: 16px;
    padding-top: 12px;
    font-size: 9.5px;
    letter-spacing: .12em;
  }

  .casePhoto img{
    border-radius: 16px 16px 44px 16px;
  }

  .casesNav{
    grid-template-columns: 42px 1fr 42px;
    gap: 8px;
    margin-top: 10px;
  }

  .caseNavBtn{
    width: 42px;
    height: 40px;
    border-radius: 14px;
  }

  .caseDots{
    gap: 5px;
  }

  .caseDot{
    width:7px;
    height:7px;
  }

  .caseDot.is-active{
    width:18px;
  }

  .casesProgress{
    margin-top: 8px;
  }
}

@media (max-width: 560px){
  .caseShowcase{
    padding: 54px 12px 14px;
    row-gap: 10px;
    column-gap: 10px;
  }

  .caseSlogan{
    max-width: 150px;
    font-size: 18px;
  }

  .caseProjectTitle{
    font-size: clamp(25px, 9vw, 38px);
  }

  .caseLogoCard img{
    max-height: 66px;
  }

  .caseLogoCard--project img{
    max-height: 72px;
  }

  .caseInfoPanel{
    padding: 12px;
  }

  .caseInfoPanel h4{
    font-size: clamp(17px, 5vw, 20px);
  }

  .caseSpecsList{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .caseSpecsList div{
    padding: 8px 9px;
  }

  .caseSpecsList dd{
    font-size: 13.5px;
  }
}

@media (max-width: 420px){
  .caseShowcase{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "title title"
      "constructor project"
      "info info"
      "photo photo";
    padding: 52px 10px 14px;
    column-gap: 8px;
    row-gap: 10px;
  }

  .caseSlogan{
    display: none;
  }

  .caseProjectTitle{
    font-size: clamp(24px, 9.2vw, 34px);
  }

  .caseLogoCard{
    gap: 6px;
  }

  .caseLogoCard::before{
    font-size: 9px;
    letter-spacing: .11em;
  }

  .caseLogoCard img,
  .caseLogoCard--project img{
    max-width: 100%;
    max-height: 58px;
  }

  .caseInfoPanel{
    padding: 11px;
  }

  .caseInfoPanel h4{
    font-size: clamp(16px, 4.6vw, 19px);
  }

  .caseSpecsList{
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .caseSpecsList div{
    padding: 7px 8px;
  }

  .caseSpecsList dd{
    font-size: 12.8px;
  }

  .casePhoto{
    aspect-ratio: 4 / 3;
  }

  .casesNav{
    grid-template-columns: 38px 1fr 38px;
  }

  .caseNavBtn{
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 340px){
  .caseShowcase{
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "constructor"
      "project"
      "info"
      "photo";
  }

  .caseLogoCard img,
  .caseLogoCard--project img{
    max-height: 56px;
  }

  .caseSpecsList{
    grid-template-columns: 1fr;
  }
}


@media (max-width: 780px){
  .caseSlide.is-active .caseLogoCard,
  .caseSlide.is-active .caseInfoPanel,
  .caseSlide.is-active .casePhoto{
    --px: 0px !important;
    --py: 0px !important;
  }
}


/* Ajuste fino móvil: evita que el rótulo de la foto se corte hacia la izquierda */
@media (max-width: 780px){
  .casePhoto{
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
    transform: translate3d(0,0,0) !important;
  }

  .caseSlide.is-active .casePhoto{
    transform: translate3d(0,0,0) !important;
  }

  .casePhoto::after{
    left: 0;
    right: 0;
    bottom: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 16px 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    border-top: 1px solid rgba(255,255,255,.34);
  }
}

@media (max-width: 420px){
  .casePhoto::after{
    bottom: 10px;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 9px;
    letter-spacing: .08em;
  }
}

@media (prefers-reduced-motion: reduce){
  .casesTrack,
  .caseSlogan,
  .caseProjectTitle,
  .caseLogoCard,
  .caseInfoPanel,
  .casePhoto,
  .casePhoto img,
  .casesProgress__bar{
    transition: none !important;
    animation: none !important;
  }
}


.casesLegalNote{
  margin: 14px auto 0;
  max-width: 960px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.62);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
  text-align: center;
  box-shadow: 0 14px 30px rgba(0,0,0,.06);
}

body[data-theme="dark"] .casesLegalNote{
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.045);
}

@media (max-width: 780px){
  .casesLegalNote{
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 11.5px;
    line-height: 1.45;
    text-align: left;
  }
}

/* =========================================================
   TRUST LOGOS (Slider infinito)
========================================================= */
.srOnly{
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

.trust{
  padding-top: 76px;
  padding-bottom: 56px;
  background: radial-gradient(900px 280px at 50% 0%, rgba(245,179,0,.10), rgba(0,0,0,0)),
              linear-gradient(180deg, var(--bg), var(--soft));
}

.trust__wrap{
  text-align: center;
  margin-bottom: 20px;
}

.trust__kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.08);
  font-weight: 900;
  letter-spacing: .10em;
  font-size: 12px;
}

body[data-theme="dark"] .trust__kicker{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
}

.trust__title{
  margin: 12px 0 6px 0;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 950;
}

.trust__subtitle{
  margin: 0 auto;
  max-width: 780px;
  color: var(--muted);
  line-height: 1.6;
}

.logoMarquee{
  position: relative;
  overflow: hidden;
  padding: 14px 0 6px;
}

.logoMarquee::before,
.logoMarquee::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width: clamp(22px, 6vw, 84px);
  z-index: 2;
  pointer-events:none;
}

.logoMarquee::before{
  left:0;
  background: linear-gradient(90deg, var(--soft), rgba(255,255,255,0));
}

.logoMarquee::after{
  right:0;
  background: linear-gradient(270deg, var(--soft), rgba(255,255,255,0));
}

body[data-theme="dark"] .logoMarquee::before{
  background: linear-gradient(90deg, #0a0b0f, rgba(0,0,0,0));
}
body[data-theme="dark"] .logoMarquee::after{
  background: linear-gradient(270deg, #0a0b0f, rgba(0,0,0,0));
}

.logoMarquee__inner{
  display:flex;
  gap: 14px;
  align-items:center;
  width: max-content;
  padding-left: 10px;
  animation: logoMarqueeScroll 26s linear infinite;
  will-change: transform;
}

.logoItem{
  flex: 0 0 auto;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
  transform: translateZ(0);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}

body[data-theme="dark"] .logoItem{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}


body[data-theme="dark"] .logoItem span{
  color: rgba(255,255,255,.85);
}

.logoItem:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0,0,0,.16);
  border-color: rgba(245,179,0,.45);
}

/* =========================================================
   AJUSTE LOGOS - EMPRESAS QUE CONFÍAN
========================================================= */

.logoItem{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  padding: 10px 18px;
}

.logoItem span{
  display: flex;
  align-items: center;
  justify-content: center;
}

.logoItem img{
  display: block;
  width: auto;
  max-width: 120px;
  height: auto;
  max-height: 42px;
  object-fit: contain;
}

/* Logos un poco más compactos en tablet */
@media (max-width: 768px){
  .logoItem{
    min-height: 70px;
    padding: 10px 14px;
  }

  .logoItem img{
    max-width: 100px;
    max-height: 36px;
  }
}

/* Logos aún más ajustados en celular */
@media (max-width: 480px){
  .logoMarquee__inner{
    gap: 10px;
  }

  .logoItem{
    min-height: 62px;
    padding: 8px 12px;
  }

  .logoItem img{
    max-width: 82px;
    max-height: 30px;
  }
}

body[data-theme="dark"] .logoItem:hover{
  box-shadow: 0 22px 60px rgba(0,0,0,.55);
}

.logoMarquee:hover .logoMarquee__inner{
  animation-play-state: paused;
}

@keyframes logoMarqueeScroll{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* =========================================================
   JUSTIFICAR TEXTOS DESDE NOSOTROS HASTA EL FINAL
========================================================= */
#nosotros p,
#historia p,
#cifras p,
#servicios p,
#casos p,
#contacto p,
#contacto .footerText,
#contacto .footerLead,
#contacto .footerMeta{
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* =========================================================
   FOOTER (CONTACTO)
========================================================= */
.siteFooter{
  position: relative;
  background:
    radial-gradient(900px 320px at 18% -10%, rgba(245,179,0,.18), rgba(0,0,0,0)),
    radial-gradient(700px 260px at 85% 10%, rgba(0,77,150,.26), rgba(0,0,0,0)),
    linear-gradient(180deg, #0b2a4a 0%, #071a2f 100%);
  color: #f4f7ff;
  overflow: hidden;
}

.siteFooter__hazard{
  height: 12px;
  width: 100%;
  background:
    repeating-linear-gradient(
      135deg,
      #f5b300 0px,
      #f5b300 16px,
      rgba(0,0,0,0.85) 16px,
      rgba(0,0,0,0.85) 32px
    );
  opacity: .95;
  animation: footerStripes 6.5s linear infinite;
}

@keyframes footerStripes{
  from { background-position: 0 0; }
  to { background-position: 180px 0; }
}

.siteFooter__shine{
  position:absolute;
  inset:-40% -20%;
  pointer-events:none;
  background:
    radial-gradient(closest-side, rgba(255,255,255,.08), rgba(255,255,255,0) 70%),
    conic-gradient(from 180deg, rgba(245,179,0,.10), rgba(0,77,150,.08), rgba(255,255,255,0));
  filter: blur(24px);
  opacity: .55;
  transform: translate3d(-6%, -2%, 0) rotate(0deg);
  animation: footerShine 14s ease-in-out infinite;
}

@keyframes footerShine{
  0%   { transform: translate3d(-8%, -3%, 0) rotate(0deg); opacity: .45; }
  50%  { transform: translate3d(6%, 2%, 0) rotate(18deg); opacity: .70; }
  100% { transform: translate3d(-8%, -3%, 0) rotate(0deg); opacity: .45; }
}

.siteFooter__grid{
  position: relative;
  z-index: 2;
  display:grid;
  grid-template-columns: 1.2fr .95fr 1.1fr;
  gap: 16px;
  padding: 34px 0 22px;
}

.footerMap{
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 44px rgba(0,0,0,.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255,255,255,.06);
}

.footerMap__iframe{
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
}

.footerCol--brand,
.footerCol--services{
  min-width: 0;
}

.footerCol{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  padding: 18px 16px;
  box-shadow: 0 18px 44px rgba(0,0,0,.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateZ(0);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease;
}

.footerCol:hover{
  transform: translateY(-6px);
  border-color: rgba(245,179,0,.38);
  background: rgba(255,255,255,.08);
  box-shadow: 0 26px 70px rgba(0,0,0,.42);
}

.footerTitle{
  margin: 0 0 10px 0;
  font-weight: 950;
  letter-spacing: .02em;
  font-size: 16px;
}

.footerLead{
  margin: 0 0 10px 0;
  color: rgba(255,255,255,.82);
  line-height: 1.55;
}

.footerMeta{
  margin: 0 0 14px 0;
  color: rgba(255,255,255,.70);
  font-size: 14px;
}

.footerMuted{ opacity: .85; }

.footerDot{
  display:inline-block;
  margin: 0 8px;
  opacity: .85;
}

.footerInfo{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:10px;
}

.footerInfo li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color: rgba(255,255,255,.78);
  line-height: 1.35;
}

.footerIcon{
  width: 22px;
  height: 22px;
  display:grid;
  place-items:center;
  border-radius: 8px;
  background: rgba(245,179,0,.14);
  border: 1px solid rgba(245,179,0,.22);
  flex: 0 0 auto;
}

.footerList{
  list-style:none;
  padding:0;
  margin: 0;
  display:grid;
  gap: 10px;
}

.footerList--icons .footerLink{
  gap:10px;
}

.footerMiniIcon{
  width: 22px;
  height: 22px;
  display:grid;
  place-items:center;
  border-radius: 8px;
  background: rgba(0,77,150,.18);
  border: 1px solid rgba(0,77,150,.28);
  flex: 0 0 auto;
}

.footerLink{
  display:flex;
  align-items:center;
  color: rgba(255,255,255,.80);
  transition: transform .22s ease, color .22s ease, opacity .22s ease;
}

.footerLink:hover{
  color: #ffffff;
  transform: translateX(6px);
}

.footerCta{
  margin-top: 12px;
}

.footerBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(245,179,0,.18);
  border: 1px solid rgba(245,179,0,.32);
  color: #fff;
  font-weight: 950;
  letter-spacing: .02em;
  box-shadow: 0 18px 44px rgba(0,0,0,.25);
  transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.footerBtn:hover{
  transform: translateY(-3px);
  background: rgba(245,179,0,.26);
  border-color: rgba(245,179,0,.55);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}

.siteFooter__bottom{
  position: relative;
  z-index: 2;
  padding: 14px 0 26px;
}

.siteFooter__legal{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  justify-content:center;
  color: rgba(255,255,255,.72);
  font-weight: 700;
}

.siteFooter__topLink{
  color: rgba(255,255,255,.82);
  border-bottom: 1px dashed rgba(245,179,0,.55);
  padding-bottom: 2px;
  transition: color .22s ease, transform .22s ease, border-color .22s ease;
}

.siteFooter__topLink:hover{
  color: #fff;
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.70);
}

@media (max-width: 980px){
  .siteFooter__grid{
    grid-template-columns: 1fr 1fr;
  }

  .footerMap{
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px){
  .siteFooter__grid{
    grid-template-columns: 1fr;
  }

  .headerHazard{
    height: 10px;
  }

  .footerCol{
    padding: 18px 14px;
  }

  .footerMap__iframe{
    min-height: 260px;
  }
  .logoMarquee__inner{
    animation-duration: 20s;
  }
}

/* Reduced motion */

@media (max-width: 780px){
  .caseSlide.is-active .caseLogoCard,
  .caseSlide.is-active .caseInfoPanel,
  .caseSlide.is-active .casePhoto{
    --px: 0px !important;
    --py: 0px !important;
  }
}


/* Ajuste fino móvil: evita que el rótulo de la foto se corte hacia la izquierda */
@media (max-width: 780px){
  .casePhoto{
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
    transform: translate3d(0,0,0) !important;
  }

  .caseSlide.is-active .casePhoto{
    transform: translate3d(0,0,0) !important;
  }

  .casePhoto::after{
    left: 0;
    right: 0;
    bottom: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 16px 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    border-top: 1px solid rgba(255,255,255,.34);
  }
}

@media (max-width: 420px){
  .casePhoto::after{
    bottom: 10px;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 9px;
    letter-spacing: .08em;
  }
}

@media (prefers-reduced-motion: reduce){
  .logoMarquee__inner{ animation: none !important; transform: none !important; }
  .siteFooter__hazard{ animation: none !important; }
  .siteFooter__shine{ animation: none !important; }
  .footerCol,
  .footerBtn,
  .footerLink{ transition: none !important; }
}

/* =========================================================
   AJUSTES MOBILE + TEXTO SIN CORTES CON GUION
========================================================= */

/* 1) Justificado real, pero sin partir palabras */
section p,
section li,
.siteFooter p,
.siteFooter li,
.siteFooter a {
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
}

/* Mantener centrados los textos que sí deben ir centrados */
.servicios__header,
.stats,
.stat,
.siteFooter__legal {
  text-align: initial;
}

.servicios__header *,
.stat *,
.siteFooter__legal * {
  text-align: inherit;
}

/* 2) Footer más amigable en celular */
@media (max-width: 768px){
  .siteFooter__grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footerCol{
    padding: 16px 14px;
    border-radius: 16px;
  }

  .footerBtn{
    width: 100%;
  }

  .siteFooter iframe{
    width: 100%;
    max-width: 100%;
    min-height: 220px;
    border: 0;
  }

  .siteFooter__legal{
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

/* 3) Servicios: en celular dejar 2 tarjetas por fila */
@media (max-width: 620px){
  .servicios{
    padding: 62px 0;
  }

  .servicios__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .serviceCard{
    border-radius: 14px;
  }

  .serviceCard__media{
    aspect-ratio: 1 / 1;
  }

  .serviceCard__body{
    padding: 12px;
    gap: 8px;
  }

  .serviceCard__title{
    font-size: 14px;
    line-height: 1.2;
  }

  .serviceCard__text{
    font-size: 12.5px;
    line-height: 1.35;
  }

  .serviceCard__btn{
    width: 100%;
    justify-content: center;
    padding: 10px 10px;
    font-size: 13px;
  }

  .serviceCard__overlay{
    padding: 12px;
  }

  .serviceCard__overlay h3{
    font-size: 14px;
    line-height: 1.2;
  }

  .serviceCard__overlay p{
    font-size: 12px;
    line-height: 1.3;
  }
}

/* 4) Contadores: en celular dejar 2 por fila y más compactos */
@media (max-width: 520px){
  .section.stats{
    padding: 46px 0;
  }

  .stats__wrap{
    width: min(100%, calc(100% - 18px));
    margin: 0 auto;
  }

  .stats__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat{
    padding: 20px 12px;
    min-height: auto;
    border-right: 1px solid rgba(255,255,255,.16);
    border-bottom: 1px solid rgba(255,255,255,.16);
  }

  .stat:nth-child(2n){
    border-right: 0;
  }

  .stat:nth-last-child(-n+2){
    border-bottom: 0;
  }

  .stat__num{
    font-size: clamp(34px, 9vw, 48px);
    line-height: 1;
  }

  .stat__label{
    font-size: 14px;
    line-height: 1.25;
  }

  .stat__sub{
    font-size: 11px;
    line-height: 1.3;
  }
}

/* 5) Solo en pantallas extremadamente angostas, volver a 1 columna */
@media (max-width: 340px){
  .servicios__grid,
  .stats__grid{
    grid-template-columns: 1fr;
  }

  .stat{
    border-right: 0;
  }

  .stat:not(:last-child){
    border-bottom: 1px solid rgba(255,255,255,.16);
  }
}

/* =========================================================
   TEXTO JUSTIFICADO SIN CORTES DE PALABRA
========================================================= */

.storyCard__text,
.storyValues__subtitle,
.valueRow__desc,
.nosotros__lead,
.nosotros__banner,
.section__text,
.siteFooter p,
.siteFooter li,
.siteFooter a {
  text-align: justify !important;
  text-justify: inter-word;
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;
  hyphens: none !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  white-space: normal !important;
  line-break: auto !important;
  text-wrap: pretty;
}

/* En grids/flex, evita compresiones raras del texto */
.storyCard,
.valuesCard,
.valueRow__text,
.nosotros__content {
  min-width: 0;
}

/* Un poco más de aire en móvil para que no queden líneas tan forzadas */
@media (max-width: 640px){
  .storyCard,
  .valuesCard {
    padding: 16px 14px;
  }

  .story__twocol{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .storyCard__text,
  .valueRow__desc,
  .nosotros__lead,
  .nosotros__banner {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* =========================================================
   PERSONAL CAPACITADO
========================================================= */
.crew{
  padding: 88px 0;
  background:
    radial-gradient(900px 420px at 12% 18%, rgba(255,255,255,.10), transparent 0%),
    radial-gradient(900px 420px at 88% 16%, rgba(255,255,255,.10), transparent 0%),
    linear-gradient(180deg, var(--bg), var(--soft));
}

body[data-theme="dark"] .crew{
  background:
    radial-gradient(900px 420px at 12% 18%, rgba(0,77,150,.18), transparent 60%),
    radial-gradient(900px 420px at 88% 16%, rgba(245,179,0,.10), transparent 60%),
    var(--bg);
}

.crew__wrap{
  position: relative;
}

.crew__header{
  max-width: 920px;
  margin: 0 auto 28px auto;
  text-align: center;
}

.crew__kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  color: var(--muted);
}

.crew__kicker::before{
  content: "";
  width: 44px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow), var(--detail));

}

.crew__title{
  margin: 12px 0 10px 0;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 980;
  line-height: 1.06;
  letter-spacing: -.02em;
}

.crew__subtitle{
  margin: 0 auto;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.65;
  text-align: center;
}

.crew__grid{
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.crew__imageCard{
  position: relative;
  height: 100%;
  min-height: 460px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--nav-border);
}

.crew__image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.crew__imageOverlay{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.0), rgba(255,255,255,.11)),
    radial-gradient(circle at 50% 5%, rgba(255,255,255,.18), transparent 10%);
}

.crew__floatingBadge{
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.4);
  color: #121317;
  backdrop-filter: blur(10px);
}

.crew__floatingBadge strong{
  font-size: 24px;
  line-height: 1;
  font-weight: 1000;
  color: var(--orange);
}

.crew__floatingBadge span{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.crew__content{
  display: grid;
  gap: 18px;
}

.crew__panel{
  background: var(--card);
  border: 1px solid var(--nav-border);
  border-radius: 22px;
  padding: 24px 24px 22px;
  box-shadow: 0 18px 44px rgba(0,0,0,.10);
}

.crew__panelTitle{
  margin: 0 0 12px 0;
  font-size: 22px;
  font-weight: 980;
  line-height: 1.1;
}

.crew__text{
  margin: 0 0 12px 0;
  color: var(--muted);
  line-height: 1.7;
  text-align: justify;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

.crew__list{
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: grid;
  gap: 10px;
}

.crew__list li{
  position: relative;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.55;
  text-align: justify;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

.crew__list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow), var(--detail));
  box-shadow: 0 0 0 4px rgba(245,179,0,.14);
}

.crew__certs{
  background: var(--card);
  border: 1px solid var(--nav-border);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 18px 44px rgba(0,0,0,.08);
}

.crew__certsHead{
  margin-bottom: 10px;
}

.crew__certsLabel{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.crew__certsLabel::before{
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(255,255,255,.1);
}

.crew__certsGrid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.crewCert{
  min-height: 94px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--nav-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

body[data-theme="dark"] .crewCert{
  background: rgba(255,255,255,.04);
}

.crewCert img{
  width: auto;
  max-width: 100%;
  max-height: 46px;
  object-fit: contain;
  display: block;
  filter: grayscale(1);
  opacity: .9;
  transition: transform .22s ease, filter .22s ease, opacity .22s ease;
}

.crewCert:hover img{
  transform: translateY(-2px);
  filter: grayscale(0);
  opacity: 1;
}

@media (max-width: 980px){
  .crew__grid{
    grid-template-columns: 1fr;
  }

  .crew__imageCard{
    min-height: 360px;
  }

  .crew__certsGrid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px){
  .crew{
    padding: 68px 0;
  }

  .crew__panel,
  .crew__certs{
    border-radius: 18px;
    padding: 16px;
  }

  .crew__imageCard{
    min-height: 280px;
    border-radius: 18px;
  }

  .crew__floatingBadge{
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 10px 12px;
  }

  .crew__certsGrid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .crewCert{
    min-height: 82px;
    border-radius: 14px;
  }

  .crewCert img{
    max-height: 36px;
  }
}

/* =========================================================
   SERVICIOS - Microinteracción temporal profesional
   - Escritorio: puntero de mouse con movimiento de hover
   - Móvil: mano con dedo índice indicando tap
   - La animación se activa por JS al entrar a la sección y cada 10s
========================================================= */

.servicios__subtitle{
  max-width: 680px;
  font-size: 16px;
}

.serviceCard{
  position: relative;
  transform: translateY(0);
  transition:
    transform .28s ease,
    box-shadow .28s ease,
    border-color .28s ease;
}

.serviceCard:hover,
.serviceCard.is-active,
.serviceCard:focus-within{
  transform: translateY(-4px);
  border-color: rgba(245,179,0,.46);
  box-shadow:
    0 24px 70px rgba(0,0,0,.16),
    0 0 0 1px rgba(245,179,0,.12);
}

.serviceCard__media{
  isolation: isolate;
  overflow: hidden;
  background: #090b10;
}

.serviceCard__media img{
  position: relative;
  z-index: 0;
  transition:
    transform .42s ease,
    filter .42s ease;
}

.serviceCard:hover .serviceCard__media img,
.serviceCard.is-active .serviceCard__media img,
.serviceCard:focus-within .serviceCard__media img{
  transform: scale(1.075);
  filter: saturate(1.05) contrast(1.03) brightness(.9);
}

/*
  Indicador único y temporal.
  No es botón, no tiene texto y no permanece visible.
*/
.serviceCard__cue{
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity .22s ease;
}

.servicios.is-cue-visible .serviceCard__cue{
  opacity: 1;
}

.serviceCard:hover .serviceCard__cue,
.serviceCard.is-active .serviceCard__cue,
.serviceCard:focus-within .serviceCard__cue{
  opacity: 0;
}

/* Halo sutil que acompaña el gesto, no compite con el contenido */
.serviceCard__cue::before{
  content: "";
  position: absolute;
  left: 62%;
  top: 27%;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(245,179,0,.34) 0 18%, rgba(245,179,0,.16) 19% 38%, transparent 70%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.20);
  transform: translate(-50%, -50%) scale(.55);
  opacity: 0;
}

/* Puntero escritorio */
.serviceCard__cueMouse{
  position: absolute;
  left: 68%;
  top: 20%;
  z-index: 2;
  width: 42px;
  height: 42px;
  opacity: 0;
  transform-origin: 10% 10%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M10 5 50 35 33.2 38.1 43.4 56.3 35.7 60.6 25.7 42.5 14.7 55.3 10 5Z' fill='%23ffffff' stroke='%23121317' stroke-width='3.2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  filter:
    drop-shadow(0 14px 22px rgba(0,0,0,.42))
    drop-shadow(0 0 10px rgba(245,179,0,.22));
}

.serviceCard__cueTap{
  display: none;
}

.servicios.is-cue-visible .serviceCard__cue::before{
  animation: serviceMouseHalo 3.1s cubic-bezier(.18,.72,.28,1) both;
}

.servicios.is-cue-visible .serviceCard__cueMouse{
  animation: serviceMouseHoverCue 3.1s cubic-bezier(.18,.72,.28,1) both;
}

/* Stagger muy leve para que no se vea mecánico */
.servicios.is-cue-visible .serviceCard:nth-child(1) .serviceCard__cue::before,
.servicios.is-cue-visible .serviceCard:nth-child(1) .serviceCard__cueMouse{ animation-delay: 0s; }
.servicios.is-cue-visible .serviceCard:nth-child(2) .serviceCard__cue::before,
.servicios.is-cue-visible .serviceCard:nth-child(2) .serviceCard__cueMouse{ animation-delay: .08s; }
.servicios.is-cue-visible .serviceCard:nth-child(3) .serviceCard__cue::before,
.servicios.is-cue-visible .serviceCard:nth-child(3) .serviceCard__cueMouse{ animation-delay: .16s; }
.servicios.is-cue-visible .serviceCard:nth-child(4) .serviceCard__cue::before,
.servicios.is-cue-visible .serviceCard:nth-child(4) .serviceCard__cueMouse{ animation-delay: .24s; }
.servicios.is-cue-visible .serviceCard:nth-child(5) .serviceCard__cue::before,
.servicios.is-cue-visible .serviceCard:nth-child(5) .serviceCard__cueMouse{ animation-delay: .32s; }
.servicios.is-cue-visible .serviceCard:nth-child(6) .serviceCard__cue::before,
.servicios.is-cue-visible .serviceCard:nth-child(6) .serviceCard__cueMouse{ animation-delay: .40s; }

.serviceCard__overlay{
  z-index: 3;
  padding: 18px 18px 20px 18px;
  align-content: end;
  background:
    linear-gradient(180deg, rgba(5,7,12,.04) 0%, rgba(5,7,12,.72) 55%, rgba(5,7,12,.94) 100%),
    radial-gradient(circle at 18% 16%, rgba(245,179,0,.30), transparent 42%);
  color: #fff;
  opacity: 0;
  transform: translateY(12px) scale(.985);
  transition:
    opacity .28s ease,
    transform .28s ease;
}

.serviceCard__overlay::before{
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow), var(--detail), transparent 78%);
  opacity: .9;
  pointer-events: none;
}

.serviceCard__overlay h3{
  position: relative;
  margin-bottom: 2px;
  color: #fff;
  text-shadow: 0 12px 28px rgba(0,0,0,.42);
}

.serviceCard__overlay p{
  color: rgba(255,255,255,.88);
  opacity: 1;
  padding-bottom: 10px;
}

.serviceCard:hover .serviceCard__overlay,
.serviceCard.is-active .serviceCard__overlay,
.serviceCard:focus-within .serviceCard__overlay{
  opacity: 1;
  transform: translateY(0) scale(1);
}

.serviceCard__title{
  transition: color .22s ease;
}

.serviceCard:hover .serviceCard__title,
.serviceCard.is-active .serviceCard__title,
.serviceCard:focus-within .serviceCard__title{
  color: var(--blue);
}

body[data-theme="dark"] .serviceCard:hover .serviceCard__title,
body[data-theme="dark"] .serviceCard.is-active .serviceCard__title,
body[data-theme="dark"] .serviceCard:focus-within .serviceCard__title{
  color: var(--yellow);
}

@keyframes serviceMouseHoverCue{
  0%{
    opacity: 0;
    transform: translate(18px, -10px) scale(.92) rotate(-6deg);
  }
  16%{
    opacity: 1;
  }
  44%{
    opacity: 1;
    transform: translate(-18px, 18px) scale(1) rotate(-6deg);
  }
  58%{
    opacity: 1;
    transform: translate(-22px, 22px) scale(.92) rotate(-6deg);
  }
  72%{
    opacity: 1;
    transform: translate(-18px, 18px) scale(1) rotate(-6deg);
  }
  88%{
    opacity: .92;
  }
  100%{
    opacity: 0;
    transform: translate(-8px, 12px) scale(.98) rotate(-6deg);
  }
}

@keyframes serviceMouseHalo{
  0%, 24%{
    opacity: 0;
    transform: translate(-50%, -50%) scale(.45);
  }
  45%{
    opacity: .95;
    transform: translate(-50%, -50%) scale(.82);
  }
  62%{
    opacity: .35;
    transform: translate(-50%, -50%) scale(1.16);
  }
  100%{
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.45);
  }
}

@keyframes serviceTapHandCue{
  0%{
    opacity: 0;
    transform: translate(-50%, -38%) scale(.96);
  }
  16%{
    opacity: 1;
    transform: translate(-50%, -45%) scale(1);
  }
  40%{
    opacity: 1;
    transform: translate(-50%, -45%) scale(1);
  }
  56%{
    opacity: 1;
    transform: translate(-50%, -33%) scale(.91);
  }
  72%{
    opacity: 1;
    transform: translate(-50%, -45%) scale(1);
  }
  88%{
    opacity: .92;
  }
  100%{
    opacity: 0;
    transform: translate(-50%, -42%) scale(.98);
  }
}

@keyframes serviceTapHalo{
  0%, 34%{
    transform: translate(-50%, -50%) scale(.42);
    opacity: 0;
  }
  52%{
    opacity: .55;
  }
  100%{
    transform: translate(-50%, -50%) scale(1.85);
    opacity: 0;
  }
}

@media (max-width: 620px){
  .servicios__subtitle{
    font-size: 14px;
  }

  .serviceCard__cue::before{
    left: 50%;
    top: 34%;
    width: 58px;
    height: 58px;
    background:
      radial-gradient(circle, rgba(245,179,0,.36) 0 18%, rgba(245,179,0,.16) 20% 42%, transparent 72%);
  }

  .serviceCard__cueMouse{
    display: none;
  }

  .serviceCard__cueTap{
    display: block;
    position: absolute;
    left: 50%;
    top: 37%;
    z-index: 2;
    width: 42px;
    height: 42px;
    opacity: 0;
    transform: translate(-50%, -45%);
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M31 5.5c4.2 0 7.5 3.3 7.5 7.5v16.7l1.7-1.2c2.2-1.5 5.2-1.2 7.1.7 1.4 1.4 2 3.4 1.6 5.3l-.1.5 1.2-.3c2.7-.7 5.4.6 6.7 3.1.8 1.5.9 3.2.4 4.8l-2.8 8.6c-1.8 5.2-6.6 8.8-12.2 8.8H29.9c-4.5 0-8.6-2.1-11.2-5.8L9.3 41.1c-2-2.9-1.2-6.9 1.7-8.8 2.5-1.7 5.8-1.4 7.9.8l4.6 4.6V13c0-4.2 3.3-7.5 7.5-7.5Z' fill='%23ffffff' stroke='%23121317' stroke-width='3.3' stroke-linejoin='round'/%3E%3Cpath d='M31 11.5c-.9 0-1.5.7-1.5 1.5v32.8c0 1.2-.7 2.2-1.8 2.7-1.1.4-2.4.2-3.2-.7L14.8 38c-.2-.2-.5-.2-.7-.1-.3.2-.4.6-.2.9l9.5 13.2c1.5 2.1 3.9 3.3 6.5 3.3H42c3.1 0 5.9-2 6.9-4.9l2.8-8.6v-.3l-.3.1-4.8 1.2c-1.1.3-2.3-.1-3-1-.7-.9-.8-2.1-.4-3.2l1.3-2.9c.1-.3.1-.6-.1-.8-.2-.2-.6-.3-.9-.1l-4.3 2.9c-.9.6-2.1.7-3.1.2-1-.5-1.6-1.5-1.6-2.7V13c0-.8-.7-1.5-1.5-1.5Z' fill='%23ffffff'/%3E%3C/svg%3E") center / contain no-repeat;
    filter:
      drop-shadow(0 14px 22px rgba(0,0,0,.44))
      drop-shadow(0 0 10px rgba(245,179,0,.24));
  }

  .servicios.is-cue-visible .serviceCard__cue::before{
    animation: serviceTapHalo 2.9s ease-out both;
  }

  .servicios.is-cue-visible .serviceCard__cueTap{
    animation: serviceTapHandCue 2.9s cubic-bezier(.18,.72,.28,1) both;
  }

  .servicios.is-cue-visible .serviceCard:nth-child(1) .serviceCard__cue::before,
  .servicios.is-cue-visible .serviceCard:nth-child(1) .serviceCard__cueTap{ animation-delay: 0s; }
  .servicios.is-cue-visible .serviceCard:nth-child(2) .serviceCard__cue::before,
  .servicios.is-cue-visible .serviceCard:nth-child(2) .serviceCard__cueTap{ animation-delay: .06s; }
  .servicios.is-cue-visible .serviceCard:nth-child(3) .serviceCard__cue::before,
  .servicios.is-cue-visible .serviceCard:nth-child(3) .serviceCard__cueTap{ animation-delay: .12s; }
  .servicios.is-cue-visible .serviceCard:nth-child(4) .serviceCard__cue::before,
  .servicios.is-cue-visible .serviceCard:nth-child(4) .serviceCard__cueTap{ animation-delay: .18s; }
  .servicios.is-cue-visible .serviceCard:nth-child(5) .serviceCard__cue::before,
  .servicios.is-cue-visible .serviceCard:nth-child(5) .serviceCard__cueTap{ animation-delay: .24s; }
  .servicios.is-cue-visible .serviceCard:nth-child(6) .serviceCard__cue::before,
  .servicios.is-cue-visible .serviceCard:nth-child(6) .serviceCard__cueTap{ animation-delay: .30s; }

  .serviceCard__overlay{
    padding: 15px 15px 18px 15px;
  }

  .serviceCard__overlay::before{
    left: 15px;
    right: 15px;
    bottom: 12px;
  }
}


@media (max-width: 780px){
  .caseSlide.is-active .caseLogoCard,
  .caseSlide.is-active .caseInfoPanel,
  .caseSlide.is-active .casePhoto{
    --px: 0px !important;
    --py: 0px !important;
  }
}


/* Ajuste fino móvil: evita que el rótulo de la foto se corte hacia la izquierda */
@media (max-width: 780px){
  .casePhoto{
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
    transform: translate3d(0,0,0) !important;
  }

  .caseSlide.is-active .casePhoto{
    transform: translate3d(0,0,0) !important;
  }

  .casePhoto::after{
    left: 0;
    right: 0;
    bottom: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 16px 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    border-top: 1px solid rgba(255,255,255,.34);
  }
}

@media (max-width: 420px){
  .casePhoto::after{
    bottom: 10px;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 9px;
    letter-spacing: .08em;
  }
}

@media (prefers-reduced-motion: reduce){
  .serviceCard,
  .serviceCard__media img,
  .serviceCard__cue,
  .serviceCard__cue::before,
  .serviceCard__cueMouse,
  .serviceCard__cueTap,
  .serviceCard__overlay,
  .serviceCard__title{
    transition: none;
    animation: none;
  }
}
