/* Hidraconst S.A.S. — hoja de estilos propia (sin frameworks) */
:root {
  --green: #83bf11;
  --green-dark: #53790b;
  --slate: #465052;
  --gray-bg: #efefef;
  --text: #5b686b;
  --nav-h: 77px;
  --font: 'Rubik', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.5; color: #232323; background: #fff; }
img { max-width: 100%; height: auto; vertical-align: middle; }
.nav-logo img { width: auto; max-width: none; }
h1, h2, h3, h4, h5 { margin: 0 0 .5rem; line-height: 1.2; font-weight: 300; }
p { margin: 0 0 1rem; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
main { padding-top: 0; }
section, footer { display: flow-root; padding-top: var(--pt, 0); padding-bottom: var(--pb, 0); background: var(--bg, transparent); }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.wrap.wide { max-width: 1140px; }
.wrap.narrow { max-width: 1140px; }
.wrap.narrow > * { width: 66.667%; margin-left: auto; margin-right: auto; }
.wrap.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
.center { text-align: center; }

/* tipografía fluida (equivale a display-1/2/5/7) */
.fs1 { font-size: clamp(2.14rem, calc(2.14rem + 2.11 * ((100vw - 20rem) / 28)), 4.25rem); line-height: 1.4; }
.fs2 { font-size: clamp(1.7rem, calc(1.7rem + 1.3 * ((100vw - 20rem) / 28)), 3rem); line-height: 1.4; }
.fs5 { font-size: clamp(1.175rem, calc(1.175rem + .325 * ((100vw - 20rem) / 28)), 1.5rem); line-height: 1.4; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; margin: 1rem .8rem 0; padding: 1rem 3rem; font: inherit; font-size: 1rem; font-weight: 500; line-height: 1; color: #fff; background: var(--green); border: 1px solid var(--green); border-radius: 3px; cursor: pointer; transition: background .2s, border-color .2s; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-sm { padding: .4rem 1.5rem; min-height: 42px; margin: .4rem .8rem; }
.ico { width: 1.6em; height: 1.6em; flex: none; }
.btn .ico { width: 1.75rem; height: 1.75rem; }

/* ------------------------------------------------ navegación */
.site-nav { position: fixed; z-index: 100; top: 0; left: 0; right: 0; min-height: var(--nav-h); background: var(--slate); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-h); padding: .5rem 80px; }
.nav-logo { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; margin-left: auto; }
.nav-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-link { display: flex; align-items: center; padding: .7rem 0; margin: 0 .65rem; color: #fff; font-size: 1rem; font-weight: 500; line-height: 1; }
.nav-link:hover, .nav-sub a:hover, .nav-link[aria-current="page"] { color: #149dcc; }
.has-sub { position: relative; }
.caret { display: inline-block; margin-left: .3em; vertical-align: middle; border-top: .3em solid; border-right: .3em solid transparent; border-left: .3em solid transparent; }
.nav-sub { display: none; position: absolute; left: 0; top: 100%; min-width: 14rem; padding: 1rem 0; background: var(--slate); }
.has-sub:hover .nav-sub, .has-sub.open .nav-sub { display: block; }
.nav-sub a { display: block; padding: .6rem 1.5rem; color: #fff; font-size: 1rem; font-weight: 500; white-space: nowrap; }
.nav-menu > .btn { margin-left: .8rem; margin-right: .8rem; }
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.nav-toggle span { position: absolute; left: 7px; right: 7px; height: 2px; background: #fff; transition: .25s; }
.nav-toggle span:nth-child(1), .nav-toggle span:nth-child(4) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 21px; }
.nav-toggle span:nth-child(4) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1), .nav-toggle[aria-expanded="true"] span:nth-child(4) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

/* ------------------------------------------------ portada: logo + slider */
.logo-band { position: relative; padding: calc(var(--pt) + 64px) 0 var(--pb); background: var(--img) center / cover; }
.logo-band::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.9); }
.logo-veil { position: relative; text-align: center; }
.logo-veil img { display: block; margin: 0 auto; }

.slider { position: relative; overflow: hidden; background: #6aa500; }
.slides { position: relative; height: 100vh; min-height: 380px; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease-in-out; background: center / cover no-repeat; display: flex; align-items: center; justify-content: center; }
.slide.active { opacity: 1; }
.slide img { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sl-btn { position: absolute; top: 50%; width: 70px; height: 70px; margin-top: -35px; display: flex; align-items: center; justify-content: center; padding: 0; color: #fff; background: rgba(0,0,0,.5); border: 2px solid #fff; border-radius: 50%; cursor: pointer; opacity: .5; transition: .2s; }
.sl-btn:hover { background: #1b1b1b; opacity: 1; }
.sl-btn svg { width: 36px; height: 36px; }
.sl-btn.prev { left: 2.5rem; } .sl-btn.next { right: 2.5rem; }

/* ------------------------------------------------ portafolio */
.pf-title { text-align: center; padding-bottom: 1rem; margin-top: 1rem; color: #232323; font-size: clamp(1.7rem, calc(1.7rem + 1.3 * ((100vw - 20rem) / 28)), 3rem); line-height: 1.2; }
.portfolio { background: #fff; }
.pf-row { display: flex; flex-wrap: wrap; justify-content: center; }
.pf-item { flex: 0 0 25%; max-width: 25%; padding: 0 15px 1.5rem; text-align: center; }
.pf-row.n2 { max-width: 712px; margin: 0 auto; }
.pf-row.n2 .pf-item { flex-basis: 50%; max-width: 50%; }
.pf-item h3 { margin: 0 0 .5rem; padding-bottom: .5rem; font-weight: 300; color: #748c45; }
.pf-item h3, .pf-item h3 a { font-size: clamp(2.14rem, calc(2.14rem + 2.11 * ((100vw - 20rem) / 28)), 4.25rem); line-height: 1.4; }
.pf-item h3 a { color: var(--green); }
.pf-item h3 { color: var(--green); }
.pf-item p { margin: 0; font-weight: 700; color: #000; line-height: 1.6; }

/* ------------------------------------------------ servicios (tarjetas de portada) */
.services .wrap.row { align-items: stretch; }
.svc { flex: 0 0 33.333%; max-width: 33.333%; padding: 1rem; }
.svc { display: flex; flex-direction: column; }
.svc > * { background: #fff; }
.svc img { width: 100%; }
.svc-body { padding: 0 2rem; flex: 1; }
.svc-body h4 { font-weight: 500; padding-top: 2rem; margin: 0; text-align: center; color: #232323; line-height: 1; }
.svc-body p { padding-top: 1.5rem; margin: 0; text-align: center; color: var(--text); }
.svc-btn { padding: 2rem 0 2rem; text-align: center; }
.svc-btn .btn { margin: 0; }

/* ------------------------------------------------ mapa */
.map-wrap { display: flex; flex-direction: column; align-items: center; }
.map-title { margin: 0 0 1.5rem; text-align: center; color: var(--green); font-weight: 400; }
.map-title { font-size: clamp(1.7rem, calc(1.7rem + 1.3 * ((100vw - 20rem) / 28)), 3rem); }
.map-frame { width: 66.667%; height: 25rem; background: #e9e5dc; }
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-addr { margin: 1rem 0 .5rem; text-align: center; color: var(--text); }

/* ------------------------------------------------ clientes */
.clients-title { text-align: center; margin: 0 0 3rem; font-weight: 300; color: var(--green); }
.clients-title { font-size: clamp(1.7rem, calc(1.7rem + 1.3 * ((100vw - 20rem) / 28)), 3rem); line-height: 1.4; }
.cl-track { display: flex; overflow: hidden; }
.cl-item { flex: 0 0 calc(100% / var(--vis, 6)); padding: 0 15px; text-align: center; }
.cl-card { height: 100%; display: flex; align-items: center; justify-content: center; }
.cl-item img { max-height: 150px; width: auto; max-width: 100%; }
.cl-ctrl { display: flex; justify-content: center; }
.cl-ctrl button { width: 40px; height: 40px; margin: 2rem 10px 0; padding: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: #000; border: 1px solid #fff; border-radius: 50%; opacity: .5; cursor: pointer; }
.cl-ctrl button:hover { opacity: .9; }
.cl-ctrl svg { width: 16px; height: 16px; }

/* ------------------------------------------------ portada de cada página (hero) */
.hero { position: relative; display: flex; align-items: center; min-height: 100vh; padding: 3rem 0; background: var(--img) center / cover no-repeat; }
.hero .wrap { width: 100%; }
.hero h1 { max-width: 66.667%; margin: 0; padding-bottom: 1rem; font-weight: 700; color: var(--h1, #333); font-size: clamp(2.14rem, calc(2.14rem + 2.11 * ((100vw - 20rem) / 28)), 4.25rem); line-height: 1.2; }
.hero-down { position: absolute; left: 50%; bottom: 3.2rem; width: 56px; height: 56px; margin-left: -28px; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(0,0,0,.35); border-radius: 50%; }
.hero-down svg { width: 28px; height: 28px; }

/* ------------------------------------------------ títulos en banda */
.band { text-align: center; }
.band-title { margin: 0 auto .5rem; padding-bottom: 1rem; width: 66.667%; font-weight: 400; color: var(--h2, #fff); font-size: clamp(1.175rem, calc(1.175rem + .325 * ((100vw - 20rem) / 28)), 1.5rem); line-height: 1; }
.band-title.big { font-size: clamp(1.7rem, calc(1.7rem + 1.3 * ((100vw - 20rem) / 28)), 3rem); }
.band-title { color: var(--h2, #232323); }
h1.band-title { color: var(--h1, var(--h2, #232323)); font-weight: 700; }

/* ------------------------------------------------ texto corrido y listas */
.prose { color: var(--tx, var(--text)); }
.prose p { margin-bottom: 1rem; }
.checklist ul { margin: 0; padding: 0 15px 0 55px; list-style: none; color: var(--tx, #767676); line-height: 1.6; }
.checklist li { position: relative; margin-bottom: 1rem; padding-left: 0; }
.checklist li::before { content: ''; position: absolute; left: -56px; top: .1rem; width: 25px; height: 25px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat; }
.checklist .wrap.narrow > ul { padding-left: 55px; }

/* ------------------------------------------------ imagen + texto */
.media-text .wrap.row { align-items: flex-start; flex-wrap: nowrap; justify-content: flex-start; padding: 0 30px; }
.media-text figure { margin: 0 0 2rem; padding: 0 4rem 1rem 0; align-self: flex-start; flex: none; }
.media-text figure img { width: 100%; }
.mt-body { flex: 1 1 100%; padding: 0 0 0 0; text-align: left; word-break: break-word; }
.mt-body h2 { padding-top: .5rem; text-align: left; font-weight: 300; color: var(--h2, #232323); font-size: clamp(1.7rem, calc(1.7rem + 1.3 * ((100vw - 20rem) / 28)), 3rem); line-height: 1.4; }
.media-text .wrap.rev { flex-direction: row-reverse; }
.media-text .wrap.rev figure { padding: 0 0 1rem 4rem; }
.mt-card { padding: 1rem; }
.mt-body h4 { margin: 0 0 .75rem; font-weight: 500; line-height: 1; text-align: left; color: var(--h4, #232323); }
.mt-body p { margin: 0 0 1rem; text-align: left; color: var(--tx, var(--text)); line-height: 1.5; }
.mt-body h2 { padding-left: 1rem; }
.mt-body .mt-text { margin: 0 0 3rem; padding: 1rem 1rem 0; font-weight: 300; }

.split .wrap.row { flex-wrap: nowrap; align-items: flex-start; justify-content: flex-start; }
.sp-fig { margin: 0; flex: 0 0 auto; }
.sp-fig.l { padding-right: 4rem; }
.sp-fig.r { padding-left: 4rem; }
.sp-fig img { width: 100%; }
.sp-text { flex: 0 0 auto; min-width: 0; }
.sp-text h3 { margin: 0 0 1rem; font-weight: 300; text-align: left; color: var(--h3, var(--green)); font-size: clamp(1.7rem, calc(1.7rem + 1.3 * ((100vw - 20rem) / 28)), 3rem); line-height: 1.2; }
.sp-text p { margin: 0 0 1rem; color: var(--tx, #767676); text-align: left; }
.sp-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.sp-video { padding-top: 3rem; }

/* tarjetas de 4 columnas (Rápido / Práctico …) */
.tiles .wrap.row { max-width: none; align-items: stretch; }
.tile { flex: 0 0 25%; max-width: 25%; padding: 1rem; text-align: center; }
.tile img { width: 100%; margin-bottom: 0; }
.tile h4 { padding: 2rem 2rem 1rem; margin: 0; text-align: center; font-weight: 500; color: var(--h4, var(--green)); font-size: clamp(1.175rem, calc(1.175rem + .325 * ((100vw - 20rem) / 28)), 1.5rem); line-height: 1.4; }
.tile p { margin: 0; padding: 0 2rem 2rem; text-align: center; color: #465052; }
.tile:last-child h4 { font-size: 1rem; }

/* pasos numerados */
.steps .wrap.row { align-items: flex-start; flex-wrap: nowrap; }
.steps .wrap.rev { flex-direction: row-reverse; }
.steps figure { margin: 0; flex: 0 0 auto; padding: 0 0 2rem 2rem; }
.steps figure img { width: 100%; }
.step-list { flex: 1 1 0; min-width: 0; }
.step { position: relative; display: flex; gap: 1rem; padding-bottom: 1.5rem; }
.step:not(:last-child)::after { content: ''; position: absolute; top: 52px; left: 22px; width: 2px; height: calc(100% - 56px); background: #efefef; }
.step-n { flex: none; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 24px; border: 2px solid #efefef; border-radius: 50%; color: #232323; }
.step h4 { padding-bottom: 1rem; margin: 0; font-weight: 400; color: var(--green); font-size: clamp(1.175rem, calc(1.175rem + .325 * ((100vw - 20rem) / 28)), 1.5rem); line-height: 1.4; }
.step p { margin: 0; color: #767676; }

/* ------------------------------------------------ vídeos */
.video .wrap { text-align: center; }
.video-box { margin: 0 auto; }
.video-box iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

/* ------------------------------------------------ galerías */
.gal-grid { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; }
.gi { position: relative; margin: 0; padding: 8px; flex: 0 0 33.333%; max-width: 33.333%; }
.gi button { position: relative; display: block; width: 100%; padding: 0; background: none; border: 0; cursor: zoom-in; overflow: hidden; }
.gi img { width: 100%; display: block; }
.gi figcaption { position: absolute; z-index: 2; left: 0; bottom: 0; width: 100%; padding: 1rem; text-align: left; font-size: .9em; color: #fff; background: rgba(131, 191, 17, .7); transition: background .2s; }
.gi button::after { content: ''; position: absolute; inset: 0; opacity: 0; background: linear-gradient(to left, #554346, var(--green)); transition: opacity .2s; }
.gi button:hover::after { opacity: .7; }
.gi button:hover figcaption { background: transparent; }
.gallery.masonry .gal-grid { display: block; column-count: 4; column-gap: 0; margin: 0; }
.gallery.masonry .gi { max-width: none; break-inside: avoid; padding: 8px; }
.gallery.masonry .gi figcaption { background: rgba(85,67,70,.7); }
.gallery.masonry .gi button::after { background: linear-gradient(to left, #554346, #45505b); }
.gallery.masonry .gi button:hover figcaption { background: transparent; }

.lightbox { position: fixed; z-index: 200; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.9); }
.lightbox[hidden] { display: none; }
.lb-img { max-width: min(92vw, 1100px); max-height: 88vh; object-fit: contain; }
.lb-close { position: absolute; top: 1rem; right: 1.2rem; width: 44px; height: 44px; font-size: 2rem; line-height: 1; color: #fff; background: #1b1b1b; border: 2px solid #fff; border-radius: 50%; cursor: pointer; }
.lb-btn { position: absolute; top: 50%; width: 56px; height: 56px; margin-top: -28px; padding: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: #1b1b1b; border: 2px solid #fff; border-radius: 50%; cursor: pointer; }
.lb-btn svg { width: 28px; height: 28px; }
.lb-btn.prev { left: 1.5rem; } .lb-btn.next { right: 1.5rem; }

/* ------------------------------------------------ redes + pie */
.social-band h2 { margin: 0 0 .5rem; padding-bottom: 1rem; font-weight: 300; color: var(--green); font-size: clamp(1.7rem, calc(1.7rem + 1.3 * ((100vw - 20rem) / 28)), 3rem); line-height: 1; }
.social-band { background: var(--gray-bg); }
.social-band .wrap > * { max-width: 740px; margin-left: auto; margin-right: auto; padding-left: 15px; padding-right: 15px; }
.social-big { display: flex; justify-content: center; align-items: center; gap: .5rem; }
.social-big a { padding: 0 .5rem; }
.social-big .ico { width: 60px; height: 60px; }
.social-big a:nth-child(3) .ico { width: 55px; height: 55px; }
.site-footer { --pt: 60px; --pb: 60px; background: var(--green); color: #fff; }
.foot-cols { display: flex; flex-wrap: wrap; }
.foot-cols > div { flex: 0 0 25%; max-width: 25%; padding: 0 15px; }
.foot-cols { text-align: left; }
.foot-logo img { height: 6rem; width: auto; }
.site-footer h5 { margin: 0 0 .5rem; padding-bottom: 1rem; font-size: 1.25rem; line-height: 1; font-weight: 500; color: #232323; }
.site-footer p { margin: 0 0 1rem; color: #fff; }
.site-footer hr { margin: 1rem 0; border: 0; border-top: 1px solid rgba(255,255,255,.05); }
.foot-low { display: flex; align-items: center; }
.foot-low > * { flex: 0 0 50%; padding: 0 15px; }
.copy { margin: 0; color: #232323 !important; }
.social-small { display: flex; justify-content: center; gap: 1rem; }
.social-small a { opacity: .85; transition: opacity .2s; }
.social-small a:hover { opacity: 1; }
.social-small .ico { width: 1.5rem; height: 1.5rem; }

.to-top { position: fixed; z-index: 90; right: 1.5rem; bottom: 1.5rem; width: 46px; height: 46px; padding: 0; display: none; align-items: center; justify-content: center; color: #fff; background: rgba(0,0,0,.55); border: 0; border-radius: 50%; cursor: pointer; }
.to-top.show { display: flex; }
.to-top svg { width: 24px; height: 24px; }

/* ------------------------------------------------ adaptable */
@media (max-width: 991px) {
  .nav-toggle { display: block; order: 2; }
  .nav-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; margin: 0; padding: 0 0 1rem; background: var(--slate); }
  .nav-menu.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-link { padding: .9rem 1.5rem; }
  .nav-sub { position: static; padding: 0 0 .5rem 1rem; }
  .nav-menu > .btn { margin: .5rem 1.5rem 0; align-self: flex-start; }
  .pf-item { flex-basis: 50%; max-width: 50%; }
  .svc { flex-basis: 50%; max-width: 50%; }
  .tile { flex-basis: 50%; max-width: 50%; }
  .gi { flex-basis: 50%; max-width: 50%; }
  .gallery.masonry .gal-grid { column-count: 3; }
  .foot-cols > div { flex-basis: 50%; max-width: 50%; margin-bottom: 1.5rem; }
  .map-frame { width: 100%; }
  .wrap.narrow > * { width: 83%; }
  .hero h1 { max-width: 100%; }
}
@media (max-width: 767px) {
  .media-text .wrap.row, .split .wrap.row, .steps .wrap.row { flex-wrap: wrap; }
  .media-text figure, .sp-fig, .steps figure { width: 100% !important; padding-left: 0 !important; }
  .split .wrap.row, .steps .wrap.row { flex-direction: column !important; }
  .sp-video { padding-left: 0; width: 100%; }
  .svc, .pf-item, .pf-row.n2 .pf-item { flex-basis: 100%; max-width: 100%; }
  .tile { flex-basis: 100%; max-width: 100%; }
  .gi { flex-basis: 100%; max-width: 100%; }
  .gallery.masonry .gal-grid { column-count: 2; }
  .wrap.narrow > * { width: 100%; }
  .checklist .wrap.narrow { padding-left: 56px; }
  .checklist li::before { left: -44px; }
  .video-box { width: 100% !important; }
  .slides { height: 60vh; }
  .sl-btn { width: 48px; height: 48px; margin-top: -24px; }
  .sl-btn.prev { left: 1rem; } .sl-btn.next { right: 1rem; }
  .foot-cols > div { flex-basis: 100%; max-width: 100%; text-align: center; }
  .foot-low { flex-direction: column; gap: .5rem; }
  .lb-btn.prev { left: .5rem; } .lb-btn.next { right: .5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .slide { transition: none; } }
