/* Tornohimec S.A.S. — hoja de estilos
   Dirección: oscuro, cinematográfico y fluido (referencia: Isembard).
   Fondo casi negro, menú flotante en cápsulas, tarjetas claras con grano,
   listas tipo tabla con etiquetas mono y animaciones al hacer scroll. */
:root {
  --bg: #0e0e0f;
  --bg-2: #161618;
  --bg-3: #1f1f22;
  --fg: #efeee9;
  --fg-2: #c9c7c1;
  --muted: #8d8b85;
  --line: rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .22);
  --card: #e8e7e3;
  --card-ink: #111;
  --card-muted: #5e5c57;
  --pill: rgba(236, 235, 231, .94);
  --pill-on: #b9b8b3;
  --blue: #4a78ff;
  --blue-deep: #1f4fc4;
  --amber: #f0b445;
  --f-sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --f-serif: "Instrument Serif", Georgia, serif;
  --wrap: 1320px;
  --gutter: clamp(18px, 4vw, 56px);
  --r: 6px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; font-family: var(--f-sans); font-size: 17px; line-height: 1.5; color: var(--fg); background: var(--bg); overflow-x: hidden; overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1; letter-spacing: -.035em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; left: 12px; top: 12px; z-index: 200; width: auto; height: auto; clip: auto; padding: 10px 14px; background: var(--fg); color: var(--bg); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-size: .72rem; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
.muted { color: var(--muted); }
.serif { font-family: var(--f-serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; }

/* ---------- Tipografía ---------- */
.t-hero { font-size: clamp(3rem, 7.6vw, 7.4rem); line-height: .92; letter-spacing: -.055em; font-weight: 500; }
.t-xl { font-size: clamp(2.3rem, 4.8vw, 4.6rem); line-height: .98; letter-spacing: -.045em; }
.t-l { font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1.02; letter-spacing: -.04em; }
.t-m { font-size: clamp(1.3rem, 1.9vw, 1.7rem); line-height: 1.1; letter-spacing: -.025em; }
.t-xl .serif, .t-l .serif, .t-hero .serif { font-size: 1.06em; letter-spacing: -.02em; }
.lede { font-size: clamp(1.02rem, 1.25vw, 1.15rem); line-height: 1.5; color: var(--fg-2); max-width: 34em; }

/* palabras partidas por la animación */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; will-change: transform; }

/* ---------- Cápsulas (botones) ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--fg); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.pill:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pill svg { width: 14px; height: 14px; flex: none; }
.pill--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pill--solid:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.pill--lg { height: 46px; padding: 0 22px; font-size: .76rem; }
.pill--dark { border-color: rgba(0, 0, 0, .25); color: var(--card-ink); }
.pill--dark:hover { background: var(--card-ink); color: var(--card); border-color: var(--card-ink); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.round { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--fg); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .25s, color .25s, opacity .25s; }
.round:hover { background: var(--fg); color: var(--bg); }
.round:disabled { opacity: .35; cursor: default; background: transparent; color: var(--fg); }
.round svg { width: 16px; height: 16px; }

/* ---------- Menú flotante ---------- */
.dock { position: fixed; top: 14px; left: 50%; z-index: 100; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 0; }
.dock a, .dock button { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--pill); color: #111; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .3s, color .3s; white-space: nowrap; box-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.dock a:hover, .dock button:hover { background: #fff; }
.dock a[aria-current="page"], .dock a.is-on { background: var(--pill-on); }
.dock .dock-logo { width: 30px; padding: 0; overflow: hidden; }
.dock .dock-logo img { width: 22px; height: auto; }
.dock .dock-cta { background: var(--blue); color: #fff; }
.dock .dock-cta:hover { background: #fff; color: #111; }
.dock .dock-menu { display: none; }
.dock-links { display: flex; gap: 4px; }
/* logo con sus colores reales (versión para fondo oscuro); la sombra suave lo separa del video */
.brand-tag { position: fixed; top: 12px; left: var(--gutter); z-index: 99; display: block; padding: 6px 10px; border-radius: 6px; transition: background .35s; }
.brand-tag img { height: 42px; width: auto; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .55)); }
.brand-tag.is-solid { background: rgba(14, 14, 15, .82); }
@media (max-width: 1080px) { .brand-tag { display: none; } }
@media (max-width: 760px) {
  .dock { left: 12px; right: 12px; transform: none; justify-content: space-between; }
  .dock-links { display: none; }
  .dock .dock-menu { display: inline-flex; margin-left: auto; }
}
/* panel del menú en móvil */
.menu-panel { position: fixed; inset: 0; z-index: 90; background: var(--bg); padding: 80px var(--gutter) 32px; display: flex; flex-direction: column; visibility: hidden; opacity: 0; transition: opacity .35s var(--ease), visibility .35s; }
.menu-open .menu-panel { visibility: visible; opacity: 1; }
.menu-panel a.big { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 2.3rem; letter-spacing: -.04em; text-decoration: none; }
.menu-panel a.big .mono { color: var(--muted); }
.menu-panel .pills { margin-top: auto; }
body.menu-open { overflow: hidden; }

/* ---------- Secciones ---------- */
.sec { position: relative; padding: clamp(80px, 12vw, 168px) 0; }
.sec--tight { padding: clamp(56px, 7vw, 96px) 0; }
.sec-label { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 14px; margin-bottom: clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); color: var(--muted); }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 28px clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.head .t-xl, .head .t-l { grid-column: 2; }
.head .head-side { grid-column: 1; grid-row: 1; align-self: end; }
.head .pills { grid-column: 2; }
.head--left .t-xl, .head--left .t-l { grid-column: 1 / span 1; }
@media (max-width: 860px) {
  .head { grid-template-columns: 1fr; }
  .head .t-xl, .head .t-l, .head .head-side, .head .pills { grid-column: 1; grid-row: auto; }
}

/* ---------- Portada ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media { overflow: hidden; transform: scale(1.12); will-change: transform; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(14, 14, 15, .55) 0%, rgba(14, 14, 15, .2) 35%, rgba(14, 14, 15, .55) 70%, var(--bg) 100%),
  linear-gradient(90deg, rgba(14, 14, 15, .65) 0%, rgba(14, 14, 15, 0) 60%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .22; mix-blend-mode: overlay; pointer-events: none; }
.hero-body { padding-top: 120px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 20px; align-items: end; }
.hero-body .t-hero { grid-column: 1 / 9; margin-bottom: clamp(28px, 4vw, 48px); }
.hero-index { grid-column: 1 / 3; align-self: start; padding-top: 8px; color: var(--muted); }
.hero-text { grid-column: 4 / 9; }
.hero-text .lede { margin-bottom: 28px; }
.hero-meta { grid-column: 10 / 13; justify-self: end; text-align: right; color: var(--fg-2); line-height: 1.8; align-self: end; }
.hero-word { display: block; margin: clamp(16px, 2.5vw, 36px) 0 .06em; font-size: min(18.5vw, 21svh); line-height: .9; letter-spacing: -.075em; font-weight: 500; color: var(--fg); white-space: nowrap; text-align: center; pointer-events: none; user-select: none; will-change: transform; }
@media (max-width: 900px) {
  .hero-body .t-hero, .hero-index, .hero-text, .hero-meta { grid-column: 1 / -1; }
  .hero-index { order: -1; margin-bottom: 18px; }
  .hero-meta { justify-self: start; text-align: left; margin-top: 28px; }
}

/* ---------- Carrusel de servicios ---------- */
.carousel { position: relative; }
.slides { position: relative; height: clamp(520px, 66vh, 680px); border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.05fr 1fr; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s; }
.slide.is-on { opacity: 1; visibility: visible; }
.slide-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.slide-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(42px) saturate(1.3) brightness(.55); transform: scale(1.3); }
.slide-copy { position: relative; z-index: 1; display: flex; flex-direction: column; padding: clamp(24px, 4vw, 56px); }
.slide-copy .mono { color: var(--fg-2); }
.slide-copy h3 { margin: 18px 0 18px; }
.slide-copy p { color: var(--fg-2); max-width: 30em; }
.slide-copy ul { list-style: none; margin: auto 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.slide-copy li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.slide-copy li span:last-child { color: var(--muted); font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; }
.slide-img { position: relative; z-index: 1; margin: clamp(14px, 2vw, 24px); border-radius: 4px; overflow: hidden; background: var(--card); }
.slide-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.slide.is-on .slide-img img { transform: scale(1); }
.slide-img.contain img { object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.car-nav { display: flex; align-items: center; gap: 0; margin-top: 12px; }
.car-tabs { flex: 1; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.car-tabs button { position: relative; height: 64px; padding: 0 12px; border: 0; background: var(--bg-2); color: var(--muted); font-family: var(--f-sans); font-size: .82rem; letter-spacing: -.01em; text-align: left; cursor: pointer; overflow: hidden; transition: color .3s, background .3s; }
.car-tabs button:first-child { border-radius: var(--r) 0 0 var(--r); }
.car-tabs button:last-child { border-radius: 0 var(--r) var(--r) 0; }
.car-tabs button:hover { color: var(--fg); }
.car-tabs button[aria-current="true"] { color: var(--fg); background: var(--bg-3); }
.car-tabs button i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--fg); }
.car-arrows { display: flex; gap: 8px; margin-left: 16px; }
@media (max-width: 900px) {
  .slides { height: auto; }
  .slide { position: relative; grid-template-columns: 1fr; display: none; }
  .slide.is-on { display: grid; }
  .slide-img { aspect-ratio: 4 / 3; order: -1; }
  .car-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .car-tabs button { flex: 0 0 auto; height: 48px; border-radius: 99px !important; padding: 0 16px; }
  .car-nav { flex-wrap: wrap; gap: 12px; }
  .car-arrows { margin-left: 0; }
}

/* ---------- Tarjetas claras con grano (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; }
.tile { position: relative; grid-column: span 4; min-height: 300px; padding: 18px; display: flex; flex-direction: column; border-radius: 3px; background: var(--card); color: var(--card-ink); overflow: hidden; }
.tile::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .35; mix-blend-mode: multiply; pointer-events: none; }
.tile::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -40%; height: 70%; background: radial-gradient(closest-side, rgba(255, 255, 255, .9), transparent); opacity: .7; pointer-events: none; }
.tile > * { position: relative; z-index: 1; }
.tile--wide { grid-column: span 8; }
.tile--half { grid-column: span 6; }
.tile p { margin: 0; font-size: .86rem; line-height: 1.3; max-width: 22em; }
.tile .glyph { width: 44px; height: 44px; margin: 22px 0 auto; }
.tile .num { font-size: clamp(2.6rem, 5vw, 4.4rem); letter-spacing: -.06em; line-height: 1; margin-top: 26px; }
.tile .mono { color: var(--card-muted); margin-top: 6px; }
@media (max-width: 900px) { .tile, .tile--wide, .tile--half { grid-column: span 12; min-height: 240px; } }
@media (min-width: 560px) and (max-width: 900px) { .tile { grid-column: span 6; } .tile--wide { grid-column: span 12; } }

/* ---------- Marquesina de fotos ---------- */
.marquee { display: grid; gap: 10px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.mq-row { display: flex; width: max-content; gap: 10px; will-change: transform; }
.mq-item { flex: none; width: clamp(180px, 19vw, 270px); aspect-ratio: 4 / 3; border-radius: 3px; overflow: hidden; background: var(--card); position: relative; text-decoration: none; }
.mq-item img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .8s var(--ease); }
.mq-item:hover img { transform: scale(1.06); }
.mq-item span { position: absolute; left: 10px; bottom: 8px; right: 10px; color: var(--card-ink); font-size: .78rem; letter-spacing: -.01em; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.mq-item:hover span { opacity: 1; transform: none; }
.mq-item--photo img { mix-blend-mode: normal; }
.mq-item--photo span { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }

/* ---------- Tablas / listas ---------- */
.rows { border-top: 1px solid var(--line-2); }
.row { display: grid; grid-template-columns: 70px 1.2fr 2fr auto; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .3s, padding .4s var(--ease); }
.row .mono { color: var(--muted); }
.row .row-title { font-size: clamp(1.15rem, 1.6vw, 1.45rem); letter-spacing: -.03em; }
.row p { margin: 0; color: var(--fg-2); font-size: .95rem; }
.row .tag { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); justify-self: end; white-space: nowrap; }
.row .tag b { font-weight: 400; color: #7bd88f; }
a.row:hover { padding-left: 10px; background: linear-gradient(90deg, rgba(255, 255, 255, .04), transparent); }
.rows-group { margin-top: 36px; }
.rows-group > .mono { display: flex; justify-content: space-between; color: var(--muted); padding-bottom: 10px; }
@media (max-width: 760px) {
  .row { grid-template-columns: 44px 1fr; gap: 4px 12px; }
  .row p, .row .tag { grid-column: 2; justify-self: start; }
}

/* ---------- Proyectos (recorrido horizontal) ---------- */
.hscroll { position: relative; overflow: hidden; }
.htrack { display: flex; gap: 14px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.hcard { flex: none; width: clamp(300px, 34vw, 520px); text-decoration: none; display: flex; flex-direction: column; }
.hcard .plate { aspect-ratio: 4 / 5; border-radius: 3px; overflow: hidden; background: var(--card); position: relative; }
.hcard .plate::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .3; mix-blend-mode: multiply; z-index: 1; pointer-events: none; }
.hcard .plate img { width: 100%; height: 100%; object-fit: contain; padding: 7%; mix-blend-mode: multiply; transition: transform 1s var(--ease); }
.hcard .plate video { width: 100%; height: 100%; object-fit: cover; }
.hcard:hover .plate img { transform: scale(1.04); }
.hcard .cap { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; }
.hcard h3 { font-size: 1.35rem; letter-spacing: -.03em; margin-top: 4px; }
.hcard .mono { color: var(--muted); }
.hcard--intro { width: clamp(280px, 28vw, 420px); justify-content: space-between; padding-right: 20px; }
@media (max-width: 900px) {
  /* en celular los proyectos van en cuadrícula: todo visible sin deslizar de lado */
  .htrack { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 10px; width: auto; }
  .hcard { width: auto; }
  .hcard--intro { grid-column: 1 / -1; width: auto; padding-right: 0; gap: 20px; margin-bottom: 8px; }
  .hcard .plate { aspect-ratio: 1; }
  .hcard h3 { font-size: 1.02rem; }
  .hcard .cap { flex-direction: column; gap: 4px; padding-top: 10px; }
}

/* ---------- Bloques de foto ---------- */
.duo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; align-items: end; }
.duo figure { margin: 0; overflow: hidden; border-radius: 3px; }
.duo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.duo figure:nth-child(2) img { aspect-ratio: 4 / 5; }
.duo figcaption { padding-top: 10px; color: var(--muted); display: flex; justify-content: space-between; }
.clip { overflow: hidden; }
.clip img, .clip video { transform-origin: center; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

.statement { font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 1.02; letter-spacing: -.045em; max-width: 18em; }
.statement .serif { color: var(--fg-2); }
.statement em { font-style: normal; color: var(--blue); }

/* ---------- Encabezado de páginas internas ---------- */
.page-hero { position: relative; padding: clamp(130px, 16vw, 200px) 0 clamp(48px, 6vw, 88px); overflow: hidden; isolation: isolate; }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(30px) brightness(.45) saturate(1.2); transform: scale(1.2); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 14, 15, .3), var(--bg)); }
.page-hero .crumbs { display: flex; gap: 10px; color: var(--muted); margin-bottom: 28px; }
.page-hero .crumbs a { text-decoration: none; }
.page-hero .crumbs a:hover { color: var(--fg); }
.page-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px 48px; align-items: end; }
.page-hero-grid .lede { margin: 0; }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* ---------- Servicios (detalle) ---------- */
.svc { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px clamp(32px, 5vw, 80px); padding: clamp(56px, 8vw, 110px) 0; border-top: 1px solid var(--line); }
.svc-side { position: sticky; top: 90px; align-self: start; }
.svc-side .mono { color: var(--muted); }
.svc-side h2 { margin: 16px 0 20px; }
.svc-side .lede { margin-bottom: 26px; }
.svc-gal { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.svc-gal .ph { position: relative; border-radius: 3px; overflow: hidden; background: var(--card); }
.svc-gal .ph:first-child { grid-row: span 2; min-height: 380px; }
.svc-gal .ph:not(:first-child) { aspect-ratio: 1; }
.svc-gal .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.svc-gal .ph.photo img { mix-blend-mode: normal; }
.svc-gal .ph.contain img { object-fit: contain; padding: 6%; }
.spec { margin-top: 26px; }
@media (max-width: 900px) { .svc { grid-template-columns: 1fr; } .svc-side { position: static; } .svc-gal .ph:first-child { min-height: 260px; } }

.renders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.render { margin: 0; cursor: zoom-in; }
.render .ph { aspect-ratio: 5 / 3.4; border-radius: 3px; background: #e9e9ea; overflow: hidden; }
.render img { width: 100%; height: 100%; object-fit: contain; padding: 7%; transition: transform .8s var(--ease); }
.render:hover img { transform: scale(1.04); }
.render figcaption { display: flex; justify-content: space-between; padding-top: 10px; color: var(--fg-2); font-size: .95rem; }
.render figcaption .mono { color: var(--muted); }
@media (max-width: 860px) { .renders { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .renders { grid-template-columns: 1fr; } }

/* ---------- Catálogo ---------- */
.cat-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--fg-2); font-family: var(--f-mono); font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.filters button sup { margin-left: 4px; color: var(--muted); }
.filters button:hover { border-color: var(--fg); color: var(--fg); }
.filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filters button[aria-pressed="true"] sup { color: #666; }
.search { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; min-width: 260px; border-radius: 999px; border: 1px solid var(--line-2); }
.search svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: .95rem; color: var(--fg); outline: none; }
.search input::placeholder { color: var(--muted); }
.result-count { color: var(--muted); margin: 0 0 18px; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cat-item { position: relative; display: flex; flex-direction: column; border: 0; padding: 0; border-radius: 3px; overflow: hidden; background: var(--card); color: var(--card-ink); text-align: left; font: inherit; cursor: pointer; }
.cat-item::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .3; mix-blend-mode: multiply; pointer-events: none; z-index: 2; }
.cat-item .ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.cat-item .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: opacity .4s, transform .9s var(--ease); }
.cat-item .ph .alt { opacity: 0; }
.cat-item:hover .ph .alt { opacity: 1; }
.cat-item:hover .ph img { transform: scale(1.04); }
.cat-meta { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px 0; color: var(--card-muted); font-size: .62rem; }
.cat-name { padding: 4px 14px 16px; font-size: 1rem; line-height: 1.2; letter-spacing: -.02em; }
.empty { padding: 56px 0; color: var(--muted); }
@media (max-width: 1100px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; } .cat-name { font-size: .92rem; padding: 4px 10px 12px; } .cat-meta { padding: 10px 10px 0; } .cat-meta span:last-child { display: none; } }

/* ---------- Proyectos (página) ---------- */
.proj-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 14px; }
.proj { text-decoration: none; display: flex; flex-direction: column; }
.proj:nth-child(4n+1) { grid-column: span 2; }
.proj .ph { position: relative; aspect-ratio: 4 / 3; border-radius: 3px; overflow: hidden; background: var(--card); cursor: zoom-in; }
.proj:nth-child(4n+1) .ph { aspect-ratio: 16 / 8; }
.proj .ph::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .3; mix-blend-mode: multiply; z-index: 1; pointer-events: none; }
.proj .ph img { width: 100%; height: 100%; object-fit: contain; padding: 5%; mix-blend-mode: multiply; transition: transform 1s var(--ease); }
.proj .ph video { width: 100%; height: 100%; object-fit: cover; }
.proj:hover .ph img { transform: scale(1.03); }
.proj-cap { display: grid; grid-template-columns: 70px 1fr auto; gap: 6px 16px; padding-top: 14px; align-items: baseline; }
.proj-cap .mono { color: var(--muted); }
.proj-cap h2 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); letter-spacing: -.04em; }
.proj-cap p { grid-column: 2 / 4; margin: 6px 0 0; color: var(--fg-2); max-width: 40em; }
.proj-cap .pill { grid-column: 3; grid-row: 1; }
.proj-thumbs { grid-column: 2 / 4; display: flex; gap: 6px; margin-top: 10px; }
.proj-thumbs button { width: 64px; aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--line-2); border-radius: 3px; background: var(--card); cursor: pointer; overflow: hidden; }
.proj-thumbs button[aria-pressed="true"] { border-color: var(--fg); }
.proj-thumbs img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
@media (max-width: 760px) {
  .proj-list { grid-template-columns: 1fr; gap: 40px; }
  .proj:nth-child(4n+1) { grid-column: auto; }
  .proj:nth-child(4n+1) .ph { aspect-ratio: 4 / 3; }
  .proj-cap { grid-template-columns: 40px 1fr; }
  .proj-cap .pill { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 10px; }
  .proj-cap p, .proj-thumbs { grid-column: 2; }
}

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px clamp(32px, 5vw, 80px); align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.field { display: flex; flex-direction: column; margin-bottom: 24px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 0 10px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: transparent; font: inherit; font-size: 1.1rem; color: var(--fg); -webkit-appearance: none; appearance: none; transition: border-color .25s; }
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23efeee9' stroke-width='1.4'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") right 4px center no-repeat; padding-right: 24px; }
.field select option { background: var(--bg-2); color: var(--fg); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--fg); }
.field [aria-invalid="true"] { border-bottom-color: #ff6b5b; }
.form-note { margin: 14px 0 0; color: var(--muted); font-size: .9rem; }
.map { margin-top: 28px; aspect-ratio: 4 / 3; border-radius: 3px; overflow: hidden; background: var(--bg-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.qr { display: flex; gap: 16px; align-items: center; margin-top: 18px; padding: 14px; border-radius: 3px; background: var(--card); color: var(--card-ink); }
.qr img { width: 80px; height: 80px; mix-blend-mode: multiply; }
.qr strong { display: block; font-weight: 500; letter-spacing: -.02em; }
.qr span { font-size: .88rem; color: var(--card-muted); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Pie de página ---------- */
.site-footer { padding: 10px; }
.foot-panel { position: relative; overflow: hidden; border-radius: 8px; padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 56px) 28px; background: #121213; isolation: isolate; }
.foot-panel::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 10px; background:
  radial-gradient(60% 40% at 0% 100%, rgba(74, 120, 255, .55), transparent 70%),
  radial-gradient(50% 35% at 100% 0%, rgba(240, 180, 69, .35), transparent 70%),
  radial-gradient(40% 30% at 100% 100%, rgba(240, 180, 69, .25), transparent 70%); filter: blur(10px); }
.foot-panel::after { content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: 7px; background: #111112; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.foot-top .t-l { max-width: 12em; }
.foot-col .mono { display: block; color: var(--muted); margin-bottom: 16px; }
.foot-col ol, .foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.foot-col ol { counter-reset: f; }
.foot-col ol li::before { counter-increment: f; content: counter(f, decimal-leading-zero) "  "; color: var(--muted); }
.foot-col a { text-decoration: none; }
.foot-col a:hover { color: var(--blue); }
.foot-mid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.legal { display: grid; grid-template-columns: auto auto auto; gap: 4px 28px; color: var(--muted); align-items: center; }
.legal b { font-weight: 400; color: var(--fg); }
.copy { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.copy:hover { color: var(--fg); }
.foot-end { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-top: 48px; }
.foot-end .t-m { max-width: 16em; }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > :first-child { grid-column: 1 / -1; } .legal { grid-template-columns: auto auto; } }
@media (max-width: 520px) { .foot-top { grid-template-columns: 1fr; } .foot-end { flex-direction: column; align-items: start; } }

/* ---------- Visor ---------- */
.lightbox { width: min(1180px, 100vw - 20px); max-height: calc(100vh - 20px); padding: 0; border: 0; border-radius: 8px; background: var(--bg-2); color: var(--fg); overflow: hidden; }
.lightbox::backdrop { background: rgba(5, 5, 6, .8); backdrop-filter: blur(6px); }
.lb-inner { display: grid; grid-template-columns: 1.55fr 1fr; max-height: calc(100vh - 20px); }
.lb-stage { position: relative; background: var(--card); display: flex; align-items: center; justify-content: center; min-height: 380px; }
.lb-stage img { max-height: calc(100vh - 100px); width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.lb-nav { position: absolute; bottom: 14px; }
.lb-nav.round { border-color: rgba(0, 0, 0, .3); color: #111; background: rgba(255, 255, 255, .6); }
.lb-nav.round:hover { background: #111; color: #fff; }
.lb-prev { right: 60px; } .lb-next { right: 14px; }
.lb-side { padding: 28px; overflow-y: auto; display: flex; flex-direction: column; }
.lb-side .mono { color: var(--muted); }
.lb-side h3 { margin: 14px 0 16px; font-size: 2.1rem; letter-spacing: -.045em; line-height: 1; }
.lb-side p { color: var(--fg-2); }
.lb-side .pill { margin-top: auto; align-self: flex-start; }
.lb-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 24px; }
.lb-thumbs button { width: 64px; aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--line-2); border-radius: 3px; background: var(--card); cursor: pointer; overflow: hidden; }
.lb-thumbs button[aria-pressed="true"] { border-color: var(--fg); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.lb-close { position: absolute; right: 12px; top: 12px; z-index: 2; }
.lb-close.pill { background: rgba(255, 255, 255, .7); color: #111; border-color: transparent; }
@media (max-width: 760px) {
  .lb-inner { grid-template-columns: 1fr; overflow-y: auto; }
  .lb-stage { min-height: 280px; }
  .lb-stage img { max-height: 50vh; }
  .lb-side { padding: 20px; }
  .lb-side .pill { margin-top: 10px; }
}

/* WhatsApp flotante */
.wa-float { position: fixed; right: 14px; bottom: 14px; z-index: 80; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--pill); color: #111; text-decoration: none; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); transition: background .25s, transform .3s var(--ease); }
.wa-float svg { width: 18px; height: 18px; color: #1faa53; }
.wa-float:hover { background: #fff; transform: translateY(-2px); }

/* Estado inicial de animaciones (solo si hay JS y movimiento permitido) */
.js-anim [data-reveal] { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) {
  .js-anim [data-reveal] { opacity: 1; transform: none; }
  .hero-media { transform: none; }
}

/* filas de ficha técnica (etiqueta + texto) */
.row--spec { grid-template-columns: 170px 1fr; }
.row--spec .row-title { font-size: 1.15rem; }
@media (max-width: 760px) { .row--spec { grid-template-columns: 110px 1fr; } .row--spec p { grid-column: 2; } }
.tile .num { overflow-wrap: anywhere; }

/* videos nuevos en carrusel, galerías y portada */
.slide-img video { width: 100%; height: 100%; object-fit: cover; }
.svc-gal .ph video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media video { object-position: center 35%; }

/* ---------- Clientes: carrusel continuo de logos ---------- */
.clients .head { margin-bottom: clamp(32px, 4vw, 56px); }
.cl-row { position: relative; overflow: hidden; margin-top: 10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.cl-track { display: flex; width: max-content; animation: cl-move 60s linear infinite; }
.cl-row--rev .cl-track { animation-duration: 40s; }
.cl-row:hover .cl-track { animation-play-state: paused; }
.cl-set { display: flex; gap: 10px; padding-right: 10px; }
.cl-logo { flex: none; display: flex; align-items: center; justify-content: center; width: clamp(180px, 16vw, 240px); height: 110px; padding: 10px 26px; }
.cl-logo img { max-width: 100%; max-height: 50px; width: auto; height: auto; object-fit: contain; opacity: .95; transition: opacity .35s, transform .5s var(--ease); }
.cl-logo:hover img { opacity: 1; transform: scale(1.06); }
.cl-row:not(.cl-row--big) .cl-logo { height: 84px; width: clamp(160px, 14vw, 210px); }
.cl-row:not(.cl-row--big) .cl-logo img { max-height: 36px; opacity: .85; }
.cl-row:not(.cl-row--big) .cl-logo:hover img { opacity: 1; }
.cl-row--big { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cl-tag { position: absolute; left: var(--gutter); top: 8px; z-index: 2; padding: 5px 10px; border-radius: 999px; background: rgba(14, 14, 15, .82); color: var(--fg-2); font-size: .62rem; pointer-events: none; }
@keyframes cl-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.cl-row--rev .cl-track { animation-name: cl-move-3; }
@keyframes cl-move-3 { from { transform: translateX(-33.333%); } to { transform: translateX(0); } }
@media (max-width: 600px) { .cl-logo { width: 150px; height: 92px; padding: 10px 18px; } .cl-logo img { max-height: 40px; } .cl-row:not(.cl-row--big) .cl-logo { width: 130px; height: 72px; } .cl-row:not(.cl-row--big) .cl-logo img { max-height: 30px; } }
@media (prefers-reduced-motion: reduce) {
  .cl-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .cl-track > .cl-set + .cl-set { display: none; }
  .cl-set { flex-wrap: wrap; justify-content: center; }
}
.sec.clients { padding-bottom: clamp(24px, 3vw, 40px); }

/* ---------- SEO: títulos descriptivos, fichas y páginas de aterrizaje ---------- */
h1.hero-index, .kicker { font-family: var(--f-mono); font-size: .72rem; font-weight: 400; line-height: 1.5; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
h1.hero-index { max-width: 15em; }
.page-hero .kicker { margin: 0 0 18px; max-width: 46em; }
a.cat-item { text-decoration: none; }
.cat-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.cat-links a, .foot-cats a { padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; color: var(--fg-2); transition: background .25s, color .25s; }
.cat-links a:hover, .foot-cats a:hover { background: var(--fg); color: var(--bg); }
.foot-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: .62rem; }
.foot-cats > span { margin-right: 6px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.info { padding: 26px 24px 28px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg-2); }
.info h2 { margin: 0 0 12px; font-size: 1.25rem; letter-spacing: -.02em; }
.info p { margin: 0; color: var(--fg-2); line-height: 1.55; }
.faq-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px clamp(32px, 5vw, 80px); align-items: start; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; font-size: 1.08rem; letter-spacing: -.01em; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--muted); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--fg-2); line-height: 1.6; max-width: 40em; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }
.page-hero--piece { padding-bottom: clamp(40px, 5vw, 72px); }
.piece { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px clamp(28px, 4vw, 64px); align-items: start; }
.piece-main { position: relative; aspect-ratio: 4 / 3; border-radius: 3px; overflow: hidden; background: var(--card); }
.piece-main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.piece-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.piece-thumbs button { width: 92px; aspect-ratio: 4 / 3; padding: 0; border: 1px solid transparent; border-radius: 3px; overflow: hidden; background: var(--card); cursor: pointer; opacity: .7; }
.piece-thumbs button[aria-current] { border-color: var(--fg); opacity: 1; }
.piece-thumbs img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.piece-info h1 { margin: 0 0 18px; }
.piece-info .kicker { margin: 0 0 14px; }
.piece-info .lede { margin: 0 0 26px; }
.spec { margin: 0 0 28px; border-top: 1px solid var(--line-2); }
.spec div { display: grid; grid-template-columns: 11em 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; color: var(--fg); }
.spec a { color: inherit; }
@media (max-width: 860px) { .piece { grid-template-columns: 1fr; } .spec div { grid-template-columns: 9em 1fr; } }

/* Clientes: carrusel que se puede arrastrar (main.js lo mueve; sin JS queda la animación CSS) */
.cl-row.is-js { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cl-row.is-js.is-drag { cursor: grabbing; }
.cl-row.is-js .cl-track { animation: none; will-change: transform; }
.cl-row img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
/* Ubicación (inicio) */
.ubic { display: grid; grid-template-columns: 1fr 2fr; gap: 28px clamp(28px, 4vw, 64px); align-items: start; }
.ubic .lede { margin: 18px 0 24px; }
.ubic .map { margin-top: 0; aspect-ratio: 16 / 9; }
@media (max-width: 860px) { .ubic { grid-template-columns: 1fr; } .ubic .map { aspect-ratio: 4 / 3; } }
