/* ═══════════════════════════════════════════════════════════
   IMPERPLAS · Home · v1.0
   ═══════════════════════════════════════════════════════════ */

/* Manrope como primaria (v6.17) — reemplaza Articulat CF DEMO que
   inyectaba watermark "DEMO" en glifos como el "+". */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* Normalización global anti-tildes-en-negrita (bug Articulat CF DEMO) */
html, body, * {
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ─── FONTS · Articulat CF ─── */
@font-face {
  font-family: 'Articulat CF';
  src: url('./fonts/ArticulatCF-Thin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Articulat CF';
  src: url('./fonts/ArticulatCF-ExtraLight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Articulat CF';
  src: url('./fonts/ArticulatCF-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Articulat CF';
  src: url('./fonts/ArticulatCF-LightOblique.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Articulat CF';
  src: url('./fonts/ArticulatCF-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Articulat CF';
  src: url('./fonts/ArticulatCF-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Articulat CF';
  src: url('./fonts/ArticulatCF-DemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Articulat CF';
  src: url('./fonts/ArticulatCF-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Articulat CF';
  src: url('./fonts/ArticulatCF-Heavy.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ─── TOKENS ─── */
:root {
  --navy-deep: #0C1B2E;
  --navy-800: #142438;
  --dust-blue: #7A97B5;
  --dust-blue-soft: #A8BFD4;
  --ivory: #F0EDE5;
  --white: #FFFFFF;
  --white-70: rgba(255, 255, 255, 0.7);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-15: rgba(255, 255, 255, 0.15);
  --white-05: rgba(255, 255, 255, 0.05);

  --font-primary: 'Manrope', 'Articulat CF', -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-hero: clamp(2.5rem, 5.5vw, 4.8rem);
  --fs-h1: clamp(2.5rem, 5vw, 4.5rem);
  --fs-h2: clamp(2rem, 4vw, 3.25rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.5rem);
  --fs-body: clamp(1rem, 1.15vw, 1.125rem);
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;

  --container: min(1440px, 92vw);
  --gutter: clamp(1.5rem, 4vw, 4rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ─── RESET ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: var(--white);
  color: var(--navy-deep);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

sup {
  font-size: 0.55em;
  vertical-align: super;
  position: relative;
  top: -0.2em;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 400ms var(--ease-out),
              backdrop-filter 400ms var(--ease-out),
              transform 350ms var(--ease-out),
              border-color 400ms var(--ease-out);
}

.nav__inner {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 0;
  gap: 32px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.nav__logo {
  width: auto;
  display: block;
  transition: opacity 400ms var(--ease-out);
}

.nav__logo--hero {
  height: 120px;
}

.nav__logo--solid {
  height: 132px;
  margin: -18px 0;
  display: none;
}

.nav--solid .nav__logo--hero {
  display: none;
}

.nav--solid .nav__logo--solid {
  display: block;
}

.nav__links {
  display: flex;
  gap: 48px;
  justify-self: center;
}

.nav__links a {
  font-weight: 400;
  font-size: 17px;
  color: var(--white-70);
  letter-spacing: 0.02em;
  transition: color 300ms var(--ease-out);
}

.nav__links a:hover {
  color: var(--white);
}

.nav__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__cta {
  display: inline-block;
  border: 1px solid var(--white-50);
  padding: 12px 30px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.05em;
  transition: background 300ms var(--ease-out), color 300ms var(--ease-out), border-color 300ms var(--ease-out);
}

.nav__cta:hover {
  background: var(--white);
  color: var(--navy-deep);
  border-color: var(--white);
}

.nav__burger {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 300ms var(--ease-out), opacity 300ms var(--ease-out);
}

.nav__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.nav__burger[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

.nav__overlay {
  position: fixed;
  inset: 0;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms var(--ease-out);
  z-index: 90;
}

.nav__overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav__overlay a {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: -0.01em;
}

/* Nav estado glass claro (después del hero) */
.nav--solid {
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom-color: rgba(12, 27, 46, 0.06);
}

.nav--solid .nav__links a {
  color: var(--navy-deep);
}

.nav--solid .nav__links a {
  opacity: 0.7;
}

.nav--solid .nav__links a:hover {
  opacity: 1;
}

.nav--solid .nav__cta {
  color: var(--navy-deep);
  border-color: var(--navy-deep);
}

.nav--solid .nav__cta:hover {
  background: var(--navy-deep);
  color: var(--white);
  border-color: var(--navy-deep);
}

.nav--solid .nav__burger span {
  background: var(--navy-deep);
}

/* Nav oculto por dirección de scroll */
.nav--hidden {
  transform: translateY(-100%);
}

/* ═══════════════════════════════════════════════════════════
   HERO · v3 editorial (right-aligned, sin CTAs)
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  background-image: url('./BANNERIMPERPLASTHERO.PNG');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(180px, 20vh, 240px) clamp(2rem, 6vw, 6rem) 0;
  overflow: hidden;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12, 27, 46, 0.25) 0%, rgba(12, 27, 46, 0.55) 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  text-align: center;
  margin-inline: auto;
}

.hero__eyebrow {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--white-70);
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: var(--fs-hero);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0;
}

.hero__title span {
  display: inline-block;
}

.hero__subline {
  position: absolute;
  right: clamp(2rem, 6vw, 6rem);
  bottom: clamp(140px, 18vh, 220px);
  z-index: 2;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.5;
  color: var(--white-70);
  max-width: 520px;
  text-align: right;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   TRAYECTORIA + LOOP DE LOGOS
   ═══════════════════════════════════════════════════════════ */
.trayectoria {
  position: relative;
  z-index: 2;
  background: var(--white);
  padding: 120px 0;
  overflow: hidden;
}

.trayectoria__label {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--dust-blue);
  margin-bottom: 32px;
  text-align: center;
}

.trayectoria__title {
  font-weight: 300;
  font-size: var(--fs-h2);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy-deep);
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
}

.trayectoria__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.trayectoria__title .line__inner {
  display: block;
  will-change: transform;
}

.trayectoria__logos {
  margin-top: 80px;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.trayectoria__track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  will-change: transform;
}

/* ═══════════════════════════════════════════════════════════
   LOGOS EN LOOP · Contenedor uniforme + object-fit contain
   Todos los logos ocupan el mismo espacio visual
   ═══════════════════════════════════════════════════════════ */
.trayectoria__logo {
  width: 240px !important;
  height: 150px !important;
  min-width: 240px !important;
  max-width: 240px !important;
  min-height: 150px !important;
  max-height: 150px !important;
  padding: 8px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: inherit !important;
  font-size: inherit !important;
  letter-spacing: 0 !important;
  box-sizing: border-box !important;
}

.trayectoria__logo img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  filter: brightness(0) opacity(0.55) !important;
  transition: filter 500ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.trayectoria__logo:hover img {
  filter: brightness(0) opacity(0.85) !important;
}

/* Excepción: el logo de Abril tiene un escudo con detalles internos
   (rayas amarillo/verde + texto ABRIL) que con brightness(0) colapsan
   en una silueta amorfa. grayscale respeta detalles internos. */
.trayectoria__logo img[src*="Abril"] {
  filter: grayscale(1) contrast(1.1) opacity(0.75) !important;
}
.trayectoria__logo:hover img[src*="Abril"] {
  filter: grayscale(1) contrast(1.1) opacity(1) !important;
}

/* Excepción: el logo de Campos de Roca queda desproporcionadamente
   grande dentro del box uniforme; se achica al 72% para balancear. */
.trayectoria__logo img[src*="Campos"] {
  max-width: 72% !important;
  max-height: 72% !important;
}

/* Excepción: el logo de Puertos (texto ancho) domina la banda; se achica. */
.trayectoria__logo img[src*="Puertos"] {
  max-width: 78% !important;
  max-height: 78% !important;
}

/* ═══════════════════════════════════════════════════════════
   SECCIÓN IMPERMEABILIZACIÓN · imagen full-bleed + grano + jerarquía premium
   ═══════════════════════════════════════════════════════════ */
.impermeabilizacion {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 88vh;
  min-height: 720px;
  max-height: 920px;
  background-color: var(--navy-deep);
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.impermeabilizacion__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  z-index: 1;
}

.impermeabilizacion__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
  padding: 0;
}

.impermeabilizacion__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.08) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Grano cinematográfico sobre la imagen */
.impermeabilizacion__grain {
  position: absolute;
  inset: -20%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='320' height='320' filter='url(%23n)'/></svg>");
  background-size: 320px 320px;
}

/* Barra vertical acento de acero */
.impermeabilizacion__marker {
  position: absolute;
  top: 50%;
  right: calc(50% - 1px);
  transform: translateY(-50%);
  width: 1px;
  height: 40%;
  background: linear-gradient(to bottom, transparent 0%, rgba(122, 151, 181, 0.5) 30%, rgba(122, 151, 181, 0.5) 70%, transparent 100%);
  z-index: 4;
  display: none;
}

.impermeabilizacion__content {
  position: relative;
  z-index: 5;
  padding: clamp(3rem, 5vw, 5rem) clamp(2rem, 4vw, 4.5rem) clamp(9rem, 12vw, 12rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 18px;
  width: 100%;
  max-width: 1100px;
  height: 100%;
  text-shadow: none;
}

.impermeabilizacion__label {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--dust-blue);
  text-transform: uppercase;
}

.impermeabilizacion__title {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.2vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  text-transform: none;
  margin: 0;
}

.impermeabilizacion__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.impermeabilizacion__title .line__inner {
  display: block;
  will-change: transform;
}

.impermeabilizacion__desc {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  line-height: 1.55;
  color: var(--white-70);
  margin: 0;
}

.impermeabilizacion__stats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 28px clamp(2rem, 5vw, 6rem);
  background: var(--white);
  border-top: 1px solid rgba(12, 27, 46, 0.06);
  border-bottom: 1px solid rgba(12, 27, 46, 0.08);
  box-shadow: 0 1px 0 0 rgba(12, 27, 46, 0.04);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 clamp(1rem, 2vw, 2rem);
  border-left: 1px solid rgba(12, 27, 46, 0.1);
}

.stat:first-child {
  border-left: none;
  padding-left: 0;
}

.stat__prefix {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--dust-blue);
  text-transform: uppercase;
  line-height: 1;
  min-height: 1em;
}

.stat__num {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  line-height: 1;
  color: var(--navy-deep);
  letter-spacing: -0.015em;
  margin-top: 4px;
}

.stat__label {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 10.5px;
  color: var(--dust-blue);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.impermeabilizacion__lead {
  font-family: var(--font-primary);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.15rem, 1.7vw, 1.6rem);
  line-height: 1.25;
  color: var(--navy-800);
  opacity: 0.92;
  margin: -12px 0 0;
  max-width: 700px;
  text-shadow: none;
}

.impermeabilizacion__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  color: var(--white);
  background: var(--dust-blue);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 18px 40px;
  border-radius: 999px;
  align-self: center;
  transition: background 300ms var(--ease-out), color 300ms var(--ease-out), transform 300ms var(--ease-out);
  margin-top: 0;
  text-shadow: none;
  box-shadow: 0 8px 24px rgba(12, 27, 46, 0.12);
}

.impermeabilizacion__cta:hover {
  background: var(--navy-deep);
  color: var(--white);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .impermeabilizacion {
    display: block;
    height: auto;
    min-height: auto;
    max-height: none;
    background-color: var(--white);
  }
  .impermeabilizacion__media {
    position: relative;
    height: 45vh;
    min-height: 320px;
  }
  .impermeabilizacion__content {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 40px 24px 32px;
    gap: 14px;
    height: auto;
    text-shadow: none;
  }
  .impermeabilizacion__stats {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px 24px 32px;
    background: var(--white);
    border-top: 1px solid rgba(12, 27, 46, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .stat {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 0;
    border-left: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   NOTAS · Dos cards editoriales
   ═══════════════════════════════════════════════════════════ */
.notas {
  position: relative;
  z-index: 2;
  background: var(--white);
  padding: 140px 0 140px;
}

.notas__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.notas__card {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
  will-change: transform;
}

.notas__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--ease-out), filter 700ms var(--ease-out), opacity 500ms var(--ease-out);
}

.notas__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 27, 46, 0.55) 0%, rgba(12, 27, 46, 0.18) 32%, transparent 55%);
  pointer-events: none;
  transition: opacity 400ms var(--ease-out);
  z-index: 1;
}

.notas__darken {
  position: absolute;
  inset: 0;
  background: rgba(12, 27, 46, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms var(--ease-out);
  z-index: 2;
}

.notas__title {
  position: absolute;
  top: clamp(24px, 3vw, 40px);
  left: clamp(24px, 3vw, 40px);
  right: clamp(24px, 3vw, 40px);
  z-index: 2;
  font-weight: 300;
  font-size: clamp(1.5rem, 2.2vw, 2.15rem);
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.015em;
  margin: 0;
  transition: opacity 350ms var(--ease-out), transform 400ms var(--ease-out);
}

.notas__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 27, 46, 0.55) 45%, rgba(12, 27, 46, 0.85) 100%);
  padding: clamp(48px, 5vw, 72px) clamp(32px, 4vw, 56px) clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
  transition: opacity 500ms var(--ease-out), transform 800ms var(--ease-out);
}

.notas__card:hover .notas__img,
.notas__card:focus-visible .notas__img { transform: scale(1.05); filter: blur(6px) brightness(0.9); }
.notas__card:hover .notas__darken,
.notas__card:focus-visible .notas__darken { opacity: 1; }
.notas__card:hover .notas__scrim,
.notas__card:focus-visible .notas__scrim { opacity: 0; }
.notas__card:hover .notas__title,
.notas__card:focus-visible .notas__title { transform: translateY(6px); }
.notas__card:hover .notas__info,
.notas__card:focus-visible .notas__info { opacity: 1; transform: translateY(0); pointer-events: auto; }

.notas__tag {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--dust-blue-soft);
  margin: 0;
}

.notas__desc {
  max-width: 100%;
  font-weight: 400;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

.notas__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--white);
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  transition: color 300ms var(--ease-out);
}

.notas__cta:hover {
  color: var(--dust-blue-soft);
}

/* ═══════════════════════════════════════════════════════════
   NOTAS MODAL · editorial popup
   ═══════════════════════════════════════════════════════════ */
.notas-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 64px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms var(--ease-out);
}

.notas-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.notas-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 27, 46, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: pointer;
}

.notas-modal__close {
  position: absolute;
  top: clamp(20px, 3vw, 40px);
  right: clamp(20px, 3vw, 40px);
  z-index: 3;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 300ms var(--ease-out), transform 300ms var(--ease-out);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.notas-modal__close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.05);
}

.notas-modal__stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  width: min(1200px, 100%);
  max-height: 84vh;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  transform: translateY(24px) scale(0.98);
  transition: transform 600ms var(--ease-out);
}

.notas-modal.is-open .notas-modal__stage {
  transform: translateY(0) scale(1);
}

.notas-modal__figure {
  margin: 0;
  overflow: hidden;
  background: rgba(12, 27, 46, 0.06);
  max-height: 84vh;
}

.notas-modal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.notas-modal__body {
  padding: clamp(32px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  overflow-y: auto;
  max-height: 84vh;
}

.notas-modal__tag {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--dust-blue);
  text-transform: uppercase;
  margin: 0;
}

.notas-modal__title {
  font-weight: 300;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  margin: 0;
}

.notas-modal__desc {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(12, 27, 46, 0.72);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

.notas-modal__desc p {
  margin: 0;
}

@media (max-width: 768px) {
  .notas-modal__stage {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }
  .notas-modal__figure {
    max-height: 40vh;
    aspect-ratio: 16 / 10;
  }
  .notas-modal__body {
    max-height: none;
    overflow: visible;
  }
}

/* Mobile: mostrar info abajo (no overlay), altura auto */
@media (max-width: 768px) {
  .notas__card {
    position: relative;
    aspect-ratio: auto;
    background: transparent;
    display: flex;
    flex-direction: column;
    cursor: default;
  }
  .notas__img {
    position: relative;
    inset: auto;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
  }
  .notas__scrim { display: none; }
  .notas__title {
    position: static;
    color: var(--navy-deep);
    margin-top: 20px;
    padding: 0;
  }
  .notas__info {
    position: static;
    inset: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    padding: 12px 0 0;
    background: transparent;
    gap: 12px;
  }
}

/* ═══════════════════════════════════════════════════════════
   FRANJA DIVISORIA · patrón náutico + parallax
   ═══════════════════════════════════════════════════════════ */
.patron-banda {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 120px;
  background-color: var(--navy-deep);
  overflow: hidden;
}

.patron-banda__track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 200%;
  background-image: url('./patron-nautico.png');
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: 0 center;
  will-change: transform;
}

@media (max-width: 768px) {
  .patron-banda {
    height: 80px;
  }
}

/* ═══════════════════════════════════════════════════════════
   GALERÍA · Carrusel editorial B&N (v2 · ivory + blur lateral)
   ═══════════════════════════════════════════════════════════ */
.galeria {
  position: relative;
  z-index: 2;
  background: var(--white);
  padding: 140px 0 140px;
  overflow: hidden;
}

.galeria__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding-bottom: 80px;
}

.galeria__intro {
  text-align: left;
  max-width: 900px;
}

.galeria__nav {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.galeria__arrow {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(12, 27, 46, 0.18);
  background: transparent;
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 300ms var(--ease-out), color 300ms var(--ease-out), border-color 300ms var(--ease-out), transform 300ms var(--ease-out);
}

.galeria__arrow:hover:not(:disabled) {
  background: var(--navy-deep);
  color: var(--white);
  border-color: var(--navy-deep);
}

.galeria__arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.galeria__arrow svg {
  display: block;
}

.galeria__title {
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  margin: 0;
}

.galeria__dots {
  color: var(--dust-blue);
  font-weight: inherit;
}

.galeria__subtitle {
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: rgba(12, 27, 46, 0.55);
  margin-top: 20px;
  letter-spacing: 0.01em;
}

.galeria__viewport {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.galeria__track {
  display: flex;
  gap: 24px;
  width: max-content;
  will-change: transform;
}

.galeria__foto {
  flex: none;
  height: 340px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(12, 27, 46, 0.04);
  filter: grayscale(1) blur(0);
  transition: filter 100ms linear, opacity 100ms linear;
  will-change: filter, opacity;
}

.galeria__foto img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}

.foto--h {
  aspect-ratio: 3 / 2;
}

.foto--v {
  aspect-ratio: 3 / 4;
}

/* ═══════════════════════════════════════════════════════════
   SECCIÓN FAQ · Accordion editorial premium (v3.8)
   ═══════════════════════════════════════════════════════════ */
.faq {
  position: relative;
  z-index: 2;
  background-color: var(--white);
  padding: clamp(6rem, 12vw, 10rem) 0;
  color: var(--navy-deep);
}

.faq__inner {
  width: var(--container);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.faq__intro {
  text-align: center;
  margin-bottom: clamp(4rem, 7vw, 6rem);
}

.faq__label {
  display: block;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--dust-blue);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.faq__title {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  margin: 0;
}

.faq__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.faq__title .line__inner {
  display: block;
  will-change: transform;
}

.faq__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(12, 27, 46, 0.1);
}

.faq__item {
  border-bottom: 1px solid rgba(12, 27, 46, 0.1);
  will-change: transform;
}

.faq__question {
  width: 100%;
  background: none;
  border: none;
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  cursor: pointer;
  font-family: var(--font-primary);
  color: var(--navy-deep);
  text-align: left;
  transition: color 300ms var(--ease-out);
}

.faq__question:hover {
  color: var(--dust-blue);
}

.faq__q-text {
  font-weight: 400;
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  line-height: 1.35;
  letter-spacing: -0.005em;
  flex: 1;
}

.faq__q-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
  color: currentColor;
}

.faq__q-icon::before,
.faq__q-icon::after {
  content: '';
  position: absolute;
  background-color: currentColor;
  top: 50%;
  left: 50%;
  transition: transform 500ms cubic-bezier(0.65, 0, 0.35, 1),
              opacity 400ms cubic-bezier(0.65, 0, 0.35, 1);
}

.faq__q-icon::before {
  width: 100%;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.faq__q-icon::after {
  width: 1.5px;
  height: 100%;
  transform: translate(-50%, -50%);
}

.faq__item.is-open .faq__q-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq__answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.faq__item.is-open .faq__answer-wrap {
  grid-template-rows: 1fr;
}

.faq__answer {
  overflow: hidden;
}

.faq__answer p {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  line-height: 1.7;
  color: rgba(12, 27, 46, 0.72);
  margin: 0 0 16px 0;
  max-width: 780px;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(16px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
              filter 600ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.faq__answer p:first-child {
  padding-top: 8px;
}

.faq__answer p:last-child {
  padding-bottom: 40px;
}

.faq__item.is-open .faq__answer p {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.faq__item.is-open .faq__answer p:nth-child(1) { transition-delay: 350ms; }
.faq__item.is-open .faq__answer p:nth-child(2) { transition-delay: 450ms; }
.faq__item.is-open .faq__answer p:nth-child(3) { transition-delay: 550ms; }

.faq__all {
  display: inline-block;
  margin-top: clamp(3rem, 5vw, 4.5rem);
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy-deep);
  text-decoration: none;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--navy-deep);
  transition: color 300ms var(--ease-out), border-color 300ms var(--ease-out), padding 300ms var(--ease-out);
}

.faq__all:hover {
  color: var(--dust-blue);
  border-bottom-color: var(--dust-blue);
  padding-left: 8px;
}

@media (max-width: 768px) {
  .faq {
    padding: 80px 0;
  }
  .faq__question {
    padding: 24px 0;
    gap: 20px;
  }
  .faq__q-text {
    font-size: 1rem;
  }
  .faq__q-icon {
    width: 20px;
    height: 20px;
  }
  .faq__answer p {
    font-size: 0.95rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER v3.3 · Retool-style
   ═══════════════════════════════════════════════════════════ */
.footer {
  background-color: var(--navy-deep);
  color: var(--white);
  padding: 100px 0 40px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.footer__inner {
  width: var(--container);
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 60px;
  padding-bottom: 100px;
}

.footer__col--cta {
  align-items: flex-start;
  text-align: left;
  padding-left: 0;
}

.footer__col {
  display: flex;
  flex-direction: column;
}

.footer__label {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--dust-blue);
  text-transform: uppercase;
  margin-bottom: 32px;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__link {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  color: var(--white);
  text-decoration: none;
  transition: color 250ms var(--ease-out), opacity 250ms var(--ease-out);
  opacity: 0.85;
}

.footer__link:hover {
  color: var(--dust-blue);
  opacity: 1;
}

.footer__col--cta {
  gap: 24px;
}

.footer__ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 280px;
  margin-top: 8px;
}

.footer__cta {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 14px;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
  letter-spacing: 0.03em;
  transition: all 300ms var(--ease-out);
  display: inline-block;
  border: 1px solid transparent;
  cursor: pointer;
  width: 100%;
}

.footer__list--social {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.footer__cta--primary {
  background-color: var(--white);
  color: var(--navy-deep);
}

.footer__cta--primary:hover {
  background-color: var(--dust-blue);
  color: var(--navy-deep);
}

.footer__cta--secondary {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.footer__cta--secondary:hover {
  border-color: var(--white);
  background-color: rgba(255, 255, 255, 0.05);
}

.footer__legal {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.footer__legal-link {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 12px;
  color: var(--white-50);
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 250ms var(--ease-out);
}

.footer__legal-link:hover {
  color: var(--white);
}

/* Isotipo centrado con líneas divisorias */
.footer__mark {
  width: 100%;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer__mark-img {
  height: 340px;
  margin: -90px 0;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-top: 40px;
  align-items: center;
}

.footer__copy {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 13px;
  color: var(--white-50);
  margin: 0;
}

.footer__credit {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 13px;
  color: var(--white-50);
  margin: 0;
  text-align: right;
}

.footer__credit-link {
  color: var(--dust-blue);
  text-decoration: none;
  transition: color 250ms var(--ease-out);
}

.footer__credit-link:hover {
  color: var(--white);
}

/* ═══════════════════════════════════════════════════════════
   MOBILE (≤ 768px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav__inner {
    grid-template-columns: 1fr auto;
    padding: 20px 0;
  }

  .nav__logo--hero {
    height: 52px;
  }
  .nav__logo--solid {
    height: 36px;
  }

  .nav__links {
    display: none;
  }

  .nav__cta {
    padding: 10px 22px;
    font-size: 13px;
  }

  .nav__burger {
    display: flex;
  }

  .hero {
    justify-content: center;
    padding: 0 24px;
  }

  .hero__inner {
    max-width: 100%;
    text-align: center;
  }

  .hero__title {
    font-size: clamp(2.25rem, 10vw, 3.25rem);
  }

  .hero__subline {
    font-size: 15px;
    margin: 0 auto;
  }

  .hero::after {
    background: linear-gradient(to bottom, rgba(12, 27, 46, 0.3) 0%, rgba(12, 27, 46, 0.7) 100%);
  }

  .trayectoria {
    padding: 90px 0;
  }

  .trayectoria__logo {
    width: 160px !important;
    height: 100px !important;
    min-width: 160px !important;
    max-width: 160px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    padding: 6px 12px !important;
  }

  /* Mobile-only: agrandar apenas estos logos que se ven chicos en el box uniforme */
  .trayectoria__logo img[src*="Abril"],
  .trayectoria__logo img[src*="Santa Barbara"],
  .trayectoria__logo img[src*="San Isidro"],
  .trayectoria__logo img[src*="Golf Club"],
  .trayectoria__logo img[src*="Naudir"],
  .trayectoria__logo img[src*="Miralagos"] {
    transform: scale(1.28);
    transform-origin: center center;
  }

  .notas {
    padding: 90px 0;
  }

  .notas__grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .notas__title {
    font-size: 1.75rem;
  }

  .galeria {
    padding: 90px 0;
  }

  .galeria__foto {
    height: 320px;
  }

  .galeria__viewport {
    margin-top: 48px;
  }

  .galeria__track {
    gap: 12px;
  }

}

@media (max-width: 900px) {
  .footer {
    padding: 80px 0 32px;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px 32px;
    padding-bottom: 60px;
  }
  .footer__col--cta {
    grid-column: 1 / -1;
    max-width: 100%;
    align-items: flex-start;
  }
  .footer__ctas {
    flex-direction: row;
    max-width: 100%;
    gap: 12px;
  }
  .footer__cta {
    flex: 1;
  }
  .footer__wordmark {
    padding: 20px 0 40px;
  }
  .footer__wordmark-text {
    font-size: clamp(3.5rem, 24vw, 10rem);
  }
  .footer__bottom {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
  }
  .footer__credit {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer__ctas {
    flex-direction: column;
  }
  .footer__legal {
    flex-direction: row;
    gap: 24px;
  }
  .galeria__foto {
    height: 240px;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .galeria__foto {
    height: 400px;
  }
}

/* ═══════════════════════════════════════════════════════════ */
/* BOTÓN FLOTANTE WHATSAPP · Global en todas las páginas       */
/* ═══════════════════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: clamp(20px, 3vw, 32px);
  right: clamp(20px, 3vw, 32px);
  z-index: 200;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background-color: var(--dust-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-decoration: none;
  box-shadow: 0 8px 24px -6px rgba(122, 151, 181, 0.55),
              0 4px 12px -4px rgba(12, 27, 46, 0.2);
  transition: width 500ms cubic-bezier(0.16, 1, 0.3, 1),
              gap 500ms cubic-bezier(0.16, 1, 0.3, 1),
              padding 500ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 400ms var(--ease-out),
              background-color 400ms var(--ease-out),
              transform 400ms var(--ease-out);
  overflow: hidden;
  white-space: nowrap;
  will-change: transform, width;
  padding: 0;
}
.wa-float__icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  transition: transform 400ms var(--ease-out);
}
.wa-float__label {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  max-width: 0;
  opacity: 0;
  transition: max-width 500ms cubic-bezier(0.16, 1, 0.3, 1),
              opacity 300ms var(--ease-out);
}
.wa-float:hover {
  width: 200px;
  gap: 12px;
  padding: 0 24px;
  background-color: #6A8AA8;
  box-shadow: 0 12px 32px -6px rgba(122, 151, 181, 0.7),
              0 6px 16px -4px rgba(12, 27, 46, 0.28);
  transform: translateY(-2px);
}
.wa-float:hover .wa-float__label { max-width: 200px; opacity: 1; }
.wa-float:hover .wa-float__icon { transform: scale(1.05); }

@keyframes wa-pulse {
  0%, 100% {
    box-shadow: 0 8px 24px -6px rgba(122, 151, 181, 0.55),
                0 4px 12px -4px rgba(12, 27, 46, 0.2),
                0 0 0 0 rgba(122, 151, 181, 0.4);
  }
  50% {
    box-shadow: 0 8px 24px -6px rgba(122, 151, 181, 0.55),
                0 4px 12px -4px rgba(12, 27, 46, 0.2),
                0 0 0 14px rgba(122, 151, 181, 0);
  }
}
.wa-float:not(:hover) {
  animation: wa-pulse 2.8s ease-out infinite;
}

@media (max-width: 768px) {
  .wa-float { width: 56px; height: 56px; bottom: 20px; right: 20px; }
  .wa-float__icon { width: 26px; height: 26px; }
  .wa-float:hover { width: 56px; padding: 0; gap: 0; transform: scale(1.05); }
  .wa-float:hover .wa-float__label { max-width: 0; opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   v7.2 · MOBILE FIXES DEL HOME (navbar, hero, banner sistema,
   notas modal, galería flechas, FAQ). Overrides al final para
   pisar reglas mobile previas.
   ═══════════════════════════════════════════════════════════ */

/* ── NAVBAR MOBILE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav__inner { padding: 4px 20px !important; }
  .nav__logo--hero { height: 96px !important; margin: -16px 0 !important; }
  .nav__logo--solid { height: 96px !important; margin: -16px 0 !important; }
  .nav__cta { display: none !important; }

  .nav__burger {
    display: block !important;
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    cursor: pointer;
    position: relative;
    z-index: 210;
    color: var(--white);
  }
  .nav--solid .nav__burger { color: var(--navy-deep); }

  .nav__burger span {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 1.5px;
    background: currentColor;
    transform: translateX(-50%);
    transform-origin: center center;
    transition: top 250ms var(--ease-out),
                transform 300ms var(--ease-out),
                opacity 200ms var(--ease-out),
                background 300ms var(--ease-out);
  }
  .nav__burger span:nth-child(1) { top: 15px; }
  .nav__burger span:nth-child(2) { top: 21px; }
  .nav__burger span:nth-child(3) { top: 27px; }

  .nav__burger.is-open { color: var(--white); }
  .nav__burger.is-open span { background: var(--white); }
  .nav__burger.is-open span:nth-child(1) { top: 21px; transform: translateX(-50%) rotate(45deg); }
  .nav__burger.is-open span:nth-child(2) { opacity: 0; }
  .nav__burger.is-open span:nth-child(3) { top: 21px; transform: translateX(-50%) rotate(-45deg); }

  .nav__overlay {
    position: fixed;
    inset: 0;
    background: var(--navy-deep) !important;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 600ms var(--ease-out);
    gap: 0;
  }
  .nav__overlay.is-open { opacity: 1; pointer-events: auto; }
  .nav__overlay-inner {
    width: 100%;
    max-width: 500px;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .nav__overlay-link {
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: 28px;
    color: var(--white) !important;
    text-decoration: none;
    letter-spacing: -0.01em;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    transition: color 300ms var(--ease-out), padding-left 300ms var(--ease-out);
  }
  .nav__overlay-link:first-child { border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .nav__overlay.is-open .nav__overlay-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 700ms var(--ease-out),
                transform 800ms var(--ease-out),
                color 300ms var(--ease-out),
                padding-left 300ms var(--ease-out);
  }
  .nav__overlay.is-open .nav__overlay-link:nth-child(1) { transition-delay: 200ms; }
  .nav__overlay.is-open .nav__overlay-link:nth-child(2) { transition-delay: 260ms; }
  .nav__overlay.is-open .nav__overlay-link:nth-child(3) { transition-delay: 320ms; }
  .nav__overlay.is-open .nav__overlay-link:nth-child(4) { transition-delay: 380ms; }
  .nav__overlay.is-open .nav__overlay-link:nth-child(5) { transition-delay: 440ms; }
  .nav__overlay.is-open .nav__overlay-link:nth-child(6) { transition-delay: 500ms; }
  .nav__overlay.is-open .nav__overlay-cta { transition-delay: 560ms; }
  .nav__overlay-link:hover,
  .nav__overlay-link:active {
    color: var(--dust-blue) !important;
    padding-left: 8px;
  }
  .nav__overlay-cta {
    display: inline-block;
    margin-top: 32px;
    padding: 16px 28px;
    border-radius: 999px;
    background: var(--dust-blue);
    color: var(--navy-deep) !important;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out);
  }
  .nav__overlay.is-open .nav__overlay-cta { opacity: 1; transform: translateY(0); }
}

/* ── HERO MOBILE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    padding-top: 110px !important;
    padding-bottom: 40px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    min-height: 100vh !important;
  }
  .hero__inner {
    max-width: 100% !important;
    text-align: center !important;
    padding: 0 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 18px !important;
    margin-top: 64px !important;
  }
  .hero__eyebrow {
    order: 1;
    margin-bottom: 10px !important;
    font-size: 13px !important;
    letter-spacing: 0.3em !important;
    text-align: center !important;
  }
  .hero__title {
    order: 2;
    font-size: clamp(2.15rem, 9.2vw, 2.95rem) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.025em !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    text-align: center !important;
    text-wrap: balance;
  }
  .hero__title span { white-space: nowrap; }
  .hero__subline {
    order: 3;
    font-size: 16px !important;
    line-height: 1.5 !important;
    max-width: 340px !important;
    margin: 8px auto 0 !important;
    text-align: center !important;
  }
}

/* ── BANNER SISTEMA IMPERPLAS MOBILE ───────────────────────── */
@media (max-width: 768px) {
  .impermeabilizacion {
    background-color: var(--navy-deep) !important;
    color: var(--white) !important;
    display: block !important;
    min-height: auto !important;
    position: relative !important;
    height: auto !important;
    overflow: hidden !important;
  }
  .impermeabilizacion__media {
    position: relative !important;
    width: 100% !important;
    height: 65vh !important;
    min-height: 480px !important;
    overflow: hidden !important;
  }
  .impermeabilizacion__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 8% center !important;
    filter: none !important;
  }
  .impermeabilizacion__media::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: rgba(12, 27, 46, 0.32) !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }
  .impermeabilizacion__grain { opacity: 0.06 !important; }
  .impermeabilizacion__content {
    position: absolute !important;
    inset: 0 !important;
    z-index: 5 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 60px 24px !important;
    max-width: 100% !important;
    gap: 16px !important;
    text-shadow: none !important;
  }
  .impermeabilizacion__title {
    color: var(--white) !important;
    font-size: clamp(1.85rem, 7.5vw, 2.6rem) !important;
    line-height: 1.08 !important;
    text-align: center !important;
    max-width: 100% !important;
  }
  .impermeabilizacion__title .line__inner { color: var(--white) !important; }
  .impermeabilizacion__lead {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    max-width: 320px !important;
  }
  .impermeabilizacion__cta {
    background: var(--dust-blue) !important;
    color: var(--white) !important;
    padding: 14px 30px !important;
    font-size: 12px !important;
    margin-top: 8px !important;
  }
  .impermeabilizacion__stats {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 0 !important;
    padding: 26px 12px !important;
    margin: 0 !important;
    background: var(--white) !important;
    border-top: 1px solid rgba(12, 27, 46, 0.08) !important;
    z-index: 3;
  }
  .stat {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 6px !important;
    padding: 6px 4px !important;
    border-left: none !important;
    border-right: 1px solid rgba(12, 27, 46, 0.1) !important;
  }
  .impermeabilizacion__stats .stat:last-child { border-right: none !important; }
  .stat__prefix {
    color: var(--dust-blue) !important;
    font-size: 9px !important;
    letter-spacing: 0.2em !important;
    line-height: 1 !important;
  }
  .stat__num {
    color: var(--navy-deep) !important;
    font-size: clamp(0.95rem, 4.2vw, 1.35rem) !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
  }
  .stat__label {
    color: rgba(12, 27, 46, 0.55) !important;
    font-size: 9px !important;
    letter-spacing: 0.14em !important;
    line-height: 1.2 !important;
  }
}

/* ── NOTAS + MODAL MOBILE ──────────────────────────────────── */
@media (max-width: 768px) {
  .notas { padding: 60px 20px !important; }
  .notas__grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .notas__card { max-width: 100% !important; margin: 0 !important; }

  .notas-modal__stage {
    grid-template-columns: 1fr !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
    background: var(--white) !important;
    border-radius: 12px !important;
  }
  .notas-modal__figure {
    max-height: 34vh !important;
    aspect-ratio: 16 / 10 !important;
    margin: 0 !important;
    background: rgba(12, 27, 46, 0.06) !important;
  }
  .notas-modal__body {
    padding: 32px 22px 32px !important;
    max-height: none !important;
    overflow: visible !important;
    gap: 14px !important;
    background: var(--white) !important;
    position: relative;
    z-index: 2;
  }
  .notas-modal__tag {
    color: var(--dust-blue) !important;
    margin: 0 !important;
  }
  .notas-modal__title {
    padding: 0 !important;
    font-size: clamp(1.55rem, 6.5vw, 2.05rem) !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    color: var(--navy-deep) !important;
    background: transparent !important;
  }
  .notas-modal__desc {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }
  .notas-modal__close {
    top: 12px !important;
    right: 12px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
    z-index: 10 !important;
    background: rgba(255, 255, 255, 0.85) !important;
    color: var(--navy-deep) !important;
    border: 1px solid rgba(12, 27, 46, 0.12) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

/* ── GALERÍA "EN PROCESO" · flechas mobile ─────────────────── */
@media (max-width: 768px) {
  .galeria__arrow {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-width: 1px !important;
  }
  .galeria__arrow svg {
    width: 16px !important;
    height: 16px !important;
  }
  .galeria__nav {
    gap: 10px !important;
  }
}

/* ── FAQ TITLE mobile · text-wrap balance ──────────────────── */
@media (max-width: 768px) {
  .faq { padding: 60px 20px !important; }
  .faq__title {
    font-size: clamp(1.55rem, 6vw, 2.25rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.015em !important;
    max-width: 100% !important;
    padding: 0 8px !important;
    text-wrap: balance;
  }
  .faq__title .line {
    display: block;
    text-align: center;
  }
  .faq__label {
    font-size: 10px !important;
    letter-spacing: 0.3em !important;
    margin-bottom: 20px !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   v7.8 · MENÚ HAMBURGER · Fix robusto anti-conflictos
   Aplica en todas las páginas (home + subpáginas). Overrides
   con z-index 10000+ y background sólido para que nada se
   filtre desde el contenido de la página.
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav__burger {
    display: block !important;
    background: none !important;
    border: none !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 10001 !important;
    color: var(--white) !important;
  }
  .nav--solid .nav__burger { color: var(--navy-deep) !important; }
  .nav__burger.is-open { color: var(--white) !important; }

  .nav__cta { display: none !important; }

  .nav__overlay {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background-color: var(--navy-deep) !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 10000 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 500ms var(--ease-out) !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .nav__overlay.is-open {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .nav__overlay-inner {
    width: 100% !important;
    max-width: 500px !important;
    padding: 0 32px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    background: transparent !important;
    position: relative !important;
    z-index: 1 !important;
  }
  .nav__overlay-link {
    font-family: var(--font-primary) !important;
    font-weight: 300 !important;
    font-size: 28px !important;
    color: var(--white) !important;
    text-decoration: none !important;
    letter-spacing: -0.01em !important;
    padding: 20px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: block !important;
    text-align: left !important;
    background: transparent !important;
    opacity: 0;
    transform: translateY(20px);
    transition: color 300ms var(--ease-out), padding-left 300ms var(--ease-out);
  }
  .nav__overlay-link:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  .nav__overlay.is-open .nav__overlay-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 700ms var(--ease-out),
                transform 800ms var(--ease-out),
                color 300ms var(--ease-out),
                padding-left 300ms var(--ease-out);
  }
  .nav__overlay.is-open .nav__overlay-link:nth-child(1) { transition-delay: 200ms; }
  .nav__overlay.is-open .nav__overlay-link:nth-child(2) { transition-delay: 260ms; }
  .nav__overlay.is-open .nav__overlay-link:nth-child(3) { transition-delay: 320ms; }
  .nav__overlay.is-open .nav__overlay-link:nth-child(4) { transition-delay: 380ms; }
  .nav__overlay.is-open .nav__overlay-link:nth-child(5) { transition-delay: 440ms; }
  .nav__overlay.is-open .nav__overlay-link:nth-child(6) { transition-delay: 500ms; }
  .nav__overlay-link:hover,
  .nav__overlay-link:active {
    color: var(--dust-blue) !important;
    padding-left: 8px !important;
  }

  body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
  }
}

@media (min-width: 901px) {
  .nav__overlay {
    display: none !important;
  }
  .nav__burger {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   v7.3 · scroll-margin-top para anchors del footer
   Compensa el navbar sticky al aterrizar en una sección.
   ═══════════════════════════════════════════════════════════ */
.s-nautica,
.s-proceso,
.s-colores,
#metodo,
#proceso,
#terminaciones,
#faqs,
#nosotros,
#contacto {
  scroll-margin-top: 100px;
}

@media (max-width: 768px) {
  .s-nautica,
  .s-proceso,
  .s-colores,
  #metodo,
  #proceso,
  #terminaciones,
  #faqs,
  #nosotros,
  #contacto {
    scroll-margin-top: 80px;
  }
}
