/* =========================================================
   Hidromecánica — Corporativo Claro (PRO)
   Diseño moderno, elegante y profesional (sin fondos negros)
   ========================================================= */

/* ---- Reset ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html:focus-within { scroll-behavior: smooth; }
html, body { height: 100%; }

:root{
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef5ff;
  --surface-3: #fff4ec;

  --ink: #0b1220;
  --muted: #455465;
  --muted-2: #64748b;

  --border: #dbe4ef;

  --primary: #0060A0; /* azul marca */
  --primary-2: #004d82;
  --accent: #E06010;  /* naranja marca */

  --radius: 18px;
  --radius-sm: 14px;

  --container: 1180px;
  --pad: clamp(2.75rem, 4vw, 4.75rem);

  --shadow-sm: 0 10px 26px rgba(15, 23, 42, 0.06);
  --shadow: 0 16px 46px rgba(15, 23, 42, 0.08);

  --ring: 0 0 0 4px rgba(0, 96, 160, .18);
}

body{
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg{ display:block; max-width:100%; }
a{ color: inherit; text-decoration: none; }
a:hover{ color: var(--primary); }

p{ margin: 0 0 1rem; }
h1, h2, h3, h4{ line-height: 1.15; margin: 0 0 .75rem; letter-spacing: -.02em; }
h1{ font-size: clamp(2rem, 3.3vw, 3.25rem); }
h2{ font-size: clamp(1.55rem, 2.2vw, 2.2rem); }
h3{ font-size: 1.1rem; }

:focus-visible{
  outline: none;
  box-shadow: var(--ring);
  border-radius: 10px;
}

::selection{ background: rgba(0,96,160,.18); }

/* ---- Layout ---- */
.container{
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.section{ padding: var(--pad) 0; }
.section--tight{ padding: clamp(1.75rem, 3vw, 2.75rem) 0; }
.section--alt{ background: var(--surface); }
.section--tint{
  background:
    radial-gradient(900px 420px at 10% 10%, rgba(0,96,160,.10), transparent 60%),
    radial-gradient(900px 420px at 90% 10%, rgba(224,96,16,.08), transparent 65%),
    linear-gradient(180deg, #ffffff, #f4f7fb);
}

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.35rem;
}

.section-head p{ max-width: 65ch; color: var(--muted); margin: 0; }
.stack > * + *{ margin-top: 1.1rem; }

/* ---- Helpers ---- */
.skip-link{
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--surface);
  padding: .65rem .85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  z-index: 9999;
  box-shadow: var(--shadow-sm);
}
.skip-link:focus{ left: 10px; }

.grad-text{
  background: linear-gradient(90deg, var(--primary), #0b87c8 45%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pill{
  display:inline-flex;
  align-items:center;
  padding: .22rem .55rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  color: var(--primary-2);
  background: rgba(0,96,160,.10);
  border: 1px solid rgba(0,96,160,.14);
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap: .55rem;
  font-weight: 900;
  font-size: .92rem;
  color: var(--primary-2);
  background: rgba(0,96,160,.08);
  border: 1px solid rgba(0,96,160,.14);
  padding: .35rem .65rem;
  border-radius: 999px;
}
.kicker svg{ width: 18px; height: 18px; color: var(--primary); }

.lead{
  font-size: clamp(1.02rem, 1.2vw, 1.12rem);
  color: var(--muted);
  max-width: 70ch;
}

/* ---- Grid ---- */
.grid{ display:grid; gap: 1.25rem; }
.grid-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4{ grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 980px){
  .grid-4{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px){
  .grid-3, .grid-2{ grid-template-columns: 1fr; }
}

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.80);
  border-bottom: 1px solid rgba(219,228,239,.9);
  backdrop-filter: saturate(160%) blur(10px);
}
.site-header[data-scrolled="true"]{ box-shadow: var(--shadow-sm); }

.topbar{
  background: linear-gradient(90deg, rgba(0,96,160,.10), rgba(224,96,16,.08));
  border-bottom: 1px solid rgba(219,228,239,.65);
  font-size: .92rem;
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
}
.topbar-msg{
  display:flex;
  align-items:center;
  gap: .55rem;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
.dot{
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 4px rgba(0,96,160,.10);
}
.topbar-links{
  display:flex;
  align-items:center;
  gap: .9rem;
  flex-wrap: wrap;
}
.topbar-links a{
  display:inline-flex;
  align-items:center;
  gap: .45rem;
  color: var(--muted);
  font-weight: 800;
}
.topbar-links svg{ width: 18px; height: 18px; color: var(--primary); }
.topbar-wa{
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(22,163,74,.12);
  border: 1px solid rgba(22,163,74,.18);
  color: #0f5f2a;
}
.topbar-wa:hover{ background: rgba(22,163,74,.16); color:#0f5f2a; }

.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: .8rem;
  min-width: 180px;
}
.brand img{
  height: 52px;
  width: auto;
  filter: drop-shadow(0 6px 14px rgba(15,23,42,.06));
}

.nav{
  display:flex;
  align-items:center;
  gap: 1.1rem;
  padding: .35rem .55rem;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(219,228,239,.7);
}
.nav a{
  font-weight: 900;
  color: var(--muted);
  padding: .5rem .55rem;
  border-radius: 999px;
}
.nav a:hover{ background: rgba(0,96,160,.08); color: var(--primary-2); }
.nav a.active{
  color: var(--primary-2);
  background: rgba(0,96,160,.12);
  border: 1px solid rgba(0,96,160,.14);
}

.nav-toggle{
  display:none;
  background: var(--surface);
  border: 1px solid rgba(219,228,239,.9);
  border-radius: 12px;
  padding: .6rem .7rem;
  cursor: pointer;
}
.nav-toggle svg{ width: 22px; height: 22px; color: var(--primary-2); }

.header-cta{
  display:flex;
  align-items:center;
  gap: .6rem;
}

@media (max-width: 980px){
  .topbar-msg{ display:none; }
  .nav-toggle{ display:inline-flex; }
  .nav{
    position: absolute;
    top: calc(100% + 10px);
    right: 1rem;
    left: 1rem;
    display:grid;
    gap: .2rem;
    padding: .75rem;
    border-radius: 16px;
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(219,228,239,.95);
    box-shadow: var(--shadow);
    transform-origin: top;
    transform: translateY(-6px) scale(.98);
    opacity: 0;
    pointer-events: none;
    transition: .18s ease;
  }
  .nav[data-open="true"]{ opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
  .nav a{ padding: .75rem .75rem; border-radius: 14px; }
  .header-cta{ display:none; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: .55rem;
  padding: .85rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
  user-select: none;
  white-space: nowrap;
}
.btn-small{ padding: .55rem .85rem; font-size: .92rem; }
.btn-primary{
  color: #fff;
  background: linear-gradient(90deg, var(--primary), #0b87c8 45%, var(--accent));
  box-shadow: 0 14px 30px rgba(0, 96, 160, .22);
}
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 18px 42px rgba(0,96,160,.26); }
.btn-outline{
  background: rgba(255,255,255,.85);
  border-color: rgba(219,228,239,.95);
  color: var(--ink);
}
.btn-outline:hover{ transform: translateY(-1px); border-color: rgba(0,96,160,.24); box-shadow: var(--shadow-sm); }
.btn-ghost{
  background: transparent;
  border-color: transparent;
  color: var(--primary-2);
}
.btn-ghost:hover{ background: rgba(0,96,160,.08); }
.btn-block{ width: 100%; }

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position: relative;
  padding: clamp(2.7rem, 5vw, 4.6rem) 0;
  overflow: hidden;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 420px at 12% 18%, rgba(0,96,160,.18), transparent 60%),
    radial-gradient(900px 420px at 88% 22%, rgba(224,96,16,.12), transparent 65%),
    linear-gradient(180deg, #ffffff, #f4f7fb);
  pointer-events:none;
}
.hero > .container{ position: relative; }

.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items:center;
}
.hero-actions{ display:flex; flex-wrap:wrap; gap: .75rem; margin-top: 1.2rem; }

.hero-badges{
  margin-top: 1.35rem;
  display:grid;
  gap: .75rem;
}
.badge{
  display:flex;
  gap: .75rem;
  align-items:flex-start;
  padding: .9rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(219,228,239,.95);
  box-shadow: 0 10px 26px rgba(15,23,42,.05);
}
.badge svg{ width: 22px; height: 22px; color: var(--primary); flex: 0 0 auto; margin-top: .15rem; }
.badge strong{ display:block; font-weight: 900; }
.badge span{ display:block; color: var(--muted); font-weight: 700; font-size: .95rem; }

.hero-collage{
  display:grid;
  gap: 1rem;
  align-content: start;
}
.collage-card{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(219,228,239,.95);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.collage-card img{
  width:100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: scale(1.01);
}
.collage-row{
  display:grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-collage{ order: -1; }
}
@media (max-width: 520px){
  .collage-row{ grid-template-columns: 1fr; }
}

.hero--inner{ padding: 2.5rem 0; }
.hero-title p{ margin: .35rem 0 0; color: var(--muted); max-width: 80ch; }

.breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  gap: .35rem;
  align-items:center;
  color: var(--muted-2);
  font-weight: 900;
  font-size: .95rem;
}
.breadcrumbs a{ color: var(--primary-2); }
.breadcrumbs span{ color: var(--muted-2); }

/* =========================================================
   Cards / Content
   ========================================================= */
.card{
  overflow:hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(219,228,239,.95);
  box-shadow: 0 12px 34px rgba(15,23,42,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover{ transform: translateY(-2px); box-shadow: 0 18px 42px rgba(15,23,42,.08); }

.card__media img{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.card__body{ padding: 1.05rem 1.05rem 1.15rem; }

.card__title{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .4rem;
}
.card__title h3{ margin: 0; }
.card__body p{ color: var(--muted); margin: .55rem 0 0; }

.card__actions{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: 1rem;
}

.callout{
  border-radius: var(--radius);
  background:
    radial-gradient(900px 420px at 20% 10%, rgba(0,96,160,.12), transparent 60%),
    radial-gradient(900px 420px at 80% 10%, rgba(224,96,16,.10), transparent 65%),
    var(--surface);
  border: 1px solid rgba(219,228,239,.95);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.25rem;
}

.feature-list{
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: .75rem;
  color: var(--ink);
}

.feature-list li{
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: .9rem;
  align-items: start;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(219,228,239,.95);
  box-shadow: 0 14px 32px rgba(15,23,42,.06);
  overflow: hidden;
}

.feature-list li::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(420px 180px at 20% 0%, rgba(0,96,160,.12), transparent 70%),
    radial-gradient(420px 180px at 90% 10%, rgba(224,96,16,.10), transparent 70%);
  pointer-events:none;
  opacity:.9;
}

.step-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(0,96,160,.10);
  border: 1px solid rgba(0,96,160,.14);
  box-shadow: 0 10px 24px rgba(0,96,160,.10);
  position: relative;
  z-index: 1;
}

.step-icon svg{
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.feature-list li > div{
  position: relative;
  z-index: 1;
}

.feature-list strong{
  display: inline-block;
  font-weight: 950;
  letter-spacing: -.01em;
}

.feature-list .help{
  display:block;
  margin-top: .22rem;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.5;
}

@media (max-width: 520px){
  .feature-list li{
    grid-template-columns: 42px 1fr;
    padding: .95rem .95rem;
  }
  .step-icon{
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }
  .step-icon svg{ width: 20px; height: 20px; }
}

.kpi{
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(219,228,239,.95);
  box-shadow: 0 10px 26px rgba(15,23,42,.05);
  padding: 1.05rem 1.05rem;
}
.kpi strong{ display:block; font-weight: 900; }
.kpi span{ display:block; color: var(--muted); font-weight: 800; margin-top: .35rem; }
.kpi a{ color: var(--primary-2); }
.kpi a:hover{ text-decoration: underline; }

.prose p{ color: var(--muted); }
.prose ul{ padding-left: 1.2rem; color: var(--muted); }
.prose li{ margin: .35rem 0; }

/* =========================================================
   Forms
   ========================================================= */
.form{
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(219,228,239,.95);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
}
.field{ display:grid; gap: .35rem; margin-bottom: .95rem; }
label{ font-weight: 900; color: var(--ink); }
input, select, textarea{
  font: inherit;
  padding: .78rem .85rem;
  border-radius: 14px;
  border: 1px solid rgba(219,228,239,.95);
  background: rgba(244,247,251,.6);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea{ min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus{
  outline: none;
  border-color: rgba(0,96,160,.35);
  box-shadow: var(--ring);
  background: #fff;
}

.form-actions{
  display:flex;
  flex-wrap:wrap;
  gap: .75rem;
  align-items:center;
  justify-content: space-between;
  margin-top: .65rem;
}

.form-note{
  color: var(--muted-2);
  font-size: .92rem;
  margin: 0;
}

.alert{
  border-radius: 14px;
  padding: .85rem .95rem;
  border: 1px solid rgba(219,228,239,.95);
  background: rgba(244,247,251,.65);
  color: var(--muted);
  font-weight: 800;
}
.alert--ok{
  border-color: rgba(22,163,74,.22);
  background: rgba(22,163,74,.10);
  color: #0f5f2a;
}
.alert--bad{
  border-color: rgba(220,38,38,.22);
  background: rgba(220,38,38,.08);
  color: #7f1d1d;
}

/* =========================================================
   Gallery + Lightbox
   ========================================================= */
.masonry{
  columns: 3 280px;
  column-gap: 1rem;
}
@media (max-width: 900px){
  .masonry{ columns: 2 260px; }
}
@media (max-width: 560px){
  .masonry{ columns: 1 100%; }
}

.gallery-item{
  break-inside: avoid;
  margin: 0 0 1rem;
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(219,228,239,.95);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(15,23,42,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.gallery-item:hover{ transform: translateY(-2px); box-shadow: 0 18px 42px rgba(15,23,42,.08); }

.lightbox{
  position: fixed;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 1rem;
  background: rgba(15, 23, 42, .60);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.lightbox[data-open="true"]{ opacity: 1; pointer-events: auto; }
.lightbox__panel{
  width: min(980px, 100%);
  border-radius: 18px;
  overflow:hidden;
  background: var(--surface);
  border: 1px solid rgba(219,228,239,.95);
  box-shadow: var(--shadow);
}
.lightbox__bar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem .9rem;
  border-bottom: 1px solid rgba(219,228,239,.95);
}
.lightbox__bar button{
  border: 1px solid rgba(219,228,239,.95);
  background: rgba(244,247,251,.7);
  border-radius: 12px;
  padding: .45rem .6rem;
  cursor: pointer;
}
.lightbox__body img{
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  background: #f1f5f9;
}

/* =========================================================
   Footer (Light)
   ========================================================= */
.site-footer{
  margin-top: var(--pad);
  background: var(--surface);
  border-top: 1px solid rgba(219,228,239,.95);
  position: relative;
}
.site-footer::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #0b87c8 45%, var(--accent));
}

.footer-grid{
  display:grid;
  gap: 1.25rem;
  grid-template-columns: 1.3fr .9fr 1fr;
  padding: 2.2rem 0 1.4rem;
}
.footer-brand img{ height: 52px; width:auto; }
.footer-title{ font-weight: 900; margin-bottom: .65rem; }

.footer-links{
  list-style: none;
  padding: 0;
  margin: 0;
  display:grid;
  gap: .5rem;
  color: var(--muted);
  font-weight: 800;
}
.footer-links a{ color: var(--muted); }
.footer-links a:hover{ color: var(--primary-2); text-decoration: underline; }

.footer-cta{ display:flex; flex-wrap:wrap; gap: .6rem; margin-top: .9rem; }

.footer-bottom{
  border-top: 1px solid rgba(219,228,239,.95);
  padding: 1rem 0;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted-2);
  font-weight: 800;
  flex-wrap: wrap;
}
.footer-bottom a{ color: var(--primary-2); }

@media (max-width: 980px){
  .footer-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   Floating buttons
   ========================================================= */
.fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  display:grid;
  gap: .65rem;
  z-index: 60;
}
.fab a{
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  color: #fff;
  box-shadow: 0 16px 40px rgba(15,23,42,.18);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.fab a:hover{ transform: translateY(-2px); filter: brightness(1.02); }
.fab a.whatsapp{ background: linear-gradient(180deg, #25D366, #1aa856); }
.fab a.call{ background: linear-gradient(180deg, var(--primary), var(--primary-2)); }
.fab svg{ width: 26px; height: 26px; }

/* =========================================================
   Motion (respeta preferencias)
   ========================================================= */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  html:focus-within{ scroll-behavior: auto; }
  *{ transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .reveal{ opacity: 1; transform:none; }
}


/* Small helper text */
.help{ color: var(--muted-2); font-size: .92rem; font-weight: 700; }
