/* Rediseño institucional AgroTI — versión estática (HTML + CSS).
   Valores tomados de prototype/original/AgroTI Rediseño.dc.html. */

:root {
  --paper: oklch(0.975 0.005 100);
  --ink: oklch(0.18 0.01 150);
  --lime: oklch(0.86 0.13 125);
  --green: oklch(0.42 0.08 150);
  --forest: oklch(0.26 0.05 155);
  --muted: oklch(0.42 0.01 150);
  --header-bg: oklch(0.985 0.003 100);
  --mono: 'Geist Mono', monospace;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(88px, 12vw, 160px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 84px;
}

/* Base (bloque <helmet> del prototipo) */
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Geist', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
::selection { background: var(--lime); color: var(--ink); }
button, input, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* Utilidades compartidas */
.container { max-width: calc(1320px - 2 * var(--gutter)); margin: 0 auto; }
.section { padding: var(--section-y) var(--gutter); }
.section--contained { max-width: 1320px; margin: 0 auto; }
.section--forest { background: var(--forest); color: var(--paper); }
.section--ink { background: var(--ink); color: var(--paper); }

.eyebrow { margin: 0 0 24px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow--about { margin-bottom: 28px; color: var(--green); }
.eyebrow--green { color: var(--green); }
.eyebrow--lime { color: var(--lime); }

.section-title { margin: 0; font-weight: 500; font-size: clamp(36px, 5vw, 72px); line-height: 1; letter-spacing: -0.04em; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; }

.label-mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.media { aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media--light { background: oklch(0.93 0.008 100); }
.media--forest { background: oklch(0.22 0.045 155); position: relative; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); border-bottom: 1px solid oklch(0.18 0.01 150 / 0.08); transition: box-shadow .3s ease; box-shadow: none; }
.nav { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: clamp(24px, 2.5vw, 32px); width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 36px; font-size: 14px; }
.nav-links a { color: oklch(0.3 0.01 150); transition: color .2s; }
.nav-links a:hover { color: var(--green); }
.btn-usuarios { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--forest); font-size: 13px; color: var(--paper); transition: background .2s; }
.btn-usuarios:hover { background: var(--ink); color: var(--paper); }
.menu-toggle { width: 44px; height: 44px; border-radius: 999px; border: 1px solid oklch(0.18 0.01 150 / 0.2); background: transparent; color: var(--ink); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.menu-toggle span { width: 16px; height: 1.5px; background: currentColor; display: block; }
/* Sombra del encabezado (prototipo: navShadow = scrolled || menuOpen) y bloque #menu-movil */
.site-header.is-menu-open,
.site-header.is-scrolled { box-shadow: 0 6px 24px oklch(0.18 0.01 150 / 0.08); }
.mobile-menu { background: var(--header-bg); padding: 4px var(--gutter) 28px; display: flex; flex-direction: column; border-top: 1px solid oklch(0.18 0.01 150 / 0.08); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a,
.mobile-menu a:hover { padding: 16px 0; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); border-bottom: 1px solid oklch(0.18 0.01 150 / 0.1); }
.mobile-menu a.mobile-menu-usuarios,
.mobile-menu a.mobile-menu-usuarios:hover { margin-top: 20px; align-self: flex-start; display: flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px; border-bottom: none; background: var(--forest); font-size: 15px; letter-spacing: normal; color: var(--paper); }

/* Encabezado premium (alternativa B aprobada). Altura sin cambios (--nav-h 84 / 68 px).
   El indicador (.nav-indicator) y la barra de progreso (.nav-progress) los crea main.js. */

/* Fondo: vidrio esmerilado al desplazarse (el contenido pasa por detrás del encabezado sticky) */
.site-header { transition: box-shadow .35s ease, background-color .35s ease, border-color .35s ease; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled:not(.is-menu-open) {
    background: oklch(0.985 0.003 100 / 0.74);
    -webkit-backdrop-filter: saturate(1.8) blur(16px);
    backdrop-filter: saturate(1.8) blur(16px);
  }
}
.site-header.is-menu-open,
.site-header.is-scrolled { border-bottom-color: oklch(0.18 0.01 150 / 0.05); box-shadow: 0 10px 30px -16px oklch(0.18 0.01 150 / 0.25); }

/* Barra de progreso de lectura sobre el filete inferior: lima → verde */
.nav-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--lime), var(--green));
  transform: scaleX(0); transform-origin: left center;
}
.site-header.is-menu-open .nav-progress { opacity: 0; }

/* Enlaces: 14 → 15 px, peso 500; el espacio horizontal pasa al relleno para alojar el indicador */
.nav-links { position: relative; gap: 4px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.nav-links a { position: relative; z-index: 1; padding: 9px 15px; border-radius: 999px; color: oklch(0.36 0.01 150); transition: color .25s ease; }
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--ink); }
.nav-links a.is-current { color: var(--forest); }

/* Indicador deslizante: pastilla lima tenue con filete verde */
.nav-indicator {
  position: absolute; z-index: 0; left: 0; top: 50%; height: 38px; margin-top: -19px; width: 0;
  border-radius: 999px; pointer-events: none;
  background: oklch(0.86 0.13 125 / 0.32);
  box-shadow: inset 0 0 0 1px oklch(0.42 0.08 150 / 0.22);
  opacity: 0;
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .25s ease, background-color .25s ease;
}
.nav-indicator.is-visible { opacity: 1; }
/* Al pasar sobre un enlace que no es el activo: misma pastilla, más neutra */
.nav-indicator.is-preview { background: oklch(0.18 0.01 150 / 0.06); box-shadow: inset 0 0 0 1px oklch(0.18 0.01 150 / 0.1); }

/* Botón Usuarios: degradado sutil, brillo que cruza al pasar y flecha en diagonal */
.btn-usuarios {
  position: relative; overflow: hidden; padding: 11px 20px; font-size: 14px; font-weight: 500;
  background: linear-gradient(180deg, oklch(0.32 0.055 155), var(--forest));
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.14), 0 1px 2px oklch(0.18 0.01 150 / 0.2);
  transition: box-shadow .3s ease, transform .3s var(--ease);
}
.btn-usuarios::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, oklch(0.86 0.13 125 / 0.35) 50%, transparent 65%);
  transform: translateX(-120%);
}
.btn-usuarios:hover { background: linear-gradient(180deg, oklch(0.32 0.055 155), var(--forest)); transform: translateY(-1px); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.14), 0 8px 20px -8px oklch(0.26 0.05 155 / 0.6); }
.btn-usuarios:hover::before { transform: translateX(120%); transition: transform .8s var(--ease); }
.btn-usuarios span { display: inline-block; transition: transform .3s var(--ease); }
.btn-usuarios:hover span { transform: translate(2px, -2px); color: var(--lime); }

/* Menú móvil: punto lima en la sección activa */
.mobile-menu a.is-current { color: var(--forest); }
.mobile-menu a.is-current::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 12px; border-radius: 50%; vertical-align: middle; background: var(--lime); box-shadow: 0 0 0 4px oklch(0.86 0.13 125 / 0.3); }

@media (prefers-reduced-motion: reduce) {
  .site-header, .nav-links a, .nav-indicator, .btn-usuarios, .btn-usuarios span { transition: none; }
  .btn-usuarios::before { display: none; }
  .btn-usuarios:hover { transform: none; }
  .btn-usuarios:hover span { transform: none; }
}

/* Aparición al desplazarse: estado inicial (la clase la agrega index.html solo cuando main.js anima) */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(28px); }

/* Inicio */
/* Hero A2 refinado + corrección de tablet (prototipo hero-a2-tablet.html).
   Adaptaciones al sitio: altura del encabezado con --nav-h; colores de :hover explícitos porque el sitio define a:hover. */
.hero {
  /* Borde izquierdo real del texto: el mismo contenedor de 1320 px que el encabezado. */
  --content-left: max(var(--gutter), calc(50vw - 612px));
  /* Verde oscuro del velo (identidad AgroTI) */
  --veil: 0.2 0.05 155;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - var(--nav-h));
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; background: oklch(var(--veil));
}
.hero-photo {
  /* Encuadre ligado al texto: el poste del equipo (35 % del ancho de la foto) se ubica
     siempre ~500 px a la derecha del borde del texto, en cualquier ancho de pantalla. */
  position: absolute; top: 0; left: 0; z-index: -3;
  width: max(115%, calc((var(--content-left) + 500px) / 0.35));
  height: 100%; object-fit: cover; object-position: 0% 26%;
  filter: saturate(1.1) contrast(1.03) brightness(1.05);
}
/* Base suave para la barra de herramientas. El velo principal acompaña al bloque de texto (.hero-content::before). */
.hero-shade {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(0deg, oklch(var(--veil) / 0.5) 0%, oklch(var(--veil) / 0) 22%);
}
.hero-inner {
  position: relative; width: 100%; max-width: 1320px; margin: 0 auto;
  padding: clamp(40px, 8vh, 120px) var(--gutter) clamp(20px, 3.2vh, 32px);
}
.hero-content { position: relative; max-width: min(520px, 42vw); }
/* Velo de escritorio: horizontal desde el borde izquierdo hasta poco antes del equipo,
   y con su borde superior difuminado a lo largo de 200 px por encima del texto: el cielo queda limpio. */
.hero-content::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: calc(-1 * var(--content-left)); width: calc(var(--content-left) + 640px);
  top: -200px; bottom: -400px;
  background: linear-gradient(90deg,
    oklch(var(--veil) / 0.84) 0%,
    oklch(var(--veil) / 0.8) calc(var(--content-left) + 260px),
    oklch(var(--veil) / 0.62) calc(var(--content-left) + 400px),
    oklch(var(--veil) / 0.26) calc(var(--content-left) + 500px),
    oklch(var(--veil) / 0) calc(var(--content-left) + 610px));
  -webkit-mask-image: linear-gradient(180deg, transparent 0, rgb(0 0 0 / 0.5) 110px, #000 200px);
          mask-image: linear-gradient(180deg, transparent 0, rgb(0 0 0 / 0.5) 110px, #000 200px);
}
.hero-kicker {
  margin: 0 0 clamp(18px, 2.6vh, 26px); display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 11px; border-radius: 999px;
  background: oklch(var(--veil) / 0.62); border: 1px solid oklch(1 0 0 / 0.2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #fff;
}
.hero-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px oklch(0.86 0.13 125 / 0.22); }
/* Titular: tamaño ligado al ancho y al alto (no desborda en pantallas bajas). */
.hero-title {
  margin: 0; font-weight: 600; font-size: clamp(34px, min(3.6vw, 6.4vh), 58px);
  line-height: 1.04; letter-spacing: -0.03em; max-width: 15ch; text-wrap: balance;
  text-shadow: 0 1px 2px oklch(0.15 0.03 155 / 0.35), 0 2px 20px oklch(0.15 0.03 155 / 0.4);
}
.hero-title em { font-style: normal; color: var(--lime); }
.hero-lead {
  margin: clamp(16px, 2.4vh, 24px) 0 0; max-width: 34ch;
  font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.6; color: oklch(1 0 0 / 0.92);
  text-wrap: pretty; text-shadow: 0 1px 10px oklch(0.15 0.03 155 / 0.55);
}
.hero-ctas { margin-top: clamp(24px, 3.6vh, 36px); display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 500; line-height: 1;
  transition: background-color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btn-primary {
  background: var(--lime); color: var(--ink);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.35), 0 8px 20px oklch(0.15 0.03 155 / 0.28);
}
.btn-primary:hover { background: oklch(0.9 0.12 125); color: var(--ink); transform: translateY(-1px); }
.btn-primary span { transition: transform .2s; }
.btn-primary:hover span { transform: translateX(3px); }
.btn-glass {
  background: oklch(var(--veil) / 0.35); border: 1px solid oklch(1 0 0 / 0.55); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-glass:hover { background: oklch(1 0 0 / 0.16); border-color: #fff; color: #fff; transform: translateY(-1px); }
/* Herramientas: barra ajustada a su contenido. */
.hero-tools {
  margin-top: clamp(28px, 6vh, 72px); width: fit-content; max-width: 100%;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
  padding: 10px 10px 10px 20px; border-radius: 16px;
  background: oklch(var(--veil) / 0.55); border: 1px solid oklch(1 0 0 / 0.14);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.hero-tools-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: oklch(1 0 0 / 0.78); }
.hero-tools-links { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-tools-links a { padding: 8px 14px; border-radius: 999px; font-size: 13px; color: #fff; background: oklch(1 0 0 / 0.08); border: 1px solid oklch(1 0 0 / 0.16); transition: background-color .2s, color .2s, border-color .2s; }
.hero-tools-links a:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.hero-tools-links a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Tablet y celular: el velo acompaña al bloque de texto, no a la altura de pantalla */
@media (max-width: 1024px) {
  .hero-photo { width: 100%; object-position: 42% 50%; }
  .hero-content::before {
    left: calc(-1 * var(--gutter)); width: 100vw; top: -140px; bottom: -600px;
    -webkit-mask-image: none; mask-image: none;
    background: linear-gradient(180deg,
      oklch(var(--veil) / 0) 0px,
      oklch(var(--veil) / 0.62) 110px,
      oklch(var(--veil) / 0.8) 170px,
      oklch(var(--veil) / 0.88) 55%,
      oklch(var(--veil) / 0.92) 100%);
  }
  .hero-inner { padding-top: clamp(160px, 34svh, 360px); }
  .hero-content { max-width: 560px; }
  .hero-title { font-size: clamp(32px, 6vw, 50px); }
  .hero-lead { font-size: 17px; }
}
/* Solo tablet (701–1024 px): el velo se concentra a la izquierda, detrás del texto, y se desvanece
   hacia la derecha para que el canal y el primer plano conserven su luminosidad. */
@media (min-width: 701px) and (max-width: 1024px) {
  .hero-content::before {
    background: linear-gradient(90deg,
      oklch(var(--veil) / 0.86) 0px,
      oklch(var(--veil) / 0.82) calc(var(--gutter) + 390px),
      oklch(var(--veil) / 0.52) calc(var(--gutter) + 530px),
      oklch(var(--veil) / 0.18) calc(var(--gutter) + 670px),
      oklch(var(--veil) / 0.06) 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, rgb(0 0 0 / 0.7) 110px, #000 170px);
            mask-image: linear-gradient(180deg, transparent 0, rgb(0 0 0 / 0.7) 110px, #000 170px);
  }
}
/* Tablet horizontal / pantallas bajas (p. ej. 1024×768, 900×768): con 34svh de margen superior los botones
   quedaban debajo del borde inferior. 29svh los sube sin que el titular tape el gabinete del equipo. */
@media (min-width: 701px) and (max-width: 1024px) and (max-height: 800px) {
  .hero-inner { padding-top: clamp(160px, 29svh, 360px); }
}
/* Celular (la altura del encabezado la fija --nav-h del sitio) */
@media (max-width: 700px) {
  .hero-photo { object-position: 44% 50%; }
  .hero-inner { padding: clamp(150px, 30svh, 300px) var(--gutter) 18px; }
  .hero-content::before { top: -120px; }
  .hero-content { max-width: none; }
  .hero-kicker { margin-bottom: 16px; padding: 6px 12px 6px 10px; font-size: 11px; }
  .hero-title { font-size: clamp(29px, 9vw, 36px); line-height: 1.06; }
  .hero-lead { margin-top: 14px; font-size: 15.5px; line-height: 1.58; }
  .hero-ctas { margin-top: 22px; gap: 10px; }
  .hero-ctas .btn { flex: 1 1 auto; min-height: 50px; padding: 0 20px; }
  .hero-tools { width: auto; margin-top: 24px; padding: 14px 0 0; gap: 10px; border-radius: 0; background: none; border: 0; border-top: 1px solid oklch(1 0 0 / 0.2); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero-tools-links a { padding: 7px 12px; font-size: 12.5px; background: oklch(var(--veil) / 0.55); }
  /* Franja libre a la derecha para el acceso flotante de WhatsApp: ningún botón ni chip del hero queda debajo. */
  .hero-ctas,
  .hero-tools-links { padding-right: 56px; }
}
/* Celulares bajos (p. ej. 320×568): priorizar que el botón principal entre en la primera pantalla. */
@media (max-width: 700px) and (max-height: 640px) {
  .hero-inner { padding-top: 96px; }
  .hero-kicker { margin-bottom: 12px; }
  .hero-title { font-size: 28px; }
  .hero-lead { margin-top: 10px; font-size: 15px; line-height: 1.5; }
  .hero-ctas { margin-top: 16px; }
  .hero-ctas .btn { min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) { .btn, .btn span, .hero-tools-links a { transition: none; } .btn:hover { transform: none; } }

/* Destacado DINAGUA en el hero (referencia aprobada dinagua.png): banner verde oscuro con borde lima luminoso,
   gota, filete vertical, «TELEMETRÍA DE AGUA» + «DINAGUA» grande en lima y botón a #dinagua.
   Escritorio (> 1024 px): banner ancho en el flujo, entre los botones y «Herramientas en línea»; deja libre el carril
   del acceso de WhatsApp (mismo cálculo que la barra del carrusel de Proyectos). Los tamaños dependen también del
   alto (vh) para que en ventanas bajas el banner no empuje las herramientas fuera de la pantalla.
   Tablet y celular (<= 1024 px): banner compacto al comienzo de la portada, sobre la zona superior de la foto,
   por encima del equipo solar; el bloque de texto no se mueve.
   Entrada (CSS, una sola vez, ~1 s): sube 20 px mientras aparece, el borde se ilumina y queda fijo. Sin JS. */
.hero-dinagua {
  --dg-glow: 0 0 0 1px oklch(0.86 0.13 125 / 0.22), 0 0 22px -2px oklch(0.86 0.13 125 / 0.5), inset 0 0 30px -10px oklch(0.86 0.13 125 / 0.35);
  position: relative; z-index: 1;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: clamp(18px, 2.2vw, 34px);
  margin-top: clamp(22px, 3.6vh, 40px);
  margin-right: max(0px, calc(96px - var(--gutter) - max(0px, (100vw - 1320px) / 2)));
  padding: clamp(12px, 2vh, 20px) clamp(22px, 2.6vw, 40px);
  border-radius: 18px; color: #fff;
  border: 2px solid oklch(0.86 0.13 125 / 0.85);
  background: linear-gradient(90deg, oklch(0.19 0.05 155 / 0.92), oklch(0.22 0.055 150 / 0.8));
  box-shadow: var(--dg-glow);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  animation: hero-dinagua-in 1s var(--ease) .4s both;
}
.hero-dinagua-icon { display: block; width: clamp(44px, min(4.4vw, 7vh), 66px); color: var(--lime); filter: drop-shadow(0 0 8px oklch(0.86 0.13 125 / 0.45)); }
.hero-dinagua-icon svg { width: 100%; height: auto; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Agua dentro de la gota: dos ondas lima translúcidas (longitud de onda 8 unidades) que se desplazan sin fin en
   sentidos opuestos; el recorte (clipPath) las mantiene dentro de la silueta y el contorno queda quieto. */
.hero-dinagua-onda { fill: currentColor; stroke: none; opacity: 0.4; animation: hero-dinagua-onda 3.2s linear infinite; }
.hero-dinagua-onda--fondo { opacity: 0.2; animation-duration: 4.8s; animation-direction: reverse; }
@keyframes hero-dinagua-onda { from { transform: translateX(-8px); } to { transform: translateX(0); } }
/* Filete vertical entre la gota y el texto */
.hero-dinagua-title { margin: 0; min-width: 0; padding-left: clamp(18px, 2.2vw, 34px); border-left: 1px solid oklch(0.86 0.13 125 / 0.55); }
.hero-dinagua-title span { display: block; font-size: clamp(14px, min(1.4vw, 2.3vh), 21px); font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: #fff; }
.hero-dinagua-title strong { display: block; margin-top: 2px; font-size: clamp(40px, min(4.8vw, 7.6vh), 76px); font-weight: 700; line-height: 0.95; letter-spacing: -0.035em; color: var(--lime); text-shadow: 0 0 22px oklch(0.86 0.13 125 / 0.25); }
.hero-dinagua-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: clamp(48px, 6.4vh, 58px); padding: 0 clamp(22px, 2.4vw, 36px); border-radius: 999px;
  background: var(--lime); color: var(--ink); font-size: clamp(15px, 1.25vw, 18px); font-weight: 600; line-height: 1; white-space: nowrap;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.35), 0 0 22px -4px oklch(0.86 0.13 125 / 0.6);
  transition: background-color .2s, transform .2s;
}
.hero-dinagua-btn:hover { background: oklch(0.9 0.12 125); color: var(--ink); transform: translateY(-1px); }
.hero-dinagua-btn span { transition: transform .2s; }
.hero-dinagua-btn:hover span { transform: translateX(3px); }
.hero-dinagua-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@keyframes hero-dinagua-in {
  0% { opacity: 0; transform: translateY(20px); border-color: oklch(0.86 0.13 125 / 0.3); box-shadow: 0 0 0 1px oklch(0.86 0.13 125 / 0), 0 0 0 0 oklch(0.86 0.13 125 / 0), inset 0 0 0 0 oklch(0.86 0.13 125 / 0); }
  55% { opacity: 1; transform: none; border-color: var(--lime); box-shadow: 0 0 0 2px oklch(0.86 0.13 125 / 0.45), 0 0 46px 2px oklch(0.86 0.13 125 / 0.65), inset 0 0 40px -6px oklch(0.86 0.13 125 / 0.5); }
  100% { opacity: 1; transform: none; border-color: oklch(0.86 0.13 125 / 0.85); box-shadow: var(--dg-glow); }
}
/* Escritorio: las herramientas quedan pegadas al banner, como en la referencia (antes: 28–72 px tras los botones).
   Gota y «DINAGUA» más grandes sin cambiar el alto del banner: «DINAGUA» va en mayúsculas sin descendentes, así que
   el interlineado baja de 0,95 a 0,86 y el bloque de texto mide lo mismo (1440×900: 75,6 × 0,86 ≈ 68,4 × 0,95 = 65 px).
   Gota, texto y botón se agrupan al centro del banner para no dejar un hueco largo entre el título y el botón. */
@media (min-width: 1025px) {
  .hero-dinagua + .hero-tools { margin-top: clamp(14px, 2.2vh, 22px); }
  .hero-dinagua { grid-template-columns: auto auto auto; justify-content: center; }
  .hero-dinagua-icon { width: clamp(56px, min(5.6vw, 8.6vh), 86px); }
  /* El dibujo de la gota ocupa ~72 % del alto de su caja: escala 1,3 solo visual (no cambia la caja ni el alto). */
  .hero-dinagua-icon svg { transform: scale(1.3); }
  .hero-dinagua-title strong { font-size: clamp(46px, min(5.4vw, 8.4vh), 84px); line-height: 0.86; }
  .hero-dinagua-btn { margin-left: clamp(40px, 7vw, 140px); }
}
/* Escritorio bajo (alto útil <= 880 px: 1280×720, 1366×768, 1440×800, 1536×864): banner más compacto para que
   «Herramientas en línea» siga en la primera pantalla (con el banner normal, el hero crecía 28–65 px y las
   herramientas quedaban debajo del borde). */
@media (min-width: 1025px) and (max-height: 880px) {
  .hero-dinagua { margin-top: 14px; padding-top: 8px; padding-bottom: 8px; }
  .hero-dinagua-icon { width: 52px; }
  .hero-dinagua-title span { font-size: 14px; }
  /* 46 × 0,86 = 39,6 px sin margen superior ≈ 40 × 0,95 + 2 = 40 px de antes: mismo alto */
  .hero-dinagua-title strong { margin-top: 0; font-size: 46px; }
  .hero-dinagua-btn { min-height: 46px; }
  .hero-dinagua + .hero-tools { margin-top: 12px; }
}
/* Tablet y celular: banner al comienzo de la portada. .hero-inner pasa a estático solo para que el banner se ubique
   respecto de la sección (.hero) y no del bloque de texto; no crea capas, así que no cambia nada más. */
@media (max-width: 1024px) {
  .hero-inner { position: static; }
  .hero-dinagua { position: absolute; top: 14px; left: var(--gutter); right: var(--gutter); margin: 0; column-gap: 18px; padding: 12px 20px; border-radius: 16px; }
  .hero-dinagua-icon { width: 44px; }
  .hero-dinagua-title { padding-left: 18px; }
  .hero-dinagua-title span { font-size: 13px; }
  .hero-dinagua-title strong { font-size: 40px; }
  .hero-dinagua-btn { min-height: 46px; padding: 0 22px; font-size: 15px; }
}
/* Celular: franja compacta casi a todo el ancho, pegada al encabezado; botón en dos líneas. */
@media (max-width: 700px) {
  .hero-dinagua { top: 10px; left: 10px; right: 10px; column-gap: 12px; padding: 12px 12px 12px 14px; border-radius: 14px; }
  .hero-dinagua-icon { width: 34px; }
  .hero-dinagua-title { padding-left: 12px; }
  .hero-dinagua-title span { font-size: 11px; letter-spacing: 0.02em; }
  .hero-dinagua-title strong { margin-top: 1px; font-size: clamp(26px, 8.2vw, 31px); } /* 360 px: 29,5 px (31 no entraba) */
  .hero-dinagua-btn { display: inline-block; min-height: 0; max-width: 8.2em; padding: 8px 14px; border-radius: 20px; font-size: 13px; line-height: 1.2; white-space: normal; text-align: left; }
}
/* Celulares angostos (< 360 px): todo un poco más chico para que entre en una sola fila. */
@media (max-width: 359.98px) {
  .hero-dinagua { left: 8px; right: 8px; column-gap: 10px; padding: 8px 10px 8px 12px; }
  .hero-dinagua-icon { width: 24px; }
  .hero-dinagua-title { padding-left: 10px; }
  .hero-dinagua-title span { font-size: 9.5px; }
  .hero-dinagua-title strong { font-size: 23px; }
  .hero-dinagua-btn { padding: 7px 11px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-dinagua, .hero-dinagua-onda { animation: none; }
  .hero-dinagua-btn, .hero-dinagua-btn span { transition: none; }
  .hero-dinagua-btn:hover { transform: none; }
}

/* Nosotros */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about-title { margin: 0; font-weight: 500; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
.about-aside { display: flex; flex-direction: column; gap: 28px; padding-top: clamp(0px, 4vw, 52px); }
.about-text { margin: 0; font-size: 17px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.stats { margin-top: clamp(72px, 9vw, 128px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border-top: 1px solid oklch(0.18 0.01 150 / 0.14); }
.stat { padding: 32px 24px 8px 0; display: flex; flex-direction: column; gap: 12px; }
.stat-value { font-size: clamp(48px, 5.4vw, 80px); font-weight: 400; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 14px; color: var(--muted); }
/* Escritorio (>= 1024 px): la foto sube 16 px; el espacio con el texto crece lo mismo para que el texto no se mueva. */
@media (min-width: 1024px) {
  #nosotros .about-aside {
    padding-top: max(0px, calc(clamp(0px, 4vw, 52px) - 16px));
    gap: 44px;
  }
}

/* Áreas de trabajo */
.section-head--areas { gap: 24px; margin-bottom: clamp(48px, 6vw, 80px); }
.areas-intro { margin: 0; max-width: 38ch; font-size: 16px; line-height: 1.6; color: oklch(0.975 0.005 100 / 0.72); }
.areas-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.areas-tabs { display: flex; flex-direction: column; border-top: 1px solid oklch(0.975 0.005 100 / 0.16); }
.area-tab { all: unset; cursor: pointer; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 22px 4px; border-bottom: 1px solid oklch(0.975 0.005 100 / 0.16); color: oklch(0.975 0.005 100 / 0.6); transition: color .25s, padding .3s; padding-left: 4px; }
.area-tab.is-active { color: var(--paper); padding-left: 14px; }
.area-tab-num { font-family: var(--mono); font-size: 12px; color: oklch(0.975 0.005 100 / 0.45); }
.area-tab.is-active .area-tab-num { color: var(--lime); }
.area-tab-title { font-size: clamp(19px, 1.8vw, 26px); letter-spacing: -0.02em; }
.area-tab-arrow { font-size: 18px; opacity: 0; transition: opacity .25s; color: var(--lime); }
.area-tab.is-active .area-tab-arrow { opacity: 1; }
.area-panel { display: flex; flex-direction: column; gap: 28px; }
.area-body { display: flex; flex-direction: column; gap: 16px; }
.area-title { margin: 0; font-weight: 500; font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.03em; }
.area-desc { margin: 0; font-size: 17px; line-height: 1.65; color: oklch(0.975 0.005 100 / 0.8); max-width: 58ch; text-wrap: pretty; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tag { padding: 7px 13px; border-radius: 999px; border: 1px solid oklch(0.975 0.005 100 / 0.22); font-size: 13px; color: oklch(0.975 0.005 100 / 0.88); }
/* Escritorio (>= 900 px): espaciado vertical compacto para que las seis pestañas entren en pantallas habituales.
   Solo esta sección; no cambia --section-y, fuentes ni fotos. Tablet y celular sin cambios. */
@media (min-width: 900px) {
  #areas.section { padding-top: clamp(64px, 6.5vw, 104px); padding-bottom: clamp(64px, 6.5vw, 104px); }
  #areas .eyebrow { margin-bottom: 16px; }
  .section-head--areas { margin-bottom: clamp(32px, 3vw, 48px); }
  .area-tab { padding-top: 14px; padding-bottom: 14px; }
  .area-panel { gap: 20px; }
  .area-body { gap: 12px; }
}
/* Ventanas bajas de escritorio (alto útil <= 720 px, p. ej. 1366×768 o zoom 125 %) */
@media (min-width: 900px) and (max-height: 720px) {
  #areas.section { padding-top: 48px; }
  .section-head--areas { margin-bottom: 32px; }
}
/* Escritorio (>= 900 px): menos espacio superior en Nosotros, Proyectos y Contacto (misma escala que #areas).
   Solo el relleno superior; el inferior sigue con --section-y. */
@media (min-width: 900px) {
  #nosotros.section,
  #proyectos.section,
  #contacto.section {
    padding-top: clamp(64px, 6.5vw, 104px);
  }
}
/* Nosotros: subir todo el contenido 40px en escritorio (20px + 20px adicionales). */
@media (min-width: 900px) {
  #nosotros.section {
    padding-top: calc(clamp(64px, 6.5vw, 104px) - 40px);
  }
}
/* Áreas de trabajo, escritorio (>= 900 px; alternativa B aprobada): título y descripción sobre la parte
   inferior de la foto con un degradado; etiquetas debajo. La foto (4:3) se ajusta al alto útil para que
   pestañas, foto, título y descripción entren en una pantalla al entrar desde el menú. Va después de A14h
   porque reemplaza su relleno superior. Tablet y celular sin cambios. */
@media (min-width: 900px) {
  #areas.section { padding-top: 32px; }
  #areas .section-head--areas { margin-bottom: 32px; }
  #areas .area-panel {
    display: grid; gap: 0; justify-content: start;
    /* 270 px = header 85 + relleno 32 + encabezado ~100 + margen 32 + aire ~20 */
    grid-template-columns: min(100%, max(400px, calc((100svh - 270px) * 4 / 3)));
    grid-template-rows: 1fr auto auto auto;
  }
  #areas .area-panel .media { grid-column: 1; grid-row: 1 / 4; position: relative; }
  #areas .area-panel .media::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; pointer-events: none;
    background: linear-gradient(to top, oklch(0.16 0.035 155 / 0.92) 0%, oklch(0.16 0.035 155 / 0.7) 45%, oklch(0.16 0.035 155 / 0) 100%);
  }
  #areas .area-body { display: contents; }
  #areas .area-title { grid-column: 1; grid-row: 2; position: relative; z-index: 1; padding: 0 clamp(20px, 2.2vw, 32px) 10px; color: var(--paper); }
  #areas .area-desc { grid-column: 1; grid-row: 3; position: relative; z-index: 1; padding: 0 clamp(20px, 2.2vw, 32px) clamp(18px, 2vw, 28px); max-width: calc(58ch + 2 * clamp(20px, 2.2vw, 32px)); color: oklch(0.975 0.005 100 / 0.92); }
  #areas .tags { grid-column: 1; grid-row: 4; margin-top: 16px; }
}
/* Áreas de trabajo, celular y tablet angosta (< 900 px, mismo corte que la grilla de una columna):
   carrusel infinito armado por main.js (.has-carousel). Las pestañas y el panel único se ocultan; cada
   tarjeta reutiliza el marcado y los estilos del panel. Tarjeta al 85 % con el borde de la siguiente,
   como el carrusel de Proyectos en celular. El carril se mueve con transform:
   posición × (85 % + separación) + arrastre del dedo. Escritorio (>= 900 px) sin cambios. */
.areas-carousel { display: none; }
@media (max-width: 899.98px) {
  .areas-grid.has-carousel .areas-tabs,
  .areas-grid.has-carousel > .area-panel { display: none; }
  .areas-carousel { --gap: clamp(20px, 2.4vw, 32px); display: block; overflow: hidden; touch-action: pan-y pinch-zoom; }
  .areas-carousel:focus-visible { outline: 2px solid var(--lime); outline-offset: 6px; }
  .areas-carousel.is-dragging { cursor: grabbing; -webkit-user-select: none; user-select: none; }
  .areas-track {
    display: flex; gap: var(--gap); align-items: flex-start;
    transform: translate3d(calc(var(--pos, 1) * -1 * (85% + var(--gap)) + var(--drag, 0px)), 0, 0);
    transition: transform .5s var(--ease); will-change: transform;
  }
  .areas-track.is-static { transition: none; }
  .areas-track .area-card { flex: 0 0 85%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .areas-track { transition: none; } }

/* Proyectos */
.section-head--projects { gap: 28px; margin-bottom: clamp(40px, 5vw, 64px); }
.projects-title { max-width: 14ch; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { cursor: pointer; padding: 10px 18px; border-radius: 999px; font-size: 14px; transition: all .2s; border: 1px solid oklch(0.18 0.01 150 / 0.2); background: transparent; color: var(--ink); }
.filter.is-active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.project { display: flex; flex-direction: column; gap: 18px; cursor: default; }
.project:hover { transform: translateY(-2px); }
.project .media { position: relative; }
.project .media img { transition: transform 1.1s var(--ease); }
.project .media img:hover { transform: scale(1.05); }
.placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.placeholder span { font-family: var(--mono); font-size: 12px; }
.placeholder--light { background: repeating-linear-gradient(135deg, oklch(0.94 0.008 100) 0 12px, oklch(0.91 0.008 100) 12px 24px); }
.placeholder--light span { color: var(--muted); }
.placeholder--forest { background: repeating-linear-gradient(135deg, oklch(0.24 0.045 155) 0 12px, oklch(0.22 0.045 155) 12px 24px); }
.placeholder--forest span { color: oklch(0.975 0.005 100 / 0.6); }
.project[hidden] { display: none; }
.project-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; border-top: 1px solid oklch(0.18 0.01 150 / 0.14); padding-top: 16px; }
.project-head h3 { margin: 0; font-weight: 500; font-size: 21px; letter-spacing: -0.02em; }
.project-num { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.project-desc { margin: -8px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Carrusel de Proyectos (B4 aprobado): desplazamiento nativo (scroll-snap); 3 por vista en escritorio, 2 en tablet,
   1 (con borde del siguiente) en celular. La clase .is-carousel y los controles los crea main.js. */
#proyectos .projects.is-carousel {
  --gap: clamp(20px, 2.4vw, 32px);
  --card-w: 85%;
  display: flex; gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding: 4px 0; margin: -4px 0;
}
#proyectos .projects.is-carousel::-webkit-scrollbar { display: none; }
#proyectos .projects.is-carousel:focus-visible { outline: 2px solid var(--green); outline-offset: 6px; }
#proyectos .projects.is-carousel .project { flex: 0 0 var(--card-w); min-width: 0; scroll-snap-align: start; }
@media (min-width: 600px) { #proyectos .projects.is-carousel { --card-w: calc((100% - var(--gap)) / 2); } }
@media (min-width: 900px) {
  #proyectos.section { padding-top: 32px; }
  #proyectos .section-head--projects { margin-bottom: 24px; }
  #proyectos .projects.is-carousel {
    /* Foto 4:3 limitada por el alto util: 490 px = header 85 + relleno 32 + encabezado ~180 + margen 24 + texto ~95 + controles ~58 + aire 16 */
    --ph: clamp(180px, calc(100svh - 490px), 290px);
    max-width: calc(3 * var(--ph) * 4 / 3 + 2 * var(--gap));
    --card-w: calc((100% - 2 * var(--gap)) / 3);
  }
}
.carousel-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
#proyectos .projects.is-carousel + .carousel-bar { max-width: inherit; }
@media (min-width: 900px) { #proyectos .carousel-bar { max-width: calc(3 * clamp(180px, calc(100svh - 490px), 290px) * 4 / 3 + 2 * clamp(20px, 2.4vw, 32px)); } }
.carousel-status { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot { all: unset; cursor: pointer; width: 28px; height: 4px; border-radius: 999px; background: oklch(0.18 0.01 150 / 0.15); transition: background-color .25s, width .25s; }
.carousel-dot[aria-current="true"] { width: 44px; background: var(--green); }
.carousel-dot:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.carousel-nav { display: flex; gap: 8px; }
.carousel-btn { cursor: pointer; width: 44px; height: 44px; border-radius: 999px; border: 1px solid oklch(0.18 0.01 150 / 0.2); background: transparent; color: var(--ink); font-size: 18px; display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s, color .2s, border-color .2s; }
.carousel-btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel-bar[hidden] { display: none; }
@media (max-width: 599.98px) { .carousel-dot { width: 14px; } .carousel-dot[aria-current="true"] { width: 24px; } }

/* Carrusel: la barra deja libre la franja derecha del boton fijo de WhatsApp
   (escritorio y tablet: right 24 + ancho 56; celular <= 700 px: right 16 + ancho 52; + 16 px de aire y barra
   de desplazamiento). Se descuenta el margen lateral y el espacio sobrante fuera del contenedor de 1320 px:
   en pantallas anchas (p. ej. 1440) el resultado es 0 y nada cambia. */
#proyectos .carousel-bar { --wa-clear: 96px; padding-right: max(0px, calc(var(--wa-clear) - var(--gutter) - max(0px, (100vw - 1320px) / 2))); }
@media (max-width: 899.98px) { #proyectos .carousel-bar { gap: 12px; } }
@media (max-width: 700px) {
  #proyectos .carousel-bar { --wa-clear: 76px; }
  #proyectos .carousel-status { white-space: nowrap; }
  #proyectos .carousel-dots { gap: 6px; }
  #proyectos .carousel-dot { width: 12px; }
  #proyectos .carousel-dot[aria-current="true"] { width: 22px; }
}

/* Carrusel: encaje solo al comienzo de cada grupo de tarjetas (marcadas por main.js), para que el deslizamiento
   tactil o con trackpad no se detenga entre grupos y el indicador coincida con lo visible. */
#proyectos .projects.is-carousel .project { scroll-snap-align: none; }
#proyectos .projects.is-carousel .project.is-page-start { scroll-snap-align: start; }
#proyectos .projects.is-carousel .project.is-page-end { scroll-snap-align: end; }

/* Carrusel en celular: flechas a la izquierda de la barra, lejos del boton fijo de WhatsApp; estado a la derecha
   (no interactivo). Puntos algo mas compactos para que todo entre desde 360 px. */
@media (max-width: 700px) {
  #proyectos .carousel-bar { gap: 10px; }
  #proyectos .carousel-nav { order: -1; }
  #proyectos .carousel-status { order: 1; }
  #proyectos .carousel-dots { gap: 5px; }
  #proyectos .carousel-dot { width: 10px; }
  #proyectos .carousel-dot[aria-current="true"] { width: 18px; }
}

/* Tecnología */
.tech-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 80px); margin-bottom: clamp(56px, 7vw, 96px); }
.tech-intro { margin: 0; align-self: end; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: oklch(0.975 0.005 100 / 0.75); max-width: 44ch; text-wrap: pretty; }
/* Seis tarjetas: 3 × 2 en escritorio, 2 × 3 en tablet y 1 columna en celular (sin celdas vacías). */
.tech-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: oklch(0.975 0.005 100 / 0.12); border: 1px solid oklch(0.975 0.005 100 / 0.12); border-radius: 6px; overflow: hidden; }
@media (max-width: 899.98px) { .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559.98px) { .tech-grid { grid-template-columns: minmax(0, 1fr); } }
.tech-cell { background: var(--ink); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; min-height: 260px; transition: background .3s; }
.tech-cell:hover { background: oklch(0.22 0.03 155); }
.tech-cell-top { display: flex; justify-content: space-between; align-items: center; }
.tech-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); }
.tech-diamond { width: 7px; height: 7px; transform: rotate(45deg); background: oklch(0.975 0.005 100 / 0.4); display: block; }
.tech-cell h3 { margin: auto 0 0; font-weight: 500; font-size: 22px; letter-spacing: -0.02em; }
.tech-cell p { margin: 0; font-size: 15px; line-height: 1.6; color: oklch(0.975 0.005 100 / 0.72); text-wrap: pretty; }
/* Escritorio (>= 900 px): distribución compacta para que el encabezado y las seis tarjetas entren en una pantalla. */
@media (min-width: 900px) {
  #tecnologia .tech-head {
    margin-bottom: clamp(32px, 3vw, 48px);
  }

  #tecnologia .tech-cell {
    padding: clamp(24px, 2vw, 28px);
    min-height: 0;
  }
}

/* DINAGUA (portada): banda clara (.section--tint) entre Tecnología (oscura) y Apps (verde del logo).
   Lenguaje de Control de Flota Premium 2030 adaptado a la portada (que no carga flota.css): retícula técnica
   de Telemedición (.flota-tele::before) en versión clara, tarjetas separadas con radio grande (.flota-key)
   y panel verde oscuro para el contacto (.flota-product). Reutiliza .tech-head del sitio. */
#dinagua { position: relative; isolation: isolate; }
/* Retícula de 64 px + brillo lima arriba a la derecha, desvanecidos hacia abajo (mismo recurso que Telemedición, con tinta en vez de blanco). */
#dinagua::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45% 55% at 88% 0%, oklch(0.86 0.13 125 / 0.16), transparent 70%),
    linear-gradient(oklch(0.18 0.01 150 / 0.04) 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, oklch(0.18 0.01 150 / 0.04) 1px, transparent 1px) 0 0 / 64px 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%); mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}
/* Escritorio (>= 900 px): mismo relleno vertical compacto que Nosotros, Proyectos y Contacto (antes quedaba en 160 px arriba y abajo). */
@media (min-width: 900px) {
  #dinagua.section { padding-top: clamp(64px, 6.5vw, 104px); padding-bottom: clamp(64px, 6.5vw, 104px); }
}
#dinagua .tech-head { margin-bottom: clamp(32px, 4vw, 56px); }
/* Título más contenido que el .section-title general (hasta 72 px): la frase es larga y ocupa media columna en escritorio. */
#dinagua .section-title { font-size: clamp(34px, 4vw, 58px); line-height: 1.04; text-wrap: balance; }
.dinagua-subtitle { margin: 20px 0 0; font-size: clamp(17px, 1.4vw, 19px); font-weight: 500; line-height: 1.5; color: var(--green); text-wrap: pretty; }
.dinagua-intro { align-self: end; display: flex; flex-direction: column; gap: 14px; max-width: 52ch; }
.dinagua-intro p { margin: 0; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
/* Cuatro funcionalidades: 4 columnas en escritorio, 2 × 2 hasta 1023.98 px y 1 columna en celular (cortes ya usados en el sitio).
   Tarjetas separadas, blancas sobre el tinte (patrón .flota-key: radio grande, anillo fino y sombra larga y suave). */
.dinagua-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
@media (max-width: 1023.98px) { .dinagua-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559.98px) { .dinagua-grid { grid-template-columns: minmax(0, 1fr); } }
.dinagua-cell {
  display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.2vw, 30px);
  border-radius: 20px; background: #fff;
  box-shadow: 0 0 0 1px oklch(0.18 0.01 150 / 0.07), 0 24px 48px -36px oklch(0.26 0.05 155 / 0.5);
  transition: box-shadow .3s ease, transform .3s var(--ease);
}
.dinagua-cell:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px oklch(0.42 0.08 150 / 0.3), 0 30px 56px -34px oklch(0.26 0.05 155 / 0.55); }
.dinagua-cell-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: clamp(10px, 1.6vw, 22px); }
/* Ícono en mosaico (como .flota-tele-note-icon), en verde suave para no competir con el botón lima del panel. */
.dinagua-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--forest); background: oklch(0.93 0.035 140); transition: background-color .3s; }
.dinagua-cell:hover .dinagua-icon { background: var(--lime); }
.dinagua-icon svg { width: 24px; height: 24px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dinagua-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted); }
.dinagua-cell h3 { margin: 0; font-weight: 500; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.dinagua-cell p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
/* Panel de contacto: verde oscuro con el degradado de .flota-product; llamada a la acción (7fr) y normativa secundaria (5fr).
   Una columna hasta 1023.98 px. */
.dinagua-foot {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: clamp(20px, 2.4vw, 32px); padding: clamp(24px, 4vw, 56px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  border-radius: 24px; color: var(--paper);
  background: linear-gradient(170deg, oklch(0.3 0.052 155), oklch(0.22 0.045 155));
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.1), 0 30px 60px -40px oklch(0.26 0.05 155 / 0.55);
}
/* Brillo lima muy suave arriba a la izquierda (mismo recurso que .apps-teaser::before). */
.dinagua-foot::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(50% 90% at 0% 0%, oklch(0.86 0.13 125 / 0.14), transparent 70%); }
@media (max-width: 1023.98px) { .dinagua-foot { grid-template-columns: minmax(0, 1fr); } }
.dinagua-cta-text { margin: 0; max-width: 20ch; font-size: clamp(24px, 2.6vw, 36px); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; text-wrap: balance; }
.dinagua-cta-buttons { margin-top: clamp(20px, 2.4vw, 32px); display: flex; flex-wrap: wrap; gap: 12px; }
/* Botón secundario sobre el panel oscuro: contorno claro; el principal reutiliza .btn-primary (lima) del hero. */
.dinagua-btn-outline { border: 1px solid oklch(1 0 0 / 0.35); color: var(--paper); }
.dinagua-btn-outline:hover { background: oklch(1 0 0 / 0.1); border-color: var(--paper); color: var(--paper); transform: translateY(-1px); }
.dinagua-note { border-left: 2px solid var(--lime); padding: 4px 0 4px 20px; }
.dinagua-note h3 { margin: 0 0 10px; font-family: var(--mono); font-weight: 500; font-size: 11px; line-height: 1.5; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); }
.dinagua-note p { margin: 0; font-size: 14px; line-height: 1.6; color: oklch(0.975 0.005 100 / 0.72); text-wrap: pretty; }
.dinagua-note p + p { margin-top: 8px; }
/* Hasta 1023.98 px los botones quedan cerca del borde derecho del panel: terminan antes del carril de WhatsApp.
   Carril: 24 + 56 = 80 px (≤ 700 px: 16 + 52 = 68 px). Borde interno del panel: margen lateral + relleno del panel
   (≈ 31 + 31 = 62 px a 768 → faltan 18 px; 20 + 24 = 44 px en celular → faltan 24 px). */
@media (max-width: 1023.98px) {
  .dinagua-cta-buttons { max-width: calc(100% - 56px); }
}
@media (max-width: 559.98px) {
  /* Celular: 24 px necesarios + 8 px de holgura. «Solicitar información por WhatsApp» puede pasar a dos líneas:
     interlineado legible dentro de la cápsula. */
  .dinagua-cta-buttons { max-width: calc(100% - 32px); }
  .dinagua-cta-buttons .btn { padding: 8px 16px; font-size: 14px; line-height: 1.25; text-wrap: balance; }
}
@media (prefers-reduced-motion: reduce) {
  .dinagua-cell, .dinagua-icon, .dinagua-btn-outline { transition: none; }
  .dinagua-cell:hover, .dinagua-btn-outline:hover { transform: none; }
}

/* Contacto */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(48px, 7vw, 112px); }
.contact-info { display: flex; flex-direction: column; gap: 40px; }
.contact-phone { display: inline-block; margin-top: 20px; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -0.02em; color: var(--green); border-bottom: 1px solid currentColor; }
.contact-text { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 44ch; }
.contact-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; border-top: 1px solid oklch(0.18 0.01 150 / 0.14); padding-top: 28px; }
.contact-col { display: flex; flex-direction: column; gap: 10px; }
.contact-col address { font-style: normal; font-size: 15px; line-height: 1.6; }
.contact-col a { font-size: 15px; }
.form-panel { background: oklch(0.93 0.008 100); border-radius: 6px; padding: clamp(28px, 4vw, 48px); }
.contact-form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: oklch(0.35 0.01 150); }
.field input,
.field textarea { font-size: 17px; padding: 12px 0; border: none; border-bottom: 1px solid oklch(0.18 0.01 150 / 0.3); background: transparent; color: var(--ink); outline: none; border-radius: 0; }
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus { border-bottom-color: var(--forest); }
.btn-submit { margin-top: 8px; align-self: flex-start; cursor: pointer; padding: 16px 30px; border-radius: 999px; border: none; background: var(--forest); color: var(--paper); font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 10px; transition: background .2s; }
.btn-submit:hover { background: var(--ink); }
/* Estados del envío a Wix Forms (js/contact-form.js). Sin errores el formulario se ve igual que antes:
   los mensajes están ocultos (hidden) y no ocupan espacio en la columna. */
.btn-submit:disabled { cursor: not-allowed; opacity: .55; }
.btn-submit:disabled:hover { background: var(--forest); }
.btn-submit[aria-busy="true"] { cursor: progress; }
/* Rojo propio del formulario (el sitio no tiene token de error); contraste medido sobre .form-panel. */
.field-error { margin: 0; font-size: 13px; line-height: 1.45; color: oklch(0.48 0.17 28); }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-bottom-color: oklch(0.48 0.17 28); }
.form-status { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.form-status.is-error { color: oklch(0.48 0.17 28); }
.form-success { display: flex; flex-direction: column; gap: 8px; outline: none; }
/* .contact-form y .form-success son flex: sin esto el atributo hidden no los oculta (el display del autor gana). */
.contact-form[hidden], .form-success[hidden] { display: none; }
.form-success p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink); }
.contact-map { margin-top: clamp(56px, 7vw, 96px); display: flex; flex-direction: column; gap: 20px; }
.contact-map-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; border-top: 1px solid oklch(0.18 0.01 150 / 0.14); padding-top: 28px; }
.contact-map-label { display: flex; flex-direction: column; gap: 10px; }
.contact-map-label p { margin: 0; font-size: 15px; line-height: 1.6; }
.btn-directions { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; background: var(--forest); color: var(--paper); font-size: 15px; font-weight: 500; transition: background .2s; }
.btn-directions:hover { background: var(--ink); color: var(--paper); }
.contact-map-frame { height: clamp(320px, 38vw, 460px); border-radius: 6px; overflow: hidden; background: oklch(0.93 0.008 100); }
.contact-map-frame iframe { display: block; width: 100%; height: 100%; }

/* Footer */
.site-footer { background: oklch(0.95 0.006 100); color: var(--ink); }
.footer-main { max-width: 1320px; margin: 0 auto; padding: clamp(56px, 7vw, 80px) var(--gutter); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-brand a { display: inline-flex; align-self: flex-start; }
.footer-brand img { height: clamp(36px, 3.4vw, 44px); width: auto; display: block; }
.footer-brand p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 30ch; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-col .label-mono { margin-bottom: 6px; }
.footer-col a { color: var(--ink); }
.footer-col a:hover { color: var(--green); }
.footer-muted { color: var(--muted); }
.footer-bar { background: oklch(0.22 0.045 155); }
.footer-bar-inner { max-width: 1320px; margin: 0 auto; padding: 22px var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; font-size: 13px; color: oklch(0.975 0.005 100 / 0.78); }
/* Redes sociales: cápsulas con ícono oficial (Simple Icons, CC0) y nombre */
.social-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--paper); border: 1px solid oklch(0.42 0.08 150 / 0.18); color: var(--ink); font-size: 14px; line-height: 1.2; white-space: nowrap; transition: color .2s, border-color .2s, background-color .2s; }
.social-pill svg { width: 20px; height: 20px; flex: none; color: var(--green); }
.social-pill-ext { font-size: 12px; opacity: .55; }
.social-pill:hover { color: var(--green); border-color: var(--green); background: oklch(0.96 0.03 140); }
@media (prefers-reduced-motion: reduce) { .social-pill { transition: none; } }
/* Colores de marca solo en los íconos (valores de Simple Icons: Instagram #FF0069, Facebook #0866FF, LinkedIn #0A66C2) */
.social-pill[href*="instagram.com"] svg { color: #FF0069; }
.social-pill[href*="facebook.com"] svg { color: #0866FF; }
.social-pill[href*="linkedin.com"] svg { color: #0A66C2; }
/* Pie: 4 columnas en escritorio; tablet (menos de 1024 px, mismo corte que el menú) 2 columnas × 2 filas
   (AgroTI | Sitio / Herramientas | Contacto); celular 1 columna. */
.footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023.98px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559.98px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
/* Franja centrada de redes, debajo de las cuatro columnas (más compacta) */
.footer-social-band { margin-top: clamp(32px, 4vw, 44px); padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid oklch(0.18 0.01 150 / 0.08); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.social-bubble { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: oklch(0.93 0.035 140); border: 1px solid oklch(0.42 0.08 150 / 0.12); box-shadow: 0 1px 2px oklch(0.25 0.04 150 / 0.06), 0 10px 24px -14px oklch(0.3 0.05 150 / 0.35); }
.social-bubble .social-pill { border-color: transparent; }
.social-bubble .social-pill:hover { border-color: var(--green); }
/* Hasta 700 px (mismo corte en que cambia el botón de WhatsApp): tres mosaicos compactos, ícono sobre nombre */
@media (max-width: 700px) {
  .social-bubble { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 300px; border-radius: 18px; }
  .social-bubble .social-pill { flex-direction: column; justify-content: center; gap: 4px; padding: 9px 2px; border-radius: 13px; font-size: 13px; }
  .social-bubble .social-pill-ext { display: none; }
}
/* Celular: alineado a la izquierda, como las columnas del pie, y terminando antes del carril de WhatsApp */
@media (max-width: 559.98px) {
  .footer-social-band { align-items: flex-start; }
  .social-bubble { max-width: min(300px, calc(100% - 56px)); }
}
/* Espacio inferior para que el acceso flotante de WhatsApp no tape los enlaces de la franja (botón: 24 + 56 px; celular: 16 + 52 px) */
.footer-bar-inner { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }

/* Acceso flotante a WhatsApp (diseño aprobado en la V14) */
.wa-fab {
  position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff;
  box-shadow: 0 6px 18px oklch(0.2 0.02 150 / 0.22), 0 1px 3px oklch(0.2 0.02 150 / 0.18);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.wa-fab svg { width: 30px; height: 30px; display: block; }
.wa-fab:hover { color: #fff; background: #1FBE5B; transform: translateY(-2px); box-shadow: 0 10px 24px oklch(0.2 0.02 150 / 0.26), 0 2px 4px oklch(0.2 0.02 150 / 0.18); }
.wa-fab:active { transform: scale(.96); }
.wa-fab:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 3px var(--paper), 0 6px 18px oklch(0.2 0.02 150 / 0.22); }
@media (max-width: 700px) {
  .wa-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 52px; height: 52px; }
  .wa-fab svg { width: 28px; height: 28px; }
  .footer-bar-inner { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .wa-fab { transition: none; } .wa-fab:hover, .wa-fab:active { transform: none; } }

/* Responsive: mismos cortes que el prototipo (navFull >= 1024 px, isMobile < 900 px) */
@media (max-width: 1023.98px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 899.98px) {
  :root { --nav-h: 68px; }
  .areas-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Impresión */
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; animation-delay: -99s !important; animation-duration: .001s !important; animation-iteration-count: 1 !important; animation-fill-mode: both !important; animation-play-state: running !important; transition-duration: 0s !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  article { break-inside: avoid; }
}
