/* ==========================================================
   NJ Ingeniería y Servicios S.A.S. · Sitio web
   Estilos generales
   ========================================================== */

/* ---------- Fuentes (alojadas en el sitio) ---------- */
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* ---------- Colores y medidas de la marca ---------- */
:root {
  --marca: #24494F;
  --marca-2: #2B5058;
  --marca-claro: #4D8A90;
  --salvia: #7A8B8C;
  --pizarra: #5A6E70;
  --tinta: #1B2B2E;
  --gris-txt: #8C9A9B;
  --linea: #E2E1DB;
  --suave: #F5F5F3;
  --crema: #F1F0EB;
  --blanco: #FFFFFF;
  --oscuro: #142527;
  --verde-wa: #1F9D55;

  --titulos: "Poppins", "Segoe UI", system-ui, sans-serif;
  --texto: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --ancho: 1080px;
  --radio: 22px;
  --sombra: 0 18px 50px rgba(20, 37, 39, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; font-family: var(--texto); font-size: 17px; line-height: 1.55; color: var(--tinta); background: var(--blanco); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--titulos); margin: 0; }
.ico { width: 18px; height: 18px; flex: none; }
[hidden] { display: none !important; }
.oculto { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--marca); color: #fff; padding: 10px 16px; border-radius: 10px; }
.saltar:focus { top: 12px; }
:focus-visible { outline: 3px solid rgba(77, 138, 144, 0.55); outline-offset: 2px; }

.contenedor { width: min(var(--ancho), 100% - 40px); margin-inline: auto; }
.centrado { text-align: center; }

/* ---------- Botones y enlaces ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 1px solid transparent; font-family: var(--texto); font-weight: 600; font-size: 17px; line-height: 1; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-marca { background: var(--marca); color: #fff; box-shadow: 0 10px 26px rgba(36, 73, 79, 0.28); }
.btn-marca:hover { background: var(--marca-2); }
.btn-oscuro { background: var(--tinta); color: #fff; }
.btn-oscuro:hover { background: #000; }
.btn-claro { background: #fff; color: var(--marca); }
.btn-wa { background: var(--verde-wa); color: #fff; }
.btn-chico { min-height: 38px; padding: 9px 18px; font-size: 15px; }
.btn .ico { width: 18px; height: 18px; }
.enlace { color: var(--marca); font-weight: 600; font-size: 17px; }
.enlace:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Barra superior ---------- */
.barra-superior { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 32px; padding: 6px 16px; background: var(--oscuro); color: #B9CDCF; font-size: 13px; line-height: 1.2; flex-wrap: wrap; }
.barra-superior strong { color: #fff; font-weight: 600; }
.barra-superior .ico { width: 15px; height: 15px; color: #9CC3C6; }
.barra-superior .sep { opacity: .5; }

/* ---------- Encabezado ---------- */
.encabezado { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid rgba(27, 43, 46, 0.07); }
.encabezado-in { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.marca { display: flex; align-items: center; gap: 10px; flex: none; }
.marca img { width: 30px; height: 32px; }
.marca-txt { display: flex; flex-direction: column; line-height: 1.05; }
.marca-txt strong { font-family: var(--titulos); font-weight: 700; font-size: 15px; letter-spacing: .02em; color: var(--marca); }
.marca-txt small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: var(--pizarra); margin-top: 3px; }
.menu { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.menu a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: #3C4F52; transition: background .2s, color .2s; }
.menu a .ico { width: 16px; height: 16px; color: var(--pizarra); }
.menu a:hover { background: var(--crema); }
.menu a.activo { background: #E6EEEE; color: var(--marca); }
.menu a.activo .ico { color: var(--marca); }
.encabezado-cta { flex: none; }
.menu-boton { display: none; width: 42px; height: 42px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; padding: 10px; }
.menu-boton span { display: block; height: 2px; margin: 5px 0; background: var(--tinta); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-boton[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-boton[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-boton[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Inicio ---------- */
.inicio { 
  position: relative; 
  overflow: hidden; 
  padding: 84px 0 40px; 
  text-align: center; 
  /* Truco para forzar el ancho completo (Full-Bleed) ignorando el .contenedor */
  width: 100vw; 
  margin-left: calc(50% - 50vw); 
}
.inicio-in { position: relative; z-index: 1; padding: 0 20px; /* Mantiene el texto separado de los bordes */ }
.sobre-titulo { margin: 0 0 18px; font-family: var(--mono); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--pizarra); }
.sobre-titulo.claro { color: #A9C0C2; }
.titulo-inicio { font-weight: 700; font-size: clamp(42px, 6.6vw, 86px); line-height: 1.02; letter-spacing: -0.045em; color: var(--marca); }
.titulo-inicio span { display: block; padding-bottom: .06em; background: linear-gradient(92deg, var(--marca) 0%, var(--marca-claro) 55%, var(--salvia) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.verbos { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 30px; list-style: none; margin: 34px 0 0; padding: 0; }
.verbos li { position: relative; font-family: var(--titulos); font-weight: 600; font-size: clamp(17px, 1.9vw, 22px); color: var(--gris-txt); letter-spacing: -0.01em; animation: verbo-color 8s infinite; }
.verbos li + li::before { content: "›"; position: absolute; left: -20px; color: #C9C7BC; font-weight: 500; }
.verbos li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 2px; background: var(--marca); transform: scaleX(0); transform-origin: left; animation: verbo-linea 8s infinite; }
.verbos li:nth-child(2), .verbos li:nth-child(2)::after { animation-delay: 2s; }
.verbos li:nth-child(3), .verbos li:nth-child(3)::after { animation-delay: 4s; }
.verbos li:nth-child(4), .verbos li:nth-child(4)::after { animation-delay: 6s; }
@keyframes verbo-color { 0%, 30%, 100% { color: var(--gris-txt); } 6%, 24% { color: var(--marca); } }
@keyframes verbo-linea { 0% { transform: scaleX(0); opacity: 1; } 12% { transform: scaleX(1); opacity: 1; } 24% { transform: scaleX(1); opacity: 1; } 30%, 100% { transform: scaleX(1); opacity: 0; } }
.inicio-sub { max-width: 640px; margin: 26px auto 0; font-size: clamp(18px, 1.8vw, 21px); color: var(--pizarra); }
.acciones { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 30px; margin-top: 30px; }

/* Ajustes del video para que ocupe todo el ancho */
.video-escena { 
  position: relative; 
  margin: 46px auto 0; 
  width: 100vw; 
  margin-left: calc(50% - 50vw); 
  max-width: none; 
}

.video-marco { 
  position: relative; 
  width: 100%; 
  aspect-ratio: 16 / 9; /* Esto obliga al marco a respetar siempre la proporción del video */
  max-height: none;     /* <--- Eliminamos el límite de altura que causaba el recorte */
  border-radius: 0; 
  overflow: hidden; 
  background: #0E1E20; 
  box-shadow: 0 34px 80px rgba(20, 37, 39, 0.20), 0 0 0 1px rgba(36, 73, 79, 0.10); 
}

.video-nj { 
  display: block; 
  width: 100%; 
  height: 100%; 
  object-fit: contain;  /* <--- 'contain' asegura que se vea el 100% del video sin cortes */
}
.video-controles { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 8px; }
html:not(.js) .video-controles { display: none; }
.video-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; min-width: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.38); background: rgba(14, 30, 32, 0.46); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-weight: 600; font-size: 14.5px; cursor: pointer; transition: background .2s, border-color .2s; }
.video-btn:hover { background: rgba(14, 30, 32, 0.66); border-color: rgba(255, 255, 255, 0.6); }
.video-btn:first-child { padding: 0; width: 42px; }
.video-btn .ico { width: 18px; height: 18px; }

/* Añadí text-align: center para que el texto de abajo no quede tirado a la izquierda */
.video-escena figcaption { margin-top: 18px; font-size: 15px; color: var(--pizarra); padding: 0 20px; text-align: center; }
.video-escena figcaption a { color: var(--marca); font-weight: 600; }
/* ---------- Secciones ---------- */
.seccion { padding: 120px 0; }
.seccion.gris { background: var(--suave); }
.seccion.oscura { background: linear-gradient(160deg, #1D3A3F 0%, var(--oscuro) 70%); color: #fff; }
.titulo-sec { font-weight: 700; font-size: clamp(38px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.04em; color: var(--marca); }
.seccion.oscura .titulo-sec { color: #fff; }
.intro-grande { max-width: 860px; margin: 22px auto 0; font-family: var(--titulos); font-weight: 600; font-size: clamp(20px, 2.3vw, 29px); line-height: 1.3; letter-spacing: -0.02em; color: var(--gris-txt); }
.intro-grande strong { color: var(--tinta); font-weight: 600; }
.seccion.oscura .intro-grande { color: rgba(255, 255, 255, 0.6); }
.seccion.oscura .intro-grande strong { color: #fff; }
.intro-grande + .enlace { display: inline-block; margin-top: 18px; }
.sub-sec { margin: 84px 0 0; font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; color: var(--marca); }
.sub-txt { margin: 52px 0 0; font-family: var(--titulos); font-weight: 600; font-size: 20px; color: var(--pizarra); }
.nota { max-width: 680px; margin: 28px auto 30px; font-size: 15px; color: var(--pizarra); }

/* Cifras */
.cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 860px; margin: 60px auto 0; }
.cifras strong { display: block; font-family: var(--titulos); font-weight: 700; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.05; letter-spacing: -0.04em; color: var(--tinta); }
.cifras span { display: block; margin-top: 6px; font-size: 14.5px; color: var(--pizarra); }

/* Tarjetas */
.tarjetas-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 60px; text-align: left; }
.tarjeta { padding: 28px 26px; border-radius: var(--radio); background: var(--suave); }
.tarjeta h3 { font-weight: 600; font-size: 20px; letter-spacing: -0.02em; color: var(--tinta); }
.tarjeta p { margin: 10px 0 0; font-size: 15.5px; color: var(--pizarra); }

/* ---------- Bento (tarjetas en mosaico) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 250px; gap: 16px; margin-top: 56px; text-align: left; }
.caja { position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: var(--radio); background: var(--suave); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.seccion.gris .caja { background: var(--blanco); }
.caja:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.caja h3 { position: relative; z-index: 1; font-weight: 600; font-size: 21px; line-height: 1.15; letter-spacing: -0.02em; color: var(--tinta); }
.caja p { position: relative; z-index: 1; margin: 10px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--pizarra); max-width: 92%; }
.caja .enlace { position: relative; z-index: 1; margin-top: auto; font-size: 15px; }
.caja-num { font-family: var(--mono); font-size: 12px; color: var(--salvia); margin-bottom: 10px; }
.caja-img { position: relative; flex: 1 1 0; min-height: 0; align-self: flex-end; width: 64%; max-width: none; height: auto; margin: 8px -10px -10px 0; object-fit: contain; object-position: right bottom; filter: drop-shadow(0 10px 12px rgba(20, 37, 39, 0.18)); transform-origin: right bottom; transition: transform .35s ease; }
.caja:hover .caja-img { transform: scale(1.04); }
.caja .caja-img ~ .enlace { position: absolute; left: 24px; bottom: 22px; margin: 0; }
.caja-oscura { background: linear-gradient(150deg, #2B5058 0%, #172F32 100%) !important; }
.caja-oscura h3 { color: #fff; }
.caja-oscura p { color: rgba(255, 255, 255, 0.72); }
.caja-oscura .enlace { color: #BFE0E3; }
.caja-oscura .caja-num { color: #9CC3C6; }
.caja-foto { padding: 0; justify-content: flex-end; background: #102224 !important; }
.caja-foto > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.caja-foto:hover > img { transform: scale(1.04); }
.caja-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 34, 36, 0) 30%, rgba(16, 34, 36, 0.88) 100%); }
.caja-foto-txt { position: relative; z-index: 1; display: flex; flex-direction: column; padding: 26px; }
.caja-foto h3 { color: #fff; font-size: 24px; }
.caja-foto p { color: rgba(255, 255, 255, 0.82); max-width: 520px; }
.caja-foto .enlace { color: #BFE0E3; margin-top: 12px; }
.caja-foto .caja-num { color: #9CC3C6; }

.bento-proyectos { grid-template-areas: "t t a s" "t t h h" "g g e e" "l p e e" "k k m q" "k k c c"; }
.bento-proyectos > :nth-child(1) { grid-area: t; }
.bento-proyectos > :nth-child(2) { grid-area: a; }
.bento-proyectos > :nth-child(3) { grid-area: s; }
.bento-proyectos > :nth-child(4) { grid-area: h; }
.bento-proyectos > :nth-child(5) { grid-area: g; }
.bento-proyectos > :nth-child(6) { grid-area: e; }
.bento-proyectos > :nth-child(7) { grid-area: l; }
.bento-proyectos > :nth-child(8) { grid-area: p; }
.bento-proyectos > :nth-child(9) { grid-area: k; }
.bento-proyectos > :nth-child(10) { grid-area: m; }
.bento-proyectos > :nth-child(11) { grid-area: q; }
.bento-proyectos > :nth-child(12) { grid-area: c; }
.caja-foto.ancha::after { background: linear-gradient(100deg, rgba(16, 34, 36, 0.92) 0%, rgba(16, 34, 36, 0.62) 42%, rgba(16, 34, 36, 0) 76%); }
.caja-foto.ancha .caja-foto-txt { max-width: 66%; }
.dos-fotos > img:nth-of-type(2) { opacity: 0; animation: alterna 12s ease-in-out infinite; }
.bento-proyectos > :nth-child(9) > img:nth-of-type(2) { animation-delay: -6s; }
@keyframes alterna { 0%, 38% { opacity: 0; } 50%, 88% { opacity: 1; } 100% { opacity: 0; } }
.caja-cta { background: linear-gradient(150deg, var(--marca) 0%, #16302F 100%) !important; justify-content: center; }
.caja-cta h3 { color: #fff; font-size: 26px; }
.caja-cta p { color: rgba(255, 255, 255, 0.75); }
.caja-cta .btn { align-self: flex-start; margin-top: 18px; }

/* ---------- Método ---------- */
.metodo-guia { margin: 26px 0 0; font-size: 16.5px; color: rgba(255, 255, 255, 0.66); }
.metodo-tipos { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.metodo-tipos button { min-height: 40px; padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); background: transparent; color: #DCEBEC; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.metodo-tipos button:hover { border-color: rgba(255, 255, 255, 0.5); }
.metodo-tipos button[aria-selected="true"] { background: #fff; border-color: #fff; color: var(--marca); }

.metodo-zona { position: relative; margin-top: 30px; }
.metodo { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; text-align: left; }
.metodo li { position: relative; padding: 28px 24px 30px; border-radius: var(--radio); border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); cursor: pointer; transition: background .35s, border-color .35s, transform .35s cubic-bezier(.3, .7, .2, 1); }
.metodo li:hover { border-color: rgba(255, 255, 255, 0.26); }
.metodo li[aria-current="step"] { background: rgba(127, 214, 221, 0.10); border-color: rgba(127, 214, 221, 0.55); transform: translateY(4px); }
.metodo .ico { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: rgba(156, 195, 198, 0.16); color: #BFE0E3; }
.metodo li[aria-current="step"] .ico { background: rgba(127, 214, 221, 0.22); color: #fff; }
.metodo span { display: block; margin-top: 18px; font-family: var(--mono); font-size: 12px; color: #9CC3C6; }
.metodo h3 { margin-top: 4px; font-weight: 700; font-size: 26px; letter-spacing: -0.03em; color: #fff; }
.metodo p { margin: 10px 0 0; font-size: 15.5px; color: rgba(255, 255, 255, 0.72); transition: opacity .18s ease; }
.metodo.cambiando p { opacity: 0; }
.metodo-cta { margin: 34px 0 0; }

/* Cilindro neumático de vidrio: el émbolo avanza hasta la etapa activa */
.cilindro { --pos: 0px; --aguja: -120deg; position: relative; height: 96px; margin-bottom: 14px; }
.cilindro-tubo { position: absolute; left: 26px; right: 26px; bottom: 12px; height: 34px; border-radius: 6px; overflow: hidden; background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 36%, rgba(255, 255, 255, 0.02) 64%, rgba(255, 255, 255, 0.12) 100%); border: 1px solid rgba(191, 224, 227, 0.34); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 30px rgba(0, 0, 0, 0.18); }
.cilindro-tubo::after { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 3px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38) 18%, rgba(255, 255, 255, 0.10) 82%, transparent); pointer-events: none; }
.cilindro-aire { position: absolute; left: 0; top: 0; bottom: 0; width: max(0px, calc(var(--pos) - 11px)); background: linear-gradient(90deg, rgba(127, 214, 221, 0.10), rgba(127, 214, 221, 0.40)); transition: width .95s cubic-bezier(.65, 0, .2, 1); }
.cilindro-aire::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, rgba(200, 244, 247, 0.75) 0 10px, transparent 10px 26px); animation: aire-h 1.1s linear infinite; }
.cilindro-vastago { position: absolute; top: 50%; right: -4px; left: calc(var(--pos) + 11px); height: 8px; margin-top: -4px; background: linear-gradient(180deg, #F3F7F7, #A7B8B9 55%, #E1E9E9); transition: left .95s cubic-bezier(.65, 0, .2, 1); }
.cilindro-embolo { position: absolute; top: 2px; bottom: 2px; left: calc(var(--pos) - 11px); width: 22px; border-radius: 4px; background: linear-gradient(90deg, #2B5058, #6FAAB0 45%, #24494F); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.34), 0 0 22px rgba(127, 214, 221, 0.7); transition: left .95s cubic-bezier(.65, 0, .2, 1); }
.cilindro-embolo::before, .cilindro-embolo::after { content: ""; position: absolute; top: 3px; bottom: 3px; width: 2px; border-radius: 1px; background: #142527; }
.cilindro-embolo::before { left: 4px; }
.cilindro-embolo::after { right: 4px; }
.cilindro-tapa { position: absolute; bottom: 6px; width: 30px; height: 46px; border-radius: 7px; background: linear-gradient(180deg, #3E646A, #1B3639); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 18px rgba(0, 0, 0, 0.25); }
.cilindro-tapa::before { content: ""; position: absolute; left: 50%; top: 7px; bottom: 7px; width: 4px; margin-left: -2px; border-radius: 2px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0 4px, transparent 4px 9px); }
.cilindro-tapa-ini { left: 0; }
.cilindro-tapa-fin { right: 0; }
.cilindro-racor { position: absolute; left: 11px; bottom: 50px; width: 8px; height: 14px; border-radius: 2px; background: linear-gradient(90deg, #8FA3A5, #E3EAEA, #8FA3A5); }
.cilindro-manometro { position: absolute; left: -9px; bottom: 60px; width: 48px; height: 48px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3)); }
.cilindro-aguja { transform: rotate(var(--aguja)); transform-origin: 24px 24px; transition: transform .95s cubic-bezier(.65, 0, .2, 1); }
.cilindro.ventea .cilindro-aire, .cilindro.ventea .cilindro-vastago, .cilindro.ventea .cilindro-embolo, .cilindro.ventea .cilindro-aguja { transition-duration: .45s; }
.cilindro.quieto * { transition: none !important; }


/* ---------- Buscador ---------- */
.buscador { position: relative; display: flex; align-items: center; gap: 10px; max-width: 640px; margin: 44px auto 0; padding: 6px 6px 6px 22px; border-radius: 999px; background: #fff; border: 1px solid var(--linea); box-shadow: 0 14px 40px rgba(20, 37, 39, 0.10); text-align: left; }
.buscador > .ico { width: 21px; height: 21px; color: var(--pizarra); }
.buscador input { flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; background: transparent; font-size: 18px; }
.buscador input::placeholder { color: #9AA6A7; }
.buscador .btn { min-height: 46px; }
.resultados { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20; max-height: 420px; overflow: auto; padding: 8px; border-radius: 20px; background: #fff; border: 1px solid var(--linea); box-shadow: var(--sombra); }
.resultado { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 12px; border: 0; border-radius: 14px; background: transparent; text-align: left; cursor: pointer; }
.resultado:hover, .resultado[aria-selected="true"] { background: var(--crema); }
.resultado img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.resultado strong { display: block; font-family: var(--titulos); font-weight: 600; font-size: 15.5px; color: var(--tinta); }
.resultado small { display: block; font-size: 13.5px; color: var(--pizarra); }
.resultado code { font-family: var(--mono); font-size: 11.5px; color: var(--salvia); }
.sin-resultados { padding: 14px; font-size: 15px; color: var(--pizarra); text-align: center; }
.pruebe { margin: 14px 0 0; font-size: 15px; color: var(--pizarra); }
.pruebe button { margin: 0 3px; padding: 0; border: 0; background: none; color: var(--marca); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Chips ---------- */
.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip, .chips-suaves span { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 16px; border-radius: 999px; border: 1px solid #D9D8D2; background: #fff; font-size: 15px; color: var(--tinta); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--marca); }
.chip[aria-selected="true"] { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.chips-suaves span { cursor: default; }

/* ---------- Maquinaria ---------- */
.equipos-vista { margin-top: 34px; }
.bento-lineas { margin-top: 0; grid-auto-rows: 270px; }
.bento-lineas .caja-num { position: absolute; top: 22px; right: 24px; margin: 0; }
.bento-lineas .ancha .caja-num { position: static; margin-bottom: 10px; }
.bento-lineas .ancha { grid-column: span 2; }
.bento-lineas .ancha h3, .bento-lineas .ancha p { max-width: 50%; }
.bento-lineas .ancha .caja-img { position: absolute; right: 16px; bottom: 14px; width: 42%; height: calc(100% - 28px); margin: 0; }
.bento-lineas .caja { cursor: pointer; }
.linea-cab { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 26px; align-items: center; padding: 30px; border-radius: var(--radio); background: #fff; text-align: left; }
.linea-cab h3 { font-weight: 700; font-size: 30px; letter-spacing: -0.03em; color: var(--marca); }
.linea-cab p { margin: 10px 0 0; font-size: 16px; color: var(--pizarra); }
.linea-cab ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.linea-cab li { padding: 6px 12px; border-radius: 999px; background: var(--crema); font-size: 13.5px; color: var(--tinta); }
.familias { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; text-align: left; }
.familia { display: flex; flex-direction: column; border-radius: var(--radio); background: #fff; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.familia:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.familia-img { position: relative; display: flex; align-items: center; justify-content: center; height: 210px; padding: 20px; background: linear-gradient(180deg, #FBFBFA 0%, var(--crema) 100%); cursor: pointer; border: 0; width: 100%; }
.familia-img img { max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(20, 37, 39, 0.18)); transition: transform .35s ease; }
.familia:hover .familia-img img { transform: scale(1.05); }
.familia-img code { position: absolute; top: 14px; left: 14px; padding: 3px 8px; border-radius: 6px; background: var(--marca); color: #fff; font-family: var(--mono); font-size: 11.5px; }
.familia-txt { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.familia h3 { font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.familia p { margin: 8px 0 0; font-size: 15px; color: var(--pizarra); }
.familia ul { margin: 12px 0 0; padding: 0; list-style: none; }
.familia li { position: relative; padding-left: 16px; font-size: 14px; color: var(--tinta); }
.familia li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--marca); }
.familia-acciones { display: flex; gap: 20px; margin-top: auto; padding-top: 16px; }
.familia-acciones button, .familia-acciones a { padding: 0; border: 0; background: none; color: var(--marca); font-weight: 600; font-size: 15px; cursor: pointer; }
.familia-acciones button:hover, .familia-acciones a:hover { text-decoration: underline; text-underline-offset: 3px; }
.enlaces-fila { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 34px; margin: 36px 0 0; }

/* ---------- Fichas ---------- */
.carrusel { margin-top: 50px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.carrusel-pista { display: flex; flex-direction: column; gap: 12px; }
.carrusel-fila { display: flex; gap: 10px; width: max-content; animation: desliza 90s linear infinite; }
.carrusel-fila.inversa { animation-direction: reverse; }
.carrusel:hover .carrusel-fila { animation-play-state: paused; }
.carrusel .chip code { margin-right: 8px; font-family: var(--mono); font-size: 12px; color: var(--salvia); }
@keyframes desliza { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.descargas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 50px; }
.descarga { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border-radius: var(--radio); background: var(--suave); }
.descarga-tipo { font-family: var(--mono); font-size: 12px; color: var(--salvia); }
.descarga h3 { margin-top: 10px; font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.descarga p { margin: 8px 0 20px; font-size: 15px; color: var(--pizarra); }
.descarga .btn { margin-top: auto; }
.ficha-elegir { display: flex; gap: 8px; width: 100%; margin-top: auto; }
.ficha-elegir select { flex: 1; min-width: 0; width: 100%; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid #D9D8D2; background: #fff; font-size: 14.5px; }

/* ---------- Contacto ---------- */
.sedes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; text-align: left; }
.sede { padding: 28px; border-radius: var(--radio); background: var(--suave); }
.sede-ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #fff; color: var(--marca); }
.sede-tag { display: block; margin-top: 16px; font-size: 14px; color: var(--pizarra); }
.sede h3 { margin-top: 2px; font-weight: 700; font-size: 26px; letter-spacing: -0.03em; }
.sede p { margin: 8px 0 0; font-size: 15.5px; color: var(--pizarra); }
.sede a.correo-sitio { color: var(--marca); font-weight: 600; word-break: break-all; }

.pestanas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 30px; text-align: left; }
.pestana { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: 20px; border: 1px solid var(--linea); background: #fff; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.pestana strong { font-family: var(--titulos); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; color: var(--tinta); }
.pestana span { font-size: 14px; color: var(--pizarra); }
.pestana:hover { border-color: #BFD1D2; }
.pestana[aria-selected="true"] { border-color: var(--marca); background: #F2F6F6; box-shadow: 0 0 0 3px rgba(36, 73, 79, 0.10); }

.formulario { max-width: 760px; margin: 30px auto 0; padding: 34px; border-radius: 26px; background: var(--suave); text-align: left; }
.form-titulo { margin-bottom: 18px; font-weight: 700; font-size: 24px; letter-spacing: -0.02em; color: var(--marca); }
.campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo.ancho { grid-column: 1 / -1; }
.campo[hidden] { display: none; }
.campo label { font-size: 14px; font-weight: 600; color: var(--pizarra); }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 14px; border: 1px solid #D5D4CD; background: #fff; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.campo textarea { resize: vertical; min-height: 130px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 0; border-color: var(--marca); box-shadow: 0 0 0 3px rgba(36, 73, 79, 0.14); }
.campo .error-campo { border-color: #B42318; box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.10); }
.acepto { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; font-size: 14.5px; color: var(--pizarra); }
.acepto input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--marca); flex: none; }
.acepto a { color: var(--marca); text-decoration: underline; text-underline-offset: 2px; }
.form-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.form-estado { margin: 16px 0 0; font-size: 15.5px; min-height: 1em; }
.form-estado.ok { color: #1E6B3F; }
.form-estado.mal { color: #B42318; }
.trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.redes { margin-top: 56px; }
.redes p { margin: 0 0 12px; color: var(--pizarra); }
.redes-iconos { display: flex; justify-content: center; gap: 10px; }
.redes-iconos a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--suave); color: var(--tinta); font-weight: 700; font-size: 14px; }

/* ---------- Banda final y pie ---------- */
.banda-final { padding: 110px 0; background: linear-gradient(160deg, var(--marca) 0%, var(--oscuro) 100%); color: #fff; }
.banda-final h2 { max-width: 760px; margin: 0 auto 30px; font-weight: 700; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -0.04em; }
.pie { padding: 34px 0 40px; background: var(--suave); text-align: center; font-size: 13.5px; color: var(--pizarra); }
.pie p { margin: 6px 0; }
.pie a:hover { text-decoration: underline; }
.pie-legal { font-size: 12.5px; color: var(--gris-txt); }

/* ---------- Ficha técnica (ventana) ---------- */
.ficha { width: min(1040px, 100% - 28px); max-height: min(92vh, 980px); padding: 0; border: 0; border-radius: 26px; background: #fff; color: var(--tinta); box-shadow: 0 40px 120px rgba(10, 20, 22, 0.35); overflow: hidden; }
.ficha[open] { display: flex; flex-direction: column; animation: ficha-entra .28s ease; }
.ficha::backdrop { background: rgba(10, 20, 22, 0.55); backdrop-filter: blur(4px); }
@keyframes ficha-entra { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.ficha-cab { display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 26px; border-bottom: 1px solid var(--linea); }
.ficha-codigo { padding: 3px 8px; border-radius: 6px; background: var(--marca); color: #fff; font-family: var(--mono); font-size: 12px; }
.ficha-tipo { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--pizarra); }
.ficha-cerrar { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--suave); cursor: pointer; }
.ficha-cerrar:hover { background: var(--crema); }
.ficha-cuerpo { overflow: auto; padding: 26px; }
.ficha-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 30px; align-items: start; }
.ficha-foto { display: flex; align-items: center; justify-content: center; height: 300px; padding: 22px; border-radius: 20px; background: linear-gradient(180deg, #FBFBFA 0%, var(--crema) 100%); }
.ficha-foto img { max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(20, 37, 39, 0.2)); }
.ficha-ref { margin: 10px 0 0; font-family: var(--mono); font-size: 12px; color: var(--pizarra); }
.ficha-conf { margin-top: 18px; padding: 18px 20px; border-radius: 18px; background: var(--suave); }
.ficha-conf h4, .ficha-bloque h4 { font-weight: 600; font-size: 16px; color: var(--marca); }
.ficha-conf ul, .ficha-lista { margin: 10px 0 0; padding: 0; list-style: none; }
.ficha-conf li, .ficha-lista li { position: relative; padding-left: 18px; margin-top: 6px; font-size: 15px; }
.ficha-conf li::before { content: ""; position: absolute; left: 3px; top: .3em; width: 5px; height: 10px; border: solid var(--marca); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ficha-lista li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--marca); }
.ficha-titulo { font-weight: 700; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; letter-spacing: -0.03em; color: var(--marca); }
.ficha-linea { margin: 0 0 6px; font-size: 14px; color: var(--pizarra); }
.ficha-intro { margin: 12px 0 0; font-size: 16.5px; }
.ficha-bloque { margin-top: 24px; }
.tabla { margin-top: 10px; border-top: 2px solid var(--marca); }
.tabla div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--linea); font-size: 15px; }
.tabla div span:first-child { color: var(--pizarra); }
.tabla div span:last-child { font-weight: 600; }
.tabla-potencias { overflow-x: auto; }
.tabla-potencias table { width: 100%; min-width: 460px; border-collapse: collapse; margin-top: 10px; border-top: 2px solid var(--marca); font-size: 14.5px; }
.tabla-potencias th, .tabla-potencias td { padding: 8px 6px; border-bottom: 1px solid var(--linea); text-align: center; }
.tabla-potencias th { font-family: var(--titulos); font-weight: 600; color: var(--marca); background: var(--crema); }
.tabla-potencias td:first-child, .tabla-potencias th:first-child { text-align: left; color: var(--pizarra); font-weight: 400; }
.tabla-potencias td { font-weight: 600; }
.tabla-nota { margin: 6px 0 0; font-size: 13px; color: var(--pizarra); }
.ficha-mas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; }
.ficha-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--linea); }
.ficha-nota { width: 100%; margin: 6px 0 0; font-size: 13px; color: var(--pizarra); }



/* ========================================
   CHAT Y ACCESO DIRECTO A WHATSAPP
   VERDE CLÁSICO 💚
======================================== */

/* Botón flotante de WhatsApp */
.chat-flotante {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9998;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 62px;
  height: 62px;
  padding: 0;

  color: #fff;
  background: #25D366;
  border: 2px solid rgba(255, 255, 255, .8);
  border-radius: 50%;

  box-shadow:
    0 0 10px rgba(37, 211, 102, .45),
    0 0 22px rgba(37, 211, 102, .25),
    0 8px 26px rgba(0, 0, 0, .22);

  cursor: pointer;
  isolation: isolate;

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background .25s ease;

  animation: halloween-pulso 2s ease-in-out infinite;
}

/* Aura expansiva verde */
.chat-flotante::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;

  border: 2px solid rgba(37, 211, 102, .5);
  border-radius: 50%;

  box-shadow:
    0 0 12px rgba(37, 211, 102, .3),
    inset 0 0 12px rgba(37, 211, 102, .15);

  pointer-events: none;
  animation: halloween-aura 2.2s ease-out infinite;
}

/* Destello verde */
.chat-flotante::after {
  content: "✦";
  position: absolute;
  top: -13px;
  right: -8px;

  color: #25D366;
  font-size: 23px;
  line-height: 1;

  text-shadow: 0 0 8px rgba(37, 211, 102, .7);

  pointer-events: none;
  animation: halloween-destello 1.5s ease-in-out infinite;
}

/* Icono de WhatsApp */
.chat-flotante svg {
  position: relative;
  z-index: 1;

  width: 31px;
  height: 31px;

  filter: drop-shadow(0 0 3px rgba(255, 255, 255, .3));
}

/* Efecto al pasar el mouse */
.chat-flotante:hover {
  background: #128C7E;
  transform: translateY(-4px) scale(1.07);

  box-shadow:
    0 0 14px rgba(37, 211, 102, .6),
    0 0 28px rgba(18, 140, 126, .4),
    0 12px 32px rgba(0, 0, 0, .26);
}

.chat-flotante:hover::before {
  border-color: #25D366;
}

/* Accesibilidad */
.chat-flotante:focus-visible,
.chat button:focus-visible {
  outline: 3px solid #25D366;
  outline-offset: 4px;
}

/* ========================================
   PANEL PRINCIPAL DEL CHAT
======================================== */

.chat {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 9999;

  width: min(370px, calc(100vw - 32px));
  max-height: min(540px, calc(100dvh - 125px));

  overflow: hidden;
  border: 1px solid rgba(20, 40, 61, .1);
  border-radius: 18px;

  background: #fff;
  color: #14283d;

  box-shadow: 0 18px 60px rgba(0, 0, 0, .2);

  animation: chat-aparecer .25s ease both;
}

.chat[hidden] {
  display: none !important;
}

/* ========================================
   ENCABEZADO
======================================== */

.chat-cab {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 18px;

  color: #fff;
  background: #123b34;
}

.chat-cab > img {
  flex: 0 0 auto;
  object-fit: contain;
}

.chat-identidad {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.chat-identidad strong {
  font-size: 16px;
  font-weight: 700;
}

.chat-identidad span {
  font-size: 12px;
  color: rgba(255, 255, 255, .78);
}

/* Botón cerrar */
.chat-cerrar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;

  width: 34px;
  height: 34px;
  padding: 0;

  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 0;
  border-radius: 50%;

  cursor: pointer;
  transition: background .2s ease;
}

.chat-cerrar:hover {
  background: rgba(255, 255, 255, .24);
}

.chat-cerrar .ico {
  width: 17px;
  height: 17px;
}

/* ========================================
   CONTENIDO DEL CHAT
======================================== */

.chat-cuerpo {
  max-height: calc(100dvh - 210px);
  overflow-y: auto;
  padding: 20px;
}

.chat-burbuja {
  margin: 0 0 20px;
  padding: 15px;

  color: #334155;
  background: #f1f5f4;
  border-radius: 4px 15px 15px 15px;

  font-size: 14px;
  line-height: 1.65;
}

/* ========================================
   OPCIONES DEL CHAT
======================================== */

.chat-opciones {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-opciones button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  width: 100%;
  padding: 14px 15px;

  color: #173d35;
  background: #fff;
  border: 1px solid #dce7e2;
  border-radius: 11px;

  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;

  cursor: pointer;

  transition:
    background .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.chat-opciones button:hover {
  background: #edf8f1;
  border-color: #25D366;
  transform: translateX(2px);
}

.chat-opciones button span:last-child {
  color: #25a95a;
  font-size: 23px;
  line-height: 1;
}

/* ========================================
   PIE DEL CHAT
======================================== */

.chat-pie {
  margin: 20px 0 0;

  color: #78858c;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

/* ========================================
   ANIMACIONES
======================================== */

/* Aparición de la ventana */
@keyframes chat-aparecer {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* Resplandor verde del botón de WhatsApp */
@keyframes halloween-pulso {
  0%, 100% {
    box-shadow:
      0 0 8px rgba(37, 211, 102, .45),
      0 0 18px rgba(37, 211, 102, .3),
      0 0 30px rgba(18, 140, 126, .2),
      0 8px 26px rgba(0, 0, 0, .22);
  }

  50% {
    box-shadow:
      0 0 14px rgba(37, 211, 102, .8),
      0 0 28px rgba(37, 211, 102, .55),
      0 0 42px rgba(18, 140, 126, .35),
      0 8px 30px rgba(0, 0, 0, .25);
  }
}

/* Aura que se expande */
@keyframes halloween-aura {
  0% {
    transform: scale(.88);
    opacity: .9;
  }

  70% {
    transform: scale(1.28);
    opacity: .15;
  }

  100% {
    transform: scale(1.38);
    opacity: 0;
  }
}

/* Estrella intermitente */
@keyframes halloween-destello {
  0%, 100% {
    transform: scale(.65) rotate(0deg);
    opacity: .35;
  }

  50% {
    transform: scale(1.3) rotate(35deg);
    opacity: 1;
  }
}

/* ========================================
   MÓVILES
======================================== */

@media (max-width: 480px) {
  .chat-flotante {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }

  .chat-flotante svg {
    width: 28px;
    height: 28px;
  }

  .chat {
    right: 12px;
    bottom: 84px;
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 105px);
  }

  .chat-cuerpo {
    max-height: calc(100dvh - 180px);
  }
}

/* ========================================
   ACCESIBILIDAD
======================================== */

@media (prefers-reduced-motion: reduce) {
  .chat,
  .chat-flotante,
  .chat-flotante::before,
  .chat-flotante::after,
  .chat-opciones button {
    animation: none !important;
    transition: none !important;
  }
}


/* ---------- Cursor llave (solo computador con mouse) ---------- */
html.con-llave, html.con-llave * { cursor: none !important; }
html.con-llave :is(input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]), textarea, select) { cursor: auto !important; }
.cursor-llave { position: fixed; left: 0; top: 0; z-index: 9999; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .18s ease; will-change: transform; }
html.con-llave .cursor-llave.visible { opacity: 1; }
.cursor-llave.sobre-texto { opacity: 0 !important; }
.cursor-llave svg { position: absolute; left: -9.38px; top: -9.38px; width: 60px; height: 60px; overflow: visible; filter: drop-shadow(0 1.5px 1.5px rgba(10, 20, 22, 0.42)); }
.cursor-llave .ll-tuerca { opacity: 0; transition: opacity .15s ease; }
.cursor-llave.listo .ll-tuerca, .cursor-llave.presionado .ll-tuerca { opacity: 1; }
.pulso-aire { position: fixed; z-index: 9998; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid rgba(127, 214, 221, 0.95); pointer-events: none; animation: pulso-aire .5s ease-out forwards; }
@keyframes pulso-aire { from { transform: scale(.35); opacity: .95; } to { transform: scale(2.8); opacity: 0; } }
.pie-cursor button { padding: 0; border: 0; background: none; color: var(--pizarra); font-size: 12.5px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
@keyframes aire-v { from { background-position: 0 0; } to { background-position: 0 26px; } }
@keyframes aire-h { from { background-position: 0 0; } to { background-position: 26px 0; } }

/* ---------- Animación de entrada ---------- */
html.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
html.js .rv.visto { opacity: 1; transform: none; }

/* ---------- Pantallas medianas ---------- */
@media (max-width: 1060px) {
  .menu a { padding: 7px 9px; font-size: 14px; }
  .menu a .ico { display: none; }
}
@media (max-width: 980px) {
  .menu-boton { display: block; margin-left: auto; }
  .encabezado-cta { display: none; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 16px; background: #fff; border-bottom: 1px solid var(--linea); box-shadow: 0 20px 40px rgba(20, 37, 39, 0.10); }
  .menu.abierto { display: flex; }
  .menu a { padding: 12px 10px; font-size: 16px; border-radius: 12px; }
  .menu a .ico { display: inline; width: 18px; height: 18px; }
  .bento, .bento-proyectos { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: none; grid-auto-rows: 240px; }
  .bento-proyectos > :nth-child(n) { grid-area: auto; }
  .bento-proyectos > .grande { grid-column: span 2; grid-row: span 2; }
  .bento-proyectos > .ancha, .bento-proyectos > .caja-cta { grid-column: span 2; }
  .tarjetas-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Método: el cilindro pasa a ser un riel vertical a la izquierda */
  .metodo-zona { padding-left: 68px; }
  .metodo { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .metodo li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; align-items: start; padding: 22px 22px 24px; }
  .metodo li .ico { grid-row: 1 / span 3; }
  .metodo span { margin-top: 0; }
  .metodo li[aria-current="step"] { transform: translateX(4px); }
  .cilindro { position: absolute; left: 0; top: 0; bottom: 0; width: 52px; height: auto; margin: 0; }
  .cilindro-tubo { left: 9px; right: auto; top: 30px; bottom: 30px; width: 34px; height: auto; }
  .cilindro-tubo::after { left: 5px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.38) 18%, rgba(255, 255, 255, 0.10) 82%, transparent); }
  .cilindro-aire { right: 0; bottom: auto; width: auto; height: max(0px, calc(var(--pos) - 11px)); background: linear-gradient(180deg, rgba(127, 214, 221, 0.10), rgba(127, 214, 221, 0.40)); transition-property: height; }
  .cilindro-aire::after { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; margin: 0 0 0 -1px; background: repeating-linear-gradient(180deg, rgba(200, 244, 247, 0.75) 0 10px, transparent 10px 26px); animation-name: aire-v; }
  .cilindro-vastago { left: 50%; right: auto; top: calc(var(--pos) + 11px); bottom: -4px; width: 8px; height: auto; margin: 0 0 0 -4px; background: linear-gradient(90deg, #F3F7F7, #A7B8B9 55%, #E1E9E9); transition-property: top; }
  .cilindro-embolo { left: 2px; right: 2px; top: calc(var(--pos) - 11px); bottom: auto; width: auto; height: 22px; background: linear-gradient(180deg, #2B5058, #5D9BA1 45%, #24494F); transition-property: top; }
  .cilindro-embolo::before, .cilindro-embolo::after { left: 3px; right: 3px; top: auto; bottom: auto; width: auto; height: 2px; }
  .cilindro-embolo::before { top: 4px; }
  .cilindro-embolo::after { bottom: 4px; }
  .cilindro-tapa { left: 2px; width: 48px; height: 30px; }
  .cilindro-tapa::before { left: 7px; right: 7px; top: 50%; bottom: auto; width: auto; height: 4px; margin: -2px 0 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 4px, transparent 4px 9px); }
  .cilindro-tapa-ini { top: 0; bottom: auto; }
  .cilindro-tapa-fin { top: auto; bottom: 0; right: auto; }
  .cilindro-racor, .cilindro-manometro { display: none; }
  .familias { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .descargas, .sedes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pestanas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ficha-grid { grid-template-columns: minmax(0, 1fr); }
  .ficha-foto { height: 260px; }
  .linea-cab { grid-template-columns: minmax(0, 1fr); }
  .linea-cab ul { justify-content: flex-start; }
}

/* ---------- Celulares ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .contenedor { width: min(var(--ancho), 100% - 32px); }
  .seccion { padding: 80px 0; }
  .inicio { padding-top: 56px; }
  .verbos { gap: 6px 24px; }
  .verbos li + li::before { left: -16px; }
  .cifras { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .bento, .bento-proyectos { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .caja { min-height: 220px; }
  .caja-img, .bento-lineas .ancha .caja-img { position: relative; right: auto; bottom: auto; flex: none; width: 60%; height: 130px; margin: 8px -10px -10px 0; }
  .bento-lineas .ancha h3 { max-width: none; }
  .bento-lineas .ancha p { max-width: 92%; }
  .bento-proyectos > .grande { grid-column: auto; grid-row: auto; min-height: 340px; }
  .bento-proyectos > .ancha { grid-column: auto; min-height: 290px; }
  .caja-foto.ancha .caja-foto-txt { max-width: none; }
  .caja-foto.ancha::after { background: linear-gradient(180deg, rgba(16, 34, 36, 0) 25%, rgba(16, 34, 36, 0.9) 100%); }
  .bento-proyectos > .caja-cta, .bento-lineas .ancha { grid-column: auto; }
  .tarjetas-4, .metodo, .familias, .descargas, .sedes, .pestanas { grid-template-columns: minmax(0, 1fr); }
  .metodo-zona { padding-left: 58px; }
  .metodo li { grid-template-columns: minmax(0, 1fr); padding: 20px 18px 22px; }
  .metodo li .ico { display: none; }
  .metodo h3 { font-size: 23px; }
  .metodo-tipos { justify-content: flex-start; }
  .metodo-guia, .metodo-tipos { text-align: left; }
  .video-marco { border-radius: 18px; }
  .video-controles { left: 10px; bottom: 10px; }
  .video-btn { height: 38px; min-width: 38px; font-size: 13.5px; padding: 0 12px; }
  .video-btn:first-child { width: 38px; }
  .campos { grid-template-columns: minmax(0, 1fr); }
  .formulario { padding: 24px 18px; }
  .buscador { padding-left: 16px; }
  .buscador input { font-size: 16px; }
  .buscador .btn { padding: 10px 16px; }
  .ficha { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .ficha-cuerpo { padding: 18px; }
  .ficha-mas { grid-template-columns: minmax(0, 1fr); }
  .fab { right: 16px; bottom: 16px; }
  .chat { right: 16px; bottom: 88px; }
  .barra-superior { font-size: 12px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .rv { opacity: 1; transform: none; }
  .carrusel-fila { flex-wrap: wrap; width: auto; justify-content: center; }
}


/* ---------- Servicios técnicos ---------- */
#servicios .cifras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
  text-align: left;
}

#servicios .cifras > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 28px 24px;
  border-radius: var(--radio);
  background: var(--suave);
  border: 1px solid rgba(127, 214, 221, 0.15);
  transition: transform 0.25s ease,
              border-color 0.25s ease,
              background 0.25s ease;
}

#servicios .cifras > div:hover {
  transform: translateY(-5px);
  border-color: rgba(127, 214, 221, 0.55);
  background: rgba(127, 214, 221, 0.06);
}

#servicios .cifras > div strong {
  display: block;
  font-size: 21px;
  line-height: 1.3;
  color: var(--marca);
}

#servicios .cifras > div span {
  display: block;
  font-size: 15px;
  line-height: 1.7;
  color: var(--texto-suave);
}

#servicios .nota {
  max-width: 850px;
  margin: 30px auto 24px;
  line-height: 1.8;
}

/* Tabletas */
@media (max-width: 900px) {
  #servicios .cifras {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Celulares */
@media (max-width: 560px) {
  #servicios .cifras {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #servicios .cifras > div {
    padding: 22px 20px;
  }
}


/* Enlaces legales del footer */
.pie-enlaces-legales {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 22px 0;
}

.pie-enlaces-legales a {
  font-size: 13px;
  text-decoration: none;
  transition: opacity .2s ease;
}

.pie-enlaces-legales a:hover {
  opacity: .7;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pie-contacto {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 600px) {
  .pie-enlaces-legales {
    flex-direction: column;
    gap: 13px;
  }

  .pie-contacto {
    flex-direction: column;
    gap: 8px;
  }

  .pie-contacto > span {
    display: none;
  }
}

/* ---------- Aviso de cookies NJ ---------- */
.cookies-aviso {
  position: fixed;
  z-index: 99999;
  left: 24px;
  right: 24px;
  bottom: 24px;
  max-width: 920px;
  margin: 0 auto;
  padding: 22px;
  color: #24383a;
  background: #fff;
  border: 1px solid rgba(36, 73, 79, .16);
  border-radius: 18px;
  box-shadow: 0 16px 55px rgba(0, 0, 0, .2);
  font-family: inherit;
  animation: cookies-entrada .45s ease both;
}

.cookies-aviso[hidden] {
  display: none;
}

.cookies-contenido {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 16px;
  align-items: start;
}

.cookies-icono {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: #edf4f2;
  border-radius: 14px;
  font-size: 25px;
}

.cookies-texto h3 {
  margin: 0 0 8px;
  color: #24494f;
  font-size: 19px;
}

.cookies-texto p {
  margin: 0 0 10px;
  color: #536466;
  font-size: 14px;
  line-height: 1.65;
}

.cookies-texto a {
  color: #24494f;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookies-acciones {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 4px;
}

.cookies-btn {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #24494f;
  border-radius: 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}

.cookies-btn:hover {
  transform: translateY(-1px);
}

.cookies-btn.principal {
  color: #fff;
  background: #24494f;
}

.cookies-btn.principal:hover {
  background: #18373b;
}

.cookies-btn.secundario {
  color: #24494f;
  background: #fff;
}

.cookies-btn.secundario:hover {
  background: #edf4f2;
}

@keyframes cookies-entrada {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .cookies-aviso {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 17px;
    border-radius: 15px;
  }

  .cookies-contenido {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cookies-icono {
    width: 38px;
    height: 38px;
    font-size: 21px;
  }

  .cookies-texto h3 {
    font-size: 17px;
  }

  .cookies-acciones {
    grid-column: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookies-btn {
    padding: 10px 8px;
  }

  .cookies-btn.principal {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookies-aviso {
    animation: none;
  }

  .cookies-btn {
    transition: none;
  }
}
