/* ==========================================================
   Clean It Cleaning Services
   Lenguaje visual: títulos en mayúsculas de dos tonos, header flotante,
   bloques limpios con radios grandes y movimiento ligado al scroll.
   ========================================================== */
:root {
  --ink: #0b2440;
  --ink-2: #14325a;
  --soft: #55697e;
  --aqua: #1290b6;          /* acento sobre fondos claros */
  --accent: #4fd0f0;        /* acento brillante: botones y fondos oscuros */
  --accent-hover: #86e0f6;
  --gray: #eef2f6;
  --gray-2: #d7dfe7;
  --line: #dbe3ea;
  --white: #ffffff;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --radius: 24px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 110px; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; }
p { margin: 0; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex-shrink: 0; }
.ico--arrow { transition: transform .3s var(--ease); }

/* Títulos de sección: mayúsculas, dos tonos */
.head { max-width: 760px; margin-bottom: 56px; }
.head--center { margin-inline: auto; text-align: center; }
.head h2, .why__title, .realtors__copy h2, .hero__title {
  font-weight: 800; text-transform: uppercase; letter-spacing: -.015em; line-height: .98;
}
.head h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
.head p { margin-top: 18px; color: var(--soft); font-size: 1.0625rem; }
.line { display: block; }
.line--accent { color: var(--aqua); }
.head--dark h2 { color: var(--white); }
.head--dark .line--accent { color: var(--accent); }

/* Divisiones de palabras para la animación de entrada */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; will-change: transform; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 14px; border: 1.5px solid transparent;
  font: 700 .9375rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease);
}
.btn:hover .ico--arrow { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--lg { padding: 16px 26px; font-size: 1rem; border-radius: 16px; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost .ico { color: var(--aqua); }
.btn--wa-ghost .ico { color: #1fae55; }

/* ---------- Header flotante ---------- */
.header { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; padding-inline: 20px; transition: transform .45s var(--ease), top .45s var(--ease), padding .45s var(--ease); }
.header.is-hidden { transform: translateY(-140%); }
.header__bar {
  max-width: 1240px; margin-inline: auto; display: flex; align-items: center; gap: 28px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-radius: 20px; padding: 10px 10px 10px 22px;
  box-shadow: 0 12px 40px -18px rgba(11,36,64,.35);
  transition: max-width .45s var(--ease), border-radius .45s var(--ease), padding .45s var(--ease), box-shadow .45s;
}
/* Arriba del todo: barra completa de borde a borde; al bajar se vuelve píldora flotante */
.header.is-top { top: 0; padding-inline: 0; }
.header.is-top .header__bar {
  max-width: 100%; border-radius: 0; box-shadow: 0 1px 0 var(--line);
  padding: 14px max(20px, calc((100% - 1240px) / 2 + 22px));
}
.header__logo img { width: 128px; }
.nav { display: flex; gap: 26px; margin-inline: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: .9375rem; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--aqua);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__actions { display: flex; gap: 8px; }
.header__phone .ico { width: 16px; height: 16px; }
.burger { display: none; }
.mobile-nav { display: none; }

/* ---------- Hero: foto de fondo con el texto encima ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate; background: var(--gray);
  min-height: min(76vh, 660px); display: flex; align-items: center; padding: 130px 0 80px;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; transform-origin: 70% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(238,242,246,.97) 0%, rgba(238,242,246,.9) 34%, rgba(238,242,246,.35) 58%, rgba(238,242,246,0) 72%),
    linear-gradient(0deg, rgba(238,242,246,.55) 0%, rgba(238,242,246,0) 30%);
}
.hero__inner { position: relative; width: min(100% - 40px, 1240px); }
.hero__copy { max-width: 820px; }
.hero__title { font-size: clamp(2.6rem, 4.7vw, 4.3rem); }
.hero__title .line--accent { color: var(--aqua); }
.hero__lead { margin-top: 24px; max-width: 50ch; color: var(--ink); opacity: .82; font-size: 1.125rem; }
.hero__actions { display: inline-grid; grid-template-columns: repeat(3, auto); gap: 12px; margin-top: 36px; }
.hero__badge {
  grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 12px 18px;
  border-radius: 999px; background: rgba(255,255,255,.85); backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px -18px rgba(11,36,64,.45);
}
.hero__badge strong { font-size: 1.125rem; font-weight: 800; line-height: 1.2; }
.hero__badge span { font-size: .875rem; color: var(--soft); }

/* ---------- Franja en movimiento ---------- */
.marquee { overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.marquee__group span { font-weight: 700; font-size: 1.125rem; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.marquee__spark { width: 18px; height: 18px; fill: var(--accent); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Servicios ---------- */
.services { padding: 120px 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 4.4;
  color: var(--white); text-decoration: none; isolation: isolate; background: var(--ink);
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,36,64,0) 35%, rgba(11,36,64,.6) 62%, rgba(11,36,64,.94) 100%);
  transition: opacity .4s;
}
.card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 26px 28px; padding-right: 84px; }
.card__tag {
  display: inline-block; margin-bottom: 12px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.16); backdrop-filter: blur(6px); font-size: .75rem; font-weight: 700;
}
.card h3 { font-size: 1.45rem; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.card__sub { margin-top: 6px; color: rgba(255,255,255,.85); font-size: .9375rem; }
.card__list {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .875rem;
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .3s, margin .5s var(--ease);
}
.card__list li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }
.card__arrow {
  position: absolute; right: 22px; bottom: 26px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); color: var(--ink);
  transition: background .3s, transform .4s var(--ease);
}
.card__arrow .ico { width: 20px; height: 20px; transform: rotate(-45deg); transition: transform .4s var(--ease); }
.card:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
@media (hover: hover) {
  .card:hover img { transform: scale(1.06); }
  .card:hover .card__list { max-height: 160px; opacity: 1; margin-top: 14px; }
  .card:hover .card__arrow { background: var(--accent); }
  .card:hover .card__arrow .ico { transform: rotate(0); }
}

/* Qué incluye la limpieza regular */
.included { margin-top: 96px; display: grid; grid-template-columns: .9fr 2fr; gap: 56px; align-items: start; }
.included__head h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.included__head p { margin-top: 14px; color: var(--soft); }
.included__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.room { background: var(--gray); border-radius: 20px; padding: 24px; }
.room summary { list-style: none; cursor: default; }
.room summary::-webkit-details-marker { display: none; }
.room h4 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 16px; }
.room ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--soft); font-size: .9375rem; }
.room li { position: relative; padding-left: 26px; }
.room li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231290b6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 17px no-repeat;
}

/* ---------- Cómo funciona ---------- */
.how { padding: 120px 0; background: var(--gray); }
.steps {
  list-style: none; padding: 0; margin: 0; position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.steps__path { position: absolute; left: 0; top: 0; width: 100%; height: 76px; overflow: visible; }
.steps__path path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.steps__track { stroke: var(--gray-2); stroke-width: 3; }
.steps__draw { stroke: var(--aqua); stroke-width: 3; }
.steps li { position: relative; padding-top: 50px; text-align: center; }
.steps li:nth-of-type(even) { margin-top: 56px; }
.steps li::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 20px; height: 20px; border-radius: 50%;
  transform: translateX(-50%); background: var(--white); border: 5px solid var(--aqua);
  box-shadow: 0 0 0 8px rgba(18,144,182,.14);
}
.steps h3 { font-size: 1.35rem; font-weight: 800; text-transform: uppercase; }
.steps li p { margin: 10px auto 0; max-width: 26ch; color: var(--soft); }

/* ---------- Why ---------- */
.why { padding: 120px 0; overflow-x: clip; }
.why__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: start; }
.why__title { font-size: clamp(2.4rem, 4.6vw, 4rem); position: sticky; top: 130px; }
.why__intro { font-weight: 700; color: var(--aqua); margin-bottom: 12px; }
.why__list { margin: 0; }
.why__list div { padding: 26px 0; border-bottom: 1px solid var(--line); }
.why__list div:last-child { border-bottom: 0; }
.why__list dt { font-size: 1.35rem; font-weight: 700; }
.why__list dd { margin: 8px 0 0; color: var(--soft); font-size: 1.0625rem; max-width: 48ch; }

/* ---------- Ofertas ---------- */
.offers { background: var(--ink); color: var(--white); padding: 110px 0; position: relative; overflow: hidden; }
.offers::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; translate: -50% -50%;
  background: radial-gradient(circle, rgba(79,208,240,.18), transparent 60%); pointer-events: none;
}
.offers__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin-inline: auto; }
.offer { padding: 36px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.offer__big { font-size: clamp(4.5rem, 9vw, 7.5rem); font-weight: 800; line-height: .85; letter-spacing: -.05em; color: var(--accent); }
.offer__big small { font-size: .45em; letter-spacing: 0; margin-left: 4px; }
.offer h3 { margin-top: 24px; font-size: 1.35rem; font-weight: 800; text-transform: uppercase; }
.offer p:not(.offer__big) { margin-top: 8px; color: #b8cfdc; }

/* ---------- Realtors ---------- */
.realtors { padding: 120px 0; }
.realtors__grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; align-items: center; }
.realtors__media { margin: 0; justify-self: center; width: min(100%, 340px); }
.realtors__media img {
  width: 100%; aspect-ratio: 9 / 13; object-fit: cover; object-position: center 30%;
  border-radius: 180px 180px 28px 28px; box-shadow: 0 50px 70px -45px rgba(11,36,64,.6);
}
.realtors__copy h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.realtors__copy p { margin-top: 18px; color: var(--soft); font-size: 1.0625rem; max-width: 54ch; }
.realtors__copy .btn { margin-top: 32px; }

/* ---------- Cobertura (mapa) ---------- */
.covered { padding: 120px 0; background: var(--gray); }
.covered__stats { display: flex; justify-content: center; gap: 64px; margin: -16px 0 40px; flex-wrap: wrap; }
.covered__stats div { display: grid; justify-items: center; }
.covered__stats strong { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1; color: var(--ink); }
.covered__stats span { font-size: .875rem; font-weight: 600; color: var(--soft); text-transform: uppercase; letter-spacing: .04em; margin-top: 6px; }
.covered__map {
  position: relative; border-radius: 32px; overflow: hidden; background: #e3e9ef;
  box-shadow: inset 0 0 0 1px var(--line);
}
.cv-map { display: block; width: 100%; height: auto; }
.cv-map path { vector-effect: non-scaling-stroke; }
.cv-sea { fill: #e3e9ef; }
.cv-states path { fill: #d3dbe3; stroke: #f4f7f9; stroke-width: 1.5; }
.cv-other path { fill: #c3ced9; stroke: #d9e1e8; stroke-width: .7; }
.cv-ga { fill: none; stroke: #7f94a8; stroke-width: 1.6; }
.cv-served path { fill: var(--ink); stroke: #2a4a70; stroke-width: 1; }
.cv-labels text { fill: #6f8397; font-family: var(--font); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; text-anchor: middle; }
.cv-cities text { font-family: var(--font); font-size: 15px; font-weight: 700; fill: var(--white); paint-order: stroke; stroke: var(--ink); stroke-width: 4px; stroke-linejoin: round; letter-spacing: .02em; }
.cv-inset {
  position: absolute; right: 20px; top: 20px; width: 200px; padding: 12px 12px 10px; border-radius: 16px;
  background: rgba(255,255,255,.95); box-shadow: 0 16px 40px -22px rgba(11,36,64,.5); text-align: center;
}
.cv-inset__map { display: block; width: 100%; height: auto; }
.cv-inset__map path { fill: #cfd8e0; stroke: var(--white); stroke-width: .5; }
.cv-inset__map path.is-ga { fill: var(--ink); }
.cv-inset__map circle { fill: var(--accent); stroke: var(--white); stroke-width: 1; }
.cv-inset span { display: block; margin-top: 6px; font-size: .75rem; font-weight: 700; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; }
.cv-zoom {
  position: absolute; left: 20px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border: 0; border-radius: 999px; background: var(--white); color: var(--ink);
  font: 700 .8125rem var(--font); cursor: pointer; box-shadow: 0 10px 24px -16px rgba(11,36,64,.6);
}
.cv-zoom:hover { background: var(--accent); }
.cv-served path:hover { fill: var(--ink-2); }
.cv-dot { cursor: pointer; outline: none; }
.cv-dot__halo { fill: var(--accent); opacity: .28; transform-box: fill-box; transform-origin: center; animation: halo 2.6s ease-in-out infinite; }
.cv-dot__core { fill: var(--accent); stroke: var(--ink); stroke-width: 2; transition: r .2s; }
.cv-dot--home .cv-dot__core { fill: var(--white); stroke: var(--accent); stroke-width: 3; }
.cv-dot:hover .cv-dot__core, .cv-dot:focus-visible .cv-dot__core, .cv-dot.is-active .cv-dot__core { fill: var(--white); }
.cv-dot.is-active .cv-dot__halo { opacity: .5; }
@keyframes halo { 0%, 100% { transform: scale(.8); } 50% { transform: scale(1.25); } }
.town-card {
  position: absolute; left: 24px; top: 24px; min-width: 230px; padding: 18px 20px; border-radius: 18px;
  background: var(--white); box-shadow: 0 20px 50px -20px rgba(11,36,64,.45);
}
.town-card[hidden] { display: none; }
.town-card__close { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.town-card__close:hover { background: var(--gray); }
.town-card__dot { display: block; width: 14px; height: 14px; border-radius: 4px; background: var(--accent); }
.town-card__name { display: block; margin-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
.town-card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 700; color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 4px; }
.town-card__link:hover .ico--arrow { transform: translateX(4px); }
.covered__legend {
  position: absolute; right: 20px; bottom: 18px; display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.9); font-size: .8125rem; font-weight: 600;
}
.covered__swatch { width: 14px; height: 14px; border-radius: 4px; background: var(--ink); }
.covered__dotkey { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(79,208,240,.3); margin-left: 10px; }
.areas__list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.areas__list button {
  font: 600 .875rem var(--font); color: var(--ink); background: var(--white); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.areas__list button:hover, .areas__list button.is-active { border-color: var(--ink); }
.areas__list .is-home button { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Redes ---------- */
.social { padding: 72px 0; }
.social__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.social__copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.social__copy p { margin-top: 8px; color: var(--soft); }
.social__links { display: flex; flex-wrap: wrap; gap: 12px; }
.social__link {
  display: flex; align-items: center; gap: 14px; padding: 12px 22px 12px 12px; border-radius: 18px;
  background: var(--gray); text-decoration: none; font-size: .875rem; color: var(--soft);
  transition: transform .3s var(--ease), background .3s;
}
.social__link:hover { transform: translateY(-3px); background: var(--gray-2); }
.social__link .ico { width: 44px; height: 44px; padding: 11px; border-radius: 14px; fill: var(--white); }
.social__link--ig .ico { background: linear-gradient(45deg, #f9a443, #e1306c 50%, #833ab4); }
.social__link--tt .ico { background: #111; }
.social__link strong { display: block; font-size: 1rem; color: var(--ink); }

/* ---------- Contacto ---------- */
.contact { padding: 40px 0 120px; }
.contact__card {
  max-width: 880px; margin-inline: auto; padding: 64px clamp(20px, 6vw, 72px) 48px;
  border-radius: 32px; background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 40px 80px -60px rgba(11,36,64,.5);
}
.contact__card .head { margin-bottom: 36px; }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .875rem; }
.field small { font-weight: 400; color: var(--soft); }
.field input, .field select, .field textarea {
  font: 400 1rem var(--font); color: var(--ink); width: 100%; padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--gray); transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--aqua); background: var(--white); }
.field .is-invalid { border-color: #c2413b; }
.hp { position: absolute; left: -9999px; }
.form__submit { width: 100%; margin-top: 6px; }
.form__submit[disabled] { opacity: .6; cursor: wait; }
.form__status { min-height: 1.6em; font-weight: 600; text-align: center; }
.form__status.is-ok { color: var(--aqua); }
.form__status.is-error { color: #c2413b; }
.form__status a { color: inherit; }
.contact__direct { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact__item { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--gray); text-decoration: none; font-weight: 700; font-size: .9375rem; min-width: 0; transition: background .2s; }
.contact__item:hover { background: var(--gray-2); }
.contact__item .ico { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--white); fill: var(--aqua); }
.contact__item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact__item small { display: block; font-size: .75rem; font-weight: 600; color: var(--soft); }
.contact__meta { margin-top: 18px; text-align: center; color: var(--soft); font-size: .875rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #b9d3df; padding: 64px 0 28px; font-size: .9375rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1.3fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__brand img { width: 160px; }
.footer__brand p { margin-top: 18px; max-width: 34ch; }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); transition: background .2s; }
.footer__social a:hover { background: var(--aqua); }
.footer__social .ico { width: 18px; height: 18px; fill: var(--white); }
.footer__col h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: var(--accent); }
.footer__hours { margin: 0; display: grid; gap: 14px; }
.footer__hours div { display: grid; gap: 2px; }
.footer__hours dt { color: var(--white); font-weight: 600; }
.footer__hours dd { margin: 0; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8125rem; }


/* ==========================================================
   Tablet
   ========================================================== */
@media (max-width: 1080px) {
  .nav, .header__phone { display: none; }
  .header__actions { margin-left: auto; }
  .burger {
    display: grid; gap: 6px; background: none; border: 0; padding: 12px; cursor: pointer;
  }
  .burger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  /* Menú abierto: se une al navbar y forman una sola pieza */
  .mobile-nav.is-open {
    display: grid; gap: 2px; max-width: 1240px; margin: 0 auto; padding: 4px 22px 20px;
    background: var(--white); border-radius: 0 0 20px 20px;
    box-shadow: 0 30px 40px -24px rgba(11,36,64,.4);
  }
  .header.menu-open .header__bar { border-radius: 20px 20px 0 0; box-shadow: none; }
  .header.menu-open.is-top .header__bar, .header.menu-open.is-top .mobile-nav { max-width: 100%; border-radius: 0; }
  .header.menu-open .mobile-nav a:first-child { border-top: 1px solid var(--line); }
  .mobile-nav a:not(.btn) { padding: 13px 0; text-decoration: none; font-weight: 700; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .mobile-nav .btn { margin-top: 14px; }

  .cards { grid-template-columns: 1fr 1fr; }
  .included { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps__path { display: none; }
  .steps li:nth-of-type(even) { margin-top: 0; }
  .why__grid, .realtors__grid { grid-template-columns: 1fr; gap: 40px; }
  .why__title { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ==========================================================
   Celular
   ========================================================== */
@media (max-width: 640px) {
  body { font-size: .9688rem; }
  .head { margin-bottom: 32px; }
  .head h2 { font-size: 2.05rem; }
  .head p { font-size: .9688rem; margin-top: 12px; }

  .header { top: 10px; padding-inline: 10px; }
  .header.is-top .header__bar { padding: 10px 14px 10px 20px; }
  .header.menu-open .header__bar { border-radius: 16px 16px 0 0; }
  .mobile-nav.is-open { border-radius: 0 0 16px 16px; padding: 4px 16px 18px; }
  .header__bar { padding: 8px 6px 8px 14px; gap: 10px; border-radius: 16px; }
  .header__logo img { width: 108px; }
  .header__actions .btn { padding: 10px 14px; font-size: .8125rem; border-radius: 12px; }

  /* Hero en celular: la foto ocupa todo y el texto va en blanco sobre un degradado oscuro abajo */
  .hero { min-height: 0; display: block; padding: 104px 0 36px; }
  .hero::before {
    background: linear-gradient(180deg, rgba(11,36,64,.55) 0%, rgba(11,36,64,.62) 45%, rgba(11,36,64,.9) 100%);
  }
  .hero__bg img { object-position: 68% 30%; }
  .hero__inner { display: flex; flex-direction: column; }
  .hero__title { font-size: 2.35rem; color: var(--white); }
  .hero__title .line--accent { color: var(--accent); }
  .hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
  .hero__actions .btn--accent { grid-column: 1 / -1; }
  .hero__actions .btn--lg { padding: 14px 10px; font-size: .875rem; white-space: nowrap; gap: 8px; }
  .hero__actions .btn--ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: var(--white); backdrop-filter: blur(6px); }
  .hero__actions .btn--ghost .ico { color: var(--accent); }
  .hero__actions .btn--wa-ghost .ico { color: #3fd27a; }
  .hero__badge {
    order: -1; justify-self: start; margin-bottom: 4px; max-width: max-content; white-space: nowrap; justify-content: flex-start;
    padding: 7px 14px; border-radius: 999px; box-shadow: none;
    background: rgba(255,255,255,.14); backdrop-filter: blur(6px); color: var(--white);
  }
  .hero__badge strong { display: inline; font-size: .9375rem; }
  .hero__badge span { display: inline; margin-left: 6px; font-size: .75rem; color: rgba(255,255,255,.8); }
  .hero__badge .badge__more { display: none; }

  .marquee { padding: 18px 0; }
  .marquee__group { gap: 24px; padding-right: 24px; }
  .marquee__group span { font-size: .9375rem; }

  .services, .how, .why, .realtors, .covered { padding: 72px 0; }
  .offers { padding: 72px 0; }

  /* Servicios: carrusel deslizable */
  .cards {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -20px; padding: 4px 20px 16px; scroll-padding-inline: 20px; scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 80%; aspect-ratio: 4 / 5; scroll-snap-align: start; border-radius: 22px; }
  .card__body { padding: 20px 76px 22px 20px; }
  .card h3 { font-size: 1.2rem; }
  .card__sub { font-size: .875rem; }
  .card__arrow { right: 16px; bottom: 20px; width: 42px; height: 42px; }

  /* Qué incluye: acordeón */
  .included { margin-top: 56px; gap: 18px; }
  .included__head h3 { font-size: 1.45rem; }
  .included__cols { grid-template-columns: 1fr; gap: 10px; }
  .room { padding: 0; border-radius: 18px; }
  .room summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; }
  .room summary h4 { margin: 0; font-size: 1rem; }
  .room summary::after {
    content: ""; width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%230b2440' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
    transition: transform .25s;
  }
  .room[open] summary::after { transform: rotate(180deg); }
  .room ul { padding: 0 18px 18px; gap: 9px; }

  /* Cómo funciona: línea de tiempo vertical */
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { text-align: left; padding: 0 0 28px 46px; }
  .steps li::before { left: 0; top: 2px; transform: none; width: 18px; height: 18px; border-width: 4px; box-shadow: 0 0 0 6px rgba(18,144,182,.14); }
  .steps li:not(:last-of-type)::after {
    content: ""; position: absolute; left: 8px; top: 26px; bottom: 2px; width: 2px;
    background: repeating-linear-gradient(to bottom, var(--aqua) 0 3px, transparent 3px 9px);
  }
  .steps h3 { font-size: 1.15rem; }
  .steps li p { margin: 4px 0 0; max-width: none; font-size: .9375rem; }

  .why__grid { gap: 20px; }
  .why__title { font-size: 2.15rem; }
  .why__list div { padding: 18px 0; }
  .why__list dt { font-size: 1.125rem; line-height: 1.3; }
  .why__list dd { font-size: .9375rem; margin-top: 6px; }

  .offers__grid { grid-template-columns: 1fr; gap: 12px; }
  .offer { padding: 24px; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: center; }
  .offer__big { font-size: 3.6rem; grid-row: span 2; }
  .offer h3 { margin-top: 0; font-size: 1.05rem; }
  .offer p:not(.offer__big) { font-size: .875rem; margin-top: 4px; }

  /* Realtors: la foto flota a la derecha y el texto la rodea siguiendo el arco */
  .realtors__grid { display: block; }
  .realtors__media {
    float: right; width: 44%; margin: 4px 0 10px 16px;
    shape-outside: inset(0 round 80px 80px 16px 16px); shape-margin: 10px;
  }
  .realtors__media img { aspect-ratio: 9 / 14; border-radius: 80px 80px 16px 16px; box-shadow: 0 24px 40px -28px rgba(11,36,64,.6); }
  .realtors__copy h2 { font-size: 1.6rem; }
  .realtors__copy p { font-size: .9375rem; margin-top: 12px; }
  .realtors__copy .btn { display: flex; clear: both; width: 100%; margin-top: 22px; padding: 15px 18px; font-size: .9375rem; text-align: center; }

  .covered__stats { gap: 28px; margin: -8px 0 24px; }
  .covered__stats strong { font-size: 2rem; }
  .covered__stats span { font-size: .6875rem; }
  .covered__map { border-radius: 22px; margin-inline: -8px; }
  .town-card { left: 10px; top: 10px; min-width: 0; padding: 12px 14px; border-radius: 14px; }
  .town-card__name { margin-top: 8px; padding-bottom: 8px; font-size: 1rem; }
  .town-card__link { margin-top: 8px; font-size: .875rem; }
  .covered__legend { display: none; }
  .cv-inset { right: 10px; top: 10px; width: 112px; padding: 8px 8px 6px; border-radius: 12px; }
  .cv-inset span { font-size: .5625rem; margin-top: 3px; }
  .cv-zoom { left: 10px; bottom: 10px; padding: 8px 12px; font-size: .75rem; }
  .areas__list { justify-content: flex-start; }
  .areas__list button { font-size: .8125rem; padding: 7px 12px; }

  .social { padding: 56px 0; }
  .social__copy h2 { font-size: 1.5rem; }
  .social__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
  .social__link { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; font-size: .75rem; }
  .social__link span { min-width: 0; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .contact { padding: 8px 0 72px; }
  .contact__card { padding: 40px 18px 28px; border-radius: 24px; margin-inline: -4px; }
  .form__row { grid-template-columns: 1fr; gap: 14px; }
  .form { gap: 14px; }
  .field input, .field select, .field textarea { font-size: 16px; padding: 12px 13px; }
  .contact__direct { grid-template-columns: 1fr; gap: 8px; }

  .footer { padding: 48px 0 28px; }
  .footer__grid { gap: 28px 20px; padding-bottom: 32px; }
  .footer__grid > .footer__col:nth-of-type(2) { display: none; }
  .footer__grid > .footer__col:nth-of-type(3) { grid-column: 1 / -1; grid-row: 3; }
  .footer__bottom { flex-direction: column; gap: 4px; }

}
