/* ============================================================
   VARSAT — Página PRODUCTOS (listado + detalle) · light/editorial
   Misma base visual que Obras/Servicios/Home.
   ============================================================ */
:root {
  --ink: #1E1D1E; --ink-soft: #3a393b; --paper: #FFFFFF; --surface: #F4F4F3; --surface-2: #ECEBEA;
  --blue: #023573; --green: #00604F; --mint: #41B38C; --steel: #477694; --burgundy: #99211B;
  --line: #E5E4E3; --line-2: #D4D3D1; --mut: #6E6D6F; --mut-2: #454446;
  --gutter: clamp(28px, 4vw, 64px); --maxw: 1880px; --ease: cubic-bezier(.16,1,.3,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-primary); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--font-secondary); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
::selection { background: var(--green); color: #fff; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation-duration:.001ms!important; transition-duration:.001ms!important; } }

.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1{transition-delay:.07s}.rv-d2{transition-delay:.14s}.rv-d3{transition-delay:.21s}.rv-d4{transition-delay:.28s}.rv-d5{transition-delay:.35s}
@media (prefers-reduced-motion: reduce){ .rv{opacity:1;transform:none} }

.kick { font-family: var(--font-secondary); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); display: inline-block; }

/* buttons */
.btn { font-family: var(--font-secondary); font-weight: 600; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; padding: 15px 24px; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn--sm { padding: 12px 18px; }

/* ============================================================ HEADER */
.hd { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); transition: background .4s, padding .35s var(--ease); }
.hd.scrolled { background: rgba(255,255,255,0.96); }
.hd__in { display: flex; align-items: center; justify-content: space-between; padding: 20px var(--gutter); }
.hd.scrolled .hd__in { padding-top: 13px; padding-bottom: 13px; }
.hd__logo { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.hd__logo img { height: 38px; width: auto; transition: all .35s var(--ease); }
.hd.scrolled .hd__logo img { height: 30px; }
.hd__nav { display: flex; gap: 34px; align-items: center; }
.hd__nav > a, .hd__drop-t { font-family: var(--font-secondary); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mut); position: relative; padding: 4px 0; transition: color .2s, font-size .35s var(--ease); cursor: pointer; }
.hd__nav > a::after, .hd__drop-t::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--green); transition: width .25s var(--ease); }
.hd__nav > a:hover, .hd__drop:hover .hd__drop-t { color: var(--ink); }
.hd__nav > a:hover::after, .hd__drop:hover .hd__drop-t::after, .hd__nav > a.is-active::after { width: 100%; }
.hd__nav > a.is-active { color: var(--ink); }
.hd.scrolled .hd__nav > a, .hd.scrolled .hd__drop-t { font-size: 11px; }
.hd__burger { display: none; background: none; border: 1px solid var(--line-2); color: var(--ink); width: 42px; height: 42px; cursor: pointer; font-size: 18px; }

/* dropdown de categorías */
.hd__drop { position: relative; display: inline-flex; align-items: center; }
.hd__drop-t { display: inline-flex; align-items: center; gap: 6px; }
.hd__drop-t i { font-size: 13px; transition: transform .25s var(--ease); }
.hd__drop:hover .hd__drop-t i { transform: rotate(180deg); }
.hd__menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px); min-width: 240px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 18px 40px -24px rgba(30,29,30,0.5); padding: 8px; opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease); z-index: 60; }
.hd__drop:hover .hd__menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px); }
.hd__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.hd__menu a { display: block; padding: 11px 14px; font-family: var(--font-secondary); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mut-2); cursor: pointer; transition: background .18s, color .18s, padding-left .18s; }
.hd__menu a:hover { background: var(--surface); color: var(--green); padding-left: 18px; }

/* ============================================================ PAGE HERO */
.ohero { position: relative; min-height: clamp(360px, 48vh, 520px); display: flex; align-items: center; overflow: hidden; background: var(--paper); padding-top: 80px; border-bottom: 1px solid var(--line); }
.ohero__in { position: relative; z-index: 2; width: 100%; padding-top: clamp(24px, 3vh, 40px); padding-bottom: clamp(24px, 3vh, 40px); }
.ohero__kick { color: var(--green); }
.ohero h1 { font-weight: 600; font-size: clamp(40px, 5.4vw, 84px); line-height: 0.98; letter-spacing: -0.035em; color: var(--ink); margin: 18px 0 0; }
.ohero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-top: 24px; }
.ohero__sub { font-weight: 300; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.6; color: var(--mut-2); max-width: 640px; }

/* ============================================================ GALLERY (cards) */
.gallery { padding: clamp(48px, 7vh, 90px) 0 clamp(64px, 9vh, 110px); }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.scard { position: relative; overflow: hidden; cursor: pointer; background: var(--ink); display: block; width: 100%; }
.scard__img { position: relative; overflow: hidden; }
.scard__img img { width: 100%; height: clamp(240px, 30vh, 340px); object-fit: cover; display: block; filter: grayscale(0.35) brightness(0.72); transition: filter .5s var(--ease), transform .8s var(--ease); }
.scard:hover .scard__img img { filter: grayscale(0) brightness(0.84); transform: scale(1.05); }
.scard__scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,19,20,0.92) 4%, rgba(20,19,20,0.3) 48%, rgba(20,19,20,0.05)); }
.scard__c { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 24px 26px 26px; }
.scard__t { font-weight: 600; font-size: clamp(21px, 1.7vw, 28px); letter-spacing: -0.02em; line-height: 1.04; color: #fff; margin: 0; }
.scard__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.scard__arrow { color: #fff; flex: none; }
.scard__arrow .amark { width: 44px; }

/* ============================================================ CTA band */
.cta { padding: clamp(80px,12vh,150px) 0; text-align: center; background: linear-gradient(135deg, #023573 0%, #00604F 52%, #1E1D1E 100%); color: #fff; }
.cta .kick { color: var(--mint); }
.cta h2 { font-weight: 600; font-size: clamp(36px, 6vw, 84px); letter-spacing: -0.04em; line-height: 0.98; max-width: 1000px; margin: 18px auto 0; }
.cta h2 em { font-style: normal; color: var(--mint); }
.cta__btns { display: flex; gap: 20px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.btn.cta__hablemos { background: transparent !important; border: 1px solid #fff !important; color: #fff !important; box-shadow: none !important; }
.btn.cta__hablemos:hover { background: rgba(255,255,255,0.12) !important; filter: none; }

/* ============================================================ FOOTER */
.ft { background: var(--surface); border-top: 1px solid var(--line); padding: 72px 0 34px; }
.ft__grid { display: grid; grid-template-columns: 1.8fr 1fr 1.2fr; gap: 40px; }
.ft__logo img { height: 40px; }
.ft__tag { font-weight: 300; font-size: 15px; line-height: 1.6; color: var(--mut); margin: 20px 0 0; max-width: 320px; }
.ft__social { display: flex; gap: 12px; margin-top: 22px; }
.ft__social a { width: 40px; height: 40px; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-size: 19px; color: var(--mut); transition: border-color .2s, color .2s; }
.ft__social a:hover { border-color: var(--green); color: var(--green); }
.ft h4 { font-family: var(--font-secondary); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mut); margin: 0 0 18px; }
.ft ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.ft ul a { font-weight: 300; font-size: 15px; color: var(--mut-2); transition: color .2s; cursor: pointer; }
.ft ul a:hover { color: var(--green); }
.ft__bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); font-family: var(--font-secondary); font-size: 11px; letter-spacing: 0.05em; color: var(--mut); flex-wrap: wrap; gap: 12px; }
.ft__cta { margin-top: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ft__shop { display: inline-flex; align-items: center; gap: 8px; color: var(--mut-2); font-family: var(--font-secondary); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; transition: color .2s; }
.ft__shop:hover { color: var(--green); }
.ft__shop .amark { width: 28px; }
.hd__shop { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-family: var(--font-secondary); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; white-space: nowrap; transition: color .2s; }
.hd__shop:hover { color: var(--green); }
@media (max-width: 1000px) { .hd__shop { display: none; } }
.pend { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; background: rgba(153,33,27,0.07); border: 1px dashed rgba(153,33,27,0.4); color: var(--burgundy); font-family: var(--font-secondary); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ============================================================ DETAIL */
/* hero split: izquierda fondo plano + texto, derecha imagen */
.dhero { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: clamp(420px, 52vh, 540px); overflow: hidden; background: var(--ink); }
.dhero__col { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 120px clamp(36px,3.5vw,64px) clamp(44px,6vh,64px); background: var(--ink); overflow: hidden; }
.dhero__media { position: relative; overflow: hidden; background: var(--ink); border-left: 1px solid rgba(255,255,255,0.08); }
.dhero__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.12) brightness(0.92); animation: dz 9s ease-out forwards; }
@keyframes dz { from { transform: scale(1.06); } to { transform: scale(1); } }
.dback { position: absolute; top: 96px; left: clamp(36px,3.5vw,64px); z-index: 3; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-secondary); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.8); cursor: pointer; transition: gap .2s, color .2s; }
.dback:hover { gap: 12px; color: var(--mint); }
.dback .amark { transform: scaleX(-1); width: 30px; }
.dhero__head { max-width: 640px; }
.dhero__client { font-family: var(--font-secondary); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint); }
.dhero h1 { font-weight: 600; font-size: clamp(34px, 3.6vw, 66px); line-height: 0.98; letter-spacing: -0.03em; color: #fff; margin: 0; max-width: 14ch; }
.dhero__tagline { font-weight: 300; font-size: clamp(15px, 1.1vw, 18px); line-height: 1.6; color: rgba(255,255,255,0.82); margin: 18px 0 0; max-width: 52ch; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.dhero__tags { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.dhero__tags span { font-family: var(--font-secondary); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.88); border: 1px solid rgba(255,255,255,0.3); padding: 8px 14px; }
@media (max-width: 1000px) {
  .dhero { grid-template-columns: 1fr; height: auto; }
  .dhero__media { order: -1; height: 34vh; border-left: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .dhero__col { padding-top: 92px; }
}

.dbody { padding: clamp(44px,6vh,76px) 0; }
.dlayout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(40px,5vw,80px); align-items: stretch; }
.dnarr__top { margin-top: 0 !important; }
.dsection-k { font-family: var(--font-secondary); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.dnarr h2 { font-weight: 500; font-size: clamp(26px,2.6vw,40px); letter-spacing: -0.02em; line-height: 1.05; margin: 14px 0 22px; color: var(--ink); }
.dnarr h3 { font-weight: 500; font-size: 14px; letter-spacing: 0.08em; color: var(--green); margin: 34px 0 14px; font-family: var(--font-secondary); text-transform: uppercase; }
.dnarr p { font-weight: 300; font-size: 17px; line-height: 1.75; color: var(--mut-2); margin: 0; }
.dnote { margin-top: 16px !important; }
.dlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dlist li { position: relative; padding-left: 26px; font-weight: 300; font-size: 16px; line-height: 1.6; color: var(--mut-2); }
.dlist li::before { content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 9px; background: var(--green); }
.dchips { display: flex; flex-wrap: wrap; gap: 10px; }
.dchips span { font-family: var(--font-secondary); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mut-2); border: 1px solid var(--line-2); padding: 9px 14px; }
.dfichas { display: flex; flex-wrap: wrap; gap: 18px; }
.ficha-btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-secondary); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--line-2); padding: 12px 18px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.ficha-btn i { font-size: 16px; color: var(--green); transition: color .2s; }
.ficha-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }
.ficha-btn:hover i { color: #fff; }
.ficha-btn--sm { padding: 9px 13px; font-size: 11px; }
.ficha-btn--light { border-color: rgba(255,255,255,0.5); color: #fff; background: rgba(255,255,255,0.06); }
.ficha-btn--light i { color: #fff; }
.ficha-btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.ficha-btn--light:hover i { color: var(--green); }
/* aplicaciones dentro de la ficha lateral */
.dficha__apps { padding: 16px 22px; display: flex; flex-direction: column; gap: 11px; }
.dficha__apps .dficha__k { white-space: normal; }
.dficha__appchips { display: flex; flex-wrap: wrap; gap: 7px; }
.dficha__appchips span { font-family: var(--font-secondary); font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mut-2); border: 1px solid var(--line-2); padding: 6px 10px; }
/* ficha */
.dficha { border: 1px solid var(--line); position: sticky; top: 96px; }
.dficha__row { display: flex; justify-content: space-between; gap: 18px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.dficha__row:last-of-type { border-bottom: none; }
.dficha__k { font-family: var(--font-secondary); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mut); white-space: nowrap; }
.dficha__v { font-weight: 500; font-size: 14px; color: var(--ink); text-align: right; }
.dficha__cta { padding: 22px; border-top: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dficha__cta .btn { width: 100%; justify-content: center; }
.dficha__shop { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-family: var(--font-secondary); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; transition: color .2s; }
.dficha__shop .amark { width: 28px; }
.dficha__shop:hover { color: var(--ink); }

/* subcategorías (en la columna izquierda, debajo de la descripción) */
.dcol { min-width: 0; }
.dsub { margin-top: clamp(40px, 6vh, 72px); }
.dsub:first-child { margin-top: 0; }
.dsub .drel__head { margin-bottom: 18px; }
.subgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.subcard { position: relative; overflow: hidden; background: var(--ink); }
.subcard__img { position: relative; overflow: hidden; }
.subcard__img img { width: 100%; height: clamp(140px, 17vh, 190px); object-fit: cover; display: block; filter: grayscale(0.3) brightness(0.72); transition: filter .5s var(--ease), transform .8s var(--ease); }
.subcard:hover .subcard__img img { filter: grayscale(0) brightness(0.84); transform: scale(1.05); }
.subcard__scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,19,20,0.9) 6%, rgba(20,19,20,0.25) 55%, rgba(20,19,20,0.05)); }
.subcard__c { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 14px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.subcard__t { font-weight: 600; font-size: clamp(15px,1.2vw,18px); letter-spacing: -0.015em; color: #fff; margin: 0; }

/* detail gallery — fila de 4 columnas */
.dgal { padding: clamp(48px,7vh,90px) 0; border-top: 1px solid var(--line); }
.drel__head { margin-bottom: 30px; }
.drel__head h2 { font-weight: 500; font-size: clamp(26px,2.6vw,40px); letter-spacing: -0.02em; margin: 12px 0 0; }
.srow__wrap { position: relative; }
.srow__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; animation: cFade .4s var(--ease); }
@keyframes cFade { from { opacity: 0; } to { opacity: 1; } }
.srow__cell { position: relative; overflow: hidden; background: var(--ink); aspect-ratio: 3 / 4; }
.srow__cell img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.2) brightness(0.95); transition: filter .4s var(--ease), transform .6s var(--ease); }
.srow__cell:hover img { filter: none; transform: scale(1.05); }
.srow__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; color: #fff; background: none; border: none; }
.srow__nav--prev { left: -8px; } .srow__nav--next { right: -8px; }
.srow__nav--prev .amark { transform: scaleX(-1); }
.srow__nav .amark { filter: drop-shadow(0 1px 5px rgba(0,0,0,0.6)); width: 34px; }

/* related */
.drel { background: var(--surface); padding: clamp(56px,8vh,100px) 0; }
.drel__grid .scard__img img { height: 260px; }

/* ============================================================ RESPONSIVE */
@media (max-width: 1100px) { .gallery__grid, .subgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1000px) {
  .hd__nav { display: none; } .hd__burger { display: flex; align-items: center; justify-content: center; }
  .dlayout { grid-template-columns: 1fr; gap: 40px; }
  .dficha { position: static; }
  .srow__grid { grid-template-columns: repeat(2, 1fr); }
  .dback { top: 86px; }
  .drel__grid .scard__img img { height: 240px; }
}
@media (max-width: 640px) {
  .gallery__grid, .subgrid { grid-template-columns: 1fr; }
  .ft__grid { grid-template-columns: 1fr; }
  .srow__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 60; background: var(--paper); display: flex; flex-direction: column; padding: 80px 32px 32px; transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto; }
.drawer.open { transform: none; }
.drawer > a { font-family: var(--font-secondary); font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mut-2); padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.drawer__sub { display: flex; flex-direction: column; padding: 6px 0 6px 16px; border-left: 2px solid var(--line); margin: 6px 0 6px 2px; }
.drawer__sub a { font-family: var(--font-secondary); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mut); padding: 9px 0; cursor: pointer; }
.drawer__sub a:hover { color: var(--green); }
.drawer__close { position: absolute; top: 24px; right: 28px; background: none; border: none; color: var(--ink); font-size: 26px; cursor: pointer; }

/* brand arrow mark */
.amark { width: 30px; height: auto; display: block; transition: transform .25s var(--ease); }
.amark polyline, .amark line { fill: none; stroke: currentColor; stroke-width: 30; stroke-linecap: round; stroke-linejoin: round; }
.btn .amark { width: 36px; }
.btn--sm .amark { width: 30px; }
.btn:hover .amark { transform: translateX(4px); }
.scard:hover .scard__arrow .amark { transform: translateX(4px); }

/* ===== botones con gradiente de marca ===== */
.btn, .btn--mint {
  background: linear-gradient(135deg, #023573 0%, #00604F 52%, #1E1D1E 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  box-shadow: 0 12px 26px -18px rgba(0,0,0,0.7);
}
.btn:hover { filter: brightness(1.14); }

/* boton "Descargables" debajo del grid de categorias */
.prod-download { display: flex; justify-content: center; margin-top: clamp(40px, 6vh, 72px); }
