/* Cleaning Squads — sitio estático. Paleta tomada del logo (blanco + cian sobre azul noche). */
:root {
  --ink: #0E2235;        /* azul noche: header, hero, contacto */
  --ink-2: #17344F;      /* superficie elevada sobre azul noche */
  --cyan: #19C3F0;       /* cian del logo: acciones sobre fondo oscuro */
  --sea: #0A6A8C;        /* cian oscuro: enlaces y acentos sobre fondo claro */
  --mist: #F1F7FA;       /* fondo claro frío */
  --paper: #FFFFFF;
  --text: #22313F;
  --muted: #566675;
  --on-ink: #E8F3F8;
  --on-ink-muted: #A9C2D3;
  --line: #D6E4EC;
  --error: #B42318;

  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-s: 8px;
  --radius-l: 20px;
  --gutter: 16px;
  --section: clamp(56px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px 12px; border-radius: var(--radius-s); z-index: 100; }
.skip:focus { left: 8px; }

.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none;
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  touch-action: manipulation;
}
.btn--accent { background: var(--cyan); color: var(--ink); }
.btn--accent:hover { background: #4FD3F5; }
.btn--ghost { border-color: rgba(232, 243, 248, .45); color: var(--on-ink); }
.btn--ghost:hover { border-color: var(--on-ink); }
.btn--small { min-height: 44px; padding: 8px 18px; font-size: .95rem; }
.btn[disabled] { opacity: .5; cursor: progress; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--ink); }
.top__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand img { width: 88px; }
.nav { display: none; margin-left: auto; gap: 28px; }
.nav a { color: var(--on-ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--cyan); }
.top .btn { margin-left: auto; }
@media (min-width: 860px) {
  .nav { display: flex; }
  .top .btn { margin-left: 8px; }
}

/* Hero: lo memorable es la foto "empañada" que una barra cian limpia una sola vez */
.hero { background: var(--ink); color: var(--on-ink); padding: 40px 0 120px; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__title { font-size: clamp(2.75rem, 8vw, 5.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 0.98; color: var(--paper); max-width: 11ch; }
.hero__lead { margin-top: 20px; font-size: 1.15rem; color: var(--on-ink-muted); max-width: 42ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__photo { margin: 0; position: relative; container-type: inline-size; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 16 / 11; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 140px; }
  .hero__grid { grid-template-columns: 1.15fr 1fr; gap: 56px; }
  .hero__photo { aspect-ratio: 4 / 5; }
}

.hero__photo.is-fogged::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(241, 247, 250, .72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  clip-path: inset(0 0 0 0);
}
.hero__photo.is-fogged::before {
  content: ""; position: absolute; top: -2%; bottom: -2%; left: 0; width: 14px; z-index: 1;
  background: var(--cyan); border-radius: 7px;
  box-shadow: 0 0 24px rgba(25, 195, 240, .7);
  transform: translateX(-20px);
}
.hero__photo.is-wiping::after { animation: wipe-fog 1.3s cubic-bezier(.45, 0, .2, 1) .2s forwards; }
.hero__photo.is-wiping::before { animation: wipe-blade 1.3s cubic-bezier(.45, 0, .2, 1) .2s forwards; }
@keyframes wipe-fog { to { clip-path: inset(0 0 0 100%); } }
@keyframes wipe-blade {
  85% { opacity: 1; }
  to { transform: translateX(100cqw); opacity: 0; }
}

/* Formulario */
.quote { margin-top: -84px; position: relative; z-index: 2; }
.qform { background: var(--paper); border-radius: var(--radius-l); padding: 24px; box-shadow: 0 18px 50px rgba(14, 34, 53, .16); }
.qform__title { font-size: 1.5rem; color: var(--ink); }
.qform__fields { display: grid; gap: 14px; margin-top: 16px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.field input {
  min-height: 48px; padding: 10px 14px; font: inherit; font-weight: 400; font-size: 1rem; color: var(--text);
  border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--paper);
}
.field input:focus { border-color: var(--sea); outline: none; box-shadow: 0 0 0 3px rgba(10, 106, 140, .18); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: .85rem; color: var(--muted); line-height: 1.5; }
.consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--sea); }
.qform__submit { width: 100%; }
.qform__foot .qform__submit { margin-top: 16px; }
.qform__status { margin-top: 12px; font-weight: 600; min-height: 1.5em; }
.qform__status.is-ok { color: var(--sea); }
.qform__status.is-error { color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
@media (min-width: 900px) {
  .qform { padding: 28px 32px; }
  .quote .qform__fields { grid-template-columns: 1fr 1fr 1.2fr; }
  .qform__foot { display: flex; gap: 32px; align-items: center; justify-content: space-between; }
  .qform__foot .consent { margin-top: 16px; max-width: 70ch; }
  .quote .qform__submit { width: auto; flex: none; margin-top: 16px; padding-inline: 32px; }
}
.qform--stacked .qform__submit { margin-top: 16px; }

/* Secciones claras */
.section-title { font-size: clamp(2rem, 5vw, 3rem); color: var(--ink); }

.services { padding: var(--section) 0; }
.svc { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1.5px solid var(--line); }
.svc__row {
  display: grid; grid-template-columns: 72px 1fr; column-gap: 16px; row-gap: 4px; align-items: center;
  padding: 20px 0; border-bottom: 1.5px solid var(--line);
}
.svc__icon { grid-row: span 2; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #E3F6FD; color: var(--sea); }
.svc__icon svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.svc__row h3 { font-size: clamp(1.6rem, 4.5vw, 2.6rem); font-weight: 700; color: var(--ink); }
.svc__row p { color: var(--muted); }
.svc__note { margin-top: 24px; font-size: 1.1rem; max-width: 52ch; }
@media (min-width: 768px) {
  .svc__row { grid-template-columns: 96px 1fr 1fr; column-gap: 32px; padding: 28px 0; }
  .svc__icon { grid-row: auto; width: 96px; height: 96px; }
  .svc__icon svg { width: 50px; height: 50px; }
  .svc__row p { font-size: 1.1rem; }
}

.about { background: var(--mist); padding: var(--section) 0; }
.about__grid { display: grid; gap: 20px; }
.about__text { font-size: 1.15rem; max-width: 62ch; }
@media (min-width: 900px) { .about__grid { grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; } }

.steps { padding: var(--section) 0; }
.steps__list { list-style: none; counter-reset: step; margin: 32px 0 0; padding: 0; display: grid; gap: 32px; }
.steps__list li { counter-increment: step; display: grid; gap: 8px; }
.steps__list li::before { content: counter(step); font-size: 3rem; font-weight: 800; line-height: 1; color: var(--sea); }
.steps__list h3 { font-size: 1.35rem; color: var(--ink); }
.steps__list p { color: var(--muted); max-width: 38ch; }
@media (min-width: 900px) { .steps__list { grid-template-columns: repeat(3, 1fr); gap: 48px; } }

.area { background: var(--mist); padding: 48px 0; }
.area__grid { display: grid; gap: 32px; }
.area__title { font-size: 1.1rem; color: var(--muted); font-weight: 600; }
.area__cities { margin-top: 6px; font-size: 1.5rem; font-weight: 700; color: var(--ink); max-width: 28ch; }
.hours { margin: 8px 0 0; display: grid; gap: 6px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; max-width: 360px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.hours dt { font-weight: 600; color: var(--ink); }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { .area__grid { grid-template-columns: 1.3fr 1fr; } }

/* Contacto (oscuro) */
.contact { background: var(--ink); color: var(--on-ink); padding: var(--section) 0; }
.contact__grid { display: grid; gap: 40px; }
.contact__title { font-size: clamp(2rem, 5vw, 3.25rem); color: var(--paper); max-width: 14ch; }
.contact__lead { margin-top: 16px; color: var(--on-ink-muted); font-size: 1.1rem; max-width: 44ch; }
.ways { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 4px; }
.ways a {
  display: grid; grid-template-columns: 20px 92px 1fr; gap: 12px; align-items: center;
  min-height: 52px; color: var(--on-ink); text-decoration: none; font-size: 1.1rem; font-weight: 600;
  border-bottom: 1px solid rgba(232, 243, 248, .14);
}
.ways a span { color: var(--on-ink-muted); font-weight: 400; font-size: 1rem; }
.ways .ico { color: var(--cyan); }
.ways a:hover { color: var(--cyan); }
@media (max-width: 420px) { .ways a { grid-template-columns: 20px 1fr; } .ways a span { display: none; } }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }

/* Footer */
.foot { background: #0A1A29; color: var(--on-ink-muted); padding: 28px 0; font-size: .9rem; }
.foot__inner { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; gap: 24px; }
.foot a { color: var(--on-ink); }

/* Páginas legales */
.legal { padding: 48px 0 var(--section); }
.legal__body { max-width: 70ch; }
.legal h1 { font-size: clamp(2.25rem, 6vw, 3.25rem); color: var(--ink); }
.legal .updated { margin-top: 8px; color: var(--muted); }
.legal h2 { margin-top: 36px; font-size: 1.4rem; color: var(--ink); }
.legal p, .legal ul { margin-top: 12px; }
.legal ul { padding-left: 1.25em; }

/* Chat de Sara: colores de la marca */
:root {
  --chat--color-primary: var(--sea);
  --chat--color-primary-shade-50: #085a77;
  --chat--color-secondary: var(--ink);
  --chat--header--background: var(--ink);
  --chat--toggle--background: var(--cyan);
  --chat--toggle--hover--background: #4FD3F5;
  --chat--toggle--color: var(--ink);
}
