:root {
  --rfa-ink: #064c2a;
  --rfa-green: #238537;
  --rfa-lime: #83c927;
  --rfa-green-text: #17652a;
  --rfa-cream: #f8fbf3;
  --rfa-white: #fff;
  --rfa-muted: #5d6b62;
  --rfa-line: #d9e5d8;
  --rfa-shadow: 0 1rem 2.5rem rgb(6 76 42 / 12%);
  --rfa-radius: 1rem;
  --rfa-width: 72rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--rfa-ink);
  background: var(--rfa-cream);
  line-height: 1.5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { position: relative; isolation: isolate; margin: 0; color: var(--rfa-ink); background: var(--rfa-cream); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, [type="submit"], [type="button"] { cursor: pointer; }

.bubble-layer { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bubble-layer span { position: absolute; bottom: -9rem; width: clamp(1.4rem, 3vw, 3.5rem); aspect-ratio: 1; border: 1px solid rgb(131 201 39 / 38%); border-radius: 50%; background: radial-gradient(circle at 30% 28%, rgb(255 255 255 / 72%) 0 8%, rgb(193 236 138 / 25%) 25%, rgb(131 201 39 / 8%) 68%); box-shadow: inset -.3rem -.4rem .7rem rgb(6 76 42 / 8%), 0 .2rem .8rem rgb(6 76 42 / 8%); animation: bubble-rise 20s linear infinite; }
.bubble-layer span:nth-child(1) { left: 4%; width: clamp(1.2rem, 2.4vw, 2.5rem); animation-duration: 18s; animation-delay: -8s; }
.bubble-layer span:nth-child(2) { left: 15%; width: clamp(2rem, 4.5vw, 4.5rem); animation-duration: 24s; animation-delay: -16s; }
.bubble-layer span:nth-child(3) { left: 28%; animation-duration: 17s; animation-delay: -3s; }
.bubble-layer span:nth-child(4) { left: 42%; width: clamp(2.6rem, 5.5vw, 5.5rem); animation-duration: 28s; animation-delay: -21s; }
.bubble-layer span:nth-child(5) { left: 56%; width: clamp(1rem, 2vw, 2rem); animation-duration: 15s; animation-delay: -12s; }
.bubble-layer span:nth-child(6) { left: 68%; width: clamp(2.2rem, 4.5vw, 4.75rem); animation-duration: 25s; animation-delay: -5s; }
.bubble-layer span:nth-child(7) { left: 78%; animation-duration: 19s; animation-delay: -14s; }
.bubble-layer span:nth-child(8) { left: 90%; width: clamp(2.5rem, 5vw, 5rem); animation-duration: 27s; animation-delay: -19s; }
.bubble-layer span:nth-child(9) { left: 34%; width: clamp(.9rem, 1.8vw, 1.7rem); animation-duration: 16s; animation-delay: -10s; }
.bubble-layer span:nth-child(10) { left: 63%; width: clamp(1.3rem, 2.8vw, 3rem); animation-duration: 22s; animation-delay: -2s; }

@keyframes bubble-rise {
  from { transform: translate3d(0, 0, 0) scale(.8); opacity: 0; }
  12% { opacity: .5; }
  88% { opacity: .35; }
  to { transform: translate3d(3vw, -115vh, 0) scale(1.2); opacity: 0; }
}

:focus-visible {
  outline: 3px solid var(--rfa-lime);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 100;
  padding: .65rem 1rem;
  color: var(--rfa-ink);
  background: var(--rfa-lime);
  border-radius: .4rem;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.75rem;
  padding: .65rem max(1rem, calc((100% - var(--rfa-width)) / 2));
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid var(--rfa-line);
  backdrop-filter: blur(12px);
}
.site-header__brand { display: inline-flex; align-items: center; min-width: 0; }
.site-header__logo { width: 8.25rem; height: auto; max-height: 3.25rem; object-fit: contain; object-position: left center; }
.site-header nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1rem; padding: 0; margin: 0; list-style: none; }
.site-header nav a { padding: .4rem; color: var(--rfa-green-text); font-weight: 700; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--rfa-green); text-decoration: underline; text-underline-offset: .25rem; }

.call-button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .7rem 1rem;
  color: var(--rfa-ink);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  background: var(--rfa-lime);
  border: 2px solid var(--rfa-lime);
  border-radius: 999px;
  box-shadow: 0 .25rem .7rem rgb(6 76 42 / 13%);
  transition: transform .2s ease, opacity .2s ease;
}
.call-button:hover, .button:hover { transform: translateY(-2px); opacity: .92; }
.button--outline { color: var(--rfa-white); background: transparent; border-color: currentColor; box-shadow: none; }
.button--green { color: var(--rfa-white); background: var(--rfa-green); border-color: var(--rfa-green); }

.section { width: min(100% - 2rem, var(--rfa-width)); margin-inline: auto; padding-block: clamp(3rem, 7vw, 6rem); }
.section--wide { width: min(100% - 2rem, 82rem); }
.section--light { background: var(--rfa-white); }
.section__eyebrow { margin: 0 0 .5rem; color: var(--rfa-green-text); font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.section__title { max-width: 19ch; margin: 0; font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1.08; letter-spacing: -.04em; }
.section__intro { max-width: 64ch; margin: 1rem 0 0; color: var(--rfa-muted); font-size: 1.1rem; }

.hero { position: relative; overflow: hidden; color: var(--rfa-white); background-color: var(--rfa-ink); background-image: linear-gradient(120deg, rgb(6 76 42 / 83%), rgb(35 133 55 / 78%)), url("../images/fondo_limpieza.jpeg"); background-position: center; background-size: cover; }
.hero::after { position: absolute; inset: -25%; content: ""; background: linear-gradient(120deg, transparent 40%, rgb(255 255 255 / 22%), transparent 60%); transform: translateX(-45%) rotate(8deg); transition: transform .7s ease; pointer-events: none; }
.hero:hover::after { transform: translateX(45%) rotate(8deg); }
.hero .section__eyebrow { color: var(--rfa-lime); }
.hero .section__intro { color: rgb(255 255 255 / 88%); }
.hero__content { position: relative; z-index: 1; max-width: 45rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.card-grid, .quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.service-card { display: flex; flex-direction: column; gap: .75rem; padding: clamp(1.25rem, 3vw, 2rem); color: var(--rfa-ink); background: var(--rfa-white); border: 1px solid var(--rfa-line); border-radius: var(--rfa-radius); box-shadow: 0 .35rem 1rem rgb(6 76 42 / 6%); transition: transform .2s ease, opacity .2s ease; }
.service-card:hover { transform: translateY(-.3rem); box-shadow: var(--rfa-shadow); }
.service-card h2, .service-card h3 { margin: 0; font-size: 1.3rem; line-height: 1.2; }
.service-card p { margin: 0; color: var(--rfa-muted); }
.service-card a:not(.button) { margin-top: auto; color: var(--rfa-green-text); font-weight: 800; }
.quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quote { margin: 0; padding: 1.5rem; color: var(--rfa-green-text); background: #edf6df; border-radius: var(--rfa-radius); }
.quote blockquote { margin: 0; font-size: 1.1rem; font-weight: 650; }
.quote figcaption { margin-top: 1rem; color: var(--rfa-muted); font-size: .94rem; }

.form-card { max-width: 46rem; padding: clamp(1.25rem, 4vw, 2.5rem); background: var(--rfa-white); border: 1px solid var(--rfa-line); border-radius: var(--rfa-radius); box-shadow: var(--rfa-shadow); }
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label { color: var(--rfa-green-text); font-weight: 800; }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea { width: 100%; padding: .75rem .85rem; color: var(--rfa-ink); background: var(--rfa-white); border: 1px solid #91ad99; border-radius: .55rem; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rfa-green); outline: 3px solid rgb(131 201 39 / 38%); outline-offset: 1px; }
.form-error { min-height: 1.3rem; margin: .25rem 0 0; color: #a21616; font-weight: 700; }
.mail-handoff { margin-top: 1rem; padding: 1rem; color: var(--rfa-green-text); background: #edf6df; border-left: .3rem solid var(--rfa-lime); border-radius: .3rem; }

.site-footer { padding: 2.5rem max(1rem, calc((100% - var(--rfa-width)) / 2)); color: var(--rfa-white); background: var(--rfa-ink); }
.site-footer, main { position: relative; z-index: 1; }
.site-footer a { color: var(--rfa-lime); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; }
.site-footer p { margin: .5rem 0; }

.reveal { opacity: 1; transform: none; }
.has-js .reveal[data-reveal-ready] { opacity: 0; transform: translateY(1rem); }
.has-js .reveal.is-visible { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }

.mobile-call-bar { display: none; }

.gallery-preview { background: var(--rfa-white); }
.before-after-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.before-after-card { overflow: hidden; background: var(--rfa-white); border: 1px solid var(--rfa-line); border-radius: var(--rfa-radius); box-shadow: var(--rfa-shadow); }
.before-after-visual { position: relative; display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 4 / 3; overflow: hidden; background: #e7efe5; }
.before-after-photo { width: 100%; height: 100%; object-fit: cover; }
.before-after-divider { position: absolute; z-index: 2; top: -10%; left: 50%; width: clamp(2.2rem, 7vw, 4.25rem); height: 120%; background: linear-gradient(180deg, var(--rfa-ink), #12391d 48%, var(--rfa-ink)); transform: translateX(-50%) rotate(7deg); }
.before-after-divider::after { position: absolute; top: .8rem; right: 48%; bottom: .8rem; width: 3px; content: ""; background: linear-gradient(180deg, transparent, var(--rfa-lime) 25%, var(--rfa-lime) 75%, transparent); }
.before-after-logo { position: absolute; z-index: 3; top: 50%; left: 50%; width: clamp(3.75rem, 12vw, 6.75rem); height: auto; padding: .25rem; background: var(--rfa-white); border: 3px solid var(--rfa-ink); border-radius: 50%; box-shadow: 0 0 0 3px var(--rfa-lime), 0 .75rem 1.25rem rgb(0 0 0 / 35%); transform: translate(-50%, -50%); }
.before-after-label { position: absolute; z-index: 4; top: .75rem; padding: .4rem .7rem; color: var(--rfa-white); font-size: clamp(.65rem, 1.7vw, .9rem); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--rfa-ink); box-shadow: .25rem .25rem 0 rgb(131 201 39 / 75%); }
.before-after-label--before { left: .75rem; }
.before-after-label--after { right: .75rem; }
.gallery-preview__link { margin-top: 1.5rem; }
.gallery-intro { max-width: 45rem; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2rem; }
.gallery-filter { padding: .6rem .9rem; color: var(--rfa-ink); font-weight: 800; background: var(--rfa-white); border: 1px solid var(--rfa-line); border-radius: 999px; }
.gallery-filter[aria-pressed="true"] { color: var(--rfa-white); background: var(--rfa-ink); border-color: var(--rfa-ink); }
.gallery-card__copy { padding: 1rem; }
.gallery-card__category { margin: 0; color: var(--rfa-green-text); font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.gallery-card__copy p:last-child { margin-bottom: 0; color: var(--rfa-muted); }

@media (max-width: 48rem) {
  body { padding-bottom: calc(4.8rem + env(safe-area-inset-bottom)); }
  .site-header { position: static; flex-wrap: wrap; justify-content: center; padding-block: .8rem; }
  .site-header__brand { width: 100%; justify-content: center; }
  .site-header__logo { object-position: center; }
  .site-header nav { width: 100%; order: 3; }
  .site-header nav ul { justify-content: space-around; gap: .15rem; }
  .site-header .call-button { display: none; }
  .section { width: min(100% - 1.5rem, var(--rfa-width)); }
  .card-grid, .quote-grid, .footer-grid, .before-after-grid { grid-template-columns: 1fr; }
  .mobile-call-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; display: block; padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom)); background: var(--rfa-ink); }
  .mobile-call-bar .call-button { display: flex; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
