/* Sublimatrix Perú · identidad "La matriz" (WEB-21)
   Sistema: Selva, Calor, Papel, Tinta, Brasa. Archivo (ancho 125 %) para títulos, DM Mono para datos. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin-standard-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dm-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/dm-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  --selva: #0A3323;
  --selva-campo: #17503A;
  --calor: #FF5A1F;
  --calor-texto: #FF6A33;   /* Calor para texto pequeño sobre Selva (4.87:1, AA) */
  --calor-tinta: #1A0E08;
  --papel: #F2F1EA;
  --tinta: #111712;
  --brasa: #B8340A;
  --blanco: #FFFFFF;
  --gris: #3F4B44;
  --gris-selva: #D5DDD3;
  --pista: #A9BFB0;
  --linea: #C4C9BF;

  --f-texto: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-mono: "DM Mono", "Courier New", monospace;
  --radio: 4px;
  --ancho: 1240px;
  --margen: 28px;
  --curva: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--f-texto);
  font-size: 17px;
  line-height: 1.55;
  color: var(--tinta);
  background: var(--papel);
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Foco visible: Selva sobre fondos claros, Papel sobre Selva, Tinta sobre Calor */
:focus-visible { outline: 3px solid var(--selva); outline-offset: 3px; }
.cabecera :focus-visible, .principal :focus-visible, .seccion-selva :focus-visible,
.solucion-selva :focus-visible, .pie :focus-visible { outline-color: var(--papel); }
.seccion-calor .contacto-texto :focus-visible, .solucion-calor :focus-visible { outline-color: var(--tinta); }

.solo-lector {
  position: absolute; 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: 50;
  background: var(--calor); color: var(--calor-tinta); font-weight: 700;
  padding: 10px 16px; border-radius: var(--radio); text-decoration: none;
}
.saltar:focus { top: 12px; }

.contenedor { max-width: var(--ancho); margin: 0 auto; padding-left: var(--margen); padding-right: var(--margen); }

/* Con JS, el contenido de respaldo sin JS se oculta y viceversa */
.no-js .solo-js { display: none !important; }
.js .solo-sin-js { display: none !important; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 0 26px; border-radius: var(--radio);
  font-weight: 700; font-size: 17px; line-height: 1.2; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .2s, filter .2s, background-color .2s, color .2s;
}
.boton-chico { min-height: 46px; padding: 0 22px; font-size: 16px; }
.boton-grande { min-height: 56px; padding: 0 30px; font-size: 18px; }
.boton-calor { background: var(--calor); color: var(--calor-tinta); }
.boton-selva { background: var(--selva); color: var(--papel); font-weight: 800; }
.boton-linea-papel { border-color: var(--papel); color: var(--papel); }
.boton-linea-selva { border-color: var(--selva); color: var(--selva); background: transparent; }
@media (hover: hover) {
  .boton:hover { transform: translateY(-2px); filter: brightness(1.08); }
  .boton-calor:hover { color: var(--calor-tinta); }
  .boton-selva:hover { color: var(--papel); }
  .boton-linea-papel:hover { background: var(--papel); color: var(--selva); filter: none; }
  .boton-linea-selva:hover { background: var(--selva); color: var(--papel); filter: none; }
}

/* ---------- Cabecera ---------- */
.cabecera { background: var(--selva); color: var(--papel); border-bottom: 1px solid rgba(242, 241, 234, .14); }
.cabecera-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; padding-top: 18px; padding-bottom: 18px; }
.marca { display: flex; align-items: center; gap: 14px; margin-right: auto; color: var(--papel); text-decoration: none; }
.marca-simbolo { display: block; flex: none; }
.marca-texto { font-stretch: 125%; font-weight: 800; font-size: 21px; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.marca-texto span { color: var(--calor); }
.nav ul { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 16px; font-weight: 500; }
.nav a { display: inline-block; padding: 10px 0; text-decoration: none; }
.volver { font-family: var(--f-mono); font-size: 13px; color: var(--gris-selva); padding: 10px 0; }
.cabecera a:not(.boton):hover { color: var(--calor-texto); }

/* ---------- Hero ---------- */
.principal { position: relative; overflow: hidden; background: var(--selva); color: var(--papel); }
.trama { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.principal-fila {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px 40px;
  padding-top: 88px; padding-bottom: 112px;
}
.principal-texto { flex: 1 1 520px; min-width: 0; }
.etiquetas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; font-family: var(--f-mono); font-size: 13px; }
.etiquetas li { border: 1px solid rgba(242, 241, 234, .4); padding: 5px 10px; border-radius: 3px; }
.principal h1 {
  font-stretch: 125%; font-weight: 800; font-size: clamp(42px, 7vw, 104px);
  line-height: .94; letter-spacing: -.035em; text-wrap: balance; overflow-wrap: break-word;
}
.acento { color: var(--calor); }
.bajada { margin-top: 32px; max-width: 34em; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--gris-selva); }
.acciones { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.pista { margin-top: 40px; font-family: var(--f-mono); font-size: 12px; color: var(--pista); }
.pista[hidden] { display: none; }
@media (hover: none) { .pista { display: none; } }

.principal-visual { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
.ancla { grid-column: 3 / 13; grid-row: 1; position: relative; aspect-ratio: 4 / 5; }
.ancla-s { display: block; width: 100%; height: 100%; object-fit: contain; }
.trama-lista .ancla-s { visibility: hidden; }
.escena {
  grid-column: 1 / 9; grid-row: 1; position: relative; z-index: 1;
  margin: 0 0 -28px; padding: 8px 8px 0; border-radius: var(--radio);
  background: var(--papel); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.escena img { display: block; width: 100%; height: auto; }
.escena figcaption, .ejemplo figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px;
  padding: 8px 4px 9px; font-family: var(--f-mono); font-size: 12px; color: var(--tinta);
}

/* Entrada del hero (solo CSS; sin JS también termina visible) */
@keyframes sxSube { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .sube { animation: sxSube .8s var(--curva) both; }
  .sube-2 { animation-delay: .15s; }
  .sube-3 { animation-delay: .3s; }
  .sube-4 { animation-delay: .45s; }
}

/* ---------- Cinta doble ---------- */
.cinta { background: var(--papel); color: var(--selva); border-bottom: 2px solid var(--selva); overflow: hidden; padding: 22px 0; }
.cinta-pista {
  display: flex; width: max-content;
  font-stretch: 125%; font-weight: 800; font-size: clamp(30px, 4vw, 56px);
  letter-spacing: -.03em; line-height: 1; white-space: nowrap;
}
.cinta-pista-b { margin-top: 10px; }
.cinta-grupo { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.cinta-punto { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--calor); }
.cinta-punto-selva { background: var(--selva); }
.contorno { color: transparent; -webkit-text-stroke: 1.5px var(--selva); }
@supports not (-webkit-text-stroke: 1px black) { .contorno { color: var(--selva); opacity: .35; } }
@keyframes sxCinta { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) {
  .cinta-pista { animation: sxCinta 28s linear infinite; }
  .cinta-pista-b { animation: sxCinta 36s linear infinite reverse; }
  .cinta:hover .cinta-pista { animation-play-state: paused; }
}

/* ---------- Secciones ---------- */
.seccion { padding: 104px 0 96px; background: var(--papel); }
.seccion-blanca { background: var(--blanco); border-top: 2px solid var(--selva); border-bottom: 2px solid var(--selva); }
.seccion-borde-sup { border-bottom: 0; padding-bottom: 96px; }
.seccion-selva { background: var(--selva); color: var(--papel); padding: 96px 0; }
.seccion-calor { background: var(--calor); color: var(--calor-tinta); }
#productos { padding: 96px 0; }

.titulo { font-stretch: 125%; font-weight: 800; font-size: clamp(32px, 4.4vw, 60px); line-height: 1; letter-spacing: -.03em; text-wrap: balance; overflow-wrap: break-word; }
.titulo-separado { margin-bottom: 52px; }
.titulo-grande { font-size: clamp(36px, 5vw, 72px); line-height: .96; letter-spacing: -.035em; }
.seccion-cabeza-fila { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 60px; margin-bottom: 52px; }
.seccion-cabeza-fila .titulo { flex: 1 1 520px; min-width: 0; }
.seccion-cabeza-fila p { flex: 1 1 360px; max-width: 30em; color: var(--gris); font-size: 18px; }
.seccion-intro { margin: 14px 0 48px; max-width: 36em; color: var(--gris); font-size: 18px; }
.seccion-selva .seccion-intro { max-width: 38em; color: var(--gris-selva); margin-bottom: 44px; }
.nota { margin-top: 40px; font-family: var(--f-mono); font-size: 13px; color: var(--gris); max-width: 60em; }
#como-trabajamos .nota, .preguntas-col .nota { margin-top: 28px; }
.aviso { margin-top: 28px; max-width: 46em; color: var(--gris); }

/* Enlaces de texto sobre fondo claro */
.enlace, .solucion-blanca a { color: var(--brasa); font-weight: 700; padding: 8px 0; text-underline-offset: 3px; }
.enlace:hover, .solucion-blanca a:hover { color: var(--selva); text-decoration-thickness: 2px; }

/* ---------- Soluciones ---------- */
.soluciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.solucion {
  display: flex; flex-direction: column; gap: 16px; min-height: 300px;
  padding: 34px 32px 30px; border-radius: var(--radio);
  transition: transform .3s var(--curva), box-shadow .3s;
}
.solucion h3 { font-stretch: 112%; font-weight: 800; font-size: 28px; line-height: 1.05; letter-spacing: -.02em; }
.solucion p { flex: 1; }
.solucion a { align-self: flex-start; font-weight: 700; padding: 10px 0; text-underline-offset: 3px; }
.solucion-selva { background: var(--selva); color: var(--papel); }
.solucion-selva p { color: var(--gris-selva); }
.solucion-selva a { color: var(--calor-texto); }
.solucion-selva a:hover { color: var(--papel); }
.solucion-calor { background: var(--calor); color: var(--calor-tinta); }
.solucion-calor a { color: var(--calor-tinta); }
.solucion-calor a:hover { text-decoration-thickness: 3px; }
.solucion-blanca { background: var(--blanco); color: var(--tinta); border: 2px solid var(--selva); }
.solucion-blanca p { color: var(--gris); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .solucion:hover { transform: translateY(-8px); box-shadow: 0 22px 40px -22px rgba(10, 51, 35, .55); }
}

/* ---------- Productos: fotos en duotono de marca ---------- */
.productos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 28px 20px; }
.producto { display: flex; flex-direction: column; gap: 10px; }
.producto h3 { margin-top: 8px; font-stretch: 112%; font-weight: 800; font-size: 24px; letter-spacing: -.02em; line-height: 1.1; }
.producto p { color: var(--gris); font-size: 16px; flex: 1; }
.producto .enlace { align-self: flex-start; }
.foto { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radio); background: var(--selva); }
.foto img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--curva); }
.etiqueta-ref {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  background: var(--papel); color: var(--tinta);
  font-family: var(--f-mono); font-size: 11px; padding: 4px 7px; border-radius: 2px;
}
/* Duotono solo con puntero fino; en táctil la foto va a color directo */
@media (hover: hover) and (pointer: fine) {
  .foto::after, .foto::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity .5s; }
  .foto::after { background: var(--selva); mix-blend-mode: color; opacity: 1; }
  .foto::before { background: var(--calor); mix-blend-mode: soft-light; opacity: .55; }
  .producto:hover .foto::after, .producto:hover .foto::before,
  .producto:focus-within .foto::after, .producto:focus-within .foto::before { opacity: 0; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .producto:hover .foto img { transform: scale(1.07); }
}

/* ---------- Técnicas ---------- */
.tecnicas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 20px; }
.tecnica { background: var(--blanco); border: 2px solid var(--selva); border-radius: var(--radio); padding: 36px 34px; }
.tecnica-cabeza { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--selva); padding-bottom: 18px; }
.tecnica h3 { font-stretch: 125%; font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.03em; line-height: 1; }
.tecnica-cabeza span { font-family: var(--f-mono); font-size: 13px; color: var(--gris); }
.tecnica .resumen { margin: 22px 0 26px; font-size: 19px; line-height: 1.45; }
.tecnica dl { margin: 0; display: grid; gap: 16px; }
.tecnica dt { font-family: var(--f-mono); font-size: 13px; color: var(--brasa); }
.tecnica dd { margin: 4px 0 0; }
.tecnica-selva { background: var(--selva); color: var(--papel); }
.tecnica-selva .tecnica-cabeza { border-bottom-color: var(--papel); }
.tecnica-selva .tecnica-cabeza span { color: var(--gris-selva); }
.tecnica-selva dt { color: var(--calor-texto); }

/* Selector "¿Cuál me conviene?" */
.orienta {
  margin-top: 20px; display: flex; flex-wrap: wrap; align-items: stretch; gap: 26px 48px;
  background: var(--blanco); border: 2px solid var(--selva); border-radius: var(--radio); padding: 30px 34px;
}
.orienta-controles { flex: 1 1 380px; min-width: 0; display: grid; gap: 18px; align-content: center; }
.orienta h3 { font-stretch: 112%; font-weight: 800; font-size: 26px; letter-spacing: -.02em; line-height: 1.1; }
.orienta-grupo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.orienta-rotulo { font-family: var(--f-mono); font-size: 13px; color: var(--gris); min-width: 5.5em; }
.opcion {
  min-height: 48px; padding: 0 20px; border-radius: var(--radio); cursor: pointer;
  border: 2px solid var(--selva); background: var(--blanco); color: var(--selva);
  font-weight: 700; font-size: 16px; transition: background-color .2s, color .2s;
}
.opcion[aria-pressed="true"] { background: var(--selva); color: var(--papel); }
@media (hover: hover) { .opcion[aria-pressed="false"]:hover { background: var(--papel); } }
.orienta-lista { display: grid; gap: 8px; color: var(--gris); }
.orienta-lista strong { color: var(--tinta); }
.orienta-resultado {
  flex: 1 1 320px; min-width: 0; display: grid; gap: 10px; align-content: center;
  background: var(--selva); color: var(--papel); border-radius: var(--radio); padding: 26px 28px;
}
.orienta-rotulo-calor { font-family: var(--f-mono); font-size: 13px; color: var(--calor-texto); }
.orienta-titulo { font-stretch: 125%; font-weight: 800; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.035em; line-height: 1; }
.orienta-resultado p { color: var(--gris-selva); }

/* ---------- Ejemplos ---------- */
.ejemplos { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 1000px) { .ejemplos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ejemplo { margin: 0; background: var(--papel); padding: 8px 8px 0; border-radius: var(--radio); }
.ejemplo img { display: block; width: 100%; height: auto; }
.ejemplo figcaption { padding: 9px 4px 10px; }

/* ---------- Cómo trabajamos ---------- */
.pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); border-top: 2px solid var(--selva); }
.pasos li { padding: 26px 26px 30px 0; border-bottom: 1px solid var(--linea); }
.pasos li:last-child { padding-right: 0; }
.num {
  font-stretch: 125%; font-weight: 800; font-size: 96px; line-height: .95; letter-spacing: -.05em;
  color: var(--calor); -webkit-text-stroke: 2px var(--calor); transition: color .7s;
}
.pasos h3 { margin: 14px 0 8px; font-stretch: 112%; font-weight: 800; font-size: 22px; letter-spacing: -.02em; line-height: 1.15; }
.pasos p { color: var(--gris); font-size: 16px; }

/* ---------- Preguntas ---------- */
.preguntas-fila { display: flex; flex-wrap: wrap; gap: 36px 60px; }
.preguntas-fila .titulo { flex: 1 1 300px; }
.preguntas-col { flex: 2 1 520px; min-width: 0; }
.preguntas { border-top: 2px solid var(--selva); }
.preguntas details { border-bottom: 1px solid var(--linea); padding: 20px 0; }
.preguntas summary { cursor: pointer; font-weight: 700; font-size: 20px; line-height: 1.3; }
.preguntas summary:hover { color: var(--brasa); }
.preguntas details p { margin-top: 12px; color: var(--gris); max-width: 40em; }

/* ---------- Cotización: orden de trabajo ---------- */
.contacto-fila { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 60px; }
.contacto-texto { flex: 1 1 380px; min-width: 0; }
.contacto-bajada { margin-top: 26px; font-size: 19px; max-width: 26em; }
.contacto-directo { margin-top: 30px; font-size: 17px; }
.correo { font-weight: 800; font-size: 22px; color: var(--calor-tinta); overflow-wrap: anywhere; }
.correo:hover { text-decoration-thickness: 3px; }

.orden {
  flex: 1.4 1 520px; min-width: 0; background: var(--papel); color: var(--tinta);
  border-radius: var(--radio); box-shadow: 0 30px 60px -24px rgba(26, 14, 8, .55);
}
.orden-cabeza {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px;
  padding: 16px 28px; border-bottom: 2px dashed var(--tinta); font-family: var(--f-mono); font-size: 13px;
}
.orden-cuerpo { padding: 22px 28px 30px; }
.orden .form-ayuda { font-size: 14px; color: var(--gris); }
.campos { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px 20px; }
.campo { display: grid; gap: 6px; align-content: start; }
.campo-ancho { grid-column: 1 / -1; }
.campo label { font-weight: 700; font-size: 15px; }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 48px; padding: 0 12px; border: 2px solid var(--tinta); border-radius: 3px;
  background: var(--blanco); color: var(--tinta);
}
.campo textarea { padding: 10px 12px; resize: vertical; }
.campo input::placeholder, .campo textarea::placeholder { color: #5E6A62; }
.campo [aria-invalid="true"] { border-color: var(--brasa); box-shadow: 0 0 0 1px var(--brasa); }
.campo input:focus-visible, .campo select:focus-visible, .campo textarea:focus-visible { outline-offset: 1px; }
.form-error { margin-top: 18px; padding: 10px 14px; border-left: 4px solid var(--brasa); background: var(--blanco); color: var(--brasa); font-weight: 700; }
.orden-pie { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 22px 28px 28px; border-top: 2px dashed var(--tinta); }
.orden-pie .form-ayuda { flex: 1 1 240px; margin: 0; }
.form-resultado { margin: 0 28px 28px; padding: 18px; background: var(--blanco); border: 2px solid var(--selva); border-radius: var(--radio); display: grid; gap: 12px; }
.form-resultado textarea { width: 100%; padding: 10px 12px; border: 2px solid var(--tinta); border-radius: 3px; background: var(--papel); font-family: var(--f-mono); font-size: 13px; }
.form-resultado .boton { justify-self: start; }
.form-copiado { font-family: var(--f-mono); font-size: 13px; }
.orden-noscript { padding: 0 28px 24px; }

/* ---------- Pedido personal ---------- */
.personal { background: var(--papel); border-bottom: 2px solid var(--selva); }
.personal-fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding-top: 44px; padding-bottom: 44px; }
.personal-fila > div { flex: 1 1 380px; }
.personal h2 { font-stretch: 112%; font-weight: 800; font-size: 26px; letter-spacing: -.02em; }
.personal p { margin-top: 6px; color: var(--gris); }

/* ---------- Pie ---------- */
.pie { background: var(--selva); color: var(--papel); }
.pie-fila { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 30px 40px; padding-top: 64px; padding-bottom: 40px; }
.pie-marca { font-stretch: 125%; font-weight: 800; font-size: clamp(38px, 8vw, 120px); line-height: .9; letter-spacing: -.045em; max-width: 100%; }
.pie-acento { color: var(--calor); }
.pie-palabra { white-space: nowrap; }
.l { display: inline-block; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .l { transition: color .15s, transform .35s cubic-bezier(.2, .9, .3, 1.6); }
  .l:hover { color: var(--calor); transform: translateY(-12px); }
  .l2:hover { color: var(--papel); }
}
.pie-datos { font-size: 15px; color: var(--gris-selva); display: grid; gap: 4px; }
.pie-datos a { color: var(--papel); font-weight: 700; }
.pie-datos a:hover { color: var(--calor-texto); }

/* ---------- Efectos al entrar en pantalla (las clases sx-pre las pone el JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-sx="wipe"] { transition: clip-path 1s cubic-bezier(.7, 0, .2, 1); }
  [data-sx="wipe"].sx-pre { clip-path: inset(0 100% 0 0); }
  [data-sx="wipe"].sx-in { clip-path: inset(0 0 0 0); }
  [data-sx="ticket"] { transition: clip-path 1.5s steps(16), transform 1.5s steps(16); }
  [data-sx="ticket"].sx-pre { clip-path: inset(0 0 100% 0); transform: translateY(-36px); }
  [data-sx="ticket"].sx-in { clip-path: inset(-100px -100px -100px -100px); transform: none; }
  .sx-pre .num { color: transparent; }
  [data-sx="pasos"] li:nth-child(2) .num { transition-delay: .18s; }
  [data-sx="pasos"] li:nth-child(3) .num { transition-delay: .36s; }
  [data-sx="pasos"] li:nth-child(4) .num { transition-delay: .54s; }
}

/* ---------- Ajustes de ancho ---------- */
@media (max-width: 820px) {
  .seccion { padding: 80px 0 72px; }
  #productos, .seccion-selva { padding: 72px 0; }
  .principal-fila { padding-top: 64px; padding-bottom: 88px; }
}
@media (max-width: 640px) {
  /* En móvil el enlace a AbyssCorp queda solo en el pie, para no apilar cinco filas en la cabecera */
  .volver { display: none; }
  .cabecera-fila { gap: 8px 20px; padding-top: 14px; padding-bottom: 16px; }
  .nav { order: 3; width: 100%; }
  .nav ul { gap: 0 20px; }
  .nav a { padding: 8px 0; }
}
@media (max-width: 480px) {
  :root { --margen: 20px; }
  .solucion { padding: 28px 22px 24px; min-height: 0; }
  .tecnica { padding: 28px 22px; }
  .orienta { padding: 24px 20px; }
  .orienta-rotulo { flex-basis: 100%; }
  .orden-cabeza, .orden-cuerpo, .orden-pie { padding-left: 18px; padding-right: 18px; }
  .form-resultado { margin: 0 18px 18px; }
  .orden-pie .boton { width: 100%; }
  .num { font-size: 80px; }
}

/* Movimiento reducido: sin transiciones ni animaciones */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- WEB-24: hero en móvil, carruseles y zoom ---------- */
@media (max-width: 820px) {
  .principal-visual { display: block; flex-basis: 100%; }
  .ancla { width: 58%; margin-left: auto; }
  .escena { margin: -20% 0 -28px; }
}

.carrusel-controles { display: flex; justify-content: flex-end; gap: 10px; margin: -8px 0 16px; }
.carrusel-boton {
  width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--selva); border: 2px solid var(--selva); border-radius: var(--radio);
}
.carrusel-boton svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.carrusel-boton:disabled { opacity: .35; cursor: default; }
@media (hover: hover) { .carrusel-boton:not(:disabled):hover { background: var(--selva); color: var(--papel); } }

.carrusel {
  display: flex; grid-template-columns: none; gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 12px 0 18px;
  scrollbar-width: thin; scrollbar-color: var(--selva) transparent;
}
.carrusel > * { flex: 0 0 min(84%, 520px); scroll-snap-align: start; }
.tecnicas.carrusel > * { flex-basis: min(88%, 760px); }
@media (prefers-reduced-motion: no-preference) { .carrusel { scroll-behavior: smooth; } }

a.foto { display: block; cursor: zoom-in; }
.ejemplo-foto { display: block; cursor: zoom-in; aspect-ratio: 1600 / 728; overflow: hidden; }
.ejemplo .ejemplo-foto img { width: 100%; height: 100%; object-fit: cover; }

.zoom {
  width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100dvh;
  margin: 0; padding: 0; border: 0; background: var(--tinta); color: var(--papel);
}
.zoom[open] { display: flex; flex-direction: column; }
.zoom::backdrop { background: var(--tinta); }
.zoom-barra { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.zoom-pie { font-family: var(--f-mono); font-size: 13px; color: var(--gris-selva); }
.zoom-cerrar {
  font: inherit; font-weight: 700; min-height: 46px; padding: 0 20px; cursor: pointer;
  background: var(--calor); color: var(--calor-tinta); border: 0; border-radius: var(--radio);
}
.zoom-lienzo { flex: 1; min-height: 0; overflow: auto; display: flex; }
.zoom-lienzo img { display: block; margin: auto; height: min(100%, 64vh); width: auto; max-width: none; cursor: zoom-out; }
@media (min-width: 900px) { .zoom-lienzo img { height: auto; max-height: 100%; max-width: 100%; } }
.carrusel > * { min-width: 0; }
.carrusel .tecnica-cabeza { flex-wrap: wrap; }

/* Fotos en las tarjetas de Soluciones y Técnicas */
.con-foto { padding-top: 0; overflow: hidden; }
.tarjeta-foto { position: relative; display: block; cursor: zoom-in; aspect-ratio: 3 / 2; background: var(--selva); flex: none; }
.tarjeta-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.solucion a.tarjeta-foto { margin: 0 -32px 10px; padding: 0; align-self: stretch; }
.tecnica .tarjeta-foto { margin: 0 -34px 30px; }
.solucion.con-foto p { flex: 0 1 auto; }
.solucion.con-foto a:not(.tarjeta-foto) { margin-top: auto; }
@media (max-width: 480px) {
  .solucion a.tarjeta-foto, .tecnica .tarjeta-foto { margin-left: -22px; margin-right: -22px; }
  .tecnica .tarjeta-foto { margin-bottom: 24px; }
}

/* Hero en escritorio: la imagen de productos ocupa todo el ancho de su columna */
@media (min-width: 821px) {
  .principal-visual { flex: 1.2 1 460px; }
  .escena { grid-column: 1 / 13; margin-bottom: -56px; }
}
.escena { max-width: 640px; }
