/* =========================================================
   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.75; }
.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: transparent; }
.site-header.scrolled[data-theme="dark"]{ background: rgba(16,39,43,0.72); backdrop-filter: blur(10px); }
.site-header.scrolled[data-theme="light"]{ background: rgba(245,248,247,0.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(16,39,43,0.06); }

.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: 800; font-size: 16.5px; letter-spacing: -0.01em; }

.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 / Portada — foto a toda pantalla, difuminada en blanco
   ========================================================= */
.hero{
  position: relative;
  overflow: hidden;
  padding: 0 32px;
  min-height: 100vh;
  display: flex; align-items: center;
  background: var(--bg);
  color: var(--petrol-dark);
  text-align: left;
}
.hero-bg{
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: center 35%;
  filter: grayscale(0.1) brightness(1.02);
  opacity: 0.96;
}
.hero-scrim{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, var(--bg) 0%, rgba(245,248,247,0.95) 22%, rgba(245,248,247,0.62) 40%, rgba(245,248,247,0.18) 58%, rgba(245,248,247,0) 74%),
    linear-gradient(0deg, rgba(245,248,247,0.4) 0%, rgba(245,248,247,0) 26%);
}
.hero-side-label{
  position: absolute;
  right: 30px; bottom: 30px; z-index: 2;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(16,39,43,0.5);
  margin: 0;
}

.hero-inner{
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-eyebrow{
  font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--petrol-mid); margin: 0 0 28px;
}

.hero-title{ font-size: clamp(54px, 8.4vw, 132px); margin-bottom: 30px; color: var(--petrol-dark); text-align: left; }
.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: 460px; color: var(--text-muted); margin: 0 0 10px; text-align: left; }
.hero-since{ font-size: 14.5px; color: var(--petrol-mid); font-weight: 600; margin: 0 0 36px; text-align: left; }
.hero-actions{ display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 16px; }

/* =========================================================
   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; }

/* =========================================================
   Servicios — sin imagen
   ========================================================= */
.services{ background: var(--bg); }
.service-row{
  display: flex; align-items: baseline; gap: 28px;
  padding: 30px 0; border-top: 1px solid rgba(16,39,43,0.12);
  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); }
}

/* =========================================================
   Caso real — incendio, numerado 1-7
   ========================================================= */
.case-study{ background: var(--petrol-dark); color: var(--white); padding-bottom: 120px; }
.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 90px; }

.case-group{ margin-bottom: 96px; }
.case-group:last-child{ margin-bottom: 0; }
.case-group-head{ margin-bottom: 32px; }
.case-group-label{
  font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--mint); text-transform: uppercase; margin: 0 0 12px;
}
.case-group-text{ font-family: var(--font-head); font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; line-height: 1.3; max-width: 640px; margin: 0; }

.case-gallery{ max-width: 1280px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Cuadrícula de fotos a todo el ancho del contenedor */
.case-grid{
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.case-cell{ margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 4; }
.case-cell img{ width: 100%; height: 100%; object-fit: cover; display: block; }

/* Pivote: banner de foto completa con texto superpuesto */
.case-pivot{ margin-bottom: 96px; }
.case-pivot-media{ position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 8; }
.case-pivot-media img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.case-pivot-scrim{
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(16,39,43,0.9) 0%, rgba(16,39,43,0.35) 48%, rgba(16,39,43,0.05) 75%);
}
.case-pivot-copy{ position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 48px; }
.case-pivot-copy h3{ font-size: clamp(26px, 3.2vw, 40px); margin-bottom: 12px; color: var(--white); }
.case-pivot-copy p{ font-size: 16px; color: rgba(255,255,255,0.78); max-width: 460px; margin: 0; }

/* =========================================================
   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 — sencillo, sin fotos, en fila
   ========================================================= */
.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; }

  .case-grid{ grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .case-pivot-media{ aspect-ratio: 4 / 5; }
  .case-pivot-copy{ padding: 30px 24px; }

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

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

  .hero-inner{ padding-top: calc(var(--header-h) + 24px); }
  .hero-scrim{
    background:
      linear-gradient(180deg, rgba(245,248,247,0.5) 0%, rgba(245,248,247,0.2) 30%, rgba(245,248,247,0.85) 62%, var(--bg) 82%);
  }
  .hero-side-label{ display: none; }
}

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

  .case-grid{ grid-template-columns: 1fr; gap: 14px; padding: 0 20px; }
  .case-pivot-media{ aspect-ratio: 3 / 4; border-radius: 16px; }
  .case-pivot-copy{ padding: 24px 20px; }

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