/* ============================================================
   TOKENS — Paleta de marca IMPATO (vino/burdeos + azul agua)
   ============================================================ */
:root {
  --white: #ffffff;
  --paper: #fbf9f7;
  --sand: #f3ede6;
  --sand-dark: #e7ddd1;
  --line: #e2d7c9;

  --ink: #241a1c;
  --ink-soft: #6a5c5e;

  --wine: #7a1e2b;
  --wine-dark: #5c1420;
  --wine-light: #9c3341;
  --wine-pale: #f6e9ea;

  --blue: #2f6fa3;
  --blue-dark: #234f75;
  --blue-light: #4f93c8;
  --blue-pale: #e7f0f7;

  --gold: #c08a3e;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;

  --container: 1240px;
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.5;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--wine);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.preloader__mark {
  opacity: 0;
  transform: translateY(14px) scale(.8);
}

.preloader__tag {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  opacity: 0;
  transform: translateY(8px);
  margin-top: -12px;
}

.preloader__bar {
  width: 220px;
  height: 2px;
  background: rgba(255,255,255,0.18);
  overflow: hidden;
}

.preloader__bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--blue-light);
}

.preloader__count {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   PARTICLES
   ============================================================ */
.particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .3s ease, color .3s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--wine);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(122,30,43,0.55);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -10px rgba(122,30,43,0.6); background: var(--wine-light); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--wine); background: var(--wine-pale); transform: translateY(-3px); }

.btn--sm { padding: 11px 22px; font-size: 13.5px; }
.btn--lg { padding: 18px 34px; font-size: 15.5px; }
.btn--block { width: 100%; }

.btn--whatsapp {
  background: #1f8a4c;
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(31,138,76,0.5);
}
.btn--whatsapp:hover { transform: translateY(-3px); background: #17703c; }
.btn--whatsapp svg { width: 18px; height: 18px; fill: currentColor; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--wine);
  border-bottom: 1.5px solid var(--wine);
  padding-bottom: 2px;
  transition: gap .3s var(--ease), color .3s ease;
}
.link-arrow:hover { gap: 14px; color: var(--blue); }
.link-arrow--sm { font-size: 13.5px; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-tag {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 14px;
}
.section-tag--blue { color: var(--blue); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  max-width: 760px;
}

.section-desc {
  margin-top: 18px;
  font-size: 16.5px;
  color: var(--ink-soft);
  max-width: 580px;
  line-height: 1.7;
}

.section-tag--center, .section-title--center, .section-desc--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}

.header.is-scrolled {
  padding: 13px 0;
  background: rgba(251,249,247,0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -14px rgba(36,26,28,0.2);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
}

/* Logotipo real transparente (PNG sin fondo). Se usa un halo blanco
   (drop-shadow) para que el texto oscuro se lea bien sobre fondos
   oscuros — header sobre el hero, preloader vino y footer — y se
   retira sobre el header claro al hacer scroll. */
.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .3s var(--ease);
}
.logo:hover .logo-badge { transform: translateY(-1px) scale(1.03); }

.logo-badge__img {
  display: block;
  height: 52px;
  width: auto;
  max-width: none;
}

/* Halo para legibilidad sobre fondos oscuros */
.header .logo-badge__img,
.preloader .logo-badge__img,
.footer .logo-badge__img {
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.95))
          drop-shadow(0 0 6px rgba(255,255,255,0.6));
}
/* Header claro (scroll): sombra suave en vez de halo */
.header.is-scrolled .logo-badge__img {
  filter: drop-shadow(0 2px 4px rgba(36,26,28,0.18));
}

.logo-badge--lg .logo-badge__img { height: 140px; }

.footer .logo-badge__img { height: 60px; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  position: relative;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  transition: color .3s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1.5px;
  background: var(--blue-light);
  transition: width .3s var(--ease);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after { width: 100%; }

.header.is-scrolled .nav__link { color: var(--ink-soft); }
.header.is-scrolled .nav__link:hover { color: var(--wine); }
.header.is-scrolled .nav__link::after { background: var(--wine); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__phone {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.header__phone-label {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  transition: color .4s var(--ease);
}
.header__phone-number {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--white);
  transition: color .4s var(--ease);
}
.header.is-scrolled .header__phone-label { color: var(--ink-soft); }
.header.is-scrolled .header__phone-number { color: var(--wine); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.menu-toggle span {
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, background .4s var(--ease);
}
.header.is-scrolled .menu-toggle span { background: var(--ink); }
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px 32px 40px;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
}
.mobile-menu.is-open { transform: translateY(0); }

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 30px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mobile-menu__link span {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--wine);
}

.mobile-menu__footer {
  display: flex;
  gap: 26px;
  font-weight: 600;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--wine-dark);
}

.hero__media { position: absolute; inset: 0; z-index: 0; }

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero__video-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(79,147,200,0.25), transparent 55%),
    linear-gradient(150deg, var(--wine) 0%, #4a1019 60%, #360b12 100%);
  z-index: -1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(92,20,32,0.4) 0%, rgba(54,11,18,0.7) 70%, rgba(40,8,13,0.86) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f0dede;
  margin-bottom: 26px;
}

.eyebrow__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 0 4px rgba(79,147,200,0.25);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6.4vw, 82px);
  line-height: 1.04;
  color: var(--white);
  max-width: 920px;
}
.hero__title em { font-style: italic; color: var(--blue-light); }

.reveal-line { display: block; overflow: hidden; }
.reveal-line__inner { display: block; will-change: transform; }

.hero__subtitle {
  margin-top: 28px;
  max-width: 580px;
  font-size: 17.5px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
}

.hero__actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero__actions .btn--ghost { color: var(--white); border-color: rgba(255,255,255,0.35); }
.hero__actions .btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.hero__stats {
  margin-top: 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
}

.hero__stat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px;
  position: relative;
  padding-left: 20px;
}
.hero__stat::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--blue-light);
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--white);
}
.hero__stat-suffix {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--blue-light);
}
.hero__stat-label {
  width: 100%;
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

.hero__scroll {
  position: absolute;
  bottom: 34px;
  left: 32px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 46px; height: 1px;
  background: rgba(255,255,255,0.4);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  left: -100%; top: 0; bottom: 0; width: 100%;
  background: var(--blue-light);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { left: -100%; }
  50% { left: 0; }
  100% { left: 100%; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  position: relative;
  z-index: 2;
  background: var(--ink);
  overflow: hidden;
  padding: 16px 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: marquee 34s linear infinite;
  white-space: nowrap;
}
.marquee__track span:not(.marquee__dot) {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--paper);
  padding: 0 4px;
}
.marquee__dot { color: var(--blue-light); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   INTRO
   ============================================================ */
.intro { padding: 130px 0; position: relative; z-index: 2; }

.intro__grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.intro__badges {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.intro__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 100px;
  background: var(--blue-pale);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 600;
}
.intro__badge svg { width: 15px; height: 15px; fill: none; stroke: var(--blue); stroke-width: 2; }

.intro__panel { position: relative; }
.intro__img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(36,26,28,0.4);
}
.intro__note {
  position: absolute;
  left: -28px; bottom: -28px;
  background: var(--wine);
  color: var(--white);
  padding: 22px 26px;
  border-radius: var(--radius-sm);
  max-width: 220px;
  box-shadow: 0 20px 40px -18px rgba(122,30,43,0.5);
}
.intro__note strong {
  font-family: var(--font-display);
  font-size: 30px;
  display: block;
  line-height: 1;
}
.intro__note span { font-size: 13px; color: rgba(255,255,255,0.85); }

/* ============================================================
   SERVICES GRID (fotos reales de fondo)
   ============================================================ */
.services {
  padding: 100px 0 130px;
  background: var(--sand);
  position: relative;
  z-index: 2;
}

.services__head { text-align: center; margin-bottom: 56px; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.service-card__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1s var(--ease);
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(36,26,28,0) 30%, rgba(54,11,18,0.55) 70%, rgba(40,8,13,0.9) 100%);
}
.service-card:hover .service-card__img { transform: scale(1.07); }

.service-card__body { padding: 28px; color: var(--white); }
.service-card__body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}
.service-card__body p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}
.service-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(122,30,43,0.85);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

/* ============================================================
   SISTEMAS (PVC vs Manto asfáltico)
   ============================================================ */
.systems { padding: 130px 0; position: relative; z-index: 2; }
.systems__head { max-width: 680px; margin-bottom: 56px; }

.systems__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.system-card {
  position: relative;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--white);
  padding: 40px;
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s ease;
}
.system-card:hover { transform: translateY(-6px); box-shadow: 0 30px 55px -30px rgba(36,26,28,0.3); }

.system-card--featured { border-color: var(--wine); }
.system-card--featured::before {
  content: 'Más recomendado';
  position: absolute;
  top: 20px; right: -34px;
  transform: rotate(45deg);
  background: var(--wine);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 44px;
}

.system-card__icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.system-card--featured .system-card__icon { background: var(--wine-pale); }
.system-card--featured .system-card__icon svg { stroke: var(--wine); }
.system-card--alt .system-card__icon { background: var(--blue-pale); }
.system-card--alt .system-card__icon svg { stroke: var(--blue); }
.system-card__icon svg { width: 26px; height: 26px; fill: none; stroke-width: 1.6; }

.system-card h3 {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  margin-bottom: 6px;
}
.system-card__lead { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 24px; }

.system-card__warranty {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
}
.system-card__warranty b {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  color: var(--wine);
}
.system-card--alt .system-card__warranty b { color: var(--blue); }
.system-card__warranty span { font-size: 13px; color: var(--ink-soft); }

.system-card__list { display: flex; flex-direction: column; gap: 13px; }
.system-card__list li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  color: var(--ink);
}
.system-card__list li svg {
  position: absolute;
  left: 0; top: 2px;
  width: 17px; height: 17px;
  fill: none; stroke: var(--wine); stroke-width: 2.2;
}
.system-card--alt .system-card__list li svg { stroke: var(--blue); }

.systems__note {
  margin-top: 28px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ============================================================
   GALERÍA
   ============================================================ */
.gallery { padding: 130px 0; background: var(--ink); position: relative; z-index: 2; }
.gallery .section-tag { color: var(--blue-light); }
.gallery .section-title { color: var(--white); }
.gallery .section-desc { color: rgba(255,255,255,0.7); }
.gallery__head { text-align: center; margin-bottom: 30px; }

.gallery__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}
.gallery__filter {
  padding: 9px 20px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s ease;
}
.gallery__filter:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }
.gallery__filter.is-active { background: var(--wine); border-color: var(--wine); color: var(--white); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }

.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.gallery__item:hover img { transform: scale(1.08); }

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(54,11,18,0.85));
  opacity: 0;
  transition: opacity .4s ease;
}
.gallery__item:hover::after { opacity: 1; }

.gallery__cap {
  position: absolute;
  left: 16px; bottom: 14px;
  z-index: 2;
  color: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}
.gallery__item:hover .gallery__cap { opacity: 1; transform: translateY(0); }
.gallery__cap span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.gallery__item.is-hidden { display: none; }

.gallery__zoom {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .4s ease, transform .4s ease;
}
.gallery__item:hover .gallery__zoom { opacity: 1; transform: scale(1); }
.gallery__zoom svg { width: 16px; height: 16px; fill: none; stroke: var(--wine); stroke-width: 2; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(28,10,14,0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7);
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .3s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,0.25); }
.lightbox__close { top: 26px; right: 26px; font-size: 22px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 26px; }
.lightbox__nav--prev { left: 26px; }
.lightbox__nav--next { right: 26px; }
.lightbox__cap {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-sec { padding: 130px 0; position: relative; z-index: 2; }
.video-sec__grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 70px;
  align-items: center;
}

.video-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 474 / 850;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 80px -30px rgba(36,26,28,0.55);
  border: 6px solid var(--ink);
}
.video-frame video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-frame__badge {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(122,30,43,0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 100px;
}
.video-frame__badge i {
  width: 7px; height: 7px;
  background: var(--blue-light);
  border-radius: 50%;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

.video-mute {
  position: absolute;
  bottom: 16px; right: 16px;
  z-index: 3;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .3s ease;
}
.video-mute:hover { background: #fff; }
.video-mute svg { width: 19px; height: 19px; fill: var(--wine); }

.video-sec__list { margin: 30px 0 34px; display: flex; flex-direction: column; gap: 18px; }
.video-sec__item { display: flex; gap: 16px; align-items: flex-start; }
.video-sec__item svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 1.8; flex-shrink: 0; margin-top: 2px; }
.video-sec__item p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.video-sec__item b { color: var(--ink); font-weight: 700; }

/* ============================================================
   PROCESO
   ============================================================ */
.process { padding: 130px 0; background: var(--sand); position: relative; z-index: 2; }
.process__head { text-align: center; margin-bottom: 60px; }

.process__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.process__step {
  position: relative;
  padding: 30px 22px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.process__num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  background: var(--wine);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.process__step:nth-child(even) .process__num { background: var(--blue); }
.process__step h3 { font-family: var(--font-display); font-size: 17.5px; font-weight: 600; margin-bottom: 8px; }
.process__step p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }

/* ============================================================
   WHY / DIFERENCIADORES
   ============================================================ */
.why { padding: 130px 0; position: relative; z-index: 2; }
.why__grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: 80px; align-items: center; }

.why__panel { position: relative; }
.why__img {
  width: 100%; height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(36,26,28,0.4);
}

.why__list { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.why__item { }
.why__item-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--wine-pale);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.why__item:nth-child(even) .why__item-icon { background: var(--blue-pale); }
.why__item-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--wine); stroke-width: 1.7; }
.why__item:nth-child(even) .why__item-icon svg { stroke: var(--blue); }
.why__item h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.why__item p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }

/* ============================================================
   ALIADOS
   ============================================================ */
.brands-sec { padding: 90px 0; background: var(--wine); color: var(--white); position: relative; z-index: 2; text-align: center; }
.brands-sec__tag {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 12px;
}
.brands-sec h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  margin-bottom: 36px;
  color: var(--white);
}
.brands-sec__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.brands-sec__chip {
  padding: 16px 40px;
  border-radius: 100px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: 130px 0 150px; position: relative; z-index: 2; }

.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact__items { margin: 32px 0 36px; display: flex; flex-direction: column; gap: 18px; }
.contact__item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  transition: color .3s ease;
  min-width: 0;
}
.contact__item span { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
a.contact__item:hover { color: var(--wine); }
.contact__item svg { width: 20px; height: 20px; fill: none; stroke: var(--wine); stroke-width: 1.6; flex-shrink: 0; }

.contact__form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.form__field input,
.form__field select,
.form__field textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  transition: border-color .3s ease, background .3s ease;
  resize: vertical;
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--wine);
  background: var(--white);
}
.form__note {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--wine);
  min-height: 18px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: rgba(255,255,255,0.85); position: relative; z-index: 2; }
.footer__inner {
  padding: 90px 0 60px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 50px;
}
.footer__brand p { margin-top: 18px; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.6); max-width: 320px; }
.footer__nit { margin-top: 14px; font-size: 12.5px; color: rgba(255,255,255,0.45); }

.footer__col h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 18px;
}
.footer__col a, .footer__col p {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  padding: 6px 0;
  transition: color .3s ease;
}
.footer__col a:hover { color: var(--blue-light); }

.footer__social { display: flex; gap: 12px; margin-top: 8px; }
.footer__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.footer__social svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.8); }
.footer__social a:hover { background: var(--wine); border-color: var(--wine); }

.footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); }
.footer__bottom-inner {
  padding: 22px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.fab-whatsapp {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 80;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #1f8a4c;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(31,138,76,0.55);
  animation: fabPulse 2.6s ease-in-out infinite;
  transition: transform .3s var(--ease);
}
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-whatsapp svg { width: 27px; height: 27px; fill: #fff; }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 14px 30px -10px rgba(31,138,76,0.55), 0 0 0 0 rgba(31,138,76,0.35); }
  50% { box-shadow: 0 14px 30px -10px rgba(31,138,76,0.55), 0 0 0 12px rgba(31,138,76,0); }
}

/* ============================================================
   SCROLL REVEALS
   ============================================================ */
.js-anim .reveal-left, .js-anim .reveal-right, .js-anim .reveal-up { opacity: 0; }
.js-anim .reveal-left { transform: translateX(-56px); }
.js-anim .reveal-right { transform: translateX(56px); }
.js-anim .reveal-up { transform: translateY(40px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
html { overflow-x: hidden; }
body { overflow-x: hidden; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }

  .intro__grid, .why__grid, .video-sec__grid, .contact__grid { grid-template-columns: 1fr; gap: 50px; }
  .intro__panel, .why__panel { order: -1; }
  .intro__img, .why__img { height: 360px; }
  .intro__note { left: 16px; bottom: 16px; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .systems__grid { grid-template-columns: 1fr; }
  .why__list { grid-template-columns: 1fr 1fr; }

  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  section, .hero { padding-left: 0; padding-right: 0; }
  .intro, .services, .systems, .gallery, .video-sec, .process, .why, .contact { padding: 80px 0; }
  .brands-sec { padding: 60px 0; }

  .section-title { font-size: clamp(26px, 7vw, 34px); }
  .section-desc { font-size: 15px; }

  /* Header: placa de logo más compacta para no chocar con las acciones */
  .header { padding: 14px 0; }
  .header.is-scrolled { padding: 10px 0; }
  .header__inner { gap: 10px; }
  .logo-badge__img { height: 42px; }
  .header__actions { gap: 10px; }
  .btn--sm { padding: 10px 16px; font-size: 12.5px; }

  /* Hero: título más contenido y stats en grilla pareja de 2 columnas */
  .hero__inner { padding-top: 100px; padding-bottom: 60px; }
  .hero__title { font-size: clamp(32px, 9vw, 44px); }
  .hero__subtitle { font-size: 15.5px; }
  .hero__actions { gap: 12px; }
  .hero__actions .btn { width: 100%; }
  .hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
    margin-top: 44px;
  }
  .hero__stat { padding-left: 14px; }
  .hero__stat-num { font-size: 24px; }
  .hero__stat-suffix { font-size: 16px; }
  .hero__stat-label { font-size: 11.5px; }

  .marquee__track span:not(.marquee__dot) { font-size: 14px; }

  .intro__badges { gap: 8px; }
  .intro__badge { padding: 8px 14px; font-size: 12px; }
  .intro__img, .why__img { height: 260px; }
  .intro__note { padding: 16px 18px; max-width: 170px; }
  .intro__note strong { font-size: 24px; }
  .intro__note span { font-size: 12px; }

  .service-card { min-height: 260px; }
  .service-card__body { padding: 22px; }
  .service-card__body h3 { font-size: 19px; }

  .system-card { padding: 28px 24px; }
  .system-card--featured::before { right: -38px; top: 16px; padding: 5px 42px; font-size: 10px; }
  .system-card h3 { font-size: 21px; }
  .system-card__warranty b { font-size: 32px; }

  .gallery__filters { gap: 8px; }
  .gallery__filter { padding: 8px 15px; font-size: 12.5px; }

  .video-sec__grid { gap: 44px; }
  .video-sec__list { gap: 16px; margin: 24px 0 28px; }

  .process__num { width: 34px; height: 34px; font-size: 13px; margin-bottom: 14px; }
  .process__step { padding: 24px 18px; }
  .process__step h3 { font-size: 16.5px; }

  .why__item-icon { width: 40px; height: 40px; }
  .why__list { gap: 20px; }

  .brands-sec__chip { padding: 13px 28px; font-size: 16px; }

  .contact__items { gap: 14px; }
}

@media (max-width: 640px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .header__phone { display: none; }
  .services__grid { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .why__list { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 1; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; padding: 70px 0 40px; }
  .contact__form { padding: 28px; }
  .fab-whatsapp { right: 18px; bottom: 18px; width: 52px; height: 52px; }
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav--prev { left: 12px; }
  .lightbox__nav--next { right: 12px; }
}

@media (max-width: 400px) {
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
  .logo-badge__img { height: 36px; }
  .btn--sm { padding: 9px 13px; font-size: 12px; }
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery__item--wide { grid-column: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
