/* =========================================================
   MP Solutions Group — estilos
   ========================================================= */

:root {
  /* Paleta (extraída del logo) */
  --c-azul:        #1E40AF;
  --c-azul-700:    #1b3aa0;
  --c-azul-900:    #142a6e;
  --c-celeste:     #5b9bd5;
  --c-celeste-200: #cfe3f7;
  --c-plata:       #c2c7d0;
  --c-plata-300:   #e6e9ef;
  --c-blanco:      #ffffff;
  --c-texto:       #2b3346;
  --c-texto-soft:  #5b6478;
  --c-bg:          #ffffff;
  --c-bg-alt:      #f4f7fc;
  --c-borde:       #e2e8f2;
  --c-whatsapp:    #25d366;
  --c-whatsapp-d:  #1da851;

  /* Tipografías */
  --font-head: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --maxw: 1160px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(20, 42, 110, 0.08);
  --shadow-md: 0 14px 40px rgba(20, 42, 110, 0.12);
  --header-h: 72px;
  --grad-azul: linear-gradient(135deg, var(--c-azul) 0%, var(--c-azul-900) 100%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-texto);
  background: var(--c-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--c-azul-900); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--c-azul-900); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Iconos ---------- */
.icon { width: 22px; height: 22px; flex: none; }
.icon--lg { width: 28px; height: 28px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 20px; height: 20px; }
.btn--primary { background: var(--grad-azul); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--whatsapp { background: var(--c-whatsapp); color: #fff; box-shadow: 0 8px 22px rgba(37,211,102,.35); }
.btn--whatsapp:hover { background: var(--c-whatsapp-d); }
.btn--block { width: 100%; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__img { height: 42px; width: auto; display: block; }
.logo__mark { width: 46px; height: auto; }
.logo__m { fill: var(--c-azul); }
.logo__p { fill: url(#plata-grad); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__solutions { font-family: var(--font-head); font-weight: 800; font-size: 1.18rem; color: var(--c-azul-900); letter-spacing: -.01em; }
.logo__group { font-family: var(--font-head); font-weight: 600; font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--c-texto-soft); }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s ease, border-color .25s ease;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--c-borde); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.nav { display: flex; align-items: center; gap: 20px; }
.nav__list { display: flex; gap: 20px; }
.nav__link {
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--c-azul-900);
  padding: 6px 0; position: relative; white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--c-azul); transition: width .25s ease;
}
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__link.is-active { color: var(--c-azul); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer; padding: 10px;
}
.nav-toggle span { height: 2.5px; width: 100%; background: var(--c-azul-900); border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--grad-azul);
  padding: clamp(70px, 12vw, 130px) 0 clamp(80px, 12vw, 120px);
}
.hero--page { padding: clamp(56px, 9vw, 96px) 0 clamp(56px, 9vw, 90px); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__waves { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__inner { position: relative; z-index: 1; max-width: 760px; }
.hero__eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--c-celeste-200);
  margin: 0 0 18px; padding: 6px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
}
.hero__title { color: #fff; font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; margin-bottom: .35em; }
.hero__title span { color: var(--c-celeste-200); }
.hero__subtitle { font-size: clamp(1.02rem, 2.2vw, 1.2rem); color: rgba(255,255,255,.9); max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 0; }
.hero__badges {
  display: flex; flex-wrap: wrap; gap: 30px 44px; margin-top: 52px;
  padding-top: 30px; border-top: 1px solid rgba(255,255,255,.18);
}
.hero__badges li { display: flex; flex-direction: column; }
.hero__badges strong { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: #fff; }
.hero__badges span { font-size: .9rem; color: rgba(255,255,255,.78); }

/* ---------- Secciones genéricas ---------- */
.section { padding: clamp(64px, 10vw, 110px) 0; }
.section--alt { background: var(--c-bg-alt); }
.section__head { max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section__eyebrow {
  font-family: var(--font-head); font-weight: 700; font-size: .82rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--c-azul); margin: 0 0 12px;
}
.section__title { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
.section__lead { color: var(--c-texto-soft); font-size: 1.08rem; }

/* ---------- Servicios (grilla de tarjetas, reusa .feature) ---------- */
.services { display: grid; gap: 24px; grid-template-columns: 1fr; }

/* ---------- Nosotros ---------- */
.about { display: grid; gap: clamp(34px, 5vw, 64px); grid-template-columns: 1fr; align-items: center; }
.about__media { order: -1; }
.about__card {
  background: linear-gradient(150deg, #ffffff 0%, #eef3fb 100%); border: 1px solid var(--c-borde);
  border-radius: var(--radius); padding: 48px 32px; text-align: center;
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.about__card::after {
  content: ""; position: absolute; inset: auto -20% -45% -20%; height: 70%;
  background: radial-gradient(ellipse at center, rgba(91,155,213,.18), transparent 70%);
}
.about__logo { width: clamp(170px, 62%, 230px); height: auto; margin: 0 auto 18px; position: relative; z-index: 1; }
.about__card p { color: var(--c-azul-900); font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; margin: 0; position: relative; z-index: 1; }
.about__content p { color: var(--c-texto-soft); }
.about__content p strong { color: var(--c-texto); }
.about__values { display: grid; gap: 20px; margin-top: 26px; }
.about__values h4 { color: var(--c-azul); font-size: 1.05rem; margin-bottom: .2em; }
.about__values p { margin: 0; font-size: .96rem; }

/* ---------- Features ---------- */
.features { display: grid; gap: 24px; grid-template-columns: 1fr; }
.feature {
  background: #fff; border: 1px solid var(--c-borde); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px;
  border-radius: 14px; background: var(--c-celeste-200); color: var(--c-azul); margin-bottom: 16px;
}
.feature h3 { font-size: 1.18rem; }
.feature p { margin: 0; color: var(--c-texto-soft); font-size: .97rem; }

/* ---------- Carrusel (instalaciones) ---------- */
.carousel { position: relative; max-width: 940px; margin: 0 auto; }
.carousel__viewport {
  overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--c-borde); box-shadow: var(--shadow-md); background: var(--c-bg-alt);
}
.carousel__track {
  display: flex; margin: 0; padding: 0; list-style: none;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}
.carousel__slide { flex: 0 0 100%; min-width: 0; }
.carousel__slide img {
  width: 100%; height: clamp(220px, 46vw, 480px); object-fit: cover; display: block;
}
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--c-azul-900);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); transition: background .2s ease, transform .2s ease;
}
.carousel__btn:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.carousel__btn svg { width: 24px; height: 24px; }
.carousel__btn--prev { left: 14px; }
.carousel__btn--next { right: 14px; }
.carousel__dots { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.carousel__dot {
  width: 11px; height: 11px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--c-plata); transition: background .2s ease, transform .2s ease;
}
.carousel__dot:hover { background: var(--c-celeste); }
.carousel__dot.is-active { background: var(--c-azul); transform: scale(1.25); }

/* ---------- Proceso ---------- */
.process { display: grid; gap: 24px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
.process__step {
  position: relative; background: #fff; border: 1px solid var(--c-borde); border-radius: var(--radius);
  padding: 30px 26px 26px; box-shadow: var(--shadow-sm);
}
.process__num {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 50%; background: var(--grad-azul); color: #fff; font-family: var(--font-head);
  font-weight: 800; font-size: 1.25rem; margin-bottom: 14px;
}
.process__step h3 { font-size: 1.18rem; }
.process__step p { margin: 0; color: var(--c-texto-soft); font-size: .97rem; }

/* ---------- Stats ---------- */
.stats { background: var(--c-azul-900); color: #fff; padding: clamp(48px, 7vw, 76px) 0; position: relative; overflow: hidden; }
.stats::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% -10%, rgba(91,155,213,.4), transparent 55%);
}
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 20px; text-align: center; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 6vw, 3.2rem); color: #fff; line-height: 1; }
.stat__label { color: var(--c-celeste-200); font-size: .98rem; }

/* ---------- Banner "Trabajá con nosotros" (landing) ---------- */
.join-banner { background: linear-gradient(135deg, #eef3fb 0%, #dce8f7 100%); padding: clamp(36px, 6vw, 56px) 0; }
.join-banner__inner { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.join-banner__eyebrow { font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--c-azul); margin: 0 0 8px; }
.join-banner__title { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 .3em; }
.join-banner__lead { color: var(--c-texto-soft); margin: 0; max-width: 640px; }
.join-banner__cta { flex-shrink: 0; }

/* ---------- Trabajá con nosotros (página empleo) ---------- */
.join { display: grid; gap: clamp(28px, 5vw, 48px); grid-template-columns: 1fr; align-items: center; }
.join__content .section__title { text-align: left; }
.join__content .section__lead { color: var(--c-texto-soft); }
.join__perks { display: grid; gap: 10px; margin-top: 20px; }
.join__perks li { position: relative; padding-left: 30px; color: var(--c-texto); }
.join__perks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--c-celeste-200) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231E40AF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.join__card {
  background: #fff; border: 1px solid var(--c-borde); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 34px); box-shadow: var(--shadow-md);
}
.join__card h3 { font-size: 1.35rem; }
.join__card > p { color: var(--c-texto-soft); margin-bottom: 18px; }
.join__card .btn { margin-bottom: 10px; }
.join__note { font-size: .85rem; color: var(--c-texto-soft); margin: 8px 0 0; text-align: center; }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: clamp(34px, 5vw, 56px); grid-template-columns: 1fr; align-items: start; }
.contact__intro .section__title { text-align: left; }
.contact__data { display: grid; gap: 14px; margin-top: 22px; }
.contact__data li { display: flex; align-items: center; gap: 12px; color: var(--c-texto); }
.contact__data .icon { color: var(--c-azul); }
.contact__data a:hover { color: var(--c-azul); }

.contact__form {
  background: #fff; border: 1px solid var(--c-borde); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow-md);
}
.field { display: flex; flex-direction: column; margin-bottom: 18px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .92rem; margin-bottom: 7px; color: var(--c-azul-900); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--c-texto); width: 100%; min-width: 0;
  padding: 12px 14px; border: 1.5px solid var(--c-borde); border-radius: var(--radius-sm);
  background: #fbfcfe; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--c-azul); background: #fff; box-shadow: 0 0 0 3px rgba(30,64,175,.12);
}
.field textarea { resize: vertical; min-height: 110px; }
.form__error { color: #c0392b; font-size: .92rem; margin: -4px 0 14px; }
.form__note { font-size: .85rem; color: var(--c-texto-soft); text-align: center; margin: 12px 0 0; }

/* ---------- Footer ---------- */
.footer { background: var(--c-azul-900); color: rgba(255,255,255,.8); padding-top: clamp(48px, 7vw, 72px); }
.footer__inner { display: grid; gap: 36px; grid-template-columns: 1fr; }
.footer__logo-plate { display: inline-flex; background: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.footer__logo-plate img { height: 38px; width: auto; display: block; }
.footer__brand p { margin-top: 14px; max-width: 320px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer__nav a, .footer__contact a { transition: color .2s ease; }
.footer__nav li, .footer__contact li { margin-bottom: 8px; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--c-celeste-200); }
.footer__social { display: flex; gap: 12px; margin-top: 16px; }
.footer__social a {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; transition: background .2s ease, transform .2s ease;
}
.footer__social a:hover { background: var(--c-azul); transform: translateY(-2px); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: clamp(36px, 5vw, 56px); padding: 22px 0; }
.footer__bottom .container { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between; align-items: center; }
.footer__bottom p { margin: 0; font-size: .9rem; }
.footer__bottom a:hover { color: var(--c-celeste-200); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: .88rem; }
.footer__legal a, .footer__legal-btn { color: rgba(255,255,255,.8); transition: color .2s ease; }
.footer__legal a:hover, .footer__legal-btn:hover { color: var(--c-celeste-200); }
.footer__legal-btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: var(--c-whatsapp); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.45); transition: transform .2s ease, background .2s ease;
  animation: wa-pulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.08); background: var(--c-whatsapp-d); }
.wa-float svg { width: 32px; height: 32px; }
@keyframes wa-pulse { 0% { box-shadow: 0 10px 26px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.45); } 70% { box-shadow: 0 10px 26px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 10px 26px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); } }

/* ---------- Banner de cookies ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 95;
  background: var(--c-azul-900); color: rgba(255,255,255,.92);
  border-radius: var(--radius); box-shadow: 0 18px 50px rgba(10,20,55,.4);
  padding: 18px 20px; max-width: 980px; margin-inline: auto;
  animation: cookie-in .4s ease;
}
.cookie[hidden] { display: none; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.cookie__inner { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cookie__text { margin: 0; font-size: .92rem; line-height: 1.6; }
.cookie__text a { color: var(--c-celeste-200); text-decoration: underline; }
.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { padding: .6em 1.4em; font-size: .9rem; }
.cookie__btn-reject { border-color: rgba(255,255,255,.5); }

/* ---------- Páginas legales ---------- */
.legal-header {
  background: #fff; padding: 14px 0;
  position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--c-borde);
}
.legal-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal-header .logo__img { height: 38px; width: auto; display: block; }
.legal-back { color: var(--c-azul-900); font-family: var(--font-head); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.legal-back:hover { color: var(--c-azul); }
.legal-back__short { display: none; }
@media (max-width: 520px) {
  .legal-header .logo__img { height: 34px; }
  .legal-back__long { display: none; }
  .legal-back__short { display: inline; }
}
.legal { max-width: 820px; margin: 0 auto; padding: clamp(36px, 6vw, 64px) 22px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: .2em; }
.legal .legal__updated { color: var(--c-texto-soft); font-size: .9rem; margin-bottom: 2.4em; }
.legal h2 { font-size: 1.3rem; margin: 1.8em 0 .5em; color: var(--c-azul); }
.legal h3 { font-size: 1.05rem; margin: 1.2em 0 .4em; }
.legal p, .legal li { color: var(--c-texto); }
.legal ul { list-style: disc; padding-left: 22px; margin: 0 0 1em; display: grid; gap: 6px; }
.legal a { color: var(--c-azul); text-decoration: underline; }
.legal .legal__note {
  background: var(--c-bg-alt); border-left: 4px solid var(--c-celeste);
  border-radius: 8px; padding: 14px 18px; font-size: .92rem; color: var(--c-texto-soft); margin: 1.4em 0;
}

/* ---------- Página 404 ---------- */
.error-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; background: var(--grad-azul); color: #fff; padding: 40px 22px;
}
.error-page h1 { color: #fff; font-size: clamp(3.5rem, 14vw, 7rem); margin: 0; }
.error-page p { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 460px; margin: 8px auto 26px; }

/* ---------- Scroll-reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 640px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .cookie__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .cookie__actions { flex-shrink: 0; }
  .join-banner__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
}

@media (min-width: 880px) {
  .services { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 1fr 1.15fr; }
  .about__media { order: 0; }
  .about__values { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(4, 1fr); }
  .process { grid-template-columns: repeat(4, 1fr); }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .contact { grid-template-columns: 1fr 1.05fr; }
  .join { grid-template-columns: 1.1fr .9fr; }
  .footer__inner { grid-template-columns: 1.6fr 1fr 1.2fr; }
}

/* Móvil chico: campos Email/Teléfono apilados */
@media (max-width: 519px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* Nav móvil (hamburguesa hasta 1099px; el menú horizontal solo aparece cuando entra cómodo) */
@media (max-width: 1099px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 18px 22px 26px; border-bottom: 1px solid var(--c-borde);
    box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .32s ease; visibility: hidden;
  }
  .nav.is-open { transform: translateY(0); visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding: 14px 4px; border-bottom: 1px solid var(--c-borde); }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 16px; text-align: center; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float { animation: none; }
  .btn:hover, .feature:hover { transform: none; }
  .carousel__track { transition: none; }
}
