
:root {
  --white: #ffffff;
  --paper: #f3f5f4;
  --paper-2: #e7ecea;
  --ink: #0e2a29;
  --ink-2: #4a6260;
  --line: #2f4f4d;
  --teal: #0b6b66;
  --teal-hi: #0e807a;
  --teal-deep: #073f3c;
  --night: #062b29;
  --mint: #8fd3c4;
  --mint-2: #c9ebe3;
  --sand: #ddd3c1;
  --sand-2: #ece5d8;
  --duct: #94754f;
  --on-dark: #e9f4f2;
  --on-dark-2: #a9c8c3;

  --r-lg: 28px;
  --r: 18px;
  --r-sm: 12px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-lead: "Roboto Slab", Georgia, serif;
  --lift: 0 1px 2px rgb(6 43 41 / .06), 0 12px 32px -12px rgb(6 43 41 / .22);
  --lift-hi: 0 2px 4px rgb(6 43 41 / .08), 0 28px 56px -18px rgb(6 43 41 / .38);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; accent-color: var(--teal);
}
::selection { background: var(--teal); color: #fff; }
img, svg { display: block; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.03em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; padding: 10px 16px; background: var(--ink); color: #fff; z-index: 50; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .8em 1.5em; border: 1.5px solid transparent; border-radius: 999px;
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-solid { background: var(--teal); color: #fff; }
.btn-solid:hover { background: var(--teal-deep); }
.btn-mint { background: var(--mint); color: var(--night); }
.btn-mint:hover { background: #a6ddd1; box-shadow: 0 10px 28px -10px rgb(143 211 196 / .7); }
.btn-ghost { color: var(--on-dark); border-color: rgb(233 244 242 / .4); }
.btn-ghost:hover { border-color: var(--on-dark); background: rgb(233 244 242 / .08); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--teal-deep); }
.btn-sm { min-height: 44px; padding: .55em 1.2em; font-size: .9375rem; }
.btn-lg { min-height: 60px; padding: 1em 1.8em; font-size: 1.0625rem; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

/* Barra superior y cabecera */
.topbar { background: var(--night); color: var(--on-dark-2); font-size: .8438rem; }
.topbar-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--mint); }
.topbar .ico { width: 1.05em; height: 1.05em; }
.site-header {
  position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 1px 0 rgb(6 43 41 / .08), 0 10px 30px -18px rgb(6 43 41 / .35); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: 40px; }
.brand-name { font-weight: 800; letter-spacing: .16em; font-size: 1.125rem; color: var(--teal-deep); }
.site-nav { display: flex; gap: 2px; margin-left: auto; }
.site-nav a {
  position: relative; padding: 10px 14px; font-weight: 500; font-size: .9688rem; text-decoration: none; color: var(--ink-2);
  transition: color .2s;
}
.site-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--teal); border-radius: 2px; transform: scaleX(0); transition: transform .3s var(--ease); }
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }
.menu-btn { display: none; }

/* Héroe */
.hero { padding-top: clamp(12px, 1.6vw, 24px); }
.hero-box {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px);
  padding: clamp(36px, 5vw, 72px); border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 0% 0%, #0d5a55 0%, var(--teal-deep) 45%, var(--night) 100%);
  color: var(--on-dark);
}
.hero-box::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgb(143 211 196 / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(143 211 196 / .07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(80% 80% at 20% 30%, #000 20%, transparent 75%);
}
.hero-copy { align-self: center; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(1.9rem, 3.3vw, 3rem); letter-spacing: -.03em; font-weight: 750; line-height: 1.02; color: #fff; }
.hero h1 u { text-decoration: none; color: var(--mint); background: linear-gradient(var(--mint), var(--mint)) 0 96% / 100% 4px no-repeat; padding-bottom: .02em; }
.hero-sub { margin-top: 22px; font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 600; color: #fff; max-width: 34ch; }
.hero-lede { margin-top: 12px; max-width: 52ch; color: var(--on-dark-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chips li { padding: 6px 14px; border: 1px solid rgb(143 211 196 / .3); border-radius: 999px; font-size: .8438rem; font-weight: 500; color: var(--on-dark-2); }

.hero-media { position: relative; min-height: 520px; }
.hero-media img { position: absolute; object-fit: cover; border-radius: var(--r); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .55); }
.hm-1 { width: 56%; height: 86%; right: 0; top: 0; }
.hm-2 { width: 40%; height: 58%; left: 4%; top: 8%; }
.hm-3 { width: 40%; height: 38%; left: 12%; bottom: 0; }
.hero-badge {
  position: absolute; right: 6%; bottom: 4%; display: flex; align-items: center; gap: 12px;
  max-width: 260px; padding: 14px 18px 14px 14px; background: #fff; color: var(--ink); border-radius: 16px;
  font-size: .875rem; line-height: 1.35; box-shadow: var(--lift-hi);
}
.hero-badge strong { display: block; font-size: 1rem; color: var(--teal-deep); }
.pulse { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--mint-2); }
.pulse svg { width: 24px; height: 24px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; }
.pulse::before, .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--teal-hi); opacity: 0; }
.hero-note { position: absolute; right: clamp(20px, 3vw, 36px); top: 18px; font-size: .75rem; color: var(--on-dark-2); opacity: .8; }

/* Franja de texto en movimiento */
.marquee { overflow: hidden; padding-block: clamp(28px, 3.5vw, 44px); border-bottom: 1px solid var(--paper-2); }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; }
.marquee span { font-size: clamp(1.6rem, 3.2vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; color: var(--teal-deep); }
.marquee i { width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--mint); }

/* Encabezados de sección */
section { position: relative; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head p { color: var(--ink-2); max-width: 46ch; }

/* Por qué */
.porque { padding-block: clamp(72px, 9vw, 128px); }
.porque-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.porque-copy h2 { max-width: 16ch; }
.porque-copy p { margin-block: 20px 28px; color: var(--ink-2); max-width: 50ch; }
.porque-grid { align-items: center; }
.tira { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: clamp(48px, 6vw, 80px); }
.tira img, .tira-tile { width: 100%; height: 240px; border-radius: var(--r-sm); object-fit: cover; }
.tira img { transition: transform .6s var(--ease), filter .6s var(--ease); }
.tira img:hover { transform: translateY(-6px); }
.tira img:nth-child(even) { margin-top: 32px; }
.tira-tile { display: grid; place-items: center; background: var(--teal); color: var(--mint); }
.tira-tile svg { width: 72px; height: 72px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.tira-tile .w { opacity: .55; }
.razones { display: grid; gap: 16px; }
.razon {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start;
  padding: 26px; border-radius: var(--r); background: var(--ink); color: var(--on-dark);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.razon:nth-child(2) { background: var(--teal-deep); }
.razon:nth-child(3) { background: var(--teal); }
.razon:hover { transform: translateY(-4px); box-shadow: var(--lift-hi); }
.razon-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; background: rgb(143 211 196 / .14); color: var(--mint); }
.razon-ico .ico { width: 30px; height: 30px; stroke-width: 1.5; }
.razon h3 { font-size: 1.25rem; color: #fff; }
.razon p { margin-top: 6px; color: var(--on-dark-2); font-size: .9688rem; }

/* Servicios */
.servicios { padding-block: clamp(72px, 9vw, 120px); background: var(--paper); border-radius: var(--r-lg); margin-inline: clamp(0px, 1vw, 16px); }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.tile {
  position: relative; display: flex; flex-direction: column; min-height: 320px; padding: 28px; border-radius: var(--r); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--lift-hi); }
.tile-ico { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: auto; transition: transform .5s var(--ease); }
.tile-ico .soft { opacity: .3; stroke-dasharray: 3 5; }
.tile:hover .tile-ico { transform: scale(1.1) rotate(-4deg); }
.tile h3 { margin-top: 48px; font-size: 1.375rem; }
.tile p { margin-top: 10px; font-size: .9375rem; }
.t-teal { background: var(--teal); color: #fff; }
.t-teal p { color: var(--mint-2); }
.t-dark { background: var(--night); color: #fff; }
.t-dark p, .t-dark .tile-ico { color: var(--on-dark-2); }
.t-sand { background: var(--sand); color: var(--ink); }
.t-sand p { color: #4d4637; }
.t-mint { background: var(--mint); color: var(--night); }
.t-mint p { color: #1f4b46; }
.tile::after { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; border-radius: 50%; background: currentColor; opacity: .06; transition: transform .6s var(--ease); }
.tile:hover::after { transform: scale(1.35); }

/* Edificios: pestañas */
.edificios { padding-block: clamp(72px, 9vw, 128px); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tabs button {
  padding: 12px 20px; border: 1.5px solid var(--paper-2); border-radius: 999px; background: #fff; color: var(--ink-2);
  font: 600 .9375rem/1 var(--font); cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.tabs button:hover { border-color: var(--teal); color: var(--teal); }
.tabs button[aria-selected="true"] { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.e-panel { display: grid; grid-template-columns: 1.15fr .85fr 1.1fr; gap: 16px; min-height: 520px; }
.e-panel[hidden] { display: none; }
.e-panel.entra > * { animation: entra .7s var(--ease) both; }
.e-panel.entra > *:nth-child(2) { animation-delay: .08s; }
.e-panel.entra > *:nth-child(3) { animation-delay: .16s; }
@keyframes entra { from { opacity: 0; transform: translateY(18px); } }
.p-foto { position: relative; border-radius: var(--r); overflow: hidden; min-height: 300px; }
.p-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.p-foto:hover img { transform: scale(1.06); }
.p-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgb(6 43 41 / .35)); pointer-events: none; }
.p-b { margin-top: 48px; }
.p-card { display: flex; flex-direction: column; padding: clamp(28px, 3vw, 40px); border-radius: var(--r); background: var(--night); color: var(--on-dark); }
.p-tag { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--mint); color: var(--night); font-size: .8125rem; font-weight: 700; }
.p-card h3 { margin-top: 20px; font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: -.02em; color: #fff; }
.p-card > p { margin-top: 14px; color: var(--on-dark-2); }
.p-list { display: grid; gap: 12px; margin-top: 24px; padding-top: 22px; border-top: 1px solid rgb(143 211 196 / .2); }
.p-list li { position: relative; padding-left: 30px; font-weight: 500; }
.p-list li::before { content: ""; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 50%; background: rgb(143 211 196 / .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.5L13 6.5' fill='none' stroke='%238fd3c4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.ref-note { margin-top: auto; padding-top: 24px; font-size: .75rem; color: var(--on-dark-2); opacity: .75; }

/* Tecnología: lámina interactiva */
.tecnologia { padding-bottom: clamp(72px, 9vw, 128px); }
.tec-box { padding: clamp(32px, 5vw, 64px); border-radius: var(--r-lg); background: var(--sand-2); }
.tec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: 32px; }
.tec-head h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -.04em; }
.tec-head h2 span { color: var(--teal); }
.tec-head p { color: #4d4637; max-width: 44ch; }
.lamina { position: relative; border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: var(--lift); }
.lamina-frame { position: relative; padding: clamp(72px, 6vw, 84px) clamp(8px, 2vw, 28px) 0; background: #fff; }
.lamina-cap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding: 18px clamp(18px, 2.4vw, 32px); border-top: 1px solid var(--paper-2); }
.lamina-cap p { max-width: 70ch; font-size: .9688rem; }
.cap-cable { display: none; }
.lamina:has(#modo-cable:checked) .cap-radio { display: none; }
.lamina:has(#modo-cable:checked) .cap-cable { display: block; }
.cap-note { font-size: .8125rem; color: var(--ink-2); }
.modo {
  position: absolute; z-index: 2; top: 18px; left: clamp(14px, 2vw, 28px);
  display: inline-flex; margin: 0; padding: 4px; border: 0; border-radius: 999px; background: var(--paper);
}
.modo label { position: relative; cursor: pointer; }
.modo input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.modo span { display: block; padding: 9px 18px; font-size: .875rem; font-weight: 600; border-radius: 999px; color: var(--ink-2); transition: background-color .3s var(--ease), color .3s var(--ease); }
.modo input:checked + span { background: var(--teal); color: #fff; }
.modo input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.modo label:hover input:not(:checked) + span { color: var(--teal); }
.facade { width: 100%; height: auto; overflow: visible; }
.facade path, .facade rect, .facade circle { fill: none; stroke: var(--line); stroke-width: 1; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.facade .fill { fill: #fff; }
.facade .strong { stroke-width: 1.6; }
.facade .sil { stroke-width: 2.2; stroke: var(--ink); }
.facade .f-thin path, .facade .f-thin { stroke-width: .55; opacity: .65; }
.facade .f-tree path { stroke-width: .9; opacity: .55; }
.facade .det .sym { fill: #fff; stroke: var(--teal); stroke-width: 1.8; }
.facade .det .x { stroke: var(--teal); stroke-width: 1.4; }
.facade .det .ring { stroke: var(--teal-hi); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; opacity: 0; }
.facade .panel rect { fill: var(--teal); stroke: var(--teal-deep); }
.facade .panel path { stroke: #fff; stroke-width: 1.4; }
.facade .axis { stroke-width: .6; stroke-dasharray: 4 3; opacity: .7; }
.facade .bub, .facade .det-ref { fill: #fff; stroke-width: 1; }
.facade .lvl { fill: var(--line); stroke: none; }
.facade .lead { stroke: var(--teal); stroke-width: 1; }
.facade .lead-dot { fill: var(--teal); stroke: none; }
.facade text { font-family: var(--font); fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.facade .t-bub { font-size: 11px; font-weight: 600; text-anchor: middle; }
.facade .t-lvl { font-size: 12px; font-weight: 600; }
.facade .t-call { font-size: 14px; font-weight: 600; fill: var(--teal-deep); }
.facade .t-ref { font-size: 10px; font-weight: 700; text-anchor: middle; }
.facade .t-ref.sm { font-size: 8px; font-weight: 600; }
.facade .duct { stroke: var(--duct); stroke-width: 3.2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease); }
.facade .chase { stroke: var(--duct); stroke-width: .9; opacity: 0; transition: opacity .5s var(--ease) .5s; }
.facade .box { fill: #fff; stroke: var(--duct); stroke-width: 1.4; opacity: 0; transition: opacity .4s var(--ease) .6s; }
.lamina:has(#modo-cable:checked) .duct { stroke-dashoffset: 0; }
.lamina:has(#modo-cable:checked) .chase { opacity: .9; }
.lamina:has(#modo-cable:checked) .box { opacity: 1; }
.facade .c-cable { display: none; }
.lamina:has(#modo-cable:checked) .facade .c-cable { display: inline; }
.lamina:has(#modo-cable:checked) .facade .c-radio { display: none; }
.tec-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0 0; }
.tec-list > div { padding: 22px 24px; border-radius: var(--r-sm); background: #fff; }
.tec-list dt { font-weight: 700; font-size: 1.125rem; color: var(--teal-deep); }
.tec-list dd { margin: 6px 0 0; font-size: .9375rem; color: var(--ink-2); }

/* Método */
.metodo { padding-bottom: clamp(72px, 9vw, 128px); }
.pasos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.paso { padding: clamp(28px, 3vw, 40px); border-radius: var(--r); min-height: 300px; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.paso:hover { transform: translateY(-4px); box-shadow: var(--lift-hi); }
.paso-n { font-size: clamp(3.5rem, 6vw, 5rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin-bottom: auto; }
.paso h3 { margin-top: 40px; font-size: 1.5rem; }
.paso p { margin-top: 10px; font-size: .9688rem; }
.p-dark { background: var(--ink); color: #fff; }
.p-dark .paso-n { color: var(--mint); }
.p-dark p { color: var(--on-dark-2); }
.p-light { background: var(--paper); }
.p-light .paso-n { color: var(--teal); }
.p-light p { color: var(--ink-2); }
.p-mint { background: var(--mint); color: var(--night); }
.p-mint .paso-n { color: var(--teal-deep); }
.p-mint p { color: #1f4b46; }

/* Contacto */
.contacto { padding-bottom: clamp(72px, 9vw, 120px); }
.cta-box { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); border-radius: var(--r-lg); overflow: hidden; background: var(--teal-deep); color: var(--on-dark); }
.cta-copy { position: relative; z-index: 1; padding: clamp(40px, 6vw, 80px); }
.cta-copy h2 { color: #fff; max-width: 16ch; }
.cta-copy p { margin-block: 18px 32px; color: var(--on-dark-2); max-width: 46ch; }
.cta-media { position: relative; min-height: 360px; }
.cta-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.cta-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--teal-deep) 0%, rgb(7 63 60 / .55) 35%, transparent 70%); }

/* Pie */
.site-footer { background: var(--night); color: var(--on-dark-2); padding-top: clamp(56px, 7vw, 88px); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.site-footer .brand-name { color: #fff; }
.footer-grid p { margin-top: 12px; max-width: 36ch; }
.site-footer h3 { font-size: .9375rem; color: var(--mint); margin-bottom: 14px; }
.site-footer nav a, .footer-grid > div > a { display: block; padding: 4px 0; color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--mint); }
.footer-base { padding-block: 22px; border-top: 1px solid rgb(143 211 196 / .15); font-size: .8125rem; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 30; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 12px 28px -8px rgb(0 0 0 / .4); transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

/* Movimiento */
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: desliza 38s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  .pulse::before { animation: onda 2.4s var(--ease) infinite; }
  .pulse::after { animation: onda 2.4s var(--ease) 1.2s infinite; }
  .lamina:not(:has(#modo-cable:checked)) .det .ring { animation: pulso 3.2s var(--ease) infinite; animation-delay: calc(var(--i) * 140ms); }
  .lamina:not(:has(#modo-cable:checked)) .det .ring.r2 { animation-delay: calc(var(--i) * 140ms + 1.6s); }
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
  .js .reveal.visto { opacity: 1; transform: none; }
  .hero-copy > * { animation: entra .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .1s; }
  .hero-copy > :nth-child(3) { animation-delay: .18s; }
  .hero-copy > :nth-child(4) { animation-delay: .26s; }
  .hero-copy > :nth-child(5) { animation-delay: .34s; }
  .hero-media img, .hero-badge { animation: aparece 1.1s var(--ease) both; }
  .hm-2 { animation-delay: .15s !important; }
  .hm-3 { animation-delay: .3s !important; }
  .hero-badge { animation-delay: .6s !important; }
}
@keyframes desliza { to { transform: translateX(-50%); } }
@keyframes onda { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes pulso { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(3.2); } }
@keyframes aparece { from { opacity: 0; transform: translateY(30px) scale(.96); } }
@media (prefers-reduced-motion: reduce) {
  .lamina:not(:has(#modo-cable:checked)) .det .ring:not(.r2) { opacity: .6; transform: scale(2.2); }
  .facade .duct, .facade .chase, .facade .box { transition: none; }
  .btn:hover, .tile:hover, .razon:hover, .paso:hover { transform: none; }
}

/* Responsive */
@media (max-width: 1040px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 260px; }
  .e-panel { grid-template-columns: 1fr 1fr; }
  .p-card { grid-column: 1 / -1; }
  .p-b { margin-top: 0; }
}
@media (max-width: 900px) {
  .hero-box { grid-template-columns: 1fr; }
  .hero-media { min-height: 420px; }
  .porque-grid, .sec-head, .tec-head, .cta-box { grid-template-columns: 1fr; }
  .tira { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tira img:nth-child(even) { margin-top: 0; }
  .tec-list, .pasos { grid-template-columns: 1fr; }
  .paso { min-height: 0; }
  .paso h3 { margin-top: 20px; }
  .cta-media { min-height: 260px; order: -1; }
  .cta-media::before { background: linear-gradient(0deg, var(--teal-deep) 0%, transparent 60%); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .site-header { position: sticky; }
  .menu-btn {
    display: grid; place-items: center; width: 46px; height: 46px; margin-left: 4px;
    background: var(--paper); border: 0; border-radius: 12px; color: var(--ink); cursor: pointer;
  }
  .menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .header-cta { margin-left: auto; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; padding: 8px var(--gutter) 20px; background: #fff; box-shadow: 0 20px 30px -20px rgb(6 43 41 / .35);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 4px; font-size: 1.0625rem; border-bottom: 1px solid var(--paper-2); }
  .site-nav a::after { display: none; }
}
@media (max-width: 640px) {
  .topbar-row > span { display: none; }
  .topbar-row { justify-content: center; }
  .header-row { gap: 10px; min-height: 64px; }
  .brand-name { font-size: 1rem; letter-spacing: .12em; }
  .hero-box { padding: 32px 22px 22px; border-radius: 22px; }
  .hero-note { top: auto; bottom: 12px; right: 22px; }
  .hero-media { min-height: 340px; margin-bottom: 16px; }
  .actions .btn { width: 100%; }
  .hero-badge { right: 0; left: 18%; bottom: -4px; max-width: none; }
  .servicios { margin-inline: 0; border-radius: 0; }
  .tiles { grid-template-columns: 1fr; }
  .razon { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .razon-ico { width: 52px; height: 52px; }
  .tira { display: flex; overflow-x: auto; margin-inline: 0; padding-inline: var(--gutter); width: 100%; scrollbar-width: none; }
  .tira img, .tira-tile { flex: 0 0 62%; height: 260px; }
  .tile { min-height: 0; }
  .tile h3 { margin-top: 28px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .tabs button { white-space: nowrap; }
  .e-panel { grid-template-columns: 1fr 1fr; gap: 10px; }
  .p-foto { min-height: 220px; }
  .tec-box { padding: 28px 0 20px; border-radius: 0; margin-inline: calc(var(--gutter) * -1); }
  .tec-head, .tec-list { padding-inline: var(--gutter); }
  .lamina { border-radius: 0; }
  .lamina-frame { padding: 76px 0 0; overflow: hidden; }
  .facade { width: 210%; margin-left: -55%; }
  .facade .lead, .facade .lead-dot, .facade .t-call { display: none !important; }
  .modo { left: var(--gutter); right: var(--gutter); display: flex; }
  .modo label { flex: 1; text-align: center; }
  .modo span { padding: 9px 6px; font-size: .8125rem; white-space: nowrap; }
  .cta-copy { padding: 32px 22px 36px; }
  .cta-copy .btn { width: 100%; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}

/* Datos reales: barra superior, logo, proyecto destacado */
.tb-region { display: inline-flex; align-items: center; gap: 8px; }
.tb-links { display: flex; gap: 22px; }
.brand-name { color: #4a4a4a; }
.site-footer .brand-mark { filter: brightness(0) invert(1); opacity: .95; }
.tile { min-height: 300px; padding: 26px; }
.tile-n { font-size: clamp(2.8rem, 4vw, 3.6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin-bottom: auto; opacity: .9; }
.tile h3 { margin-top: 40px; font-size: 1.25rem; }
.t-deep { background: var(--teal-deep); color: #fff; }
.t-deep p { color: var(--on-dark-2); }
.t-teal .tile-n, .t-dark .tile-n, .t-deep .tile-n { color: var(--mint); }
.t-sand .tile-n, .t-mint .tile-n { color: var(--teal-deep); }

.proyecto { padding-bottom: clamp(72px, 9vw, 128px); }
.proy-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); border-radius: var(--r-lg); overflow: hidden; background: var(--night); color: var(--on-dark); }
.proy-copy { padding: clamp(36px, 5vw, 64px); }
.proy-copy h2 { margin-top: 18px; color: #fff; font-size: clamp(2.2rem, 4vw, 3.4rem); }
.proy-copy p { margin-top: 14px; color: var(--on-dark-2); max-width: 48ch; }
.proy-datos { display: grid; gap: 0; margin: 28px 0 0; border-top: 1px solid rgb(143 211 196 / .2); }
.proy-datos > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgb(143 211 196 / .2); }
.proy-datos dt { color: var(--mint); font-size: .875rem; font-weight: 600; }
.proy-datos dd { margin: 0; color: #fff; font-weight: 500; }
.proy-foto { position: relative; min-height: 380px; }
.proy-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.galeria-head { margin-top: clamp(56px, 7vw, 88px); margin-bottom: 24px; }
.h-sub { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.025em; }
.detalles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.detalles figure { border-radius: var(--r); overflow: hidden; background: var(--paper); }
.detalles img { width: 100%; height: 340px; object-fit: cover; transition: transform 1.2s var(--ease); }
.detalles figure:hover img { transform: scale(1.04); }
.detalles figcaption { padding: 16px 20px 18px; font-weight: 600; font-size: .9688rem; }

.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-datos { display: grid; gap: 8px; margin-top: 28px; color: var(--on-dark-2); font-size: .9375rem; }
.cta-datos li { display: flex; align-items: center; gap: 10px; }
.cta-datos .ico { color: var(--mint); }

@media (max-width: 1040px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles .tile:last-child { grid-column: 1 / -1; }
  .proy-box { grid-template-columns: 1fr; }
  .proy-foto { min-height: 0; aspect-ratio: 3 / 2; order: -1; }
}
@media (max-width: 900px) {
  .tb-region { display: none; }
  .topbar-row { justify-content: center; }
  .detalles img { height: 260px; }
  .detalles { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (max-width: 640px) {
  .tb-links { gap: 14px; font-size: .8125rem; }
  .tb-links a:first-child { display: none; }
  .brand-mark { width: 36px; height: 33px; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .detalles img { height: 220px; }
  .detalles figcaption { padding: 12px 14px 14px; font-size: .875rem; }
  .cta-actions .btn { width: 100%; }
  .cta-actions .btn span { overflow: hidden; text-overflow: ellipsis; }
  .proy-datos > div { grid-template-columns: 1fr; gap: 2px; }
}

/* Galería elástica del proyecto (idea: "Elastic Gallery" de 21st.dev, hecha en CSS/JS nativo) */
.elastica { display: flex; gap: 10px; height: clamp(420px, 46vw, 560px); }
.el-item {
  position: relative; flex: 1 1 0; min-width: 0; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; cursor: zoom-in;
  background: var(--night); transition: flex-grow .7s var(--ease);
}
.el-item.activo { flex-grow: 5.5; }
.el-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .7s var(--ease); filter: saturate(.7) brightness(.8); }
.el-item.activo img { filter: none; }
.el-item:hover img { transform: scale(1.03); }
.el-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgb(6 43 41 / .85)); pointer-events: none; }
.el-cap { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px; display: grid; gap: 8px; justify-items: start; text-align: left; color: #fff; opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.el-item.activo .el-cap { opacity: 1; transform: none; transition-delay: .25s; }
.el-tag { padding: 4px 11px; border-radius: 999px; background: var(--mint); color: var(--night); font-size: .75rem; font-weight: 700; }
.el-t { font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.el-item:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.el-ayuda { margin-top: 14px; font-size: .8125rem; color: var(--ink-2); }

/* Visor (lightbox) */
.visor { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(4 24 23 / .94); color: #fff; }
.visor[open] { display: grid; place-items: center; animation: entra .4s var(--ease); }
.visor::backdrop { background: transparent; }
.visor figure { display: grid; gap: 14px; justify-items: center; max-width: min(92vw, 1200px); }
.visor img { max-width: 100%; max-height: 80vh; border-radius: var(--r-sm); object-fit: contain; }
.visor figcaption { display: flex; gap: 16px; align-items: baseline; font-weight: 600; }
.v-n { color: var(--on-dark-2); font-size: .875rem; font-variant-numeric: tabular-nums; }
.v-btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .1); color: #fff; cursor: pointer; transition: background-color .2s; }
.v-btn:hover { background: rgb(255 255 255 / .22); }
.v-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v-cerrar { top: 20px; right: 20px; }
.v-prev { left: 20px; top: 50%; translate: 0 -50%; }
.v-next { right: 20px; top: 50%; translate: 0 -50%; }

@media (max-width: 900px) {
  .elastica { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .el-item, .el-item.activo { flex: 0 0 78%; height: 400px; scroll-snap-align: center; }
  .el-item img { filter: none; }
  .el-cap { opacity: 1; transform: none; }
  .el-ayuda { display: none; }
  .v-prev, .v-next { top: auto; bottom: 20px; translate: none; }
}
@media (prefers-reduced-motion: reduce) {
  .el-item, .el-item img, .el-cap { transition: none; }
}

/* Ajustes pedidos por la clienta */
.detalles .d-acceso { object-position: 50% 82%; }
.proy-foto { background: var(--sand-2); }
.proy-foto img { object-fit: contain; object-position: 50% 50%; padding: clamp(8px, 2vw, 32px); mix-blend-mode: multiply; filter: contrast(1.08); }

/* Tipografía (referencia: Poppins títulos, Roboto Slab bajadas, DM Sans cuerpo) */
h1, h2, h3, .marquee span, .tile-n, .paso-n, .el-t, .brand-name, .p-card h3, .h-sub { font-family: var(--font-display); }
h1, h2 { font-weight: 600; letter-spacing: -.045em; line-height: 1.04; }
h2 { font-weight: 700; }
h3 { font-weight: 700; letter-spacing: -.035em; }
.hero h1 { font-weight: 600; letter-spacing: -.04em; line-height: 1.1; font-size: clamp(1.9rem, 3vw, 2.75rem); }
.hero h1 u { background: none; text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 3px; text-underline-offset: .14em; }
.hero-sub { font-family: var(--font-display); font-weight: 500; letter-spacing: -.02em; }
.hero-lede, .sec-head p, .porque-copy p, .proy-copy p, .cta-copy p, .tec-head p, .galeria-head p, .p-card > p, .razon p, .tile p, .tec-list dd {
  font-family: var(--font-lead); font-weight: 400; line-height: 1.62;
}
.hero-lede { font-size: 1.1rem; }
.brand-name { font-weight: 700; letter-spacing: .14em; }
.marquee span { font-weight: 600; letter-spacing: -.035em; }
.tile-n, .paso-n { font-weight: 700; letter-spacing: -.05em; }
.btn, .site-nav a, .tabs button, .chips li, .p-tag, .el-tag { font-family: var(--font); }
.btn { font-weight: 700; letter-spacing: -.005em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 7px 16px;
  border: 1px solid rgb(143 211 196 / .45); border-radius: 999px; background: rgb(143 211 196 / .1);
  font: 700 .78rem/1 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--mint);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
@media (max-width: 640px) { .eyebrow { font-size: .68rem; letter-spacing: .14em; } }

/* ===== Tickets del banner ===== */
.tickets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.tickets li {
  --n: 7px;
  position: relative; display: inline-flex; align-items: center; padding: 10px 20px 10px 42px; border-radius: 7px;
  font: 700 .75rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: #fff;
  background: linear-gradient(120deg, rgb(143 211 196 / .24), rgb(143 211 196 / .08));
  -webkit-mask: radial-gradient(circle var(--n) at 0 50%, #0000 96%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--n) at 100% 50%, #0000 96%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle var(--n) at 0 50%, #0000 96%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--n) at 100% 50%, #0000 96%, #000) right / 51% 100% no-repeat;
  transition: transform .35s var(--ease), background .35s;
}
.tickets li::before { content: ""; position: absolute; left: 32px; top: 6px; bottom: 6px; border-left: 1.5px dashed rgb(143 211 196 / .55); }
.tk-b { position: absolute; left: 15px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgb(143 211 196 / .22), 0 0 12px var(--mint); }
.tickets li:hover { transform: translateY(-3px) rotate(-1.5deg); background: linear-gradient(120deg, rgb(143 211 196 / .38), rgb(143 211 196 / .14)); }

/* ===== Barra de progreso de lectura ===== */
.progreso { position: fixed; inset: 0 0 auto; z-index: 60; height: 3px; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--teal), var(--mint)); box-shadow: 0 0 10px rgb(143 211 196 / .7); pointer-events: none; }

/* ===== Héroe: plano que sigue el cursor + nodos detectores ===== */
.hero-box::before {
  -webkit-mask-image: radial-gradient(80% 80% at 20% 30%, #000 20%, transparent 75%), radial-gradient(240px circle at var(--mx, -50%) var(--my, -50%), #000, transparent 72%);
          mask-image: radial-gradient(80% 80% at 20% 30%, #000 20%, transparent 75%), radial-gradient(240px circle at var(--mx, -50%) var(--my, -50%), #000, transparent 72%);
}
.hero-box::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(360px circle at var(--mx, -50%) var(--my, -50%), rgb(143 211 196 / .13), transparent 70%); }
.nodo { position: absolute; z-index: 3; width: 14px; height: 14px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgb(255 255 255 / .9), 0 6px 16px rgb(0 0 0 / .4); }
.nodo::before, .nodo::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--mint); opacity: 0; }
.n1 { right: 22%; top: 14%; } .n2 { left: 18%; top: 22%; } .n3 { right: 12%; top: 58%; }

/* ===== Moldura ornamental ===== */
.moldura { display: grid; place-items: center; padding-block: clamp(28px, 4vw, 48px); color: var(--teal); }
.moldura svg { width: min(560px, 90%); height: auto; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.moldura .m-c { fill: var(--teal); }
.moldura .m-o { stroke: #b9ab90; stroke-width: 1.6; }
.moldura .m-w { stroke: var(--teal-hi); stroke-width: 2; }
.js .moldura .m-l, .js .moldura .m-r { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.js .moldura.visto .m-l, .js .moldura.visto .m-r { stroke-dashoffset: 0; }

/* ===== Soluciones: slider ===== */
.slider { position: relative; }
.tiles {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 12px 4px 28px; margin: -12px -4px 0; scrollbar-width: none;
}
.tiles::-webkit-scrollbar { display: none; }
.tiles:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: var(--r); }
.tiles .tile { flex: 0 0 clamp(270px, calc((100% - 48px) / 3.3), 360px); scroll-snap-align: start; min-height: 340px; cursor: pointer; }
.tiles .tile:last-child { grid-column: auto; }
.tile-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: auto; }
.tile-ico-wrap { position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; background: rgb(255 255 255 / .12); transition: transform .5s var(--ease), background .3s; }
.t-sand .tile-ico-wrap, .t-mint .tile-ico-wrap { background: rgb(255 255 255 / .45); }
.tile-ico-wrap::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid currentColor; opacity: 0; }
.tile .tile-ico { width: 46px; height: 46px; margin: 0; overflow: visible; stroke-width: 2.2; }
.tile .tile-ico .relleno { fill: currentColor; stroke: none; }
.tile .tile-ico * { transform-box: fill-box; transform-origin: center; }
.tile-n { font-size: 1rem; font-weight: 700; letter-spacing: .1em; opacity: .75; margin: 6px 0 0; }
.tile:hover .tile-ico-wrap { transform: translateY(-4px) rotate(-6deg); }
.tile:hover .tile-ico { transform: none; }
.t-teal .tile-ico, .t-deep .tile-ico, .t-dark .tile-ico { color: var(--mint); }
.t-sand .tile-ico, .t-mint .tile-ico { color: var(--teal-deep); }
.tiles .tile h3 { margin-top: 56px; }

.sl-bar { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.sl-prog { position: relative; flex: 1; height: 3px; border-radius: 3px; background: rgb(11 107 102 / .15); overflow: hidden; }
.sl-prog span { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--sp, .3)); background: var(--teal); border-radius: inherit; transition: transform .4s var(--ease); }
.sl-hint { font-size: .8125rem; font-weight: 600; color: var(--ink-2); letter-spacing: .04em; }
.sl-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgb(11 107 102 / .35); background: #fff; color: var(--teal-deep); cursor: pointer; transition: background .25s, color .25s, transform .25s var(--ease); }
.sl-btn:hover { background: var(--teal); color: #fff; transform: scale(1.06); }
.sl-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Animaciones de íconos (al pasar o tocar) */
.tile-ico.juega .mag { animation: lupa 1.3s var(--ease); }
.tile-ico.juega .w1 { animation: onda-w 1.2s ease both; }
.tile-ico.juega .w2 { animation: onda-w 1.2s ease .15s both; }
.tile-ico.juega .w3 { animation: onda-w 1.2s ease .3s both; }
.tile-ico.juega .relleno { animation: late .6s var(--ease) 2; }
.tile-ico.juega .gear { animation: gira 1.3s var(--ease); }
.tile-ico.juega .g2 { animation: gira-inv 1.3s var(--ease); }
.tile-ico.juega .escudo { animation: late .7s var(--ease); }
.tile-ico.juega .chk { stroke-dasharray: 1; animation: traza .8s var(--ease) .15s both; }
.tile-ico.juega .ln { animation: escribe .5s var(--ease) both; transform-origin: left center; }
.tile-ico.juega .l2 { animation-delay: .15s; } .tile-ico.juega .l3 { animation-delay: .3s; }
.tile-ico-wrap:has(.juega)::after { animation: halo .9s var(--ease); }
@keyframes lupa { 25% { transform: translate(-13px, -9px) rotate(-12deg); } 55% { transform: translate(-5px, 5px); } 80% { transform: translate(-15px, 3px) rotate(8deg); } }
@keyframes onda-w { 0%, 100% { opacity: 1; } 30% { opacity: .1; } 60% { opacity: 1; transform: scale(1.12); } }
@keyframes late { 50% { transform: scale(1.18); } }
@keyframes gira { to { transform: rotate(180deg); } }
@keyframes gira-inv { to { transform: rotate(-240deg); } }
@keyframes traza { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes escribe { from { transform: scaleX(0); } }
@keyframes halo { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }

/* ===== Contacto con formulario ===== */
.contacto-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(12px, 2vw, 20px); padding: clamp(12px, 1.6vw, 20px); border-radius: var(--r-lg); background: var(--teal-deep); }
.c-info { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(32px, 4.5vw, 60px); border-radius: calc(var(--r-lg) - 8px); color: var(--on-dark); }
.c-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.c-info::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(6 43 41 / .78) 0%, rgb(6 43 41 / .92) 60%, var(--night) 100%); }
.c-info h2 { margin-top: 20px; color: #fff; max-width: 14ch; font-size: clamp(2rem, 3.6vw, 3rem); }
.c-info h2 span { color: var(--mint); }
.c-lede { margin-top: 16px; color: var(--on-dark-2); max-width: 40ch; font-family: var(--font-lead); line-height: 1.62; }
.confianza { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: .9063rem; font-weight: 600; color: #fff; }
.confianza li { display: inline-flex; align-items: center; gap: 8px; }
.confianza li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23073f3c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.c-cards { display: grid; gap: 10px; width: 100%; margin-top: auto; padding-top: 36px; }
.c-cards a, .c-cards li > div { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgb(255 255 255 / .07); border: 1px solid rgb(143 211 196 / .18); color: #fff; text-decoration: none; font-weight: 600; transition: background .25s, transform .3s var(--ease); backdrop-filter: blur(6px); overflow-wrap: anywhere; }
.c-cards a:hover { background: rgb(143 211 196 / .16); transform: translateX(4px); }
.c-cards small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); margin-bottom: 3px; }
.c-ico { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--mint); color: var(--teal-deep); }
.c-ico .ico { width: 20px; height: 20px; }

.c-form { padding: clamp(28px, 3.6vw, 48px); border-radius: calc(var(--r-lg) - 8px); background: #fff; color: var(--ink); }
.c-form h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.c-sub { margin-top: 6px; color: var(--ink-2); font-family: var(--font-lead); }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.campo-full { grid-column: 1 / -1; }
.campo label { display: block; margin-bottom: 7px; font-size: .875rem; font-weight: 700; color: var(--ink); }
.campo label em { font-style: normal; font-weight: 500; color: var(--ink-2); }
.campo input, .campo select, .campo textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid transparent; border-radius: 12px; background-color: var(--paper); color: var(--ink);
  font: 500 1rem/1.3 var(--font); transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.campo textarea { resize: vertical; min-height: 96px; }
.campo select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b6b66' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-position: right 14px center; background-size: 18px; background-repeat: no-repeat; }
.campo input::placeholder, .campo textarea::placeholder { color: #7d8f8d; }
.campo input:hover, .campo select:hover, .campo textarea:hover { background-color: var(--paper-2); }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--teal); background-color: #fff; box-shadow: 0 0 0 4px rgb(11 107 102 / .14); }
.err { display: none; margin-top: 6px; font-size: .8125rem; font-weight: 600; color: #b3261e; }
.campo:has([aria-invalid="true"]) .err, .c-form.sin-consent .err-consent { display: block; }
.campo [aria-invalid="true"] { border-color: #b3261e; background-color: #fff6f5; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: .875rem; color: var(--ink-2); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--teal); }
.c-enviar { width: 100%; justify-content: center; margin-top: 22px; }
.c-enviar .ico { transition: transform .3s var(--ease); }
.c-enviar:hover .ico { transform: translateX(4px); }
.c-nota { margin-top: 14px; font-size: .8125rem; color: var(--ink-2); text-align: center; }
.c-nota a, .c-ok a { color: var(--teal); font-weight: 700; }
.c-ok { display: flex; gap: 14px; align-items: center; margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--mint-2); color: var(--teal-deep); }
.c-ok[hidden] { display: none; }
.c-ok p { font-size: .875rem; margin-top: 2px; }
.c-ok-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--teal); }
.c-ok-ico svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; animation: traza-ok .6s var(--ease) both; }
@keyframes traza-ok { from { stroke-dashoffset: 20; } to { stroke-dashoffset: 0; } }

@media (max-width: 900px) {
  .contacto-box { grid-template-columns: 1fr; }
  .tiles .tile { flex-basis: clamp(260px, 46%, 360px); }
}
@media (max-width: 640px) {
  .contacto-box { border-radius: var(--r); padding: 8px; }
  .c-info { padding: 32px 22px; }
  .c-form { padding: 28px 20px; }
  .campos { grid-template-columns: 1fr; }
  .tiles .tile { flex-basis: 84%; min-height: 300px; }
  .tickets li { font-size: .6875rem; padding: 9px 16px 9px 38px; letter-spacing: .08em; }
  .tickets li::before { left: 29px; }
  .tk-b { left: 13px; }
  .sl-hint { display: none; }
  .nodo { width: 11px; height: 11px; }
}

@media (prefers-reduced-motion: no-preference) {
  .nodo::before { animation: onda 2.6s var(--ease) infinite; }
  .nodo::after { animation: onda 2.6s var(--ease) 1.3s infinite; }
  .n2::before { animation-delay: .6s; } .n2::after { animation-delay: 1.9s; }
  .n3::before { animation-delay: 1.1s; } .n3::after { animation-delay: 2.4s; }
  .moldura .w1 { animation: onda-w 2.8s ease infinite; }
  .moldura .w2 { animation: onda-w 2.8s ease .35s infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .tile-ico.juega *, .tile-ico-wrap::after { animation: none !important; }
}

/* ===== Propuesta de banner: fotografía patrimonial + escaneo técnico ===== */
.hero2 { margin-top: clamp(12px, 1.6vw, 24px);
  position: relative; isolation: isolate; overflow: hidden; margin-inline: clamp(0px, 1vw, 16px); border-radius: var(--r-lg);
  background: var(--night); color: var(--on-dark);
}
.h2-media { position: absolute; inset: 0 0 0 42%; z-index: -1; overflow: hidden; }
.h2-media::before { /* fundido hacia el texto */
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(90deg, var(--night) 0%, rgb(6 43 41 / .55) 22%, transparent 55%), linear-gradient(0deg, rgb(6 43 41 / .7), transparent 30%);
}
.h2-foto, .h2-plano img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.h2-foto { filter: saturate(.9) contrast(1.05); }

/* Capa "plano": la misma fachada leída como dibujo técnico */
.h2-plano { position: absolute; inset: 0; z-index: 2; background: #0a4f4a; clip-path: inset(0 0 100% 0); }
.h2-plano img { filter: grayscale(1) invert(1) contrast(2.4) brightness(.95); mix-blend-mode: screen; opacity: .5; }
.h2-plano::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgb(143 211 196 / .22) 1px, transparent 1px), linear-gradient(90deg, rgb(143 211 196 / .22) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Línea de escaneo */
.h2-scan { position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 2px; background: var(--mint); box-shadow: 0 0 18px 4px rgb(143 211 196 / .65), 0 0 60px 10px rgb(143 211 196 / .25); }
.h2-scan span { position: absolute; right: 18px; top: -26px; font: 700 .6875rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--mint); white-space: nowrap; }

/* Detectores con etiqueta */
.h2-nodo { position: absolute; left: var(--x); top: var(--y); z-index: 5; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgb(255 255 255 / .9), 0 0 24px var(--mint); }
.h2-nodo::before, .h2-nodo::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--mint); opacity: 0; }
.h2-nodo b {
  position: absolute; left: 22px; top: 50%; translate: 0 -50%; padding: 6px 10px; border-radius: 8px; white-space: nowrap;
  background: rgb(6 43 41 / .78); border: 1px solid rgb(143 211 196 / .4); backdrop-filter: blur(6px);
  font: 700 .6875rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: #fff;
}

/* Marcas de encuadre tipo visor */
.h2-mira { position: absolute; z-index: 5; width: 26px; height: 26px; border: 2px solid rgb(143 211 196 / .8); }
.m1 { top: 28px; left: 24%; border-right: 0; border-bottom: 0; }
.m2 { top: 28px; right: 28px; border-left: 0; border-bottom: 0; }
.m3 { bottom: 110px; left: 24%; border-right: 0; border-top: 0; }
.m4 { bottom: 110px; right: 28px; border-left: 0; border-top: 0; }
.h2-ref { position: absolute; right: 64px; top: 34px; z-index: 5; font-size: .75rem; color: var(--on-dark-2); }

/* Texto */
.h2-grid { min-height: clamp(560px, calc(100vh - 150px), 740px); display: flex; align-items: center; padding-block: clamp(56px, 7vw, 96px) 150px; }
.h2-copy { max-width: 640px; }
.hero2 h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.08; letter-spacing: -.04em; color: #fff; text-wrap: balance; }
.hero2 h1 em {
  font-style: normal; background: linear-gradient(90deg, var(--mint), #d9f3ec 50%, var(--mint)) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h2-sub { margin-top: 22px; font: 500 clamp(1.15rem, 1.6vw, 1.35rem)/1.35 var(--font-display); letter-spacing: -.02em; color: #fff; padding-left: 16px; border-left: 3px solid var(--mint); }
.h2-lede { margin-top: 14px; max-width: 50ch; font: 400 1.0625rem/1.62 var(--font-lead); color: var(--on-dark-2); }
.hero2 .actions { margin-top: 30px; }

/* Franja inferior */
.h2-franja { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; border-top: 1px solid rgb(143 211 196 / .18); background: rgb(6 43 41 / .72); backdrop-filter: blur(10px); }
.h2-franja-row { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding-block: 22px; }
.h2-franja-row > div:not(.h2-estado) { display: flex; align-items: baseline; gap: 10px; }
.h2-franja strong { font: 700 clamp(1.6rem, 2.4vw, 2.1rem)/1 var(--font-display); letter-spacing: -.04em; color: var(--mint); }
.h2-franja span { font-size: .9063rem; color: var(--on-dark); }
.h2-estado { justify-self: end; display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgb(143 211 196 / .35); font: 700 .75rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }
.h2-led { width: 8px; height: 8px; border-radius: 50%; background: #48e0a4; box-shadow: 0 0 10px #48e0a4; }

@media (prefers-reduced-motion: no-preference) {
  .h2-foto { animation: acerca 22s ease-in-out infinite alternate; }
  .h2-plano { animation: barre 7s cubic-bezier(.65, 0, .35, 1) infinite alternate; }
  .h2-scan { animation: baja 7s cubic-bezier(.65, 0, .35, 1) infinite alternate; }
  .h2-nodo::before { animation: onda 2.6s var(--ease) var(--d) infinite; }
  .h2-nodo::after { animation: onda 2.6s var(--ease) calc(var(--d) + 1.3s) infinite; }
  .h2-nodo b { animation: etiqueta 7s ease-in-out var(--d) infinite; }
  .hero2 h1 em { animation: brillo 6s linear infinite; }
  .h2-led { animation: led 1.6s ease-in-out infinite; }
  .h2-copy > * { animation: entra .9s var(--ease) both; }
  .h2-copy > :nth-child(2) { animation-delay: .1s; }
  .h2-copy > :nth-child(3) { animation-delay: .18s; }
  .h2-copy > :nth-child(4) { animation-delay: .26s; }
  .h2-copy > :nth-child(5) { animation-delay: .34s; }
}
@media (prefers-reduced-motion: reduce) {
  .h2-plano { clip-path: inset(0 0 55% 0); }
  .h2-scan { top: 45%; }
}
@keyframes acerca { to { transform: scale(1.08); } }
@keyframes barre { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes baja { from { top: 0; } to { top: calc(100% - 2px); } }
@keyframes etiqueta { 0%, 8% { opacity: 0; translate: -6px -50%; } 16%, 70% { opacity: 1; translate: 0 -50%; } 80%, 100% { opacity: 0; translate: 0 -50%; } }
@keyframes brillo { to { background-position: -200% 0; } }
@keyframes led { 50% { opacity: .35; } }

@media (max-width: 900px) {
  .hero2 { display: flex; flex-direction: column; }
  .h2-media { position: relative; inset: auto; height: 62vw; min-height: 300px; order: -1; }
  .h2-media::before { background: linear-gradient(0deg, var(--night) 0%, transparent 45%); }
  .m1, .m3 { left: 20px; }
  .m3, .m4 { bottom: 20px; }
  .h2-grid { min-height: 0; padding-block: 8px 36px; }
  .h2-franja { position: static; }
  .h2-franja-row { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .h2-franja-row > div:not(.h2-estado) { flex-direction: column; gap: 4px; }
  .h2-estado { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 640px) {
  .hero2 { margin-inline: 0; border-radius: 0; }
  .hero2 .actions .btn { width: 100%; }
  .h2-ref { right: 56px; top: 26px; }
  .h2-nodo b { font-size: .625rem; padding: 5px 8px; }
  .h2-franja span { font-size: .8125rem; }
}
@media (max-width: 640px) { .h2-nodo.izq b { left: auto; right: 22px; } }
