/* ==========================================================================
   SAOCA — Servicios Ambientales Oriente, C.A.
   Hoja de estilos principal
   ========================================================================== */

:root {
  /* Verde ambiental */
  --green-900: #0b3d2a;
  --green-800: #0d5236;
  --green-700: #0f6a41;
  --green-600: #13804f;
  --green-500: #1fa463;
  --green-300: #8fd3a9;
  --green-100: #d6efdf;
  --green-50:  #edf7f1;

  /* Azul técnico */
  --blue-950: #061a33;
  --blue-900: #0a2647;
  --blue-800: #0c3a6b;
  --blue-700: #0d4f8b;
  --blue-500: #1d74c9;
  --blue-100: #d9e8f7;
  --blue-50:  #eef5fc;

  --ink: #0f1d2b;
  --text: #33475b;
  --muted: #5a6b7c;
  --line: #e1e8ee;
  --bg: #ffffff;
  --bg-soft: #f4f8f9;
  --wa: #1fa855;
  --wa-dark: #178a45;
  --danger: #c0392b;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 38, 71, .06), 0 2px 8px rgba(10, 38, 71, .05);
  --shadow: 0 10px 30px -12px rgba(10, 38, 71, .22);
  --shadow-lg: 0 30px 60px -24px rgba(10, 38, 71, .35);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-700); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green-500); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.ico--lg { width: 1.6rem; height: 1.6rem; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--blue-900); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: .7em 1.35em;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem; line-height: 1.2;
  border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover > .ico:last-child:not(:first-child) { transform: translateX(3px); }
.btn--lg { min-height: 54px; padding: .85em 1.7em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--green-600); color: #fff; box-shadow: 0 8px 20px -10px rgba(19, 128, 79, .8); }
.btn--primary:hover { background: var(--green-700); color: #fff; }
.btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--blue-900); border-color: #fff; }
.btn--outline { background: transparent; color: var(--blue-800); border-color: var(--blue-100); }
.btn--outline:hover { border-color: var(--blue-700); color: var(--blue-700); background: var(--blue-50); }
.btn--whatsapp { background: var(--wa); color: #fff; }
.btn--whatsapp:hover { background: var(--wa-dark); color: #fff; }
.btn--light { background: #fff; color: var(--green-800); }
.btn--light:hover { background: var(--green-50); color: var(--green-900); }

/* ---------- Tipografía de secciones ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-body); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green-700);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--green-300); }
.section-title { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); font-weight: 700; max-width: 22ch; }
.section-lead { font-size: clamp(1.02rem, .98rem + .25vw, 1.15rem); color: var(--muted); max-width: 64ch; }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { text-align: center; }
.section-head--center .section-title, .section-head--center .section-lead { margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }

.section { padding-block: var(--section-y); position: relative; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: linear-gradient(160deg, var(--blue-950) 0%, var(--blue-900) 55%, #0b3350 100%); color: #c9d6e4; }
.section--dark .section-title, .section--dark h3 { color: #fff; }
.section--green { background: linear-gradient(135deg, var(--green-800) 0%, var(--green-700) 60%, #138055 100%); color: #dcefe4; }
.section--green .section-title { color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: -38px; z-index: 100; }
.topbar { background: var(--blue-950); color: #b8c7d8; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar__item { margin: 0; display: flex; align-items: center; gap: .5em; }
.topbar__links { display: flex; align-items: center; gap: 22px; }
.topbar__links a { color: #dbe5f0; text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.topbar__links a:hover { color: #fff; }
.topbar__rif { color: #8fa3b8; padding-left: 22px; border-left: 1px solid rgba(255,255,255,.15); }

.navbar {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled .navbar { box-shadow: 0 6px 24px -14px rgba(10, 38, 71, .35); border-color: var(--line); }
.navbar__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { width: auto; height: 50px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; letter-spacing: .04em; color: var(--blue-900); }
.brand__legal { font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; margin-top: 3px; }

.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav__list a {
  position: relative; display: block; padding: 8px 11px;
  font-size: .9rem; font-weight: 500; color: var(--ink); text-decoration: none; border-radius: 8px; white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__list a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 3px; height: 2px;
  background: var(--green-500); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__list a:hover { color: var(--green-700); }
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__list a[aria-current="page"] { color: var(--green-700); font-weight: 600; }
.nav__mobile-cta, .nav__contact { display: none; }
.navbar__cta { flex: none; }

.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--blue-900); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(92vh, 860px);
  display: flex; flex-direction: column; justify-content: center;
  color: #fff; padding-top: clamp(72px, 10vw, 120px);
}
.hero picture { position: absolute; inset: 0; z-index: -2; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); animation: heroZoom 18s var(--ease) forwards; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(6, 26, 51, .94) 0%, rgba(10, 38, 71, .82) 42%, rgba(13, 82, 54, .55) 75%, rgba(13, 82, 54, .35) 100%),
    linear-gradient(0deg, rgba(6, 26, 51, .7) 0%, rgba(6, 26, 51, 0) 40%);
}
.hero__content { position: relative; }
.hero__title {
  color: #fff; font-size: clamp(2.1rem, 1.2rem + 4vw, 4rem); font-weight: 700;
  line-height: 1.08; letter-spacing: -.025em; max-width: 17ch; margin-bottom: .45em;
}
.hero__title em { font-style: normal; color: var(--green-300); }
.hero__kicker {
  display: flex; align-items: center; gap: .6em; margin-bottom: 1.1rem;
  font-family: var(--font-body); font-size: .8rem; font-weight: 600; line-height: 1.5;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green-300);
}
.hero__kicker::before { content: ""; flex: none; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.hero__lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: #d7e3ef; max-width: 56ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__pillars-wrap { margin-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(28px, 4vw, 44px); }
.hero__pillars-intro { font-size: .9rem; color: #b5c6d8; margin-bottom: 14px; }
.hero__pillars {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  border-radius: var(--radius); overflow: hidden;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero__pillars li {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px;
  background: rgba(6, 26, 51, .45); font-weight: 600; font-size: .98rem; color: #fff;
}
.hero__pillars .ico { width: 1.5rem; height: 1.5rem; color: var(--green-300); }

@keyframes heroZoom { to { transform: scale(1); } }

/* ---------- Intro ---------- */
.intro { background: var(--bg); border-bottom: 1px solid var(--line); }
.intro__inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 6vw, 80px); }
.intro__badge {
  width: 168px; height: 168px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle at 30% 25%, var(--green-500), var(--green-700) 70%);
  color: #fff; box-shadow: 0 20px 40px -18px rgba(15, 106, 65, .7);
  position: relative;
}
.intro__badge::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1.5px dashed var(--green-300); animation: spin 40s linear infinite; }
.intro__since { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.intro__year { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.intro__title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.intro__text p { font-size: 1.06rem; max-width: 72ch; }
.intro__strong { font-weight: 600; color: var(--blue-800); margin-bottom: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Quiénes somos ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about__media { position: relative; padding: 0 12% 12% 0; }
.about__img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about__img--main { aspect-ratio: 9 / 11; }
.about__img--main img { width: 100%; height: 100%; object-fit: cover; }
.about__img--accent {
  position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1;
  border: 6px solid #fff;
}
.about__img--accent img { width: 100%; height: 100%; object-fit: cover; }
.about__media::before {
  content: ""; position: absolute; left: -18px; top: -18px; width: 120px; height: 120px; z-index: -1;
  background-image: radial-gradient(var(--green-300) 1.6px, transparent 1.6px); background-size: 14px 14px;
}
.about__highlight {
  border-left: 3px solid var(--green-500); padding: 4px 0 4px 18px;
  font-weight: 500; color: var(--ink);
}
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 0; }
.facts__item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.facts__item .ico { color: var(--green-600); margin-bottom: 8px; }
.facts dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); font-size: .95rem; line-height: 1.35; }

/* ---------- Inicio: resumen corporativo ---------- */
.teaser { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.teaser .btn { margin-top: 26px; }
.teaser .facts { margin-top: 24px; }
.teaser__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.teaser__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Inicio: registro fotográfico ---------- */
.field-strip__head { display: grid; grid-template-columns: auto 1fr; gap: 8px 32px; align-items: end; margin-bottom: 24px; }
.field-strip__title { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); font-weight: 700; margin: 0; }
.field-strip__lead { margin: 0; color: var(--muted); max-width: 62ch; }
.field-strip { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 44px; }
.field-card__link {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.field-card__link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.field-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.field-card__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--green-500), var(--blue-500)); transform: scaleX(.3); transform-origin: left; transition: transform .45s var(--ease); }
.field-card__link:hover .field-card__media::after, .field-card__link:focus-visible .field-card__media::after { transform: scaleX(1); }
.field-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.field-card__link:hover .field-card__media img { transform: scale(1.05); }
.field-card__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; }
.field-card__num { font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .12em; color: var(--green-600); margin-bottom: 6px; }
.field-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--ink); line-height: 1.3; }
.field-card__text { font-size: .93rem; color: var(--muted); margin: 4px 0 16px; }
.field-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-size: .88rem; color: var(--green-700); }
.field-card__more .ico { transition: transform .25s var(--ease); }
.field-card__link:hover .field-card__more .ico { transform: translateX(3px); }
.facts--stack { grid-template-columns: 1fr; margin: 0; }

/* ---------- Inicio: resumen de servicios ---------- */
.svc-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc-card {
  position: relative; display: flex; flex-direction: column; padding: 26px 24px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.svc-card::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--green-500), var(--blue-500)); transform: scaleX(.25); transform-origin: left; transition: transform .45s var(--ease); }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.svc-card:hover::before, .svc-card:focus-within::before { transform: scaleX(1); }
.svc-card__num { font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .1em; color: var(--green-600); margin-bottom: 10px; }
.svc-card__title { font-size: 1.05rem; font-weight: 600; margin-bottom: .55em; }
.svc-card__title a { color: var(--ink); text-decoration: none; }
.svc-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.svc-card__title a:focus-visible { outline: none; }
.svc-card:focus-within { outline: 3px solid var(--green-500); outline-offset: 3px; }
.svc-card p { font-size: .92rem; margin-bottom: 1.1em; }
.svc-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-size: .88rem; color: var(--green-700); }
.svc-card:hover .svc-card__more .ico { transform: translateX(3px); }
.svc-card__more .ico { transition: transform .25s var(--ease); }
.section-foot { margin-top: 36px; text-align: center; }

/* ---------- Páginas interiores: cabecera ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #c9d6e4;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(31, 164, 99, .28), transparent 60%),
    radial-gradient(50% 90% at 0% 100%, rgba(29, 116, 201, .25), transparent 60%),
    linear-gradient(150deg, var(--blue-950), var(--blue-900) 60%, #0b3350);
  padding-block: clamp(48px, 7vw, 88px);
}
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--green-500), var(--blue-500), var(--green-500)); }
.page-hero__watermark {
  position: absolute; right: -1vw; bottom: -.18em; z-index: -1; pointer-events: none; user-select: none;
  font-family: var(--font-display); font-weight: 700; line-height: 1; letter-spacing: -.04em;
  font-size: clamp(5rem, 16vw, 14rem); color: transparent; -webkit-text-stroke: 1px rgba(143, 211, 169, .16);
}
.page-hero__title { color: #fff; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; max-width: 24ch; margin-bottom: .5em; }
.page-hero__lead { font-size: clamp(1rem, .96rem + .25vw, 1.12rem); max-width: 66ch; margin: 0; }
.page-hero__index { margin-top: 28px; }
.page-hero__index ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.page-hero__index a {
  display: inline-block; padding: 8px 14px; border-radius: 999px; font-size: .86rem; font-weight: 500;
  color: #e6edf5; text-decoration: none; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.page-hero__index a:hover { background: #fff; color: var(--blue-900); border-color: #fff; }

/* ---------- Páginas interiores: hero fotográfico con fotografías rotativas (Nosotros, Servicios, Contacto) ---------- */
.photo-hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  min-height: clamp(440px, 64vh, 640px); padding-block: clamp(80px, 10vw, 128px);
  background: var(--blue-950); color: #d7e3ef;
}
.photo-hero__slides { position: absolute; inset: 0; z-index: -2; }
.photo-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.photo-hero__slide.is-active { opacity: 1; }
.photo-hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 7.5s linear; }
.photo-hero__slide.is-active img { transform: scale(1); }
.photo-hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(6, 26, 51, .93) 0%, rgba(8, 33, 62, .82) 42%, rgba(10, 38, 71, .58) 75%, rgba(10, 38, 71, .45) 100%),
    linear-gradient(0deg, rgba(6, 26, 51, .55) 0%, rgba(6, 26, 51, 0) 45%);
}
.photo-hero__content { position: relative; }
.photo-hero__title { color: #fff; font-size: clamp(2rem, 1.25rem + 3.1vw, 3.6rem); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; max-width: 18ch; margin-bottom: .5em; }
.photo-hero__lead { font-size: clamp(1.02rem, .98rem + .35vw, 1.2rem); max-width: 60ch; margin: 0; }
/* Servicios y Contacto: algo más compactos, con título más ancho para no pasar de dos líneas */
.photo-hero--compact { min-height: clamp(420px, 58vh, 580px); padding-block: clamp(72px, 8vw, 104px); }
.photo-hero--compact .photo-hero__title { max-width: 24ch; }
/* Contacto: texto centrado, velo uniforme y borde inferior inclinado; reserva espacio para la tarjeta superpuesta */
.photo-hero--center { text-align: center; }
.photo-hero--center .photo-hero__content { display: flex; flex-direction: column; align-items: center; }
.photo-hero--center .photo-hero__lead { max-width: 64ch; }
.photo-hero--center .photo-hero__overlay { background: linear-gradient(180deg, rgba(6, 26, 51, .84) 0%, rgba(8, 33, 62, .74) 55%, rgba(6, 26, 51, .86) 100%); }
.photo-hero--overlap { padding-bottom: calc(clamp(72px, 8vw, 104px) + 140px); clip-path: polygon(0 0, 100% 0, 100% calc(100% - clamp(48px, 7vw, 110px)), 0 100%); }
.photo-hero .page-hero__index { max-width: 860px; }
.photo-hero .page-hero__index a { background: rgba(6, 26, 51, .35); border-color: rgba(255, 255, 255, .28); }
.photo-hero .page-hero__index a:hover { background: #fff; color: var(--blue-900); border-color: #fff; }

/* ---------- Servicios: detalle ---------- */
.srv { padding-block: clamp(48px, 7vw, 88px); }
.srv + .srv { border-top: 1px solid var(--line); }
.srv--alt { background: var(--bg-soft); }
.srv__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.srv--alt .srv__media { order: 2; }
.srv__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 10; }
.srv__media img { width: 100%; height: 100%; object-fit: cover; }
.srv__num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--green-500); margin-bottom: 14px; }
.srv__kicker { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); margin-bottom: .6em; }
.srv__title { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.15rem); font-weight: 700; }
.srv__body p { max-width: 62ch; }
.srv__cta { display: inline-flex; align-items: center; gap: .45em; margin-top: 6px; font-weight: 600; color: var(--green-700); text-decoration: none; }
.srv__cta:hover { color: var(--blue-700); }
.srv__cta:hover .ico { transform: translateX(3px); }
.srv__cta .ico { transition: transform .25s var(--ease); }

/* ---------- Banda de llamada a la acción ---------- */
.cta-band { padding-block: clamp(48px, 6vw, 72px); background: linear-gradient(90deg, var(--blue-50), var(--green-50)); border-top: 1px solid var(--line); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band__title { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem); margin-bottom: .35em; }
.cta-band p { margin: 0; max-width: 60ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* CTA con fotografía real de fondo y velo azul marino para asegurar el contraste del texto blanco */
.cta-band--photo { background: transparent; border-top: 0; padding-block: clamp(48px, 6vw, 80px); }
.cta-band__card {
  --cta-overlay: linear-gradient(100deg, rgba(6, 26, 51, .93) 0%, rgba(8, 33, 62, .85) 40%, rgba(10, 38, 71, .72) 72%, rgba(10, 38, 71, .62) 100%);
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  min-height: 300px; padding: clamp(40px, 5.5vw, 72px) clamp(24px, 5vw, 64px);
  border-radius: var(--radius-lg); color: #d7e3ef; box-shadow: var(--shadow-lg);
  background-color: var(--blue-900);
  background-image: var(--cta-overlay); /* la foto la añade js/main.js al acercarse el bloque */
  background-size: cover, cover; background-position: center, var(--cta-pos, 50% 50%); background-repeat: no-repeat;
}
.cta-band__card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--green-500), var(--blue-500)); }
.cta-band__copy { flex: 1 1 420px; }
.cta-band--photo .cta-band__title { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.35rem); margin-bottom: .45em; max-width: 26ch; }
.cta-band--photo p { color: #d7e3ef; font-size: 1.05rem; max-width: 56ch; }
.cta-band--photo .cta-band__actions { flex: 0 1 auto; }
/* CTA de sección completa (Inicio y Nosotros): foto a todo el ancho con velo azul marino y verde oscuro */
.cta-band--full { padding-block: 0; }
.cta-band--full .cta-band__card {
  --cta-overlay: linear-gradient(100deg, rgba(6, 26, 51, .93) 0%, rgba(8, 33, 62, .84) 45%, rgba(11, 61, 42, .7) 100%);
  display: block; min-height: 0; border-radius: 0; box-shadow: none;
  padding: clamp(72px, 9vw, 118px) 0;
}
.cta-band--full .cta-band__card::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 4px; background: linear-gradient(90deg, var(--green-500), var(--blue-500), var(--green-500)); }
.cta-band__layout { display: flex; align-items: center; justify-content: space-between; gap: 32px 56px; flex-wrap: wrap; }
.cta-band--full .cta-band__title { max-width: 24ch; }
.cta-band--photo .btn--ghost { background: rgba(6, 26, 51, .5); border-color: rgba(255, 255, 255, .7); }
.cta-band--photo .btn--ghost:hover { background: #fff; color: var(--blue-900); border-color: #fff; }

/* ---------- Preguntas frecuentes (acordeón: una respuesta abierta por sección) ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq__intro .section-title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
.faq__list { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.faq__item:hover { border-color: var(--green-100); }
.faq__item.is-open { border-color: var(--green-300); box-shadow: var(--shadow-sm); }
.faq__heading { margin: 0; font-size: 1rem; }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%;
  padding: 18px 22px; border: 0; border-radius: var(--radius); background: transparent; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; line-height: 1.4; color: var(--ink);
}
.faq__q:focus-visible { outline: 3px solid var(--green-500); outline-offset: 2px; }
.faq__item.is-open .faq__q { color: var(--green-700); }
.faq__icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--green-50); transition: background-color .25s var(--ease); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--green-700); transition: transform .25s var(--ease), background-color .25s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon { background: var(--green-600); }
.faq__item.is-open .faq__icon::before, .faq__item.is-open .faq__icon::after { background: #fff; }
.faq__item.is-open .faq__icon::after { transform: rotate(0deg); }
.faq__a-body { padding: 0 22px 20px; }
.faq__a-body p { margin: 0 0 .7em; }
.faq__a-body p:last-child { margin-bottom: 0; }
/* Con JavaScript: transición de altura discreta; la respuesta cerrada sale del orden de tabulación y de los lectores de pantalla */
.js .faq__a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .28s var(--ease), visibility 0s linear .28s; }
.js .faq__item.is-open .faq__a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .28s var(--ease), visibility 0s; }
.js .faq__a-inner { overflow: hidden; min-height: 0; }
.js .faq__item.no-anim .faq__a { transition: none; }

/* ---------- Capacidad ---------- */
.capacity { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.capacity__intro .section-title { color: #fff; }
.capacity__img { margin-top: 32px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 900 / 640; }
.capacity__img img { width: 100%; height: 100%; object-fit: cover; }
.capacity__subtitle { font-size: 1.1rem; font-weight: 600; margin-bottom: 20px; }
.equipment { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.equipment__item {
  display: flex; align-items: center; padding: 16px 18px;
  border-radius: var(--radius); background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1); border-left: 3px solid var(--green-500);
  color: #e6edf5; font-size: .95rem; line-height: 1.4;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.equipment__item:hover { background: rgba(31, 164, 99, .12); border-color: rgba(143, 211, 169, .4); transform: translateX(3px); }
.capacity__note {
  margin: 22px 0 0; display: flex; gap: 10px; align-items: flex-start;
  font-size: .9rem; color: #a9bbcd; padding: 14px 16px; border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, .2);
}
.capacity__note .ico { margin-top: 2px; color: var(--green-300); }

/* Capacidad operativa: foto de fondo con velo para asegurar el contraste del texto */
.capacity-band { isolation: isolate; overflow: hidden; background: var(--blue-950); }
.capacity-band__bg { position: absolute; inset: 0; z-index: -2; }
.capacity-band__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 55%; }
.capacity-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(6, 26, 51, .95) 0%, rgba(8, 33, 62, .88) 42%, rgba(10, 38, 71, .80) 70%, rgba(13, 82, 54, .72) 100%),
    linear-gradient(0deg, rgba(6, 26, 51, .6) 0%, rgba(6, 26, 51, 0) 40%);
}
.capacity-band::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--green-500), var(--blue-500), var(--green-500)); }
.capacity-band .capacity { align-items: center; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 64px); }
/* Banda más compacta: menos alto, título más contenido y tarjetas de una línea cuando caben */
.capacity-band.section { padding-block: clamp(56px, 6vw, 84px); }
.capacity-band .capacity__intro .section-title { font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.25rem); max-width: 18ch; }
.capacity-band .capacity__subtitle { font-size: 1rem; margin-bottom: 14px; }
.capacity-band .equipment { gap: 10px; }
.capacity-band .equipment__item { padding: 11px 14px; font-size: .9rem; }
.capacity-band .capacity__note { margin-top: 16px; padding: 11px 14px; font-size: .86rem; }
.capacity-band .capacity__intro p:not(.eyebrow) { color: #d7e3ef; font-size: 1.02rem; max-width: 46ch; }
.capacity-band .capacity__intro .section-title { text-shadow: 0 2px 18px rgba(6, 26, 51, .5); }
.capacity-band .equipment__item {
  background: rgba(6, 26, 51, .55); border-color: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.capacity-band .equipment__item:hover { background: rgba(19, 128, 79, .35); }
.capacity-band .capacity__note { background: rgba(6, 26, 51, .55); color: #c9d6e4; }

/* ---------- Experiencia ---------- */

.works {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  padding: clamp(24px, 4vw, 36px); border-radius: var(--radius-lg); background: var(--bg-soft); border: 1px solid var(--line);
}
.works__title { font-size: 1.1rem; font-weight: 600; }
.works__list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.works__list li {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; color: var(--ink); font-weight: 500;
}
.works__list .ico { color: var(--green-600); }

.gallery { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; gap: 14px; }
.gallery__item { border-radius: var(--radius); overflow: hidden; }
.gallery__item--feature { grid-column: span 2; grid-row: span 2; }
.gallery__btn { all: unset; box-sizing: border-box; display: block; width: 100%; height: 100%; position: relative; cursor: zoom-in; }
.gallery__btn:focus-visible { outline: 3px solid var(--green-500); outline-offset: -3px; }
.gallery__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 26, 51, 0) 45%, rgba(6, 26, 51, .78)); }
.gallery__btn:hover img { transform: scale(1.06); }
.gallery__cap { position: absolute; left: 18px; right: 60px; bottom: 16px; z-index: 1; color: #fff; font-weight: 600; font-size: .98rem; line-height: 1.35; }
.gallery__cap small { display: block; font-size: .74rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.gallery__zoom {
  position: absolute; right: 12px; top: 12px; z-index: 1; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.9); color: var(--blue-900);
  opacity: 0; transform: scale(.8); transition: all .3s var(--ease);
}
.gallery__btn:hover .gallery__zoom, .gallery__btn:focus-visible .gallery__zoom { opacity: 1; transform: none; }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  display: none; align-items: center; justify-content: center; gap: 12px;
}
.lightbox[open] { display: flex; animation: fadeIn .3s var(--ease); }
.lightbox::backdrop { background: rgba(4, 16, 32, .9); backdrop-filter: blur(4px); }
.lightbox__figure { max-width: min(1200px, 84vw); margin: 0; text-align: center; }
.lightbox__img { max-height: 80vh; width: auto; margin-inline: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__cap { color: #e6edf5; margin-top: 14px; font-weight: 500; }
.lightbox__close, .lightbox__nav {
  border: 0; cursor: pointer; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; flex: none;
  transition: background-color .2s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { position: absolute; top: 20px; right: 20px; }
.lightbox__nav--prev .ico { transform: rotate(180deg); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Cinta de logos ---------- */
.logo-marquee {
  position: relative; overflow: hidden; margin: 0 0 44px; padding-block: 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.logo-marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.logo-marquee:hover .logo-marquee__track, .logo-marquee:focus-within .logo-marquee__track { animation-play-state: paused; }
.logo-marquee__group { list-style: none; display: flex; gap: 18px; padding-right: 18px; }
.logo-marquee__item {
  flex: none; width: 230px; height: 108px; padding: 18px 26px;
  display: grid; place-items: center; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.logo-marquee__item img { max-width: 100%; max-height: 62px; width: auto; height: auto; object-fit: contain; filter: grayscale(.25); transition: filter .3s var(--ease); }
.logo-marquee__item:hover { border-color: var(--green-300); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.logo-marquee__item:hover img { filter: none; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Parallax: compromiso ---------- */
.parallax {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(340px, 52vh, 480px);
  display: flex; align-items: center;
  padding-block: clamp(56px, 7vw, 88px); color: #fff; background: var(--blue-950);
}
.parallax::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; z-index: 2;
  background: linear-gradient(90deg, var(--green-500), var(--blue-500), var(--green-500));
}
.parallax__media { position: absolute; left: 0; right: 0; top: -18%; bottom: -18%; z-index: -3; will-change: transform; }
.parallax__img { width: 100%; height: 100%; object-fit: cover; }
.parallax__overlay {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(105deg, rgba(6, 26, 51, .94) 0%, rgba(8, 33, 62, .82) 38%, rgba(10, 52, 60, .5) 70%, rgba(13, 82, 54, .3) 100%),
    linear-gradient(0deg, rgba(6, 26, 51, .85) 0%, rgba(6, 26, 51, 0) 35%);
}
.parallax__watermark {
  position: absolute; right: -2vw; bottom: -0.16em; z-index: -1;
  font-family: var(--font-display); font-weight: 700; line-height: 1; letter-spacing: -.04em;
  font-size: clamp(5rem, 15vw, 13rem); color: transparent;
  -webkit-text-stroke: 1px rgba(143, 211, 169, .16);
  pointer-events: none; user-select: none; will-change: transform;
}
.parallax__content { will-change: transform; }
.parallax__title {
  color: #fff; font-size: clamp(1.45rem, 1rem + 1.7vw, 2.4rem); font-weight: 700;
  line-height: 1.18; letter-spacing: -.02em; max-width: 30ch; margin-bottom: .9em;
}
.parallax__title em {
  font-style: normal; color: var(--green-300);
  background: linear-gradient(90deg, var(--green-500), var(--green-300)) no-repeat 0 94% / 0% 2px;
  transition: background-size 1.1s var(--ease) .5s;
}
.parallax__title.is-visible em { background-size: 100% 2px; }
.parallax__title em:nth-of-type(2) { transition-delay: .75s; }
.parallax__title em:nth-of-type(3) { transition-delay: 1s; }
.parallax__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.parallax__caption {
  position: absolute; left: var(--gutter); bottom: 16px; margin: 0;
  display: flex; align-items: center; gap: 10px;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7);
}
.parallax__caption span { width: 28px; height: 1px; background: rgba(255, 255, 255, .5); }
@media (min-width: 1264px) { .parallax__caption { left: calc((100vw - var(--container)) / 2 + var(--gutter)); } }

/* ---------- Misión, visión, valores ---------- */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mv__card {
  position: relative; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); overflow: hidden;
}
.mv__card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: var(--green-50); z-index: 0; }
.mv__card--blue::after { background: var(--blue-50); }
.mv__card > * { position: relative; z-index: 1; }
.mv__card h3 { font-size: 1.5rem; }
.mv__card p { margin: 0; font-size: 1.02rem; }
.mv__icon { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--green-600); color: #fff; margin-bottom: 20px; }
.mv__card--blue .mv__icon { background: var(--blue-700); }
.values-title { text-align: center; margin: clamp(44px, 6vw, 64px) 0 22px; font-size: 1.35rem; }
.values { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.value {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  padding: 24px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; color: var(--blue-900); font-size: .98rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
}
.value__icon {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--green-50); color: var(--green-600); box-shadow: inset 0 0 0 1px var(--green-100);
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.value__icon .ico { width: 30px; height: 30px; stroke-width: 1.6; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value:hover .value__icon { background: var(--green-600); color: #fff; transform: scale(1.04); }

/* ---------- HSE ---------- */
.hse { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hse__subtitle { font-size: 1.08rem; margin-top: 24px; }
.hse__list { list-style: none; counter-reset: hse; display: grid; gap: 10px; }
.hse__list li {
  counter-increment: hse; display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  color: var(--ink); font-weight: 500;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.hse__list li::before {
  content: counter(hse, decimal-leading-zero); flex: none; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  background: var(--green-50); color: var(--green-700);
}
.hse__list li:hover { border-color: var(--green-300); background: var(--green-50); }
.hse__media { position: relative; }
.hse__media figure { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 9 / 11; box-shadow: var(--shadow-lg); }
.hse__media img { width: 100%; height: 100%; object-fit: cover; }
.hse__quote {
  position: relative; margin: -70px 0 0 -40px; max-width: 360px;
  padding: 24px 26px; border-radius: var(--radius); background: var(--blue-900); color: #e6edf5;
  box-shadow: var(--shadow-lg);
}
.hse__quote::before { content: "“"; position: absolute; top: -14px; left: 20px; font-family: Georgia, serif; font-size: 4rem; line-height: 1; color: var(--green-300); }
.hse__quote p { margin: 0; font-size: .98rem; font-weight: 500; }

/* ---------- Equipo ---------- */
.team { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.team__content p:not(.eyebrow) { font-size: 1.05rem; }
.team__traits { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trait {
  display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.3;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.trait:hover { background: rgba(255, 255, 255, .14); transform: translateY(-3px); }
.trait .ico { width: 2rem; height: 2rem; color: var(--green-300); }
.team__photo { grid-column: 1 / -1; position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 7; box-shadow: var(--shadow-lg); }
.team__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.team__photo figcaption { position: absolute; left: 20px; bottom: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(6, 26, 51, .7); color: #fff; font-size: .82rem; }

/* ---------- Contacto ---------- */
.contact-section { position: relative; z-index: 1; margin-top: -140px; padding-bottom: clamp(56px, 7vw, 88px); }
.contact-card {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 24px 60px rgba(6, 26, 51, .16);
}
.contact-card__info { padding: clamp(28px, 4vw, 48px); background: var(--bg-soft); border-right: 1px solid var(--line); }
.contact-card__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-bottom: .4em; }
.contact-card__intro { color: var(--muted); font-size: .95rem; margin-bottom: 28px; }
.contact-card__list { list-style: none; display: grid; gap: 22px; margin-bottom: 28px; }
.contact-card__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-card__ico {
  flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-600); color: #fff; box-shadow: 0 8px 18px rgba(31, 164, 99, .28);
}
.contact-card__ico .ico { width: 22px; height: 22px; }
.contact-card__list h3 { font-size: 1rem; margin: 3px 0 4px; }
.contact-card__list address, .contact-card__list a { display: block; font-style: normal; font-size: .93rem; color: var(--text); overflow-wrap: break-word; }
.contact-card__list a { text-decoration: none; }
.contact-card__list a:hover { color: var(--green-700); text-decoration: underline; }
.contact-card__legal { margin: 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.contact-card__legal strong { display: block; color: var(--ink); font-size: .95rem; }
.contact-card .contact__form { border: 0; border-radius: 0; box-shadow: none; padding: clamp(28px, 4vw, 48px); }

.contact__form { padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-title { font-size: 1.4rem; margin-bottom: .25em; }
.form-hint { font-size: .88rem; color: var(--muted); margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field label span[aria-hidden] { color: var(--green-700); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fbfcfd;
  font-size: 1rem; color: var(--ink); min-height: 48px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a2647' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: #8b99a7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-500); background: #fff; box-shadow: 0 0 0 4px rgba(31, 164, 99, .15); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); background: #fff8f7; }
.field.is-valid input, .field.is-valid select, .field.is-valid textarea { border-color: var(--green-300); }
.field__error { margin: 0; min-height: 0; font-size: .82rem; color: var(--danger); font-weight: 500; }
.field__error:empty { display: none; }
.field--check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.field--check input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; accent-color: var(--green-600); flex: none; }
.field--check label { flex: 1; font-weight: 500; color: var(--text); }
.field--check .field__error { flex-basis: 100%; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.form-status { margin-top: 18px; border-radius: 12px; font-size: .95rem; }
.form-status:empty { display: none; }
.form-status.is-success { padding: 16px 18px; background: var(--green-50); border: 1px solid var(--green-100); color: var(--green-900); }
.form-status.is-error { padding: 16px 18px; background: #fff3f1; border: 1px solid #f5cbc5; color: #8a2a1f; }
.form-status:focus { outline: none; }

.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); height: 340px; background: var(--bg-soft); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map--full { height: clamp(320px, 38vw, 460px); border: 0; border-radius: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-950); color: #a9bbcd; font-size: .93rem; }
.footer-cta { background: linear-gradient(90deg, var(--green-700), var(--green-600)); }
.footer-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-block: 26px; }
.footer-cta__claim { margin: 0; color: #fff; font-family: var(--font-display); font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); font-weight: 500; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-block: 64px 48px; }
.footer-logo { display: inline-block; }
.footer-logo img { width: 190px; height: auto; }
.footer-slogan { margin: 18px 0 8px; color: #cfdae6; max-width: 34ch; }
.footer-rif { color: #7f94aa; font-size: .85rem; }
.footer-title { color: #fff; font-family: var(--font-display); font-size: .95rem; font-weight: 600; letter-spacing: .04em; margin: 0 0 16px; }
.footer-col address { font-style: normal; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { color: #a9bbcd; text-decoration: none; }
.footer-col a:hover { color: var(--green-300); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ico { color: var(--green-300); margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom__inner { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding-block: 22px; font-size: .85rem; text-align: center; }
.footer-bottom p { margin: 0; }
.footer-credit { font-size: .8rem; letter-spacing: .02em; color: #7f94aa; }
.footer-credit a {
  color: #cfdae6; font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: color .25s var(--ease), background-size .3s var(--ease);
}
.footer-credit a:hover, .footer-credit a:focus-visible { color: var(--green-300); background-size: 100% 1px; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff;
  box-shadow: 0 12px 28px -8px rgba(23, 138, 69, .6);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.wa-float .ico { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.07); background: var(--wa-dark); color: #fff; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Animación de aparición ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1320px) {
  .navbar__inner { gap: 16px; }
  .nav__list a { padding: 8px 7px; font-size: .86rem; }
  .nav__list a::after { left: 7px; right: 7px; }
}

@media (min-width: 1061px) and (max-width: 1180px) {
  .brand__legal { display: none; }
}

@media (max-width: 1180px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1060px) {
  :root { --header-h: 68px; }
  .site-header { top: 0; }
  /* backdrop-filter crearía un bloque contenedor y recortaría el menú fijo */
  .navbar { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .topbar { display: none; }
  .navbar__cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0;
    background: #fff; padding: 20px var(--gutter) 32px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 24px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  /* Enlaces grandes con flecha; la página actual se marca con una barra verde */
  .nav__list a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 4px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; border-radius: 0;
  }
  .nav__list a::after {
    content: ""; position: static; inset: auto; width: 20px; height: 20px; flex: none;
    background: currentColor; opacity: .35; transform: none; transition: transform .25s var(--ease), opacity .25s var(--ease);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .nav__list a:hover::after, .nav__list a[aria-current="page"]::after { opacity: 1; transform: translateX(3px); }
  .nav__list a[aria-current="page"] { background: var(--green-50); border-radius: 10px; padding-inline: 14px; }
  .nav__list li:has(a[aria-current="page"]), .nav__list li:has(+ li a[aria-current="page"]) { border-bottom-color: transparent; }
  /* Entrada escalonada de los enlaces al abrir el menú */
  .nav__list li, .nav__mobile-cta, .nav__contact { opacity: 0; transform: translateY(10px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
  .nav.is-open .nav__list li, .nav.is-open .nav__mobile-cta, .nav.is-open .nav__contact { opacity: 1; transform: none; }
  .nav.is-open .nav__list li:nth-child(2) { transition-delay: .04s; }
  .nav.is-open .nav__list li:nth-child(3) { transition-delay: .08s; }
  .nav.is-open .nav__list li:nth-child(4) { transition-delay: .12s; }
  .nav.is-open .nav__mobile-cta { transition-delay: .16s; }
  .nav.is-open .nav__contact { transition-delay: .2s; }
  .nav__mobile-cta { display: grid; gap: 10px; }
  /* Datos de contacto al pie del panel */
  .nav__contact {
    display: grid; gap: 10px; margin-top: auto; padding: 18px; border-radius: var(--radius);
    background: var(--bg-soft); border: 1px solid var(--line); font-size: .92rem;
  }
  .nav__contact-title { margin: 0 0 2px; font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); }
  .nav__contact a, .nav__contact p { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--text); text-decoration: none; }
  .nav__contact .ico { color: var(--green-600); flex: none; }
  body.nav-open { overflow: hidden; }
  body.nav-open .wa-float { opacity: 0; pointer-events: none; }

  .hero__pillars { grid-template-columns: repeat(2, 1fr); }
  .about, .capacity, .capacity-band .capacity, .hse, .team, .teaser, .srv__inner { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-card__info { border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-card__list { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .contact-card__list li { flex-direction: column; gap: 12px; }
  .srv--alt .srv__media { order: 0; }
  .srv__media { max-width: 720px; }
  .facts--stack { grid-template-columns: repeat(3, 1fr); }
  .about__media { max-width: 560px; }
  .hse__media { max-width: 520px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 210px; }
  .gallery__item--feature { grid-column: 1 / -1; grid-row: span 2; }
  .field-strip { grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
  .field-strip__head { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .team__photo { aspect-ratio: 16 / 9; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .brand__mark { height: 44px; }
  .logo-marquee__item { width: 180px; height: 92px; padding: 14px 20px; }
  .logo-marquee__item img { max-height: 52px; }
  .logo-marquee__track { animation-duration: 35s; }
  .parallax { min-height: 0; }
  .parallax__actions .btn { width: 100%; }
  .parallax__watermark { bottom: -0.1em; }
  .brand__legal { font-size: .62rem; }
  .hero { min-height: auto; }
  .hero__actions .btn { width: 100%; }
  .hero__pillars li { padding: 14px; font-size: .9rem; }
  .intro__inner { grid-template-columns: 1fr; justify-items: start; }
  .intro__badge { width: 128px; height: 128px; }
  .intro__year { font-size: 2rem; }
  .facts { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .facts--stack { grid-template-columns: 1fr; }
  .cta-band__actions, .cta-band__actions .btn { width: 100%; }
  .srv__num { font-size: 2rem; }
  .equipment { grid-template-columns: 1fr; }
  .capacity-band .equipment { gap: 8px; }
  .capacity-band .equipment__item { padding: 10px 13px; }
  .mv { grid-template-columns: 1fr; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .team__traits { grid-template-columns: 1fr 1fr; }
  .trait { padding: 18px; font-size: .95rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
  .hse__quote { margin: -50px 12px 0; }
  .gallery { gap: 10px; grid-auto-rows: 170px; }
  .gallery__item--feature { grid-row: span 1; }
  .field-strip { grid-template-columns: 1fr; }
  .cta-band__card { min-height: 440px; align-content: center; padding: 44px 24px 40px 28px; }
  .cta-band__card { --cta-overlay: linear-gradient(180deg, rgba(6, 26, 51, .9) 0%, rgba(8, 33, 62, .8) 55%, rgba(10, 38, 71, .7) 100%); background-position: center, var(--cta-pos-sm, 50% 50%); }
  .cta-band__copy { flex-basis: 100%; }
  .cta-band--full .cta-band__card { --cta-overlay: linear-gradient(180deg, rgba(6, 26, 51, .9) 0%, rgba(8, 33, 62, .82) 55%, rgba(11, 61, 42, .74) 100%); min-height: 0; padding: 72px 0 64px; }
  .faq__q { padding: 16px 18px; }
  .photo-hero { min-height: 520px; padding-block: 88px 72px; align-items: flex-end; }
  .photo-hero__overlay { background: linear-gradient(180deg, rgba(6, 26, 51, .55) 0%, rgba(6, 26, 51, .82) 45%, rgba(6, 26, 51, .94) 100%); }
  .photo-hero--center .photo-hero__overlay { background: linear-gradient(180deg, rgba(6, 26, 51, .7) 0%, rgba(6, 26, 51, .84) 50%, rgba(6, 26, 51, .92) 100%); }
  .photo-hero--overlap { padding-bottom: 136px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), 0 100%); }
  .contact-section { margin-top: -64px; }
  .contact-card__list li { flex-direction: row; gap: 14px; }
  .contact-card__ico { width: 44px; height: 44px; }
  .contact-card__ico .ico { width: 20px; height: 20px; }
  /* Índice de servicios en una sola fila desplazable para no alargar el hero en móvil */
  .photo-hero .page-hero__index { margin-inline: calc(-1 * var(--gutter)); }
  .photo-hero .page-hero__index ul { flex-wrap: nowrap; overflow-x: auto; padding: 2px var(--gutter) 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .photo-hero .page-hero__index ul::-webkit-scrollbar { display: none; }
  .photo-hero .page-hero__index li { flex: none; }
  .faq__a-body { padding: 0 18px 18px; }
  .gallery__cap { font-size: .85rem; left: 12px; bottom: 10px; }
  .lightbox__nav { position: absolute; bottom: 24px; }
  .lightbox__nav--prev { left: calc(50% - 60px); }
  .lightbox__nav--next { right: calc(50% - 60px); }
  .lightbox__figure { max-width: 94vw; }
  /* Footer compacto: marca y contacto a todo el ancho; navegación y servicios en dos columnas */
  .site-footer { font-size: .88rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-block: 40px 28px; }
  .footer-brand, .footer-grid > .footer-col:last-child { grid-column: 1 / -1; }
  .footer-logo img { width: 120px; }
  .footer-slogan { margin: 12px 0 4px; }
  .footer-title { margin-bottom: 10px; font-size: .9rem; }
  .footer-col ul { gap: 7px; }
  .footer-bottom__inner { padding-block: 16px; font-size: .8rem; }
  .footer-cta .btn { width: 100%; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

@media (max-width: 420px) {
  .hero__pillars { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .team__traits { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee { -webkit-mask-image: none; mask-image: none; margin-inline: 0; }
  .logo-marquee__track { animation: none; width: auto; }
  .logo-marquee__group { flex-wrap: wrap; justify-content: center; padding-right: 0; }
  .logo-marquee__group[aria-hidden="true"], .logo-marquee__item[aria-hidden="true"] { display: none; }
  .parallax__media, .parallax__watermark, .parallax__content { transform: none !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__bg { transform: none; }
}

@media print {
  .site-header, .wa-float, .map, .form-actions, .footer-cta, .logo-marquee__group[aria-hidden="true"] { display: none !important; }
  .section--dark, .section--green { background: #fff; color: #000; }
}

/* ---------- Página 404 ---------- */
