:root {
  --primary: #297032;
  --primary-dark: #1c5223;
  --secondary: #c31632;
  --secondary-dark: #951024;
  --text: #2d3035;
  --muted: #68707b;
  --line: #e7e9ee;
  --surface: #ffffff;
  --soft: #f6f7f9;
  --soft-red: #fff1f3;
  --soft-green: #eefaf3;
  --shadow: 0 18px 50px rgba(39, 44, 52, 0.12);
  --radius: 8px;
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Outfit", sans-serif;
  line-height: 1.6;
  background: var(--surface);
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(41, 112, 50, 0.34);
  outline-offset: 3px;
}

.whatsapp-word {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-left: 0.42em;
  white-space: nowrap;
  vertical-align: middle;
}

.whatsapp-word img {
  width: 2em;
  height: 2em;
  flex: 0 0 auto;
  object-fit: contain;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.45rem, 6vw, 4.75rem);
  margin-bottom: 24px;
}

h2 {
  color: #23262b;
  font-size: clamp(2rem, 4vw, 3.15rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.container {
  width: min(1680px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--primary);
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.91);
  border-bottom: 1px solid rgba(231, 233, 238, 0.8);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 150px;
  min-height: 48px;
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  position: relative;
  z-index: 1;
  max-height: 58px;
  object-fit: contain;
}

.brand img:not([src]),
.brand img[src=""],
.brand img.is-missing {
  display: none;
}

.brand-fallback {
  display: none;
}

.brand img.is-missing + .brand-fallback {
  display: inline-flex;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: #39404a;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-menu a {
  position: relative;
  padding: 10px 0;
}

.nav-menu a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
  transform: scaleX(1);
}

.nav-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn i,
.mobile-sticky-actions i {
  width: 1em;
  flex: 0 0 1em;
  text-align: center;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 26px rgba(41, 112, 50, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-dark);
  box-shadow: 0 16px 34px rgba(41, 112, 50, 0.28);
}

.btn-secondary {
  color: #fff;
  background: var(--secondary);
  box-shadow: 0 12px 26px rgba(195, 22, 50, 0.2);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--secondary-dark);
}

.btn-outline {
  color: var(--primary);
  background: #fff;
  border-color: rgba(41, 112, 50, 0.22);
}

.btn-large {
  min-height: 52px;
  padding: 16px 22px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--soft);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.section {
  padding: 96px 0;
}

.section-soft {
  background: var(--soft);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  padding-top: 92px;
  background: #f8f9fb;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: url("assets/escombroshero.webp") center right / cover no-repeat;
  opacity: 0.72;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 8% 18%, rgba(41, 112, 50, 0.1), transparent 28%),
    radial-gradient(circle at 92% 28%, rgba(195, 22, 50, 0.12), transparent 30%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 34%, rgba(255, 255, 255, 0.24) 62%, rgba(255, 255, 255, 0.08) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(248, 249, 251, 0.28));
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(280px, 1fr);
  gap: 58px;
  align-items: center;
}

.eyebrow {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.17rem;
  margin-bottom: 28px;
}

.trust-badges,
.zone-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.trust-badges span,
.zone-badges span {
  padding: 9px 12px;
  color: #3f4650;
  font-size: 0.9rem;
  font-weight: 800;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.section-heading {
  max-width: 800px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading p:last-child,
.content-block p,
.zone-panel p {
  color: var(--muted);
}

.service-grid,
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.escombros-actions {
  justify-content: center;
  margin-top: 28px;
}

.service-card,
.info-card,
.benefit,
.step,
.before-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card {
  padding: 26px;
  text-align: center;
}

.service-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 20px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.service-card:hover,
.info-card:hover,
.benefit:hover,
.step:hover,
.before-card:hover {
  border-color: rgba(41, 112, 50, 0.18);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.service-card p {
  color: var(--muted);
}

.service-card a {
  display: inline-flex;
  justify-content: center;
  color: var(--primary);
  font-weight: 900;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px minmax(360px, 0.75fr);
  gap: 28px;
  align-items: center;
}

.split-grid.reversed {
  grid-template-columns: minmax(360px, 0.75fr) 360px minmax(0, 1.05fr);
}

.split-grid.reversed .content-block {
  order: 3;
}

.split-grid.reversed .feature-list {
  order: 1;
}

.split-grid.reversed .section-image {
  order: 2;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 26px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(39, 44, 52, 0.08);
}

.section-image,
.info-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: 0 12px 36px rgba(39, 44, 52, 0.08);
}

.feature-list li {
  position: relative;
  padding-left: 34px;
  font-weight: 800;
}

.feature-list li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  content: "✓";
  background: var(--primary);
  border-radius: 50%;
  font-size: 0.8rem;
}

.green-list li::before {
  background: var(--secondary);
}

.two-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-card {
  padding: 30px;
}

.info-card-image {
  margin-bottom: 22px;
  box-shadow: none;
}

.info-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.icon-info-card {
  display: grid;
  justify-items: center;
  text-align: center;
}

.icon-info-card p {
  max-width: 620px;
  margin-bottom: 18px;
}

.icon-info-card a {
  display: inline-flex;
  justify-content: center;
  color: var(--primary);
  font-weight: 900;
}

.large-service-icon {
  display: grid;
  width: 86px;
  height: 86px;
  margin-bottom: 22px;
  place-items: center;
  color: #fff;
  font-size: 2.2rem;
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(39, 44, 52, 0.12);
}

.green-icon {
  background: var(--primary);
}

.red-icon {
  background: var(--secondary);
}

.benefit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefit {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 24px;
  font-weight: 900;
}

.benefit span {
  display: block;
}

.benefit img {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: var(--radius);
  filter: drop-shadow(0 12px 20px rgba(39, 44, 52, 0.12));
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: steps;
}

.step {
  position: relative;
  padding: 26px;
  text-align: center;
}

.step > img {
  width: 110px;
  height: 110px;
  margin: 0 auto 22px;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(39, 44, 52, 0.12));
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.before-card {
  overflow: hidden;
  background: #fff;
  font-weight: 900;
}

.before-card h3,
.before-card p {
  margin: 0;
  padding-right: 24px;
  padding-left: 24px;
}

.before-card h3 {
  padding-top: 22px;
  font-size: 1.1rem;
}

.before-card p {
  padding-top: 6px;
  padding-bottom: 24px;
  color: var(--muted);
}

.comparison {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  --position: 50%;
}

.comparison-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-before {
  position: absolute;
  inset: 0;
  width: var(--position);
  overflow: hidden;
  z-index: 1;
}

.comparison-before .comparison-image {
  width: calc(100% / (var(--position-decimal, 0.5)));
  max-width: none;
}

.comparison-label {
  position: absolute;
  top: 14px;
  z-index: 3;
  padding: 7px 10px;
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.before-label {
  left: 14px;
  background: var(--secondary);
}

.after-label {
  right: 14px;
  background: var(--primary);
}

.comparison-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position);
  z-index: 4;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(35, 38, 43, 0.12), 0 0 24px rgba(35, 38, 43, 0.25);
  transform: translateX(-50%);
  pointer-events: none;
}

.comparison-line::after {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  content: "↔";
  color: #fff;
  background: var(--secondary);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(35, 38, 43, 0.24);
  transform: translate(-50%, -50%);
}

.comparison-range {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}

.zone-panel {
  padding: 38px;
  background:
    radial-gradient(circle at right top, rgba(41, 112, 50, 0.08), transparent 32%),
    #f7f8fa;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.zone-panel h2 {
  max-width: 980px;
  font-size: clamp(1.85rem, 3.4vw, 2.8rem);
}

.faq-wrap {
  max-width: 920px;
}

.locality-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.locality-list span {
  padding: 7px 10px;
  color: #4e5661;
  background: #fff;
  border: 1px solid #e0e3e8;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.faq-item button {
  position: relative;
  width: 100%;
  padding: 22px 58px 22px 22px;
  color: var(--text);
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.faq-item button::after {
  position: absolute;
  top: 50%;
  right: 22px;
  width: 28px;
  height: 28px;
  content: "+";
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  transform: translateY(-50%);
  text-align: center;
  line-height: 28px;
}

.faq-item.is-open button::after {
  content: "−";
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.24s ease;
}

.faq-content p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 44px;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: calc(var(--header-height) + 28px);
}

.contact-copy p {
  color: var(--muted);
}

.contact-options {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-options a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-options a::after {
  content: "→";
  color: var(--primary);
}

.contact-link-text {
  display: inline-flex;
  align-items: center;
  gap: 0.58em;
}

.contact-link-text i {
  width: 1.1em;
  color: var(--primary);
  text-align: center;
}

.contact-options a:hover,
.contact-options a:focus-visible {
  border-color: rgba(41, 112, 50, 0.22);
  box-shadow: 0 12px 30px rgba(39, 44, 52, 0.08);
  transform: translateY(-2px);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row.full {
  grid-column: 1 / -1;
}

.form-row label {
  font-size: 0.92rem;
  font-weight: 900;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row textarea {
  min-height: 138px;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: rgba(41, 112, 50, 0.55);
  box-shadow: 0 0 0 4px rgba(41, 112, 50, 0.11);
}

.contact-form .btn {
  grid-column: 1 / -1;
  width: 100%;
}

.privacy-check {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.privacy-check input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--primary);
}

.privacy-check a {
  color: var(--primary);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.turnstile-row {
  grid-column: 1 / -1;
  min-height: 65px;
}

.contact-form .btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-message {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.form-message.is-success {
  color: var(--primary);
}

.form-message.is-error {
  color: var(--secondary);
}

.final-cta {
  background: linear-gradient(135deg, var(--primary), #3f8d49);
}

.cta-panel {
  max-width: 860px;
  color: #fff;
  text-align: center;
}

.cta-panel h2 {
  color: #fff;
}

.cta-panel p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.15rem;
}

.cta-panel .hero-actions {
  justify-content: center;
}

.cta-panel .btn-primary {
  color: var(--primary);
  background: #fff;
}

.cta-panel .btn-secondary {
  background: var(--secondary);
}

.cta-panel .cta-form-link {
  color: var(--primary);
  background: #fff;
}

.footer {
  padding: 56px 0 76px;
  color: var(--text);
  background: #f7f7f7;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr 0.95fr;
  gap: 42px;
}

.footer h3 {
  color: var(--text);
  font-size: 1rem;
}

.footer p,
.footer a {
  color: var(--muted);
}

.footer p {
  margin-bottom: 8px;
}

.footer strong,
.footer a:hover,
.footer a:focus-visible {
  color: var(--primary);
}

.footer-brand {
  margin-bottom: 18px;
  color: var(--primary);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

.copyright {
  padding: 16px 0;
  color: var(--muted);
  background: #eeeeee;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  text-align: center;
}

.copyright p {
  margin: 0;
}

.copyright a {
  color: var(--primary);
  font-weight: 800;
}

.mobile-sticky-actions {
  display: none;
}

.cookie-banner {
  position: fixed;
  right: auto;
  bottom: 18px;
  left: 18px;
  z-index: 120;
  width: min(300px, calc(100% - 36px));
  padding: 24px 20px 18px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(39, 44, 52, 0.24);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--text);
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
}

.cookie-banner h2 {
  max-width: 220px;
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.cookie-banner p {
  margin-bottom: 0;
  color: #3e444c;
  font-size: 0.86rem;
  line-height: 1.55;
}

.cookie-policy {
  display: inline-flex;
  margin-top: 4px;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
}

.cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.cookie-actions button,
.cookie-details-toggle {
  min-height: 40px;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.cookie-actions button {
  padding: 0 10px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.cookie-accept {
  color: #fff;
  border: 1px solid var(--primary);
  background: #69ad4c;
}

.cookie-reject {
  color: var(--text);
  border: 1px solid var(--text);
  background: #fff;
}

.cookie-details-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
  color: #555a61;
  border: 0;
  background: transparent;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.cookie-details {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.cookie-details[hidden] {
  display: none;
}

.cookie-details p {
  font-size: 0.78rem;
}

.legal-page {
  background: var(--soft);
}

.legal-container {
  max-width: 980px;
}

.legal-page h1 {
  margin-bottom: 30px;
  font-size: clamp(2.25rem, 4vw, 3.75rem);
}

.legal-content {
  padding: 38px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(39, 44, 52, 0.08);
}

.legal-content h2 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--muted);
}

.legal-content ul {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.legal-content a {
  color: var(--primary);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 1080px) {
  .nav-actions {
    display: none;
  }

  .hero-grid,
  .split-grid,
  .split-grid.reversed {
    grid-template-columns: 1fr;
  }

  .split-grid.reversed .content-block {
    order: 0;
  }

  .split-grid.reversed .feature-list,
  .split-grid.reversed .section-image {
    order: 0;
  }

  .service-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 72px;
  }

  .container {
    width: min(100% - 28px, 1680px);
  }

  .site-header {
    min-height: var(--header-height);
  }

  .nav {
    min-height: var(--header-height);
  }

  .brand img {
    max-width: 138px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: 14px;
    left: 14px;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu a {
    padding: 14px;
    border-radius: var(--radius);
  }

  .nav-menu a:hover,
  .nav-menu a:focus-visible {
    background: var(--soft);
  }

  .nav-menu a::after {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .hero::before {
    background-image: url("assets/escombroshero-640.webp");
    background-position: center;
    opacity: 0.34;
  }

  .hero::after {
    background:
      radial-gradient(circle at 8% 18%, rgba(41, 112, 50, 0.14), transparent 28%),
      radial-gradient(circle at 92% 28%, rgba(195, 22, 50, 0.12), transparent 30%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.84) 62%, rgba(248, 249, 251, 0.88) 100%);
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .service-grid,
  .benefit-grid,
  .timeline,
  .before-after-grid,
  .two-cards,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    position: static;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .zone-panel {
    padding: 24px;
  }

  .footer {
    padding-bottom: 96px;
  }

  .mobile-sticky-actions {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
  }

  .cookie-banner {
    bottom: 88px;
    left: 12px;
    width: min(300px, calc(100% - 24px));
  }

  .mobile-sticky-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    min-height: 46px;
    color: #fff;
    border-radius: var(--radius);
    background: var(--primary);
    font-weight: 900;
  }

  .mobile-sticky-actions a:last-child {
    background: var(--secondary);
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 2.3rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .trust-badges span,
  .zone-badges span {
    width: 100%;
  }

}

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