/* =========================================================
   LIMPOP — Limpieza Oportuna
   Estética premium minimalista, inspirada en Apple.
   ========================================================= */

:root {
  --black: #000000;
  --near-black: #0a0a0a;
  --card-black: #141416;
  --white: #ffffff;
  --grey-050: #fbfbfc;
  --grey-100: #f5f5f7;
  --grey-300: #d2d2d7;
  --grey-500: #a1a1a6;
  --grey-600: #86868b;
  --grey-900: #1d1d1f;
  --accent: #2f7de8;
  --accent-soft: #dce9fc;

  --max-w: 1180px;
  --section-pad: clamp(64px, 10vw, 148px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--grey-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad) 24px;
}

section[id], #mision, #vision {
  scroll-margin-top: 84px;
}

.section__eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}
.section__eyebrow--light { color: #6ea3ef; }

.section__title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 20px;
  max-width: 14ch;
}

.section__lead {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--grey-600);
  max-width: 56ch;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--white);
  color: var(--black);
}
.btn--primary:hover { background: var(--grey-100); }

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

.btn--full { width: 100%; background: var(--black); color: var(--white); margin-top: 6px; }
.btn--full:hover { background: var(--grey-900); }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover,
  .btn--secondary:hover,
  .btn--full:hover { transform: translateY(-2px); }
}

.btn--ghost-nav {
  padding: 9px 18px;
  font-size: 14px;
  border: 1px solid var(--grey-300);
  color: var(--grey-900);
}
.btn--ghost-nav:hover { border-color: var(--grey-900); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background 0.4s var(--ease);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.nav__logo {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 8px;
}
.nav__links {
  display: flex;
  gap: 34px;
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-900);
}
.nav__links a { opacity: 0.75; transition: opacity 0.25s var(--ease); }
.nav__links a:hover { opacity: 1; }

.nav__actions { display: flex; align-items: center; gap: 14px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
}
.nav__toggle span {
  width: 100%;
  height: 1.5px;
  background: var(--grey-900);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Slogan ---------- */
.slogan {
  position: relative;
  min-height: 100svh;
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(90px, 16vw, 200px) 24px;
  text-align: center;
  overflow: hidden;
}
.slogan__eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-500);
  margin: 0 0 18px;
}
.slogan__text {
  font-size: clamp(64px, 15vw, 190px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.94;
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, #b9d4fb 55%, #2f7de8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Cinematic entrance: eyebrow settles first, Limpieza Oportuna follows a beat later */
.slogan__eyebrow[data-reveal] {
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.slogan__text[data-reveal] {
  transition: opacity 0.85s var(--ease) 0.18s, transform 0.85s var(--ease) 0.18s;
}
.slogan__drops { position: absolute; inset: 0; pointer-events: none; }
.drop {
  position: absolute;
  border-radius: 50% 50% 50% 0;
  background: radial-gradient(circle at 30% 30%, rgba(47,125,232,0.5), rgba(47,125,232,0.05));
  filter: blur(2px);
  opacity: 0.5;
  animation: floaty 9s ease-in-out infinite;
}
.drop--1 { width: 90px; height: 90px; top: 14%; left: 12%; transform: rotate(45deg); animation-delay: 0s; }
.drop--2 { width: 50px; height: 50px; top: 65%; right: 14%; transform: rotate(45deg); animation-delay: 2.5s; }
.drop--3 { width: 34px; height: 34px; top: 30%; right: 22%; transform: rotate(45deg); animation-delay: 5s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.35; }
  50% { transform: translateY(-24px) rotate(45deg); opacity: 0.6; }
}

/* ---------- Services ---------- */
.services { background: var(--white); }
.service-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--grey-300);
  border: 1px solid var(--grey-300);
  border-radius: 20px;
  overflow: hidden;
}
.service-card {
  grid-column: span 2;
  background: var(--grey-050);
  padding: 44px 32px;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service-card--half { grid-column: span 3; }
.service-card:hover { background: var(--white); }
.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 26px;
  transition: transform 0.35s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .service-grid .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.06);
  }
  .service-grid .service-card:hover .service-card__icon { transform: translateY(-2px); }
}
.service-card h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.service-card p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--grey-600);
  margin: 0 0 22px;
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--grey-900);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease), color 0.3s var(--ease);
}
.service-card__link span { transition: transform 0.3s var(--ease); }
.service-card__link:hover { color: var(--accent); }
.service-card__link:hover span { transform: translateX(4px); }

/* ---------- Process (Nuestro proceso) ---------- */
/* ---------- Process (Nuestro proceso) — cinematic scroll sequence ---------- */
.process {
  --chapter-h: 85vh;
  background: var(--near-black);
  color: var(--white);
}
.process__intro { padding-bottom: 0; }
.process__intro .section__title {
  color: var(--white);
  max-width: 20ch;
  font-size: clamp(34px, 5.6vw, 64px);
  margin-bottom: 0;
}

.process__pinwrap { position: relative; }
.process__sticky {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 24px 70px;
}
.process__stage {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}
.process-panel {
  padding: 20px 0 46px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.process-panel:first-child { border-top: none; }
.process-panel__num {
  display: block;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.process-panel__name {
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 20px;
}
.process-panel__desc {
  font-size: clamp(16.5px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--grey-500);
  max-width: 58ch;
  margin: 0;
}
.process__dots { display: none; }

/* Cinematic mode — enabled by JS when motion & scroll calc are supported */
.process--cinematic .process__pinwrap {
  height: calc(6 * var(--chapter-h));
}
.process--cinematic .process__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  padding-top: clamp(92px, 25vh, 260px);
  overflow: hidden;
}
.process--cinematic .process__stage { flex: 1; height: 100%; }
.process--cinematic .process-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-top: none;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.process--cinematic .process-panel__num,
.process--cinematic .process-panel__name,
.process--cinematic .process-panel__desc {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.process--cinematic .process-panel.is-active { opacity: 1; pointer-events: auto; }
.process--cinematic .process-panel.is-active .process-panel__num,
.process--cinematic .process-panel.is-active .process-panel__name {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}
.process--cinematic .process-panel.is-active .process-panel__desc {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.24s;
}
.process--cinematic .process__dots {
  display: flex;
  gap: 20px;
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}
.process__dot {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
  transition: color 0.3s var(--ease);
}
.process__dot.is-active { color: var(--accent); }

/* ---------- Statement blocks ---------- */
.statement {
  position: relative;
  padding: clamp(90px, 14vw, 160px) 24px;
  text-align: center;
  overflow: hidden;
}
.statement__inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.statement__kicker {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.55;
}
.statement__text {
  margin: 0;
  font-size: clamp(28px, 4.6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.statement__text--sm {
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 500;
  color: var(--grey-500);
  margin-bottom: 12px;
}
.statement__text--lg {
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff 0%, #b9d4fb 60%, #2f7de8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.statement__text--sm[data-reveal] + .statement__text--lg[data-reveal] { transition-delay: 0.16s; }
.statement__kicker[data-reveal] + .statement__text[data-reveal] { transition-delay: 0.14s; }
.statement--light { background: var(--white); color: var(--grey-900); }
.statement--light .statement__kicker { color: var(--accent); opacity: 0.9; }
.statement--dark { background: var(--black); color: var(--white); }
.statement--close { padding: clamp(110px, 16vw, 190px) 24px; }
.statement--close .statement__text {
  font-size: clamp(42px, 7.2vw, 76px);
  letter-spacing: -0.03em;
}
.statement__glow {
  position: absolute;
  width: 760px;
  height: 760px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(47,125,232,0.2) 0%, rgba(47,125,232,0) 70%);
  pointer-events: none;
}

/* ---------- About (Misión / Visión) — sequential scroll chapters ---------- */
.about { background: var(--grey-100); }
.about__chapter {
  padding: var(--section-pad) 24px;
  background: var(--grey-100);
}
.about__chapter--alt { background: var(--white); }
.about__chapter-inner {
  max-width: 780px;
  margin: 0 auto;
}
.about__lines {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.about__line {
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--grey-900);
  margin: 0;
}
.about__line[data-reveal].is-visible:nth-of-type(2) { transition-delay: 0.12s; }
.about__line[data-reveal].is-visible:nth-of-type(3) { transition-delay: 0.24s; }

/* ---------- Contact ---------- */
.contact { background: var(--white); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.contact__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-size: 16px;
  font-weight: 600;
  color: var(--grey-900);
  padding: 12px 20px;
  border: 1px solid var(--grey-300);
  border-radius: 980px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.contact__whatsapp svg { width: 20px; height: 20px; color: #25D366; transition: transform 0.3s var(--ease); }
.contact__whatsapp:hover { border-color: var(--grey-900); }
@media (hover: hover) and (pointer: fine) {
  .contact__intro .contact__whatsapp:hover { transform: translateY(-2px); }
  .contact__whatsapp:hover svg { transform: scale(1.1); }
}

.contact__form {
  background: var(--grey-100);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--grey-900); }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--grey-300);
  background: var(--white);
  color: var(--grey-900);
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field__note {
  font-size: 12.5px;
  color: var(--grey-600);
  text-align: center;
  margin: 4px 0 0;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--white);
  border-top: 1px solid var(--grey-300);
  padding: 48px 24px 28px;
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.footer__brand p { margin: 0; font-weight: 600; font-size: 14px; color: var(--grey-600); }
.footer__links { display: flex; flex-wrap: wrap; row-gap: 10px; gap: 26px; font-size: 14px; color: var(--grey-600); }
.footer__links a:hover { color: var(--grey-900); }
.footer__copy {
  max-width: var(--max-w);
  margin: 32px auto 0;
  font-size: 12.5px;
  color: var(--grey-500);
}

/* ---------- Floating WhatsApp ---------- */
.float-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 90;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease), box-shadow 0.3s var(--ease);
}
.float-wa.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.float-wa:hover { box-shadow: 0 14px 36px rgba(0,0,0,0.32); transform: scale(1.06); }
.float-wa svg { width: 28px; height: 28px; color: var(--white); }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal="fade"] { transform: translateY(14px); }
[data-reveal="up"] { transform: translateY(28px); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="word"] { transform: translateY(100%); }
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger service cards */
.service-card[data-reveal].is-visible:nth-child(2) { transition-delay: 0.08s; }
.service-card[data-reveal].is-visible:nth-child(3) { transition-delay: 0.16s; }

/* Slight per-section timing variation so reveals don't feel like one repeated template */
.services [data-reveal] { transition-duration: 0.7s; }
.process__intro [data-reveal] { transition-duration: 0.7s; }
.about [data-reveal] { transition-duration: 0.9s; }
.statement [data-reveal] { transition-duration: 0.75s; }
.contact [data-reveal] { transition-duration: 0.75s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card,
  .service-card--half { grid-column: span 1; }
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__actions { gap: 10px; }

  .nav.is-menu-open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  .process { --chapter-h: 64vh; }
  .process--cinematic .process__sticky { padding-top: clamp(64px, 10vh, 100px); }
  .process-panel__num { margin-bottom: 14px; }
  .process-panel__name { margin-bottom: 16px; }
  .process-panel__desc { font-size: 17px; }
  .process__dots { bottom: 28px; gap: 14px; }

  .contact__form { padding: 26px; }
  .float-wa { width: 52px; height: 52px; bottom: 18px; right: 18px; }
}
