/* =========================================================
   Grupo Ecoplagas — estilos del sitio
   Mobile-first: los estilos base son para celular y los
   @media (min-width) suman ajustes para pantallas grandes.
   ========================================================= */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

:root {
  /* Colores de marca (tomados del logo y la carpeta de presentación) */
  --brand-red: #ED1C24;   /* rojo del logo: acentos y piezas grandes */
  --brand-green: #00A650; /* verde de las bandas de la carpeta */

  /* Variantes con contraste accesible (AA) */
  --red-700: #C8141C;     /* texto rojo sobre blanco */
  --green-700: #0B6E3B;   /* botones y enlaces */
  --green-800: #095A30;
  --green-900: #0A3B26;   /* fondos oscuros */
  --green-100: #D7EBDE;
  --green-50: #EEF6F0;

  /* Neutros */
  --ink: #18201C;
  --text: #2F3833;
  --muted: #55605A;
  --line: #E2E6E1;
  --bg: #FFFFFF;
  --bg-soft: #F5F7F3;
  --on-dark: #C9DDD0;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(16 40 28 / .05), 0 2px 6px rgb(16 40 28 / .06);
  --shadow: 0 18px 40px -20px rgb(16 40 28 / .35);
  --container: 1160px;
  --gutter: 20px;
  --header-h: 68px;
  --mobile-cta-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  padding-bottom: calc(var(--mobile-cta-h) + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--green-700); text-underline-offset: 3px; }
::selection { background: var(--green-100); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--green-700);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--green-900);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: .75em 1.35em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn .icon { width: 1.2em; height: 1.2em; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--green-700);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgb(11 110 59 / .8);
}
.btn--primary:hover { background: var(--green-800); }

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: #C9D6CD;
}
.btn--ghost:hover { border-color: var(--green-700); color: var(--green-800); }

.btn--light {
  background: #fff;
  color: var(--green-800);
}
.btn--light:hover { background: var(--green-50); }
.btn--light:focus-visible { outline-color: #fff; }

.btn--sm { min-height: 44px; padding: .55em 1.1em; font-size: .95rem; }
.btn--lg { min-height: 54px; padding: .85em 1.6em; font-size: 1.05rem; }

/* ---------- Etiqueta de sección con las flechas de la carpeta ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .9rem;
  color: var(--red-700);
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 10px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 10'%3E%3Cpath fill='%23ED1C24' d='M0 0l7 5-7 5 2-5zM11 0l7 5-7 5 2-5zM22 0l7 5-7 5 2-5z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.eyebrow--light { color: #A8DDBA; }

/* ---------- Barra superior ---------- */
.topbar { display: none; }

/* ---------- Encabezado ---------- */
/* Fondo blanco sólido: el insecto del logo es un calado y toma el color de fondo */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand { display: block; flex: none; border-radius: 8px; }
.brand img { width: auto; height: 42px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

/* Menú en celular: panel desplegable */
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px var(--gutter) 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px -18px rgb(16 40 28 / .35);
}
.site-header.is-open .site-nav { display: block; }

.site-nav__list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
}
.site-nav__cta { width: 100%; margin-top: 18px; }
.site-nav__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 6px;
  color: var(--green-800);
  font-weight: 700;
  text-decoration: none;
}

/* Sin JavaScript: el menú queda siempre visible (y el encabezado deja de ser fijo en celular) */
.no-js .site-header { position: relative; }
.no-js .nav-toggle { display: none; }
.no-js .site-header__inner { flex-wrap: wrap; padding-block: 8px; }
.no-js .site-nav { display: block; position: static; width: 100%; padding: 0; box-shadow: none; border: 0; }

/* ---------- Portada ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 56px;
  background:
    radial-gradient(60rem 30rem at 100% 0%, rgb(0 166 80 / .08), transparent 60%),
    linear-gradient(180deg, var(--bg-soft), #fff 85%);
}

.hero__grid { display: grid; gap: 40px; align-items: center; }

.hero h1 {
  font-size: clamp(2.1rem, 1.25rem + 4.2vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero h1 .accent { color: var(--green-700); }

.hero__lead {
  max-width: 34em;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem);
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 22px;
  padding: 6px 16px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--red-700);
  font-size: .98rem;
  font-weight: 800;
}
.stamp .icon {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
  stroke-width: 3;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.hero__call { margin-top: 18px; color: var(--muted); font-size: .98rem; }
.hero__call a { display: inline-block; padding-block: 8px; font-weight: 700; white-space: nowrap; }

/* Imagen de portada con el corte diagonal de la carpeta */
.hero__visual { position: relative; aspect-ratio: 4 / 3; }
.hero__band {
  position: absolute;
  inset: 0;
  background: var(--brand-green);
  clip-path: polygon(0 9%, 100% -5%, 100% 1%, 0 15%);
}

.photo-slot {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--green-900);
  clip-path: polygon(0 18%, 100% 4%, 100% 100%, 0 100%);
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Secciones ---------- */
.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--green-900); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }

.section__header { max-width: 680px; margin-bottom: 36px; }
.section__header h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem); }
.section__header p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }
.section--dark .section__header p:not(.eyebrow) { color: var(--on-dark); }

/* ---------- Servicios ---------- */
.services { display: grid; gap: 16px; }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -1px;
  left: 24px;
  width: 44px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--brand-red);
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #CFE0D5; }

/* Foto de cabecera de la tarjeta, de borde a borde */
.service-card__media {
  margin: -28px -24px 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  background: var(--green-50);
}
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.service-card:hover .service-card__media img { transform: scale(1.03); }

.service-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
  border-radius: 14px;
  background: var(--green-50);
  color: var(--green-700);
}
.service-card__icon .icon { width: 28px; height: 28px; }
/* Con foto, el ícono se apoya sobre el borde inferior de la imagen */
.service-card__media + .service-card__icon {
  position: relative;
  margin-top: -40px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.service-card h3 { font-size: 1.22rem; }
.service-card p { color: var(--muted); font-size: 1rem; }

.service-card__note {
  padding-left: 12px;
  border-left: 3px solid var(--brand-green);
  color: var(--green-800) !important;
  font-weight: 600;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  color: var(--green-700);
  font-weight: 700;
  text-decoration: none;
}
.service-card__link .icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
.service-card__link:hover { text-decoration: underline; }
.service-card__link:hover .icon { transform: translateX(3px); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: .85rem;
  font-weight: 600;
}

.service-card--cta {
  border-color: transparent;
  background:
    radial-gradient(circle at 100% 0%, rgb(0 166 80 / .35), transparent 55%),
    var(--green-900);
}
.service-card--cta h3 { color: #fff; }
.service-card--cta p { color: var(--on-dark); }
.service-card--cta .service-card__icon { background: rgb(255 255 255 / .1); color: #fff; }
.service-card--cta .btn { align-self: flex-start; margin-top: auto; }

/* ---------- La empresa ---------- */
.about { display: grid; gap: 40px; }
.about__text h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem); }
.about__lead { margin-top: 18px; font-size: 1.1rem; }

.pillars { display: grid; gap: 20px; margin-top: 30px; }
.pillar { display: flex; align-items: flex-start; gap: 16px; }
.pillar__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--green-700);
}
.pillar__icon .icon { width: 24px; height: 24px; }
.pillar h3 { font-size: 1.08rem; }
.pillar p { margin-top: 2px; color: var(--muted); font-size: .98rem; }

/* Foto de la empresa con el panel de marca encimado */
.about__visual { display: grid; }
.about__photo {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--green-50);
  box-shadow: var(--shadow);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__visual .brand-panel { margin: -48px 8px 0; padding: 36px 16px 60px; }
.about__visual .brand-panel__logo { width: min(240px, 75%); }

/* Panel de marca: logo blanco sobre el rojo de la carpeta */
.brand-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 44px 28px 64px;
  border-radius: var(--radius-lg);
  background: var(--brand-red);
  box-shadow: var(--shadow);
  color: #fff;
  text-align: center;
}
.brand-panel__band {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: -1;
  width: 100%;
  height: 64px;
}
.brand-panel__logo { width: min(280px, 80%); height: auto; }
.brand-panel__motto {
  max-width: 17em;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.brand-panel__claim {
  padding: 8px 20px;
  border: 2px solid rgb(255 255 255 / .7);
  border-radius: 999px;
  font-size: 1.25rem;
  font-weight: 800;
}

/* ---------- Cómo trabajamos ---------- */
.steps { display: grid; gap: 16px; }

.step {
  position: relative;
  padding: 26px 24px;
  border: 1px solid rgb(255 255 255 / .12);
  border-radius: var(--radius);
  background: rgb(255 255 255 / .05);
}
.step__number {
  position: absolute;
  top: 16px;
  right: 22px;
  color: rgb(255 255 255 / .14);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
}
.step__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
}
.step__icon .icon { width: 24px; height: 24px; }
.step h3 { margin-top: 18px; font-size: 1.25rem; }
.step p { margin-top: 8px; color: var(--on-dark); }

.steps__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid rgb(255 255 255 / .14);
}
.steps__footer p { max-width: 46em; color: var(--on-dark); font-size: .98rem; }
.steps__footer .btn { flex: none; }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 28px; }
.contact-list { display: grid; gap: 12px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.contact-item__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-700);
}
.contact-item__icon .icon { width: 22px; height: 22px; }
.contact-item__body { min-width: 0; }
.contact-item h3 {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-item p {
  margin-top: 2px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.contact-item__action {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: .95rem;
  font-weight: 700;
}

.is-pending {
  display: inline-flex;
  margin-top: 6px !important;
  padding: 2px 10px;
  border: 1px dashed #D9A63A;
  border-radius: 999px;
  background: #FFF6DD;
  color: #7A4F00 !important;
  font-size: .88rem !important;
}

.form-card {
  padding: 28px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.form-card__title { font-size: 1.4rem; }
.form-card__intro { margin-top: 6px; color: var(--muted); }
.form-card__noscript {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #FFF6DD;
  color: #7A4F00;
}

.form { display: grid; gap: 18px; margin-top: 22px; }
.form__row { display: grid; gap: 18px; }

.field { display: grid; gap: 6px; }
.field label { color: var(--ink); font-size: .95rem; font-weight: 700; }
.field__req, .field__opt { color: var(--muted); font-size: .85rem; font-weight: 500; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid #C5D0C8;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 42px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355605A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 4px rgb(11 110 59 / .16);
  outline: none;
}
.field [aria-invalid="true"] { border-color: var(--red-700); }
.field__hint { color: var(--muted); font-size: .88rem; }
.field__error { color: var(--red-700); font-size: .9rem; font-weight: 600; }

.form__actions { display: flex; flex-direction: column; gap: 10px; }
.form__note { color: var(--muted); font-size: .88rem; }
.form__status:empty { display: none; }
.form__status {
  padding: 12px 14px;
  border: 1px solid var(--green-100);
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-900);
  font-size: .95rem;
}

/* ---------- Pie de página ---------- */
.site-footer { background: #fff; }
.stripe { display: block; width: 100%; height: 26px; }

.site-footer__main { padding: 44px 0 36px; }
.site-footer__grid { display: grid; gap: 32px; }

.site-footer__brand img { width: 260px; height: auto; }
.site-footer__brand p { margin-top: 14px; color: var(--muted); font-weight: 600; }

.site-footer__title {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.site-footer__col a,
.site-footer__col span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.site-footer__col a:hover { color: var(--green-700); text-decoration: underline; }
.site-footer__contact .icon { color: var(--green-700); }

.site-footer__bottom { padding: 16px 0; background: var(--green-900); color: var(--on-dark); font-size: .9rem; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.to-top:hover { text-decoration: underline; }
.to-top:focus-visible { outline-color: #fff; }

/* ---------- Barra fija de contacto (celular) ---------- */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgb(255 255 255 / .97);
  box-shadow: 0 -10px 24px -14px rgb(16 40 28 / .3);
}
.mobile-cta .btn { min-height: 50px; padding-inline: 1em; }

/* ---------- Página 404 ---------- */
.page-404 { padding-bottom: 0; }
.notfound {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 40px var(--gutter);
  text-align: center;
}
.notfound__logo { margin-bottom: 18px; border-radius: 8px; }
.notfound__logo img { width: min(300px, 80vw); height: auto; }
.notfound h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem); }
.notfound__text { max-width: 30em; color: var(--muted); }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }

/* =========================================================
   Pantallas medianas y grandes
   ========================================================= */
@media (min-width: 480px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .form__actions { flex-direction: row; flex-wrap: wrap; }
}

@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .services { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 34px 32px; }
  .contact-list { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .stripe { height: 34px; }
}

@media (min-width: 900px) {
  :root { --header-h: 78px; }

  body { padding-bottom: 0; }
  .mobile-cta { display: none; }

  .topbar {
    display: block;
    background: var(--green-900);
    color: var(--on-dark);
    font-size: .875rem;
  }
  .topbar__inner { display: flex; justify-content: flex-end; gap: 28px; min-height: 40px; align-items: center; }
  .topbar__item { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
  .topbar__item .icon { width: 16px; height: 16px; color: #8FD3A8; }
  .topbar a:hover { color: #fff; text-decoration: underline; }
  .topbar a:focus-visible { outline-color: #fff; }
  .topbar__item:first-child { margin-right: auto; }

  .brand img { height: 50px; }
  .nav-toggle { display: none; }

  .site-nav,
  .no-js .site-nav {
    display: flex;
    position: static;
    align-items: center;
    gap: 20px;
    width: auto;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }
  .site-nav__list { display: flex; gap: 2px; }
  .site-nav__list a {
    position: relative;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    font-size: .98rem;
    white-space: nowrap;
  }
  .site-nav__list a:hover { background: var(--green-50); color: var(--green-800); }
  .site-nav__list a.is-active { color: var(--green-700); }
  .site-nav__list a.is-active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 3px;
    border-radius: 3px;
    background: var(--brand-red);
  }
  .site-nav__cta { width: auto; margin-top: 0; }
  .site-nav__phone { display: none; }
  .no-js .site-header { position: sticky; }
  .no-js .site-header__inner { flex-wrap: nowrap; padding-block: 0; }

  .hero { padding: 72px 0 96px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .hero__visual { aspect-ratio: 5 / 5.4; }

  .section { padding: 96px 0; }
  .section__header { margin-bottom: 48px; }

  .about { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 64px; }
  .about__visual .brand-panel { margin: -72px 28px 0; padding: 40px 32px 72px; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -22px;
    width: 16px;
    height: 12px;
    transform: translateY(-50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 10'%3E%3Cpath fill='%23ED1C24' d='M0 0l7 5-7 5 2-5z'/%3E%3C/svg%3E") no-repeat center / contain;
  }
  .steps__footer { flex-direction: row; align-items: center; justify-content: space-between; }

  .contact { grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
  .contact-list { grid-template-columns: 1fr; }

  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.3fr; gap: 48px; }
  .site-footer__brand { grid-column: auto; }
  .site-footer__brand img { width: 300px; }
  .stripe { height: 40px; }
}

/* Entre 900 y 1100 px el botón del encabezado se acorta para que entre el menú */
@media (min-width: 900px) and (max-width: 1099px) {
  .site-nav { gap: 12px; }
  .site-nav__cta-long { display: none; }
}

@media (min-width: 1100px) {
  .services { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

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