/* Solhidrica — sitio institucional 2026 */
:root {
  --navy: #2D4261;
  --navy-900: #1B2A40;
  --navy-950: #121D2E;
  --blue: #009FDF;
  --blue-600: #0086BD;
  --gray: #5B5C5E;
  --ink: #1F2933;
  --muted: #5F6B7A;
  --line: #DDE3EA;
  --bg: #FFFFFF;
  --bg-soft: #F3F6F9;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(18, 29, 46, .08);
  --max: 1200px;
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 12px;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: 14px 26px; border-radius: 6px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-900); }
.btn[disabled] { opacity: .6; cursor: default; }

/* Barra superior y encabezado */
.topbar { background: var(--navy-950); color: #C9D3DF; font-size: .85rem; }
.topbar .container { display: flex; justify-content: flex-end; gap: 24px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar .social { display: inline-flex; align-items: center; }
.social svg, .social-link svg { fill: currentColor; }
.topbar .social svg { width: 15px; height: 15px; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--font-head); font-size: .86rem; font-weight: 500; color: var(--navy);
  text-decoration: none; padding: 10px 10px; border-radius: 6px; white-space: nowrap;
}
.nav a:hover { background: var(--bg-soft); }
.nav a.active { color: var(--blue-600); }
.nav .btn { margin-left: 10px; padding: 11px 20px; color: #fff; }
.nav .btn:hover { background: var(--blue-600); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--navy-950); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .hero-shift { object-position: 63% center; } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,29,46,.94) 0%, rgba(27,42,64,.82) 45%, rgba(27,42,64,.35) 100%); }
.hero .container { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 120px; }
.hero h1 { color: #fff; max-width: 780px; }
.hero .lead { color: #D5DEE8; }
.hero .eyebrow { color: #7FD3F5; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.page-hero .container { padding-top: 90px; padding-bottom: 80px; }

/* Franja de datos */
.facts { background: var(--navy); color: #fff; }
.facts .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 30px 24px; border-left: 1px solid rgba(255,255,255,.12); }
.fact:first-child { border-left: 0; }
.fact strong { display: block; font-family: var(--font-head); font-size: 1.35rem; color: #fff; }
.fact span { color: #BFD0E2; font-size: .95rem; }

/* Secciones */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.pillar .num { font-family: var(--font-head); font-weight: 700; color: var(--blue); font-size: .9rem; letter-spacing: .1em; }
.pillar p { color: var(--muted); margin: 0; }

.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s; }
a.card:hover { transform: translateY(-4px); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 24px; }
.card-body p { color: var(--muted); margin: 0; font-size: 1rem; }
.card-link { display: inline-block; margin-top: 14px; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--blue-600); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-img.stack img + img { margin-top: 16px; }
.split-img.natural img { aspect-ratio: auto; max-height: 640px; }
.split-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); box-shadow: inset 0 0 0 4px #CDEFFC; }
.cols-2 { columns: 2; column-gap: 32px; }
.cols-2 li { break-inside: avoid; }

.industry { padding: 22px 22px 22px 20px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); border-left: 4px solid var(--blue); }
.industry h3 { font-size: 1.02rem; margin: 0 0 4px; }
.industry p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Soluciones detalladas */
.solution { padding: 72px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.solution:first-of-type { border-top: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1em; padding: 0; list-style: none; }
.tags li { background: #E3F5FD; color: var(--navy); font-size: .88rem; padding: 6px 12px; border-radius: 99px; font-weight: 600; }
.subnav { position: sticky; top: 78px; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; }
.subnav a { flex: none; font-family: var(--font-head); font-size: .85rem; font-weight: 500; color: var(--navy); text-decoration: none; padding: 8px 14px; border-radius: 99px; background: var(--bg-soft); }
.subnav a:hover { background: #E3F5FD; }
.solution.text-only { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.also { margin-top: 36px; padding: 24px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.also-label { display: block; font-family: var(--font-head); font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.also .tags { margin-bottom: 4px; }
.wide-img { grid-column: 1 / -1; }
.wide-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.capmap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cap { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 8px; padding: 18px 18px 16px; }
.cap h3 { font-size: .98rem; margin: 0 0 8px; }
.cap h3 a { color: var(--navy); text-decoration: none; }
.cap h3 a:hover { color: var(--blue-600); }
.cap p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.norms { background: var(--bg-soft); border-left: 4px solid var(--blue); padding: 18px 22px; border-radius: 6px; font-size: 1rem; }
.norms p { margin: 0 0 6px; }

/* Valores */
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.value { text-align: center; padding: 26px 14px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.quote { font-family: var(--font-head); font-size: 1.15rem; line-height: 1.55; color: var(--navy); }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy-950); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s, opacity .4s; }
.gallery figure:hover img { transform: scale(1.04); opacity: .85; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; color: #fff; font-size: .95rem; font-weight: 600; background: linear-gradient(transparent, rgba(18,29,46,.85)); }

/* Llamado a la acción */
.cta { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 64px; padding-bottom: 64px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { color: #C9D6E4; margin: 0; }

/* Contacto */
.offices { display: grid; gap: 18px; }
.office { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.office h3 { margin-bottom: 6px; }
.office p { margin: 0; color: var(--muted); font-size: 1rem; }
.office a { font-weight: 600; text-decoration: none; }
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; }
.wix-form .field { margin-bottom: 18px; }
.wix-form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; color: var(--navy); }
.wix-form .req { color: #C0392B; margin-left: 2px; }
.wix-form input[type=text], .wix-form input[type=email], .wix-form input[type=tel], .wix-form input[type=url],
.wix-form input[type=number], .wix-form select, .wix-form textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #C5CED8; border-radius: 6px; background: #fff; color: var(--ink);
}
.wix-form textarea { min-height: 130px; resize: vertical; }
.wix-form input:focus, .wix-form select:focus, .wix-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.wix-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); }
.wix-form .check input { margin-top: 5px; }
.wix-form .help { font-size: .88rem; color: var(--muted); margin-top: 4px; }
.wix-form .err { color: #C0392B; font-size: .88rem; margin: 4px 0 0; min-height: 0; }
.wix-form [aria-invalid=true] { border-color: #C0392B; }
.wix-form .form-error { background: #FDECEA; color: #8E2B20; padding: 12px 14px; border-radius: 6px; margin-bottom: 14px; }
.form-skeleton div { height: 46px; background: var(--bg-soft); border-radius: 6px; margin-bottom: 18px; }
.form-thanks { text-align: center; padding: 30px 10px; }
.form-thanks h3 { font-size: 1.4rem; }

/* Muro de logos */
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.logos .logo-tile { flex: 0 0 calc((100% - 70px) / 6); }
.logos.brands .logo-tile { flex-basis: calc((100% - 84px) / 7); }
.logo-tile { background: #fff; border: 1px solid var(--line); border-radius: 8px; aspect-ratio: 12 / 5; display: grid; place-items: center; padding: 8px 12px; }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .25s, opacity .25s; }
.logo-tile:hover img { filter: none; opacity: 1; }
.logo-tile .wordmark { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: #6B7684; text-align: center; line-height: 1.15; letter-spacing: .01em; }
.logos-note { margin-top: 18px; color: var(--muted); font-size: .95rem; }

/* Pruebas de confianza */
.proof { background: var(--navy); color: #fff; }
.proof .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof .item { padding: 28px 24px; border-left: 1px solid rgba(255,255,255,.12); }
.proof .item:first-child { border-left: 0; }
.proof strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: #fff; margin-bottom: 4px; }
.proof span { color: #BFD0E2; font-size: .93rem; line-height: 1.45; display: block; }

/* Cómo trabajamos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: paso; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 24px; }
.step::before { counter-increment: paso; content: counter(paso, decimal-leading-zero); font-family: var(--font-head); font-weight: 700; color: var(--blue); font-size: .9rem; letter-spacing: .1em; }
.step h3 { margin-top: 8px; }
.step p { color: var(--muted); margin: 0 0 12px; font-size: 1rem; }
.step .deliverable { font-size: .92rem; color: var(--navy); background: #E3F5FD; border-radius: 6px; padding: 8px 12px; margin: 0; }
.step .deliverable b { font-family: var(--font-head); font-weight: 600; }

/* Por qué Solhidrica */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.14); }
.reason { padding: 30px 28px 30px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.reason h3 { color: #fff; font-size: 1.1rem; }
.reason p { color: #C9D6E4; margin: 0; font-size: 1rem; }
.section-dark { background: var(--navy-950); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark .lead { color: #C9D6E4; }
.section-dark .eyebrow { color: #7FD3F5; }

/* Listas de documentos y cumplimiento */
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.doc-list li { position: relative; padding-left: 26px; font-size: 1rem; }
.doc-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 3px; background: var(--blue); }
.logo-text { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 1.35rem; letter-spacing: .06em; color: #4b5563; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.badge-row li { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 10px 14px; font-weight: 600; color: var(--navy); font-size: .95rem; }

/* Texto legal */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }

/* Pie */
.site-footer { background: var(--navy-950); color: #AFBCCB; font-size: .95rem; }
.site-footer .container { padding-top: 64px; padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer a { color: #DCE4EE; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.social-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.social-link svg { width: 22px; height: 22px; }
.footer-logo { height: 44px; width: auto; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* Responsivo */
@media (max-width: 1240px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 78px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
}
@media (max-width: 1024px) {
  .logos .logo-tile, .logos.brands .logo-tile { flex-basis: calc((100% - 42px) / 4); }
  .steps, .reasons { grid-template-columns: repeat(2, 1fr); }
  .capmap { grid-template-columns: repeat(3, 1fr); }
  .proof .container { grid-template-columns: repeat(2, 1fr); }
  .proof .item:nth-child(3) { border-left: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .gallery { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .facts .container { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 78px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
  .split, .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > :first-child { order: 0; }
  .subnav { top: 78px; }
  .solution.text-only { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero .container { padding-top: 80px; padding-bottom: 80px; }
  .grid-3, .grid-4, .gallery { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .facts .container { grid-template-columns: 1fr; }
  .fact { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding: 20px 16px; }
  .fact:first-child { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cols-2 { columns: 1; }
  .logos .logo-tile, .logos.brands .logo-tile { flex-basis: calc((100% - 14px) / 2); }
  .steps, .reasons, .doc-list { grid-template-columns: 1fr; }
  .capmap { grid-template-columns: 1fr; }
  .reason { padding-right: 0; }
  .proof .container { grid-template-columns: 1fr; }
  .proof .item { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding: 20px 16px; }
  .proof .item:first-child { border-top: 0; }
  .topbar .container { justify-content: center; gap: 4px 16px; }
  .form-card { padding: 24px 18px; }
  .brand img { height: 38px; }
}