/* ============================
   Cleaning Services — Scroll-web
   Canvas fijo de fondo, contenido encima
   ============================ */

:root {
  --bg-dark: #0f1a18;
  --bg-darker: #0a1413;
  --text-on-dark: #f0ede8;
  --text-dim: #c9d1cd;
  --accent: #7fbfa3;
  --accent-deep: #3f8c70;
  --muted-on-dark: #9aa6a0;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html, body {
  background: var(--bg-darker);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ============================
   Loader
   ============================ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-darker);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .8s ease, visibility .8s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { width: min(420px, 80vw); text-align: center; }
.loader-brand {
  font-family: var(--font-display);
  font-weight: 500; font-style: italic;
  font-size: 1.4rem; letter-spacing: .02em;
  margin-bottom: 1.6rem; color: var(--text-on-dark);
}
.loader-bar { width: 100%; height: 2px; background: rgba(240,237,232,0.12); overflow: hidden; margin-bottom: .8rem; }
.loader-bar-fill { height: 100%; width: 0%; background: var(--accent); transition: width .25s ease; }
.loader-progress {
  font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted-on-dark);
}

/* ============================
   Canvas FIJO (fondo permanente)
   ============================ */
.canvas-wrap {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
  background: var(--bg-darker);
}
#frame-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
/* Tinte sutil permanente para profundidad (suave, no tapa el video) */
.canvas-tint {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 45%, rgba(10,20,19,0.18) 100%),
    linear-gradient(to bottom, rgba(10,20,19,0.08) 0%, transparent 20%, transparent 80%, rgba(10,20,19,0.25) 100%);
  pointer-events: none;
}
.dark-overlay {
  position: absolute; inset: 0;
  background: rgba(10, 20, 19, 0.92);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* ============================
   Header fijo
   ============================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.4rem 0;
  color: var(--text-on-dark);
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5vw; gap: 2rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 500; font-style: italic;
  font-size: 1.15rem; letter-spacing: .01em;
}
.nav { display: flex; gap: 2rem; }
.nav a {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  opacity: .75; transition: opacity .2s ease;
}
.nav a:hover { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 1.4rem; }
.lang-toggle {
  background: none; border: 1px solid currentColor; color: inherit;
  padding: .45rem .8rem; font-size: .72rem; letter-spacing: .14em;
  cursor: pointer; font-family: inherit;
  display: flex; gap: .3rem; opacity: .85; transition: opacity .2s ease;
}
.lang-toggle:hover { opacity: 1; }
.lang-toggle .lang-current { font-weight: 600; }
.lang-toggle .lang-divider { opacity: .4; }
.lang-toggle .lang-other { opacity: .55; }
.header-cta {
  background: var(--accent);
  color: var(--bg-dark);
  padding: .6rem 1.2rem;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600;
  transition: transform .2s ease, background .25s ease;
}
.header-cta:hover { transform: translateY(-2px); background: var(--text-on-dark); }

/* ============================
   Marquee horizontal gigante
   ============================ */
.marquee-wrap {
  position: fixed;
  bottom: 6vh; left: 0;
  width: 100%; overflow: hidden;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  will-change: opacity;
}
.marquee-track {
  font-family: var(--font-display);
  font-style: italic; font-weight: 400;
  font-size: clamp(8rem, 12vw, 16rem);
  line-height: 1;
  white-space: nowrap;
  color: rgba(240, 237, 232, 0.95);
  letter-spacing: -0.02em;
  will-change: transform;
  mix-blend-mode: difference;
}

/* ============================
   Scroll container
   ============================ */
#scroll-container {
  position: relative;
  z-index: 4;
  pointer-events: none;
}

/* Cada sección 100vh, encima del canvas, con gradiente lateral para legibilidad */
.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4vh 0;
  pointer-events: auto;
}

/* Gradientes laterales para dar contraste al texto (más estrechos, dejan ver el video) */
.align-left::before,
.align-right::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 52%;
  pointer-events: none;
  z-index: -1;
}
.align-left::before {
  left: 0;
  background: linear-gradient(to right,
    rgba(10,20,19,0.78) 0%,
    rgba(10,20,19,0.55) 45%,
    rgba(10,20,19,0.15) 80%,
    transparent 100%);
}
.align-right::before {
  right: 0;
  background: linear-gradient(to left,
    rgba(10,20,19,0.78) 0%,
    rgba(10,20,19,0.55) 45%,
    rgba(10,20,19,0.15) 80%,
    transparent 100%);
}

/* Distribución lateral del texto */
.align-left { padding-left: 5vw; padding-right: 55vw; }
.align-right { padding-left: 55vw; padding-right: 5vw; }

/* ============================
   Hero (ahora es la primera sección)
   ============================ */
.section-hero {
  min-height: 100vh;
  padding-top: 12vh;
  padding-bottom: 8vh;
  justify-content: flex-end;
}
.hero-eyebrow {
  margin-bottom: 2vh;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(5rem, 13vw, 13rem);
  line-height: .9;
  letter-spacing: -0.04em;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  color: var(--text-on-dark);
}
.hero-line { display: block; }
.hero-line-italic {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  padding-left: 6vw;
}
.hero-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 1.6vw, 1.6rem);
  line-height: 1.4;
  max-width: 30ch;
  color: var(--text-dim);
  margin-bottom: 0;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 4vh;
  left: 5vw;
  display: flex; align-items: center; gap: 1rem;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted-on-dark);
}
.hero-scroll-line {
  width: 60px; height: 1px; background: var(--muted-on-dark);
  position: relative; overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--text-on-dark);
  transform: translateX(-100%);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  60% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* ============================
   Tipografía de secciones
   ============================ */
.section-eyebrow {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-bottom: 1.4rem;
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 5.2rem);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--text-on-dark);
  margin-bottom: 1.5rem;
}
.section-text {
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 40ch;
}

/* Section: Services */
.section-list { margin-top: 1rem; }
.section-list li {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 2.4rem);
  line-height: 1.3;
  color: var(--text-on-dark);
  padding: .75rem 0;
  border-top: 1px solid rgba(240, 237, 232, 0.18);
}
.section-list li:last-child { border-bottom: 1px solid rgba(240, 237, 232, 0.18); }

/* Section: Process */
.section-steps { margin-top: 1rem; }
.section-steps li {
  display: flex; align-items: baseline; gap: 1.5rem;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(240, 237, 232, 0.18);
}
.section-steps li:last-child { border-bottom: 1px solid rgba(240, 237, 232, 0.18); }
.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
}
.step-label {
  font-size: clamp(1.05rem, 1.4vw, 1.4rem);
  line-height: 1.4;
  color: var(--text-on-dark);
}

/* Section: Stats (centered, dark-overlay activates here) */
.section-stats {
  text-align: center; align-items: center;
  padding-left: 5vw; padding-right: 5vw;
}
.stats-eyebrow { color: var(--accent); }
.stats-title { max-width: 20ch; }
.stats-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 3rem;
  width: 100%; max-width: 1100px;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  line-height: 1; letter-spacing: -0.03em;
  color: var(--text-on-dark);
}
.stat-label {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted-on-dark);
}

/* Section: Why us */
.why-points {
  margin-top: 1rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.why-point {
  display: flex; gap: 1.2rem; align-items: baseline;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.7vw, 1.7rem);
  line-height: 1.4;
  color: var(--text-on-dark);
}
.why-point-num { color: var(--accent); font-size: 2rem; line-height: 1; flex-shrink: 0; }

/* Section: CTA */
.cta-title { font-style: italic; color: var(--accent); }
.cta-button {
  display: inline-block;
  margin-top: 2rem;
  background: var(--accent);
  color: var(--bg-dark);
  padding: 1.2rem 2.4rem;
  font-size: 1rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  transition: transform .25s ease, background .25s ease;
}
.cta-button:hover { background: var(--text-on-dark); transform: translateY(-3px); }
.cta-fine {
  margin-top: 1.5rem;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-on-dark);
}

/* ============================
   Botón flotante WhatsApp
   ============================ */
.wa-float {
  position: fixed;
  right: 1.6rem;
  bottom: 1.6rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: .7rem;
  background: #25d366;
  color: #ffffff;
  padding: .85rem 1.4rem .85rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .02em;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35), 0 4px 12px rgba(0,0,0,0.25);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.03);
  background: #1ebe57;
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.45), 0 6px 16px rgba(0,0,0,0.3);
}
.wa-float svg { display: block; flex-shrink: 0; }
.wa-label { white-space: nowrap; }

/* Pulso sutil */
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: waPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* ============================
   Footer
   ============================ */
.site-footer {
  position: relative;
  z-index: 5;
  background: var(--bg-darker);
  padding: 3rem 5vw 2rem;
  color: var(--muted-on-dark);
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
}
.footer-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  align-items: center;
}
.footer-powered {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: color .25s ease;
}
.footer-powered:hover { color: var(--accent); }
.footer-brand {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: .95rem;
  color: var(--text-on-dark);
}
.footer-powered:hover .footer-brand { color: var(--accent); }

/* ============================
   Responsive (móvil)
   ============================ */
@media (max-width: 768px) {
  .nav { display: none; }
  .header-actions { gap: .8rem; }
  .header-cta { padding: .5rem .9rem; font-size: .7rem; }

  .align-left, .align-right {
    padding-left: 6vw; padding-right: 6vw;
  }
  /* Mobile: gradiente ligero, deja ver el video */
  .align-left::before, .align-right::before {
    width: 100%;
    left: 0; right: 0;
    background: linear-gradient(to bottom,
      rgba(10,20,19,0.10) 0%,
      rgba(10,20,19,0.35) 35%,
      rgba(10,20,19,0.55) 75%,
      rgba(10,20,19,0.65) 100%);
  }

  /* Hero en mobile: gradiente más fuerte abajo donde está el título */
  .section-hero.align-left::before {
    background: linear-gradient(to bottom,
      transparent 0%,
      rgba(10,20,19,0.20) 40%,
      rgba(10,20,19,0.65) 80%,
      rgba(10,20,19,0.75) 100%);
  }

  /* WhatsApp solo ícono en mobile */
  .wa-float {
    right: 1rem;
    bottom: 1rem;
    padding: .8rem;
    border-radius: 50%;
  }
  .wa-label { display: none; }

  .section { padding: 6vh 0; }
  .section-title { font-size: 2.2rem; }
  .section-list li { font-size: 1.3rem; }
  .hero-title { font-size: clamp(4rem, 18vw, 6rem); }
  .hero-line-italic { padding-left: 0; }

  /* Hero mobile: empuja el contenido arriba para no chocar con el scroll-hint */
  .section-hero {
    padding-bottom: 16vh;
    justify-content: center;
  }
  .hero-sub {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 1.05rem;
  }
  .hero-scroll-hint {
    bottom: 3vh;
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .stat-num { font-size: 2.8rem; }

  .marquee-wrap { bottom: 4vh; }
  .marquee-track { font-size: 7rem; }

  .site-header { padding: 1rem 0; }
  .site-header-inner { padding: 0 4vw; gap: .8rem; }
  .brand { font-size: 1rem; }
}
