/* ============================================================
   OLEOSUR S.A. — Sitio institucional
   Sistema visual: negro profundo + corriente turquesa
   Paleta y motivo de "ondas" tomados del PDF institucional.
   ============================================================ */

:root {
  /* --- superficies --- */
  --bg: #050607;
  --bg-alt: #070a0b;
  --surface: #0d1315;
  --surface-2: #121a1c;
  --surface-hi: #172124;

  /* --- turquesa de marca --- */
  --teal: #2fb5c4;
  --teal-bright: #5ad4df;
  --teal-deep: #1a6b7a;
  --teal-ink: #0c343d;

  /* --- texto --- */
  --text: #f2f5f5;
  --text-soft: #d3dcdd;
  --text-muted: #a2b1b3;
  --text-faint: #748183;

  /* --- líneas --- */
  --line: rgba(255, 255, 255, 0.09);
  --line-teal: rgba(90, 212, 223, 0.22);

  /* --- tipografía --- */
  --font-display: "Poppins", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --fs-title: clamp(1.9rem, 1.35rem + 2.6vw, 3.05rem);
  --fs-title-sm: clamp(1.45rem, 1.15rem + 1.4vw, 2.05rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  --fs-body: 1rem;
  --fs-sm: 0.9rem;
  --fs-label: 0.74rem;

  /* --- ritmo / espaciado --- */
  --space-3xs: 0.375rem;
  --space-2xs: 0.625rem;
  --space-xs: 1rem;
  --space-sm: 1.5rem;
  --space-md: 2.25rem;
  --space-lg: 3.5rem;
  --space-xl: clamp(4rem, 3rem + 5vw, 7rem);
  --section-pad: clamp(4.5rem, 3.2rem + 6vw, 8rem);

  --container: 1180px;
  --measure: 42rem;
  --radius: 16px;
  --radius-sm: 11px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (min-width: 1000px) {
  html {
    scroll-snap-type: y proximity;
  }
  .hero,
  .slide,
  .footer {
    scroll-snap-align: start;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.16;
  margin: 0;
  letter-spacing: 0.005em;
}

p { margin: 0 0 var(--space-xs); }

::selection { background: rgba(90, 212, 223, 0.28); color: #fff; }

:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100vh;
  z-index: 1000;
  background: var(--teal);
  color: #04171a;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: min(var(--container), calc(100% - 3rem));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.slide {
  position: relative;
  isolation: isolate;
  padding-block: var(--section-pad);
  overflow: hidden;
  background: var(--bg);
}

.slide--alt { background: var(--bg-alt); }

.slide--compromiso {
  background:
    radial-gradient(60% 50% at 85% 8%, rgba(47, 181, 196, 0.10), transparent 70%),
    radial-gradient(55% 45% at 5% 100%, rgba(26, 107, 122, 0.14), transparent 70%),
    linear-gradient(180deg, #070c0d, #050607 55%, #070d0f);
}

/* ============================================================
   ONDAS — la ola institucional (assets/img/waves.webp),
   un único archivo de fondo reutilizado en cada sección:
   hero → plena · secciones de texto → contracorriente al ras
   secciones con foto → apenas un susurro · footer → se aquieta
   ============================================================ */
.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.wave__img {
  width: 100%;
  height: 100%;
  display: block;
  background-image: url("../img/waves.webp");
  background-size: cover;
  background-repeat: no-repeat;
}
.wave--flip .wave__img { transform: scaleX(-1); }

/* hero — la corriente en su punto más pleno (como la tapa) */
.wave--hero {
  height: min(60vh, 560px);
  bottom: -1px;
}
.wave--hero .wave__img {
  background-position: right bottom;
  opacity: 0.9;
  animation: waveDrift 28s var(--ease) infinite;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 40%);
}

/* contracorriente — la ola corre al ras del piso, tenue, jamás sobre el texto */
.wave--undercurrent {
  height: clamp(180px, 28vh, 280px);
  opacity: 0.3;
}
.wave--undercurrent .wave__img {
  background-position: left bottom;
  animation: waveDrift 34s var(--ease) infinite;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 82%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 82%);
}

/* susurro — un hilo de la corriente bajo las secciones con foto */
.wave--whisper {
  height: 130px;
  opacity: 0.18;
}
.wave--whisper .wave__img {
  background-position: left bottom;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 88%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 88%);
}

/* horizonte — certificaciones: la corriente apenas insinuada */
.wave--horizon {
  height: 150px;
  opacity: 0.24;
}
.wave--horizon .wave__img {
  background-position: right bottom;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 80%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 80%);
}

/* footer — la corriente se aquieta */
.wave--settle {
  height: 170px;
  opacity: 0.24;
}
.wave--settle .wave__img {
  background-position: left bottom;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 74%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 74%);
}

@keyframes waveDrift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-1.2%, -5px, 0); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(48% 38% at 50% 42%, rgba(47, 181, 196, 0.09), transparent 72%),
    radial-gradient(80% 60% at 50% 120%, rgba(12, 52, 61, 0.35), transparent 70%),
    var(--bg);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 30%, transparent 55%, rgba(0, 0, 0, 0.55));
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 3;
  padding: 0 1.5rem;
  transform: translateY(-4vh);
  perspective: 1600px;
}

.hero__logo-stage {
  position: relative;
  display: inline-block;
  transform-style: preserve-3d;
  animation: logoSway 18s ease-in-out infinite;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.12))
    drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55))
    drop-shadow(0 34px 54px rgba(0, 0, 0, 0.45));
}

.hero__logo {
  width: min(660px, 82vw);
  height: auto;
  margin: 0 auto;
}

/* destello: enmascarado a la silueta real del logo (sólo letras + ícono) */
.hero__shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    108deg,
    transparent 42%,
    rgba(6, 20, 24, 0.55) 46%,
    rgba(255, 255, 255, 0.35) 49%,
    rgba(236, 250, 252, 1) 50%,
    rgba(255, 255, 255, 0.35) 51%,
    rgba(6, 20, 24, 0.55) 54%,
    transparent 58%
  );
  background-size: 240% 100%;
  background-position: 130% 0;
  background-repeat: no-repeat;
  -webkit-mask-image: url("../img/logo-hires.webp");
  mask-image: url("../img/logo-hires.webp");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mix-blend-mode: overlay;
  opacity: 0;
  animation: logoSheen 9s ease-in-out 1.6s infinite;
}

@keyframes logoSway {
  0%, 100% { transform: rotateY(-5deg) rotateX(1.5deg) translate3d(-3px, 0, 6px); }
  50% { transform: rotateY(5deg) rotateX(1.5deg) translate3d(3px, 0, 6px); }
}
@keyframes logoSheen {
  0% { background-position: 135% 0; opacity: 0; }
  6% { opacity: 0.9; }
  24% { background-position: -35% 0; opacity: 0; }
  100% { background-position: -35% 0; opacity: 0; }
}

/* ============================================================
   ENCABEZADOS DE SECCIÓN
   ============================================================ */
.section__header {
  margin-bottom: var(--space-md);
  max-width: 52rem;
}
.section__header::before {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal-bright), var(--teal-deep));
  margin-bottom: 1.15rem;
}

.section__title {
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
  text-wrap: balance;
}
.section__title--sm {
  font-size: var(--fs-title-sm);
  margin: var(--space-lg) 0 var(--space-sm);
}

.section__subtitle {
  color: var(--text-muted);
  font-size: 1.06rem;
  font-weight: 400;
  max-width: 40rem;
}

.lead {
  max-width: var(--measure);
  font-size: var(--fs-lead);
  line-height: 1.78;
  color: var(--text-soft);
}
.lead--close {
  color: var(--text);
  font-weight: 500;
  margin-top: 0.2rem;
}

.mini-label {
  margin: var(--space-sm) 0 0.7rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--teal-bright);
  max-width: var(--measure);
}

.tag-line {
  margin-top: var(--space-sm);
  padding-left: 1rem;
  border-left: 2px solid var(--line-teal);
  color: var(--text-soft);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  max-width: 34rem;
}

.slide__foot {
  margin-top: var(--space-sm);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.dots {
  list-style: none;
  margin: 0.5rem 0 0;
  max-width: var(--measure);
}
.dots li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
  color: var(--text-soft);
}
.dots li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(47, 181, 196, 0.12);
}

/* ============================================================
   PÍLDORAS / CHIPS
   ============================================================ */
.pillar-row,
.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin-top: var(--space-md);
}
.service-chips { max-width: 40rem; }

.pillar,
.service-chips button {
  cursor: pointer;
  font-family: var(--font-display);
  border-radius: 999px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), transform 0.25s var(--ease);
}

.pillar {
  background: rgba(47, 181, 196, 0.06);
  border: 1px solid var(--line-teal);
  color: var(--teal-bright);
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.15rem;
  font-size: 0.92rem;
}
.pillar:hover,
.pillar:focus-visible {
  background: rgba(47, 181, 196, 0.16);
  border-color: var(--teal);
  color: #fff;
  transform: translateY(-2px);
}

.service-chips button {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-soft);
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}
.service-chips button:hover,
.service-chips button:focus-visible {
  border-color: var(--teal);
  background: rgba(47, 181, 196, 0.12);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   TARJETAS
   ============================================================ */
.grid { display: grid; gap: 1.15rem; }
.grid--3 { grid-template-columns: 1fr; }

.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 22px 45px -30px rgba(0, 0, 0, 0.9);
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-bright), transparent);
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-teal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 26px 55px -26px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(47, 181, 196, 0.14),
    0 18px 50px -20px rgba(47, 181, 196, 0.22);
}

.value-card h4 {
  font-size: 1.08rem;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 0.7rem;
  text-wrap: balance;
}
.value-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 0;
}

/* ============================================================
   POLÍTICAS
   ============================================================ */
.policy-list {
  list-style: none;
  display: grid;
  gap: 1.15rem;
  align-items: start;
}

.policy-card {
  position: relative;
  display: block;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal-deep);
  border-radius: var(--radius);
  padding: 1.7rem 3.2rem 1.7rem 1.9rem;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.policy-card::after {
  content: "";
  position: absolute;
  right: 1.6rem;
  top: 1.9rem;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--teal);
  border-right: 2px solid var(--teal);
  transform: rotate(45deg);
  opacity: 0.6;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.policy-card:hover,
.policy-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--line-teal);
  border-left-color: var(--teal);
  box-shadow: 0 22px 48px -26px rgba(0, 0, 0, 0.9),
    0 12px 40px -18px rgba(47, 181, 196, 0.2);
}
.policy-card:hover::after,
.policy-card:focus-visible::after { transform: rotate(45deg) translate(2px, -2px); opacity: 1; }

.policy-card__code {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 0.5rem;
}
.policy-card__heading {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.005em;
  color: #fff;
  margin: 0 0 0.4rem;
}
.policy-card__desc {
  display: block;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ============================================================
   CERTIFICACIONES — chips tipográficas uniformes
   ============================================================ */
.cert-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: var(--space-md);
}

.cert-item {
  cursor: pointer;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  min-height: 150px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.85rem;
  padding: 1.6rem 1rem;
  text-align: center;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.cert-item:hover,
.cert-item:focus-visible {
  transform: translateY(-5px);
  border-color: var(--line-teal);
  box-shadow: 0 20px 45px -24px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(47, 181, 196, 0.14);
}
.cert-item__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  color: #fff;
}
.cert-item__name {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  max-width: 22ch;
  line-height: 1.5;
}
.cert-item::after {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal-deep);
  transition: width 0.3s var(--ease), background 0.3s var(--ease);
}
.cert-item:hover::after { width: 40px; background: var(--teal); }

/* ============================================================
   SECCIONES CON FOTOGRAFÍA — grado unificado, atmósfera oscura
   ============================================================ */
.slide--photo { padding-block: clamp(4.5rem, 3rem + 7vw, 8.5rem); }

.slide--photo .container {
  max-width: 620px;
  margin-left: max(1.5rem, calc((100% - var(--container)) / 2));
  margin-right: auto;
}
.slide--photo .section__title { color: var(--teal-bright); }
.slide--photo .lead { color: var(--text); }

.slide-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.slide-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% center;
  filter: brightness(0.5) contrast(1.08) saturate(0.9);
}
.slide-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 4%, rgba(5, 6, 7, 0.9) 30%, rgba(7, 20, 23, 0.35) 62%, rgba(5, 6, 7, 0.7) 100%),
    linear-gradient(180deg, rgba(5, 6, 7, 0.5) 0%, transparent 30%, rgba(0, 0, 0, 0.55) 100%),
    radial-gradient(70% 60% at 72% 42%, rgba(47, 181, 196, 0.10), transparent 70%);
  pointer-events: none;
}

/* recorte-silueta ya matteado y aclarado (soldadura, obras) — la foto ES el sujeto */
.slide--photo-cut .slide-photo img {
  object-fit: contain;
  object-position: right bottom;
  filter: brightness(1.16) contrast(1.02) saturate(1.03);
}
.slide--photo-cut .slide-photo::after {
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(5, 6, 7, 0.8) 22%, transparent 50%),
    linear-gradient(180deg, transparent 74%, rgba(0, 0, 0, 0.42) 100%);
}
@media (max-width: 719px) {
  .slide__media--cutout img { max-width: 100%; max-height: 320px; }
  .slide--photo-cut .slide-photo img { object-position: center bottom; opacity: 0.72; }
  .slide--photo-cut .slide-photo::after {
    background: linear-gradient(180deg, rgba(5, 6, 7, 0.9) 0%, rgba(5, 6, 7, 0.62) 42%, rgba(5, 6, 7, 0.78) 100%);
  }
}

.slide__grid {
  display: grid;
  gap: var(--space-md) var(--space-lg);
  align-items: start;
}
.slide__grid .slide__media { align-self: center; margin-top: var(--space-md); }
.slide__copy .section__title { font-size: var(--fs-title-sm); }

.slide__media { margin: 0; position: relative; z-index: 1; }

/* recortes (retroexcavadora, camión) — anclados con sombra y "piso" */
.slide__media--cutout {
  display: grid;
  place-items: center;
  padding-bottom: 1rem;
}
.slide__media--cutout::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.1rem;
  width: 86%;
  height: 54px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 70%),
    radial-gradient(ellipse at center, rgba(47, 181, 196, 0.16), transparent 72%);
  filter: blur(9px);
}
.slide__media--cutout img {
  width: 100%;
  max-width: 112%;
  max-height: 460px;
  object-fit: contain;
  object-position: center bottom;
  filter: brightness(0.9) contrast(1.03) saturate(0.96)
    drop-shadow(0 26px 30px rgba(0, 0, 0, 0.72));
}

/* bloque de foto (mantenimiento) */
.slide__photo-block {
  margin: var(--space-md) auto 0;
  max-width: 560px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
}
.slide__photo-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.82) contrast(1.04) saturate(0.94);
}
.slide__photo-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.38) 100%),
    radial-gradient(90% 90% at 50% 42%, transparent 58%, rgba(0, 0, 0, 0.24) 100%);
  pointer-events: none;
}

/* grilla de fotos (AIB) */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  position: relative;
  z-index: 1;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  position: relative;
  z-index: 1;
  filter: brightness(0.82) contrast(1.03) saturate(0.95);
  transition: filter 0.35s var(--ease), transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .photo-grid img:hover,
  .photo-grid img:focus-visible {
    transform: scale(1.18);
    z-index: 6;
    filter: grayscale(0) brightness(1) contrast(1.03) saturate(1);
    border-color: var(--line-teal);
    box-shadow: 0 24px 55px -12px rgba(0, 0, 0, 0.85),
      0 0 0 1px rgba(47, 181, 196, 0.25);
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  isolation: isolate;
  padding-top: var(--space-lg);
  background: var(--bg-alt);
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(var(--container), calc(100% - 3rem));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line-teal), transparent);
}

.footer__inner {
  display: grid;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
}

.footer__logo { height: 54px; width: auto; margin-bottom: 0.4rem; }

.footer__kicker {
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 0.9rem;
}

.contact-list { list-style: none; }
.contact-list li { display: grid; gap: 0.28rem; margin-bottom: 1rem; }
.contact-list span:first-child {
  color: var(--text-faint);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.contact-list a { color: var(--text-soft); word-break: break-word; }
.contact-list a:hover,
.contact-list a:focus-visible { color: var(--teal-bright); }

.socials { display: flex; gap: 0.7rem; }
.social {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease), background 0.25s var(--ease);
}
.social svg { width: 18px; height: 18px; }
.social:hover {
  border-color: var(--teal);
  color: #fff;
  background: rgba(47, 181, 196, 0.12);
  transform: translateY(-3px);
}

.footer__bar {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 1.3rem 1.25rem 1.6rem;
}
.footer__copy {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.82rem;
  margin: 0;
}

/* ============================================================
   MODAL
   ============================================================ */
body.is-modal-open { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 9, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(84vh, 720px);
  overflow: auto;
  background: linear-gradient(180deg, #111a1c, #0a0d0e);
  border: 1px solid var(--line-teal);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(47, 181, 196, 0.06);
  padding: 2rem 1.9rem 1.85rem;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.3s var(--ease);
}
.modal.is-open .modal__dialog { transform: none; }

.modal__close {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.modal__close:hover,
.modal__close:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.06); }

.modal__kicker {
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 0.5rem;
}
.modal__dialog h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  color: #fff;
  margin-bottom: 0.6rem;
}
.modal__subtitle { color: var(--text-muted); margin-bottom: 1rem; }
.modal__dialog p, .modal__dialog li { color: var(--text-soft); }
.modal__dialog ul { margin: 0.5rem 0 0 1.1rem; }
.modal__dialog li { margin-bottom: 0.35rem; }

.modal__action { margin-top: 1.5rem; }
.modal__action a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--teal-bright);
  border-bottom: 1px solid var(--line-teal);
  padding-bottom: 3px;
  font-family: var(--font-display);
  font-size: 0.92rem;
}
.modal__action a::after { content: "\2192"; }
.modal__action a:hover,
.modal__action a:focus-visible { color: #fff; border-color: var(--teal); }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 720px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .policy-list { grid-template-columns: repeat(2, 1fr); }
  .slide__grid { grid-template-columns: 0.92fr 1.08fr; }
  .footer__inner {
    grid-template-columns: 1.2fr 1fr 0.8fr;
    align-items: start;
    gap: var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .cert-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 900px) {
  .slide--mantenimiento .slide__photo-block {
    max-width: 840px;
    aspect-ratio: 2 / 1;
    margin: var(--space-md) auto 0;
  }
}

@media (max-width: 719px) {
  .slide--photo .container { max-width: none; margin-inline: auto; }
  .slide-photo img { object-position: center 30%; }
  .slide-photo::after {
    background:
      linear-gradient(180deg, rgba(5, 6, 7, 0.82) 0%, rgba(5, 6, 7, 0.62) 45%, rgba(5, 6, 7, 0.78) 100%);
  }
  .wave--hero { height: 40vh; }
  .wave--undercurrent { height: 150px; }
  .hero__content { transform: translateY(-3vh); }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
