/* H2On Infinitum · plano general del ciclo del agua */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-standard-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-standard-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

:root {
  /* tintas tomadas del logo */
  --ground: #07364c;      /* Mediterráneo profundo, fondo de página */
  --ground-2: #0a4560;
  --ground-3: #052a3b;
  --paper: #eef6f5;       /* papel de plano, blanco agua */
  --paper-2: #dcecea;
  --ink: #062a3b;
  --ink-soft: #3b5c6a;
  --petrol: #00648a;
  --cyan: #13a7bd;        /* agua */
  --cyan-text: #006f8c;   /* agua legible sobre papel */
  --cyan-pale: #9fdbe3;
  --green: #5ab435;       /* huerta */
  --green-text: #22783a;
  --paper-soft: #a6c8d2;  /* texto secundario sobre fondo azul */

  --m: clamp(28px, 6vw, 104px);   /* margen de página */
  --cx: calc(var(--m) * 0.42);     /* eje del canal */
  --nav-h: 68px;

  --f: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.08rem + 0.75vw, 1.75rem);
  --step-head: clamp(2.125rem, 1.25rem + 3.1vw, 4.25rem);
  --step-hero: clamp(2.3rem, 0.9rem + 2.75vw, 3.75rem);
  --step-sub: clamp(1.625rem, 1.1rem + 1.6vw, 2.5rem);
  --step-small: 0.875rem;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--paper);
  font-family: var(--f);
  font-size: var(--step-body);
  line-height: 1.55;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--cyan); color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
html { scrollbar-color: var(--cyan) var(--ground-3); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--ground-3); }
::-webkit-scrollbar-thumb { background: var(--petrol); border: 3px solid var(--ground-3); }

h1, h2 {
  font-stretch: 112%;
  font-weight: 680;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: balance;
}
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-body); font-weight: 700; line-height: 1.25; }
p { text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--paper); color: var(--ink); padding: 10px 16px; }
.skip:focus { top: 12px; }

/* rotulado hidrográfico: el agua se nombra en itálica, como en los mapas */
.hydro { font-style: italic; font-weight: 500; letter-spacing: 0.01em; }

/* ---------- botón (una sola forma en toda la página) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 54px; padding: 0 22px 0 24px;
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: var(--step-body); text-decoration: none;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease-out);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--cyan); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:hover, .btn:focus-visible { color: var(--ink); background-color: var(--cyan); transition: color .35s var(--ease-out), background-color 0s .45s; }
.btn__arrow { width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .45s var(--ease-out); }
.btn__arrow::after { content: ''; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--paper { background: var(--paper); color: var(--ink); }

/* ---------- navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px) !important;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--m);
  background: var(--ground);
  transition: background .3s, transform .4s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand img { width: 118px; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav__links ul { display: flex; gap: clamp(14px, 1.9vw, 30px); }
.nav__links a { font-size: var(--step-small); text-decoration: none; color: var(--paper); position: relative; padding: 6px 0; }
.nav__links ul a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav__links ul a:hover::after, .nav__links ul a.is-here::after { transform: scaleX(1); }
.nav__lang { font-weight: 700; letter-spacing: .08em; padding: 6px 10px !important; background: var(--ground-2); }
.nav__lang:hover { background: var(--petrol); }
.nav__toggle { display: none; }

/* ---------- canal maestro ---------- */
main { position: relative; }
.canal {
  position: absolute; left: var(--cx); top: 100svh; bottom: 0; width: 3px; z-index: 6;
  background: rgba(19, 167, 189, .22); pointer-events: none;
  transform: translateX(-1px);
}
.canal__flow { position: absolute; inset: 0; background: var(--cyan); transform-origin: top; }

/* partidor: compuerta + rama hacia la sección */
.partidor { position: absolute; left: calc(var(--cx) - 1px); top: 0; height: 120px; width: calc(var(--m) * .9 + 40px); z-index: 7; pointer-events: none; }
.partidor__svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.partidor__branch { fill: none; stroke: var(--cyan); stroke-width: 3; vector-effect: non-scaling-stroke; }
.partidor__gate { fill: var(--paper); }
.partidor.on-green .partidor__branch { stroke: var(--ink); }
.partidor.on-green .partidor__gate { fill: var(--ink); }
.partidor__label {
  position: absolute; left: 9px; top: 130px; white-space: nowrap;
  writing-mode: vertical-rl; transform: rotate(180deg); transform-origin: center;
  font-style: italic; font-weight: 500; font-size: var(--step-small); color: var(--cyan-pale);
}
.partidor.on-green .partidor__label { color: var(--ink); }

/* ---------- hojas de plano ---------- */
.sheet { background: var(--paper); color: var(--ink); position: relative; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  min-height: 100svh; padding: calc(var(--nav-h) + 4px) 12px 12px;
}
.hero__sheet {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 104px clamp(28px, 4.5vw, 72px) 84px;
  min-height: calc(100svh - var(--nav-h) - 16px);
}
.scale { position: absolute; left: clamp(28px, 4.5vw, 72px); right: clamp(28px, 4.5vw, 72px); top: 34px; }
.scale__bar { display: flex; height: 10px; outline: 1.5px solid var(--ink); outline-offset: 0; }
.scale__bar span { flex: 1; background: var(--ink); }
.scale__bar span:nth-child(even) { background: var(--paper); }
.scale__labels { display: flex; justify-content: space-between; margin-top: 7px; font-size: var(--step-small); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hero__logo { width: min(300px, 62%); margin-bottom: clamp(28px, 4.2vh, 48px); }
.hero__title { font-size: var(--step-hero); font-weight: 760; letter-spacing: -0.028em; line-height: 1.02; color: var(--ink); }
.hero__title span { display: block; }
.hero__lead { max-width: 40ch; margin: 22px auto 34px; font-size: var(--step-body); color: var(--ink); }
.hero__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 34px; }
.hero__links a { font-size: var(--step-small); color: var(--cyan-text); font-style: italic; font-weight: 500; }
.hero__source { display: none; }

.hero__view { position: relative; overflow: hidden; background: var(--ground-2); min-height: calc(100svh - var(--nav-h) - 16px); }
.photo { position: relative; background: var(--ground-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M0 14 L14 0' stroke='%2313a7bd' stroke-opacity='.28' stroke-width='1.5'/%3E%3C/svg%3E") repeat; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.86) contrast(1.04); }
.photo::after { content: ''; position: absolute; inset: 0; background: var(--petrol); mix-blend-mode: multiply; opacity: .16; pointer-events: none; }
.hero__photo { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero__photo.is-on { opacity: 1; }
.hero__photo img { transform: scale(1.06); transition: transform 7s linear; }
.hero__photo.is-on img { transform: scale(1); }
.hero__photo figcaption {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  background: var(--ground); color: var(--paper); padding: 12px 18px; font-size: var(--step-small);
}

/* ---------- intro ---------- */
.intro { padding: 136px var(--m) 120px; }
.intro__row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.intro__title { grid-column: 1 / 7; font-weight: 340; font-size: var(--step-head); letter-spacing: -0.025em; }
.intro__note { grid-column: 9 / 13; max-width: 34ch; color: var(--paper); font-size: var(--step-body); }
.facts { display: flex; justify-content: space-between; gap: 32px; margin-top: 120px; }
.fact dt { font-size: var(--step-sub); font-weight: 300; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.1; color: var(--paper); }
.fact dd { margin-top: 10px; font-size: var(--step-small); color: var(--paper-soft); max-width: 22ch; }

/* ---------- historia: carta en hoja recortable ---------- */
.story { padding: 30px var(--m) 140px; display: flex; justify-content: center; }
.letter { width: min(680px, 100%); }
.letter__sheet {
  padding: 64px clamp(28px, 6vw, 72px) 84px;
}
.letter__sheet::after { content: ''; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Cpath d='M0 0 H24 L12 12 Z' fill='%23eef6f5'/%3E%3C/svg%3E") repeat-x left top / 24px 12px; }
.letter__title { font-size: var(--step-sub); margin-bottom: 34px; }
.letter__sheet p { font-size: var(--step-body); line-height: 1.65; }
.letter__sheet p + p { margin-top: 1.05em; }
.letter__sheet strong { font-weight: 650; }
.letter__sheet mark { background: var(--cyan-pale); color: var(--ink); padding: 0 .15em; }
.letter__sign { margin-top: 40px !important; font-style: italic; font-size: var(--step-lead) !important; font-weight: 500; }
.letter__sheet .letter__role { margin-top: 4px; font-size: var(--step-small); color: var(--ink-soft); }

/* ---------- contenerizadas: fichas sobre la foto ---------- */
.cont { position: relative; min-height: 104svh; overflow: hidden; isolation: isolate; }
.cont__bg { position: absolute; inset: 0; z-index: -1; }
.cont__bg img { height: 100%; }
.cont__text {
  position: relative; margin: 0 0 0 max(18vw, calc(var(--m) + 24px)); padding: 160px 0 0;
  width: min(640px, calc(100% - var(--m) * 2));
}
.cont__text::before { content: ''; position: absolute; inset: 120px -32px -36px; background: var(--ground); opacity: .82; z-index: -1; }
.cont__text h2 { margin-bottom: 26px; }
.cont__text p { font-size: var(--step-lead); line-height: 1.38; font-weight: 400; }
.cont__text p + p { margin-top: .9em; color: var(--paper); font-size: var(--step-body); }
.slips {
  position: absolute; left: calc(var(--cx) + 16px); right: 12px; bottom: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: end;
}
.slip { background: var(--paper); color: var(--ink); padding: 22px 20px 0; font-size: var(--step-small); }
.slip:nth-child(1) { height: 30svh; }
.slip:nth-child(2) { height: 41svh; transform: rotate(-1.4deg); transform-origin: bottom; }
.slip:nth-child(3) { height: 36svh; }
.slip:nth-child(4) { height: 44svh; transform: rotate(1.2deg); transform-origin: bottom; }
.slip:nth-child(5) { height: 27svh; }
.slip:nth-child(6) { height: 38svh; background: var(--cyan-pale); }
.slip h3 { font-size: var(--step-body); }
.slip__rule { display: block; margin: 8px 0 10px; color: var(--ink-soft); letter-spacing: .05em; overflow: hidden; white-space: nowrap; }
.slip li { line-height: 1.45; }
.slip li + li { margin-top: 4px; }

/* ---------- tren de proceso (elemento vivo) ---------- */
.train { padding: 120px var(--m) 110px; }
.train__sheet { padding: clamp(32px, 5vw, 64px); max-width: 1240px; margin: 0 auto; }
.train__head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 40px; }
.train__head p { color: var(--ink); max-width: 40ch; justify-self: end; }
.train__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 52px; }
.train__tabs button {
  min-height: 48px; padding: 0 20px; border: 0; cursor: pointer;
  background: var(--paper-2); color: var(--ink); font-weight: 600; font-size: var(--step-small);
  transition: background .25s, color .25s;
}
.train__tabs button:hover { background: var(--cyan-pale); }
.train__tabs button[aria-selected='true'] { background: var(--ink); color: var(--paper); }
.train__panel + .train__panel { margin-top: 48px; }
.js .train__panel[hidden] { display: none; }
.train__name { font-size: var(--step-lead); font-weight: 600; margin-bottom: 30px; }
.js .train__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.route { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); padding-top: 4px; }
.route::before { content: ''; position: absolute; left: 0; right: 0; top: 13px; height: 4px; background: var(--cyan); transform-origin: left; transform: scaleX(var(--draw, 1)); }
.route__node { position: relative; padding-right: 12px; }
.route__dot { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 4px solid var(--ink); position: relative; z-index: 1; }
.route__node--tank .route__dot { width: 26px; height: 30px; border-radius: 0; margin-top: -4px; background: var(--green); border-color: var(--ink); }
.route__label { display: block; margin-top: 16px; font-weight: 600; font-size: var(--step-small); line-height: 1.3; }
.route__out { margin-top: 48px; display: flex; align-items: center; gap: 16px; font-size: var(--step-body); font-style: italic; font-weight: 600; color: var(--cyan-text); }
.route__arrow { width: 40px; height: 16px; flex: 0 0 auto; fill: none; stroke: var(--cyan-text); stroke-width: 3; }
.train__note { margin-top: 40px; font-size: var(--step-small); color: var(--ink-soft); }

/* ---------- hoja de menú (tecnologías) ---------- */
.menu { padding: 66px clamp(26px, 4vw, 60px) 72px; }
.menu::before, .menu::after { content: ''; position: absolute; left: 0; right: 0; height: 12px; }
.menu::before { top: -12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Cpath d='M0 12 H24 L12 0 Z' fill='%23eef6f5'/%3E%3C/svg%3E") repeat-x left bottom / 24px 12px; }
.menu::after { bottom: -12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Cpath d='M0 0 H24 L12 12 Z' fill='%23eef6f5'/%3E%3C/svg%3E") repeat-x left top / 24px 12px; }
.menu__group + .menu__group { margin-top: 56px; }
.menu__group h3 { font-size: var(--step-lead); margin-bottom: 16px; color: var(--cyan-text); font-style: italic; font-weight: 600; }
.menu__item { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; column-gap: 10px; }
.menu__item + .menu__item { margin-top: 14px; }
.menu__name { font-size: var(--step-body); font-weight: 600; text-decoration: none; }
a.menu__name:hover { color: var(--cyan-text); text-decoration: underline; }
.menu__lead-dots { border-bottom: 4px dotted var(--ink-soft); transform: translateY(-4px); transform-origin: left; opacity: .55; }
.menu__val { font-size: var(--step-small); font-weight: 600; color: var(--green-text); text-align: right; }

/* ---------- cómo trabajamos ---------- */
.how { background: var(--paper); color: var(--ink); padding: 130px 0 130px; }
.how__top { display: flex; justify-content: space-between; align-items: end; padding: 0 var(--m); }
.how__btns { display: flex; gap: 8px; }
.sq { width: 52px; height: 52px; border: 0; background: var(--ink); color: var(--paper); cursor: pointer; display: grid; place-items: center; transition: background .25s; }
.sq:hover { background: var(--cyan); color: var(--ink); }
.sq svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.how__progress { margin: 26px var(--m) 46px; height: 6px; background: var(--paper-2); }
.how__progress span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(.16); }
.how__row {
  display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 var(--m); padding: 0 0 10px; scrollbar-width: none; cursor: grab;
}
.how__row::-webkit-scrollbar { display: none; }
.how__row.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.moment { flex: 0 0 calc((100% - 96px) / 4); scroll-snap-align: start; display: flex; flex-direction: column; }
.moment h3 { font-size: var(--step-body); }
.moment p { margin-top: 10px; font-size: var(--step-body); color: var(--ink); }
.moment .photo { margin-top: var(--gap); aspect-ratio: 4 / 5; }
.moment img { pointer-events: none; }

/* ---------- contacto: cupón ---------- */
.contact { padding: 90px var(--m) 140px; position: relative; }
.contact__loop { position: relative; width: min(420px, 74vw); margin: 0 0 34px max(var(--m), calc((100% - 1180px) / 2)); }
.contact__feed { position: absolute; right: 95%; top: 50%; height: 3px; width: calc(var(--m) + max(var(--m), (100vw - 2 * var(--m) - 1180px) / 2) - var(--cx)); background: var(--cyan); transform-origin: left; margin-top: -1.5px; pointer-events: none; }
.contact { overflow: hidden; }
.infinito { width: 100%; overflow: visible; }
.infinito__bed, .infinito__path { fill: none; stroke-width: 5; stroke-linecap: round; }
.infinito__bed { stroke: rgba(19, 167, 189, .22); }
.infinito__path { stroke: var(--cyan); }
.contact__label { display: block; text-align: left; color: var(--cyan-pale); margin: 8px 0 0 30%; font-size: var(--step-small); }
.coupon {
  position: relative; max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 46fr 54fr;
  background: var(--cyan); color: var(--ink);
}
.coupon::before, .coupon::after {
  content: ''; position: absolute; left: 46%; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ground); transform: translateX(-50%); z-index: 2;
}
.coupon::before { top: -15px; }
.coupon::after { bottom: -15px; }
.coupon__stub { padding: 52px clamp(26px, 4vw, 56px); display: flex; flex-direction: column; }
.coupon__stub h2 { font-size: var(--step-sub); text-transform: uppercase; font-weight: 800; font-stretch: 112%; letter-spacing: -0.01em; line-height: 1.08; }
.coupon__stub h2 span { display: block; }
.coupon__stub p { margin-top: 18px; max-width: 32ch; }
.coupon__place a { color: var(--ink); font-style: normal; }
.coupon__place { margin-top: auto !important; padding-top: 30px; font-style: italic; font-weight: 600; }
.coupon__form { padding: 44px clamp(26px, 4vw, 56px); border-left: 5px dotted var(--ground); display: grid; gap: 10px; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border: 0; border-radius: 0;
  background: #a6e0e8; color: var(--ink); font-size: var(--step-body); resize: vertical;
}
.field textarea { min-height: 104px; }
.field input::placeholder, .field textarea::placeholder { color: #2c5462; opacity: 1; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--ink); outline-offset: 0; background: var(--paper); }
.consent a { color: var(--ink); text-decoration-thickness: 1.5px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--step-small); margin: 4px 0 6px; line-height: 1.4; }
.consent input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--ink); flex: 0 0 auto; }
.coupon__submit { min-height: 56px; border: 0; background: var(--ink); color: var(--paper); font-weight: 600; font-size: var(--step-body); cursor: pointer; transition: background .3s, color .3s; }
.coupon__submit:hover { background: var(--paper); color: var(--ink); }
.coupon__submit[disabled] { opacity: .6; cursor: progress; }
.coupon__status { font-weight: 600; min-height: 1.4em; }
.hp { position: absolute; left: -9999px; }

/* ---------- pie: reverso del plano ---------- */
.foot { padding: 0 var(--m) 56px; }
.foot__card {
  position: relative; max-width: 1180px; margin: 50px auto 0; background: var(--paper); color: var(--ink);
  padding: 64px clamp(26px, 4vw, 64px) 30px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px 48px;
}
.foot__logo { width: 180px; margin-bottom: 26px; }
.foot__sign { font-size: var(--step-sub); font-weight: 680; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 12px; }
.foot__msg p:last-child { color: var(--ink-soft); max-width: 36ch; }
.foot__side { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }
.stamp { width: 96px; aspect-ratio: 3 / 4; border: 6px solid var(--paper); outline: 1.5px dotted var(--ink-soft); transform: rotate(2deg); }
.foot__links { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 40px; text-align: right; }
.foot__links a { font-size: var(--step-body); text-decoration: none; }
.foot__links a:hover { color: var(--cyan-text); text-decoration: underline; }
.foot__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-size: var(--step-small); }
.foot__legal a { color: var(--cyan-text); }
.foot__imprint { grid-column: 1 / -1; text-align: center; font-size: var(--step-small); color: var(--ink-soft); }
.foot__imprint small { font-size: var(--step-small); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav__links ul { gap: 14px; }
  .slips { grid-template-columns: repeat(3, 1fr); }
  .moment { flex-basis: calc((100% - 64px) / 3); }
  .slips:not(.slips--4) .slip:nth-child(n+4) { display: none; }
}
@media (max-width: 900px) {
  :root { --nav-h: 60px; --cx: 6px; }
  .nav__toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 0;
    background: var(--ground-2); color: var(--paper); font-weight: 600; cursor: pointer;
  }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: flex-start; gap: 18px;
    padding: 28px var(--m) 36px; background: var(--ground); transform: translateY(-120%); visibility: hidden;
    transition: transform .45s var(--ease-out), visibility 0s .45s;
  }
  .nav__links.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease-out); }
  .nav__links ul { flex-direction: column; gap: 14px; }
  .nav__links a { font-size: var(--step-lead); }
  .nav__brand img { width: 96px; }

  .hero { grid-template-columns: 1fr; padding: calc(var(--nav-h) + 12px) 12px 12px; }
  .hero__view { order: -1; min-height: 46svh; }
  .hero__sheet { min-height: 0; margin-top: -24px; position: relative; z-index: 2; padding: 76px 16px 56px; }
  .hero__title { font-stretch: 100%; letter-spacing: -0.03em; }
  .scale { top: 24px; left: 22px; right: 22px; }
  .hero__logo { width: 56%; }
  .hero__title { font-size: var(--step-hero); }
  .intro { padding: 110px var(--m) 100px; }
  .intro__row { display: block; }
  .intro__title { font-size: var(--step-head); }
  .intro__note { margin-top: 22px; max-width: none; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; margin-top: 64px; }
  .fact dt { font-size: var(--step-sub); }
  .story { padding: 20px 12px 110px; }
  .cont { min-height: 0; padding-bottom: 0; }
  .cont__text { margin: 0 var(--m); width: auto; padding-top: 120px; }
  .cont__text::before { inset: 90px -16px -26px; }
  .slips { position: relative; left: auto; right: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 64px 12px 0 calc(var(--cx) + 12px); align-items: end; }
  .slip:nth-child(n) { display: block; height: auto; min-height: 210px; padding-bottom: 20px; transform: none; }
  .slip:nth-child(2), .slip:nth-child(3) { min-height: 240px; }
  .train { padding: 110px 12px 100px; }
  .train__head { grid-template-columns: 1fr; gap: 14px; }
  .train__head p { justify-self: start; }
  .route { grid-template-columns: 1fr; gap: 0; padding-left: 4px; }
  .route::before { left: 13px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; transform-origin: top; transform: scaleY(var(--draw, 1)); }
  .route__node { display: flex; align-items: center; gap: 18px; padding: 12px 0; }
  .route__label { margin-top: 0; font-size: var(--step-body); }
  .route__node--tank .route__dot { margin-left: -2px; }
  .menu { padding: 50px 22px 56px; }
  .how { padding: 110px 0 110px; }
  .how__btns { display: none; }
  .moment { flex-basis: 72vw; }
  .moment .photo { margin-top: calc(var(--gap) * .45); }
  .contact { padding: 90px 12px 110px; }
  .contact__loop { margin-left: 22px; }
  .contact__feed { width: calc(34px - var(--cx)); }
  .coupon { grid-template-columns: 1fr; }
  .coupon::before, .coupon::after { left: auto; top: auto; }
  .coupon::before { left: -15px; top: var(--perf, 52%); transform: none; }
  .coupon::after { right: -15px; bottom: auto; top: var(--perf, 52%); transform: none; }
  .coupon__form { border-left: 0; border-top: 5px dotted var(--ground); padding: 34px 22px 30px; }
  .coupon__stub { padding: 40px 22px 30px; }
  .foot { padding: 0 12px 30px; }
  .foot__card { grid-template-columns: 1fr; padding: 56px 22px 26px; }
  .foot__side { align-items: flex-start; flex-direction: row-reverse; justify-content: space-between; }
  .foot__links { text-align: left; grid-template-columns: 1fr; }
  .stamp { width: 72px; }
  .partidor__label { display: none; }
}


/* ================= v2.0 · bloques nuevos ================= */
.textlink { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; font-weight: 600; color: var(--cyan-pale); text-decoration: none; }
.sheet .textlink { color: var(--cyan-text); }
.textlink:hover { text-decoration: underline; }
.textlink:hover .btn__arrow { transform: translateX(4px); }

.sec-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px 48px; align-items: end; margin-bottom: 64px; }
.sec-head p { max-width: 44ch; justify-self: end; }

/* actividad (inicio) */
.acts { position: relative; padding: 140px var(--m) 120px; }
.acts__list { display: grid; gap: 72px; }
.act { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.act:nth-child(even) .act__photo { order: 2; }
.act__photo { aspect-ratio: 4 / 3; }
.act h3 { font-size: var(--step-sub); font-stretch: 112%; font-weight: 680; letter-spacing: -0.02em; line-height: 1.08; margin-bottom: 16px; }
.act__body > p { max-width: 42ch; }
.ticks { display: grid; gap: 10px; margin-top: 22px; }
.ticks li { display: grid; grid-template-columns: 12px 1fr; gap: 14px; align-items: baseline; }
.ticks li::before { content: ''; width: 10px; height: 10px; background: var(--cyan); transform: translateY(-1px); }
.ticks--green li::before { background: var(--green); }
.sheet .ticks li::before { background: var(--cyan-text); }
.sheet .ticks--green li::before { background: var(--green-text); }

.train__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; margin-top: 36px; }
.train__foot .train__note { margin-top: 0; }
.train__foot .textlink { margin-top: 0; }

/* tecnologías (inicio) */
.techs { position: relative; padding: 140px var(--m) 140px; }
.techs__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.techs__intro { position: sticky; top: calc(var(--nav-h) + 40px); }
.techs__intro p { margin: 22px 0 34px; max-width: 34ch; }
.techs .menu { columns: 2; column-gap: 56px; }
.techs .menu__group { break-inside: avoid; margin-bottom: 44px; }
.techs .menu__group + .menu__group { margin-top: 0; }

/* contenerizadas */
.slips--4 { grid-template-columns: repeat(4, 1fr); }
.slips--4 .slip:nth-child(1) { height: 32svh; transform: none; }
.slips--4 .slip:nth-child(2) { height: 42svh; transform: rotate(-1.2deg); }
.slips--4 .slip:nth-child(3) { height: 36svh; transform: none; }
.slips--4 .slip:nth-child(4) { height: 40svh; transform: rotate(1deg); background: var(--cyan-pale); }
.slip p { line-height: 1.45; }

/* sectores: parcelas de huerta */
.sectors { position: relative; padding: 140px var(--m) 140px; }
.plots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(170px, auto); gap: 8px; }
.plot { padding: 26px 24px; color: var(--ink); display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.plot h3 { font-size: var(--step-lead); font-stretch: 108%; line-height: 1.1; }
.plot p { font-size: var(--step-small); }
.plot--0 { background: #5ab435; grid-row: span 2; }
.plot--1 { background: #8fd16a; }
.plot--2 { background: #4aa02e; grid-column: span 2; }
.plot--3 { background: #a9dc8a; }
.plot--4 { background: #9fdbe3; grid-column: span 2; }
.plot--5 { background: #6fc24a; }
.plot--6 { background: #bfe6a6; }
.plot--7 { background: #5ab435; }
.plot--8 { background: #8fd16a; }

/* cabecera de página interior */
.phead { padding: calc(var(--nav-h) + 12px) 12px 0; }
.phead__sheet { padding: 92px clamp(28px, 6vw, 104px) 64px; }
.scale--head { left: clamp(28px, 6vw, 104px); right: auto; width: min(420px, 60%); }
.phead h1 { font-size: clamp(2.6rem, 1.4rem + 4.2vw, 5.4rem); font-weight: 760; letter-spacing: -0.03em; line-height: 1; }
.phead__lead { margin-top: 22px; max-width: 52ch; font-size: var(--step-lead); line-height: 1.35; }
.phead__links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 34px; }
.phead__links a { color: var(--cyan-text); font-style: italic; font-weight: 600; }
.phead__text { margin-top: 26px; max-width: 70ch; display: grid; gap: 14px; }
.partner { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-weight: 700; }

/* por qué */
.why { padding: 140px var(--m) 120px; }
.why__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 56px; }
.why__item dt { font-size: var(--step-lead); font-stretch: 108%; font-weight: 650; line-height: 1.15; margin-bottom: 10px; }
.why__item dd { color: var(--paper); max-width: 34ch; }
.why__list--paper .why__item dd { color: var(--ink); }
.why__list--paper { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 36px; }

/* internacional */
.intl { position: relative; padding: 160px var(--m); isolation: isolate; overflow: hidden; }
.intl__bg { position: absolute; inset: 0; z-index: -1; }
.intl__bg img { height: 100%; }
.intl__sheet { width: min(640px, 100%); padding: 56px clamp(26px, 4vw, 56px); }
.intl__sheet p { margin-top: 18px; }

/* franja de contacto */
.cta-band { padding: 0 var(--m) 120px; }
.cta-band__inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; padding: 40px clamp(26px, 4vw, 56px); background: var(--cyan); color: var(--ink); }
.cta-band__inner p { font-size: var(--step-sub); font-weight: 800; font-stretch: 112%; text-transform: uppercase; line-height: 1.08; }
.cta-band .btn--paper { background: var(--ink); color: var(--paper); }

/* servicios y aplicaciones */
.svc, .app { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px; padding: 12px 12px 0; }
.svc--flip .svc__photo, .app--flip .app__photo { order: 2; }
.svc__photo, .app__photo { min-height: 420px; }
.svc__body, .app__body { padding: 64px clamp(26px, 5vw, 80px); }
.svc__lead { margin: 18px 0 36px; max-width: 56ch; font-size: var(--step-lead); line-height: 1.35; }
.svc__groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.svc__group h3 { font-size: var(--step-body); color: var(--cyan-text); font-style: italic; }
.svc__group .ticks { margin-top: 14px; }
.svc:last-of-type, .app:last-of-type { padding-bottom: 12px; }
.app__body > p { margin-top: 18px; max-width: 60ch; }
.app__norm { font-weight: 600; color: var(--green-text); }
.app__body .tcard__label { margin: 40px 0 18px; }
.app__body .route__out { margin-top: 28px; }
.sectors--page { padding-top: 140px; }

/* fichas de tecnología */
.tech { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding: 64px var(--m) 120px; align-items: start; }
.tech__index { position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100svh - var(--nav-h) - 48px); overflow: auto; padding-right: 8px; }
.tech__index-group { font-style: italic; font-weight: 600; color: var(--cyan-pale); margin: 22px 0 8px; font-size: var(--step-small); }
.tech__index-group:first-child { margin-top: 0; }
.tech__index ul { display: grid; gap: 6px; }
.tech__index ul:last-child { margin-top: 22px; }
.tech__index a { text-decoration: none; color: var(--paper); font-size: var(--step-small); display: block; padding: 2px 0 2px 14px; border-left: 3px solid transparent; }
.tech__index a:hover { color: var(--cyan-pale); }
.tech__index a.is-here { border-left-color: var(--cyan); color: var(--cyan-pale); font-weight: 600; }
.tech__sheets { display: grid; gap: 40px; }
.tgroup { padding: 56px clamp(26px, 4vw, 64px); }
.tgroup > h2 { font-size: var(--step-sub); margin-bottom: 12px; }
.tgroup--cont { background: var(--cyan-pale); color: var(--ink); }
.tcard { padding-top: 40px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.tcard + .tcard { margin-top: 40px; border-top: 4px dotted var(--paper-2); }
.tcard h3 { font-size: var(--step-lead); font-stretch: 108%; line-height: 1.15; }
.tcard__sum { margin-top: 12px; max-width: 64ch; }
.tcard__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 24px; }
.tcard__label { font-weight: 700; font-size: var(--step-small); }
.tcard__cols .ticks { margin-top: 10px; font-size: var(--step-small); gap: 7px; }

@media (max-width: 1100px) {
  .techs .menu { columns: 1; }
  .svc__groups { grid-template-columns: 1fr 1fr; }
  .why__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .sec-head { grid-template-columns: 1fr; margin-bottom: 44px; }
  .sec-head p { justify-self: start; }
  .acts, .techs, .sectors, .why { padding: 110px var(--m) 100px; }
  .act { grid-template-columns: 1fr; gap: 22px; }
  .act:nth-child(even) .act__photo { order: 0; }
  .techs__grid { grid-template-columns: 1fr; }
  .techs__intro { position: static; }
  .slips--4 { grid-template-columns: 1fr 1fr; }
  .slips--4 .slip:nth-child(n) { height: auto; min-height: 180px; transform: none; }
  .plots { grid-template-columns: 1fr 1fr; }
  .plot--0 { grid-row: auto; grid-column: span 2; }
  .plot--2, .plot--4 { grid-column: auto; }
  .phead__sheet { padding: 72px 22px 48px; }
  .scale--head { left: 22px; }
  .why__list, .why__list--paper { grid-template-columns: 1fr; gap: 32px; }
  .intl { padding: 110px 12px; }
  .cta-band { padding: 0 12px 90px; }
  .svc, .app { grid-template-columns: 1fr; }
  .svc--flip .svc__photo, .app--flip .app__photo { order: 0; }
  .svc__photo, .app__photo { min-height: 0; aspect-ratio: 4 / 3; }
  .svc__body, .app__body { padding: 44px 22px; }
  .svc__groups { grid-template-columns: 1fr; gap: 26px; }
  .tech { grid-template-columns: 1fr; padding: 40px 12px 90px; }
  .tech__index { position: static; max-height: none; background: var(--ground-2); padding: 24px 22px; }
  .tech__index ul { grid-template-columns: 1fr 1fr; }
  .tgroup { padding: 44px 22px; }
  .tcard__cols { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 560px) {
  .plots { grid-template-columns: 1fr; }
  .plot--0 { grid-column: auto; }
  .slips--4 { grid-template-columns: 1fr; }
  .tech__index ul { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__photo:not(:first-child) { display: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .hero__photo img { transform: none !important; }
}

/* ---------- páginas legales ---------- */
.legal { padding: calc(var(--nav-h) + 72px) var(--m) 90px; display: flex; justify-content: center; }
.legal__sheet { width: min(760px, 100%); padding: 64px clamp(24px, 6vw, 72px) 72px; }
.legal__sheet h1 { font-size: var(--step-head); color: var(--ink); }
.legal__updated { margin: 12px 0 44px; font-size: var(--step-small); color: var(--ink-soft); }
.legal__sheet section + section { margin-top: 40px; }
.legal__sheet h2 { font-size: var(--step-lead); font-stretch: 100%; font-weight: 650; margin-bottom: 12px; }
.legal__sheet p { max-width: 68ch; }
.legal__sheet a { color: var(--cyan-text); }
.legal__sheet .btn { color: var(--paper); }
.legal__sheet .btn:hover { color: var(--ink); }
.data { display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: 10px 24px; margin-top: 16px; }
.data dt { font-weight: 650; }
.pending { background: var(--cyan-pale); color: var(--ink); padding: 2px 8px; font-style: italic; font-size: var(--step-small); font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.legal__back { margin-top: 56px; }
.foot__card--slim { grid-template-columns: 1fr; padding-top: 40px; }
@media (max-width: 600px) { .data { grid-template-columns: 1fr; gap: 2px; } .data dd { margin-bottom: 12px; } }
.nav__links ul a[aria-current]::after { transform: scaleX(1); }
.svc--flip, .app--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.cta-band { padding-top: 120px; }
.page-empresa .story { padding-top: 120px; }
@media (min-width: 901px) { .hero { grid-template-columns: 1.18fr 0.82fr; } }
@media (max-width: 900px) { .svc--flip, .app--flip { grid-template-columns: 1fr; } .cta-band { padding-top: 90px; } .page-empresa .story { padding-top: 90px; } }
.menu__val .btn__arrow { display: inline-block; width: 18px; color: var(--green-text); vertical-align: middle; }
.tgroup__band { margin: -56px calc(-1 * clamp(26px, 4vw, 64px)) 44px; height: clamp(160px, 18vw, 260px); }
.tgroup__band img { height: 100%; }
@media (max-width: 900px) {
  .canal, .partidor { display: none; }
  .tgroup__band { margin: -44px -22px 34px; }
}
.phead--img { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 12px; }
.phead--img .phead__photo { order: 2; min-height: 100%; }
.why__note { margin-top: 48px; }
@media (max-width: 900px) { .phead--img { grid-template-columns: 1fr; } .phead--img .phead__photo { order: 0; aspect-ratio: 16 / 9; min-height: 0; } }
@media (max-width: 900px) { .contact__feed { display: none; } }
