/* ===========================================================================
   SISA de Occidente — Soluciones Ambientales
   Hoja de estilos principal
   Paleta basada en el logotipo: azul SISA + verde ambiental
   =========================================================================== */

:root {
  --blue: #0091d0;
  --blue-600: #0079b0;
  --blue-700: #005f8c;
  --navy: #0c2e4a;
  --navy-900: #081f34;
  --green: #8cc63f;
  --green-600: #72a92c;
  --ink: #1a2733;
  --muted: #5d6b78;
  --line: #e2ebf1;
  --bg: #ffffff;
  --bg-soft: #eef6fb;
  --bg-soft-2: #e5f0f0;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(12, 46, 74, .08), 0 1px 2px rgba(12, 46, 74, .06);
  --shadow-md: 0 10px 30px rgba(12, 46, 74, .12);
  --shadow-lg: 0 24px 60px rgba(12, 46, 74, .18);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

a { color: var(--blue-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--blue-700); }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #dCE8f1; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--green); }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.section--navy .lead { color: #b9cbd9; }

.text-center { text-align: center; }
.center-block { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: all .22s var(--ease); white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; }
.btn--wa { background: #25d366; color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, .35); }
.btn--wa:hover { background: #1eb85a; color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37, 211, 102, .45); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(0, 145, 208, .3); }
.btn--primary:hover { background: var(--blue-600); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: rgba(12, 46, 74, .22); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-600); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { color: var(--blue-600); transform: translateY(-2px); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }
.btn--lg { padding: 17px 32px; font-size: 1.06rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.nav__logo img { height: 42px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__menu > li { position: relative; }
.nav__menu a {
  display: block; padding: 10px 14px; color: var(--navy); font-weight: 600; font-size: .98rem;
  border-radius: 8px;
}
.nav__menu a:hover, .nav__menu a.active { color: var(--blue-600); background: var(--bg-soft); }
.nav__cta { display: flex; align-items: center; gap: 10px; }

/* dropdown */
.has-drop > a::after {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .6;
}
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 288px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md);
  padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s var(--ease);
}
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { padding: 11px 13px; border-radius: 10px; font-weight: 600; font-size: .95rem; }
.dropdown a small { display: block; font-weight: 500; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.dropdown a:hover { background: var(--bg-soft); }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 26px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .3s var(--ease); }
.nav__toggle span + span { margin-top: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(9, 34, 56, .93) 0%, rgba(9, 34, 56, .78) 45%, rgba(0, 95, 140, .55) 100%);
}
.hero__inner { position: relative; z-index: 1; padding: clamp(70px, 12vw, 130px) 0 clamp(60px, 9vw, 110px); max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 .hl { color: var(--green); }
.hero__sub { font-size: 1.2rem; color: #d9e6f0; margin-bottom: 30px; max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .95rem; color: #cfe0ec; }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 18px; height: 18px; color: var(--green); flex: none; }

/* ---------- Service cards ---------- */
.grid { display: grid; gap: 26px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 130%); color: #fff; margin-bottom: 18px;
}
.card__icon svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: 8px; }
.card__hook { color: var(--blue-600); font-weight: 700; font-size: .9rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .03em; }
.card p { color: var(--muted); font-size: .98rem; }
.card__link { margin-top: auto; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.card__link::after { content: "→"; transition: transform .2s var(--ease); }
.card:hover .card__link::after { transform: translateX(4px); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.stat { text-align: center; }
.stat__num { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 900; color: #fff; line-height: 1; letter-spacing: -.02em; }
.stat__num .u { color: var(--green); }
.stat__label { color: #b9cbd9; margin-top: 10px; font-size: .98rem; }

/* ---------- Certifications ---------- */
.certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.cert {
  display: flex; gap: 15px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
}
.cert__badge { width: 46px; height: 46px; border-radius: 12px; background: var(--bg-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.cert__badge svg { width: 26px; height: 26px; }
.cert strong { display: block; color: var(--navy); font-size: 1.02rem; }
.cert span { color: var(--muted); font-size: .9rem; }

/* ---------- Steps / process ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__num {
  counter-increment: step; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 1.1rem;
}
.step__num::before { content: counter(step); }
.step h4 { margin: 4px 0 4px; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Feature list ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--green-600); flex: none; margin-top: 2px; }

/* ---------- Split / media rows ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); position: relative; }
.split__media video, .split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--navy); }

/* ---------- Gallery (videos) ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--navy); border: 1px solid var(--line); }
.gallery video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 198, 63, .25), transparent 70%);
}
.page-hero__inner { position: relative; padding: clamp(48px, 8vw, 92px) 0; max-width: 760px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #cfe0ec; font-size: 1.15rem; margin: 0; }
.breadcrumb { font-size: .9rem; color: #9fb6c8; margin-bottom: 16px; }
.breadcrumb a { color: #cfe0ec; }
.breadcrumb a:hover { color: var(--green); }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 22px;
  font-size: 1.05rem; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq__q .ico { flex: none; width: 24px; height: 24px; position: relative; transition: transform .3s var(--ease); }
.faq__q .ico::before, .faq__q .ico::after { content: ""; position: absolute; background: var(--blue); border-radius: 2px; }
.faq__q .ico::before { top: 11px; left: 3px; right: 3px; height: 2.5px; }
.faq__q .ico::after { left: 11px; top: 3px; bottom: 3px; width: 2.5px; transition: transform .3s var(--ease); }
.faq__item.open .faq__q .ico::after { transform: scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq__a-inner { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.form { display: grid; gap: 16px; background: #fff; padding: clamp(24px, 4vw, 38px); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px;
  background: #fbfdfe; color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 145, 208, .15); background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__note { font-size: .85rem; color: var(--muted); margin: 0; }

.info-card { background: var(--bg-soft); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 34px); }
.info-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 15px; align-items: flex-start; }
.info-list .ic { width: 46px; height: 46px; border-radius: 12px; background: #fff; color: var(--blue); display: grid; place-items: center; flex: none; box-shadow: var(--shadow-sm); }
.info-list .ic svg { width: 24px; height: 24px; }
.info-list strong { display: block; color: var(--navy); }
.info-list a, .info-list span { color: var(--muted); }
.info-list a:hover { color: var(--blue-600); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue) 0%, var(--navy) 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 62px); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d9e6f0; max-width: 60ch; margin: 0 auto 26px; }
.cta-band .hero__actions { justify-content: center; margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #a9c0d2; padding: 62px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; letter-spacing: .02em; }
.site-footer a { color: #a9c0d2; }
.site-footer a:hover { color: var(--green); }
.footer-logo { background: #fff; padding: 12px 14px; border-radius: 12px; display: inline-block; margin-bottom: 16px; }
.footer-logo img { height: 40px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; font-size: .96rem; }
.footer-list li { display: flex; align-items: center; gap: 10px; }
.footer-list svg { width: 17px; height: 17px; flex: none; color: var(--green); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: #7f97aa; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37, 211, 102, .5);
  transition: transform .2s var(--ease); animation: wa-pulse 2.6s infinite;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 32px; height: 32px; }
@keyframes wa-pulse { 0% { box-shadow: 0 10px 26px rgba(37, 211, 102, .5), 0 0 0 0 rgba(37, 211, 102, .45); } 70% { box-shadow: 0 10px 26px rgba(37, 211, 102, .5), 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 10px 26px rgba(37, 211, 102, .5), 0 0 0 0 rgba(37, 211, 102, 0); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 800px; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; color: var(--muted); }
.prose li { margin-bottom: .4em; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head.left { margin-left: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 800px) {
  .nav__cta .btn--wa span { display: none; }
  .nav__cta .btn--wa { padding: 12px; }
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: 74px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: 12px 18px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform .35s var(--ease); max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .nav__menu.open { transform: translateY(0); }
  .nav__menu > li { width: 100%; }
  .nav__menu a { padding: 14px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .has-drop > a::after { float: right; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; }
  .dropdown a { border-bottom: 1px dashed var(--line); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
