/* =========================================================
   Limpiezas Rosario S.L. — Design tokens
   Fondo #F5F8F7 · Petróleo oscuro #10272B · Petróleo medio #174148
   Grafito #172022 · Gris verdoso #CBD8D6 · Turquesa #51D5C1
   ========================================================= */

:root{
  --bg: #F5F8F7;
  --white: #FFFFFF;
  --petrol-dark: #10272B;
  --petrol-mid: #174148;
  --graphite: #172022;
  --sage: #CBD8D6;
  --mint: #51D5C1;

  --text-on-light: var(--graphite);
  --text-muted: #4E6062;

  --font-head: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --header-h: 84px;
  --ease: cubic-bezier(.4,0,.2,1);
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text-on-light);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3{
  font-family: var(--font-head);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.section{ padding: 140px 32px; }
.section-inner{ max-width: 1120px; margin: 0 auto; }
.section-inner.narrow{ max-width: 700px; text-align: center; margin-left: auto; margin-right: auto; }

/* Reveal on scroll */
.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ opacity: 1; transform: none; transition: none; }
  .line{ transform: none !important; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn .arrow{ display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow{ transform: translateX(5px); }

.btn-primary{ background: var(--mint); color: var(--petrol-dark); }
.btn-primary:hover{ transform: translateY(-2px); background: #6adfcd; }

.btn-ghost{ background: transparent; color: inherit; border: 1.5px solid currentColor; opacity: 0.85; }
.btn-ghost:hover{ opacity: 1; transform: translateY(-2px); }

.btn-large{ padding: 18px 34px; font-size: 15px; }

.link-cta{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  color: var(--petrol-dark);
  border-bottom: 1.5px solid var(--mint);
  padding-bottom: 4px;
}
.link-cta .arrow{ transition: transform .3s var(--ease); }
.link-cta:hover .arrow{ transform: translateX(5px); }

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header[data-theme="dark"]{ color: var(--white); background: transparent; }
.site-header[data-theme="light"]{ color: var(--petrol-dark); background: rgba(245,248,247,0.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(16,39,43,0.06); }
.site-header.scrolled[data-theme="dark"]{ background: rgba(16,39,43,0.72); backdrop-filter: blur(10px); }

.header-inner{
  max-width: 1280px; margin: 0 auto;
  height: var(--header-h);
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand{ display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark{
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--mint); color: var(--petrol-dark);
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.brand-name{ font-family: var(--font-head); font-weight: 600; font-size: 16.5px; }

.main-nav{ display: flex; align-items: center; gap: 36px; flex: 1; justify-content: center; }
.nav-link{ font-size: 14.5px; font-weight: 500; position: relative; padding: 6px 0; }
.nav-link::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-link:hover::after{ transform: scaleX(1); }

.nav-cta{
  flex-shrink: 0; background: var(--mint); color: var(--petrol-dark);
  padding: 11px 22px; border-radius: 999px; font-family: var(--font-head);
  font-size: 13.5px; font-weight: 600; transition: transform .25s var(--ease);
}
.nav-cta:hover{ transform: translateY(-2px); }

.menu-toggle{
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer; flex-shrink: 0;
}
.menu-toggle span{ display: block; height: 2px; width: 100%; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.menu-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2){ opacity: 0; }
.menu-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-nav{
  display: none; flex-direction: column; padding: 8px 32px 28px; gap: 2px;
  background: var(--petrol-dark); color: var(--white);
}
.mobile-nav.open{ display: flex; }
.mobile-link{ padding: 15px 4px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-cta{
  margin-top: 18px; text-align: center; background: var(--mint); color: var(--petrol-dark);
  padding: 15px; border-radius: 999px; font-family: var(--font-head); font-weight: 600;
}

/* =========================================================
   Hero
   ========================================================= */
.hero{
  padding: 0 32px;
  min-height: 100vh;
  display: flex; align-items: center;
  background: var(--petrol-dark);
  color: var(--white);
}
.hero-inner{
  max-width: 1280px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center;
  padding-top: var(--header-h);
}

.hero-title{ font-size: clamp(48px, 6.4vw, 92px); margin-bottom: 28px; }
.line-mask{ display: block; overflow: hidden; }
.line{
  display: inline-block;
  transform: translateY(100%);
  animation: line-in .9s var(--ease) forwards;
}
.line-mask:nth-child(1) .line{ animation-delay: .1s; }
.line-mask:nth-child(2) .line{ animation-delay: .22s; }
.line-mask:nth-child(3) .line{ animation-delay: .34s; }
@keyframes line-in{ to{ transform: translateY(0); } }

.hero-subtitle{ font-size: 19px; max-width: 440px; color: rgba(255,255,255,0.82); margin: 0 0 10px; }
.hero-since{ font-size: 14.5px; color: var(--mint); font-weight: 500; margin: 0 0 36px; }
.hero-actions{ display: flex; flex-wrap: wrap; gap: 16px; }

.hero-media{ position: relative; }
.video-frame{
  position: relative; border-radius: 18px; overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--petrol-mid);
}
.hero-video{ width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); animation: video-in 1.1s var(--ease) forwards; }
@keyframes video-in{ to{ transform: scale(1); } }
.video-overlay{ position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,39,43,0.05), rgba(16,39,43,0.35)); }

/* =========================================================
   Franja de confianza
   ========================================================= */
.trust-strip{ background: var(--bg); padding: 56px 32px; position: relative; }
.trust-inner{
  max-width: 1120px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
  position: relative;
}
.trust-line{
  position: absolute; top: -28px; left: 0; height: 2px; width: 64px; background: var(--mint);
  transition: transform .6s var(--ease);
}
.trust-strip.line-shift .trust-line{ transform: translateX(40px); }
.trust-item{
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  color: var(--petrol-dark); margin: 0; letter-spacing: -0.01em;
}

/* =========================================================
   Posicionamiento
   ========================================================= */
.positioning{ background: var(--bg); text-align: center; }
.positioning-title{ font-size: clamp(32px, 4.4vw, 52px); color: var(--petrol-dark); margin-bottom: 44px; }
.positioning-words{ font-size: clamp(20px, 2.6vw, 30px); color: var(--text-muted); font-family: var(--font-head); font-weight: 500; margin: 0; }
.word{ display: inline-block; margin: 0 4px; transition-delay: calc(var(--i, 0) * 60ms); }
.word:nth-child(1){ --i: 0; } .word:nth-child(2){ --i: 1; } .word:nth-child(3){ --i: 2; }
.word:nth-child(4){ --i: 3; } .word:nth-child(5){ --i: 4; } .word:nth-child(6){ --i: 5; }

/* =========================================================
   Servicios
   ========================================================= */
.services{ background: var(--bg); position: relative; }
.service-row{
  display: flex; align-items: baseline; gap: 28px;
  padding: 30px 0; border-top: 1px solid rgba(16,39,43,0.12);
  cursor: default; transition: background .3s var(--ease);
}
.services .service-row:last-of-type{ border-bottom: 1px solid rgba(16,39,43,0.12); }
.service-number{ font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--mint); width: 34px; flex-shrink: 0; }
.service-copy h3{ font-size: clamp(24px, 3vw, 34px); color: var(--petrol-dark); margin-bottom: 6px; transition: transform .3s var(--ease); }
.service-copy p{ font-size: 15.5px; color: var(--text-muted); margin: 0; max-width: 480px; }

@media (hover: hover){
  .service-row:hover{ background: rgba(203,216,214,0.28); }
  .service-row:hover .service-copy h3{ transform: translateX(8px); }
}

.service-preview{
  position: absolute; top: 0; right: 32px; width: 260px; height: 320px;
  border-radius: 14px; overflow: hidden; pointer-events: none;
  opacity: 0; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  background-size: cover; background-position: center;
  display: none;
}
@media (hover: hover) and (min-width: 981px){
  .service-preview{ display: block; }
  .service-preview.is-active{ opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Caso real — incendio
   ========================================================= */
.case-study{ background: var(--petrol-dark); color: var(--white); padding-bottom: 0; }
.case-label{ font-size: 13px; letter-spacing: 0.06em; color: var(--mint); font-weight: 600; margin-bottom: 18px; }
.case-title{ font-size: clamp(30px, 4vw, 46px); margin-bottom: 20px; }
.case-lead{ font-size: 17px; color: rgba(255,255,255,0.72); max-width: 560px; margin: 0 0 80px; }

.case-phase{ max-width: 1280px; margin: 0 auto; padding: 0 32px 120px; }

.phase-01{ display: block; }
.phase-main{ position: relative; border-radius: 16px; overflow: hidden; line-height: 0; }
.phase-main img{ width: 100%; height: 78vh; object-fit: cover; }
.phase-tag{
  position: absolute; left: 24px; bottom: 24px; font-family: var(--font-head);
  font-size: 13px; font-weight: 600; background: rgba(16,39,43,0.55); backdrop-filter: blur(6px);
  padding: 8px 14px; border-radius: 999px;
}
.phase-side{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.phase-side img{ width: 100%; height: 260px; object-fit: cover; border-radius: 12px; }

.phase-02{ display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.phase-parallax{ border-radius: 16px; overflow: hidden; line-height: 0; }
.phase-parallax img{ width: 100%; height: 82vh; object-fit: cover; will-change: transform; }
.phase-text{ font-family: var(--font-head); font-size: clamp(24px, 2.8vw, 34px); font-weight: 600; line-height: 1.3; }

.phase-03{ display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.phase-03 .phase-main img{ height: 74vh; }
.phase-copy h3{ font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.phase-copy p{ font-size: 16px; color: rgba(255,255,255,0.75); max-width: 380px; margin: 0; }

.phase-04{ display: block; }
.phase-04 .phase-side{ grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
.phase-close{ position: relative; border-radius: 16px; overflow: hidden; line-height: 0; }
.phase-close img{ width: 100%; height: 88vh; object-fit: cover; }
.phase-close-caption{
  position: absolute; left: 28px; bottom: 28px; font-family: var(--font-head);
  font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; max-width: 460px;
  color: var(--white);
}

/* =========================================================
   Transición
   ========================================================= */
.transition{ background: var(--bg); text-align: center; }
.transition-title{ font-size: clamp(28px, 3.6vw, 42px); color: var(--petrol-dark); margin-bottom: 36px; }

/* =========================================================
   Proceso
   ========================================================= */
.process{ background: var(--bg); }
.process-steps{
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
  border-top: 1px solid rgba(16,39,43,0.14); padding-top: 40px; margin-bottom: 56px;
}
.step-number{ display: block; font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--mint); margin-bottom: 14px; }
.step p{ font-size: 15.5px; color: var(--text-on-light); margin: 0; max-width: 200px; }
.process-closing{ font-family: var(--font-head); font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; color: var(--petrol-dark); text-align: center; margin: 0; }

/* =========================================================
   Bloque 1998 / Nosotros
   ========================================================= */
.legacy{ background: var(--petrol-dark); color: var(--white); text-align: center; }
.legacy-number{ font-family: var(--font-head); font-size: clamp(90px, 16vw, 200px); font-weight: 800; color: var(--mint); margin: 0; line-height: 0.9; }
.legacy-lead{ font-size: clamp(20px, 2.4vw, 28px); font-weight: 500; margin: 18px 0 28px; }
.legacy-text{ font-size: 16px; color: rgba(255,255,255,0.7); line-height: 1.8; margin: 0; }

/* =========================================================
   Clientes
   ========================================================= */
.clients{ background: var(--bg); }
.clients-title{ font-size: clamp(24px, 3vw, 34px); color: var(--petrol-dark); max-width: 640px; margin-bottom: 48px; }
.clients-list{ display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid rgba(16,39,43,0.14); }
.clients-list li{
  font-family: var(--font-head); font-weight: 500; font-size: 17px; color: var(--text-muted);
  padding: 20px 28px 20px 0; flex: 1 1 30%; border-bottom: 1px solid rgba(16,39,43,0.14);
}

/* =========================================================
   CTA final
   ========================================================= */
.cta-final{ background: var(--petrol-dark); color: var(--white); text-align: center; }
.cta-title{ font-size: clamp(32px, 4.4vw, 50px); margin-bottom: 18px; }
.cta-subtitle{ font-size: 18px; color: rgba(255,255,255,0.78); margin: 0 0 40px; }
.cta-actions{ display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 28px; }
.cta-zone{ font-size: 14px; color: rgba(255,255,255,0.55); margin: 0; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{ background: var(--graphite); color: rgba(255,255,255,0.75); padding: 64px 32px 28px; }
.footer-inner{ max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-name{ font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--white); margin: 0 0 8px; }
.footer-text{ font-size: 14.5px; margin: 0 0 6px; }
.footer-text a:hover{ color: var(--mint); }
.footer-label{ font-size: 12px; letter-spacing: 0.06em; color: var(--mint); margin: 0 0 14px; font-weight: 600; }
.footer-links, .footer-legal{ display: flex; flex-direction: column; }
.footer-links a, .footer-legal a{ font-size: 14.5px; margin-bottom: 10px; transition: color .2s; }
.footer-links a:hover, .footer-legal a:hover{ color: var(--mint); }
.footer-bottom{ max-width: 1120px; margin: 48px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; color: rgba(255,255,255,0.45); text-align: center; }

/* =========================================================
   WhatsApp flotante
   ========================================================= */
.whatsapp-float{
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--petrol-dark); color: var(--mint);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(16,39,43,0.3);
  transition: transform .25s var(--ease);
}
.whatsapp-float:hover{ transform: translateY(-3px); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  .main-nav, .nav-cta{ display: none; }
  .menu-toggle{ display: flex; }

  .hero-inner{ grid-template-columns: 1fr; gap: 40px; padding-top: calc(var(--header-h) + 20px); }
  .video-frame{ aspect-ratio: 4/3; }

  .services .service-preview{ display: none; }

  .phase-02, .phase-03{ grid-template-columns: 1fr; gap: 28px; }
  .phase-parallax img, .phase-main img{ height: 60vh; }
  .phase-close img{ height: 70vh; }

  .process-steps{ grid-template-columns: 1fr; gap: 28px; }
  .clients-list li{ flex: 1 1 45%; }

  .footer-inner{ grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px){
  .section{ padding: 90px 20px; }
  .header-inner{ padding: 0 18px; }
  .hero{ padding: 0 20px; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .btn{ width: 100%; justify-content: center; }

  .phase-side{ grid-template-columns: 1fr; }
  .phase-side img{ height: 220px; }
  .case-phase{ padding: 0 20px 80px; }

  .clients-list li{ flex: 1 1 100%; }
  .cta-actions{ flex-direction: column; align-items: stretch; }
  .footer-inner{ grid-template-columns: 1fr; gap: 28px; }
}
