/* =====================================================================
   DecoWash · estilos
   Sistema: blanco y grises claros de fondo, azul para titulares y marca,
   verde solo para contactar por WhatsApp. Un ancho, un ritmo y un tipo de botón.
   ===================================================================== */
:root {
  color-scheme: light;
  --navy: #0A2C5A;        /* azul profundo: titulares y marca */
  --navy-700: #13427F;
  --blue: #0B8EE0;        /* azul vivo: detalles e iconos */
  --blue-text: #0668B3;   /* enlaces sobre blanco (5,9:1) */
  --blue-50: #EAF5FE;
  --ink: #142A42;         /* texto */
  --muted: #3D5269;       /* texto secundario (7,9:1 sobre blanco) */
  --line: #DCE8F3;
  --white: #FFFFFF;
  --gray-50: #F1F8FE;     /* fondos celestes muy suaves para separar secciones */
  --gray-100: #E8F2FC;    /* superficies */
  --wa: #11803F;
  --wa-2: #0E7438;

  --f-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1160px;
  --gutter: 20px;
  --sec-y: clamp(64px, 8vw, 104px);
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 12px;
  --shadow-sm: 0 1px 2px rgba(10,60,120,.05), 0 10px 26px -16px rgba(10,80,150,.22);
  --shadow-md: 0 2px 6px rgba(10,60,120,.04), 0 26px 50px -30px rgba(10,80,150,.32);
  --ease: cubic-bezier(.2,.7,.2,1);
  --nav-h: 64px;
  --nav-space: calc(var(--nav-h) + 20px + env(safe-area-inset-top, 0px));

  box-sizing: border-box;
}
*, *::before, *::after { box-sizing: inherit; }
summary, details { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-space) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 18px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--navy); font-family: var(--f-body); }
h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; font-weight: 750; letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding: var(--sec-y) 0; }
.section-gray { background: var(--gray-50); }
.sec-head { max-width: 720px; margin: 0 auto clamp(32px, 4.5vw, 52px); text-align: center; }
.sec-head p { margin: 14px auto 0; color: var(--muted); font-size: clamp(18px, 1.6vw, 21px); }
.lead { color: var(--muted); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; }
.eyebrow { font-size: 16px; font-weight: 600; letter-spacing: .01em; color: var(--blue-text); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 17px/1 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, filter .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-wa {
  background: linear-gradient(180deg, #2BC866 0%, #1DAE55 48%, #128F42 100%);
  border-color: rgba(10,110,50,.35); color: #fff; font-weight: 700; text-shadow: 0 1px 1px rgba(5,70,30,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 10px 24px rgba(20,145,70,.24);
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), filter .2s;
}
.btn-wa svg { filter: drop-shadow(0 1px 1px rgba(5,70,30,.3)); }
@media (hover: hover) {
  .btn-wa:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 14px 30px rgba(20,145,70,.32); }
}
.btn-wa:active { transform: translateY(0); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 5px 12px rgba(20,145,70,.24); }
.btn-wa:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn-wa[disabled] { opacity: .75; cursor: progress; }
.btn-solid { background: linear-gradient(180deg, var(--navy-700), var(--navy)); color: #fff; box-shadow: 0 10px 22px -14px rgba(10,44,90,.7); }
.btn-solid:hover { filter: brightness(1.12); }
.btn-line { border-color: rgba(10,44,90,.2); color: var(--navy); background: #fff; box-shadow: 0 6px 16px -12px rgba(10,80,150,.4); }
.btn-line:hover { border-color: var(--navy); background: #fff; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.link-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--blue-text); font-weight: 600; text-decoration: none; }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-more span { transition: transform .2s var(--ease); }
.link-more:hover span { transform: translateX(3px); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; z-index: 50; left: 50%; transform: translateX(-50%);
  top: calc(10px + env(safe-area-inset-top, 0px)); width: min(100% - 24px, 1200px);
  border-radius: 999px; border: 1px solid rgba(255,255,255,.8);
  background: rgba(255,255,255,.78); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 10px 30px -20px rgba(14,45,82,.45); transition: background .25s, box-shadow .25s;
}
.nav.is-scrolled { background: rgba(255,255,255,.92); box-shadow: 0 12px 34px -20px rgba(14,45,82,.5); }
.nav-in { display: flex; align-items: center; gap: 16px; height: var(--nav-h); padding: 0 10px 0 18px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; flex: none; }
.brand picture { display: block; line-height: 0; }
.brand-img { display: block; height: 40px; width: auto; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); transition: background .2s, color .2s; }
.nav-links a:hover { color: var(--navy); background: var(--gray-100); }
.nav-cta { flex: none; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; position: relative; color: var(--navy); }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-movil {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: grid; padding: 8px 18px 18px;
  border-radius: 24px; border: 1px solid var(--line); background: rgba(255,255,255,.97);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--shadow-md);
}
.menu-movil a:not(.btn) { padding: 13px 4px; text-decoration: none; font-size: 19px; font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--line); }
.menu-movil .btn { margin-top: 14px; }
.menu-movil[hidden] { display: none; }
@media (max-width: 1180px) { .nav-links, .nav-cta { display: none; } .burger { display: block; } }

/* ---------- Fondo de estudio (secciones con ref3 / ref4) ---------- */
.hero { background: radial-gradient(900px 520px at 78% 55%, #FFFFFF 0%, rgba(255,255,255,0) 70%), linear-gradient(180deg, #E7F2FC 0%, #F3F9FE 100%); }
.inside { background: radial-gradient(760px 560px at 24% 50%, #FFFFFF 0%, rgba(255,255,255,0) 70%), linear-gradient(180deg, #EEF6FD 0%, #E6F1FC 100%); }

/* ---------- A. Portada ---------- */
.hero { padding: calc(var(--nav-space) + 8px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 56px); }
.hero-copy { max-width: 600px; padding-bottom: 24px; }
.hero h1 { margin-top: 14px; }
.hero .lead { margin-top: 20px; max-width: 30ch; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-media { display: flex; justify-content: center; align-self: center; padding-bottom: 24px; }
.hero-media img { width: auto; max-width: 100%; height: min(640px, calc(100svh - var(--nav-space) - 40px)); min-height: 400px; object-fit: contain; }

/* ---------- B. Equipos ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tile { display: grid; align-content: start; background: linear-gradient(180deg, #F3F9FE 0%, #EAF4FD 100%); border-radius: var(--r-xl); padding: clamp(28px, 3.5vw, 44px) clamp(24px, 3vw, 40px) clamp(32px, 3.5vw, 44px); text-align: center; overflow: hidden; }
.tile-media { height: clamp(280px, 30vw, 380px); display: flex; align-items: flex-end; justify-content: center; margin-bottom: 28px; }
.tile-media img { height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 26px 22px rgba(14,45,82,.16)); }
.tile-copy p { margin: 10px auto 0; max-width: 36ch; color: var(--muted); }
.tile-copy .btn { margin-top: 24px; }
.tile-wide { margin-top: 20px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(20px, 4vw, 48px); text-align: left; padding-block: clamp(24px, 3vw, 32px); }
.tile-wide .tile-media { height: clamp(200px, 20vw, 250px); margin: 0; }
.tile-wide h3 { font-size: clamp(22px, 2vw, 26px); }
.tile-wide .tile-copy p { margin-left: 0; }
.tile-wide .link-more { margin-top: 10px; }

/* ---------- C. Conocemos tu lavadora por dentro ---------- */
.inside { padding: clamp(48px, 6vw, 80px) 0; }
.inside-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(24px, 5vw, 72px); }
.inside-media { display: flex; justify-content: center; }
.inside-media img { width: auto; max-width: 100%; height: min(700px, 84svh); object-fit: contain; }
.inside-copy { max-width: 540px; }
.inside-copy .lead { margin-top: 18px; color: var(--muted); }
.points { list-style: none; padding: 0; margin: 30px 0 32px; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: center; }
.points strong { display: block; color: var(--navy); font-size: 18px; line-height: 1.3; }
.points span:not(.ico) { color: var(--muted); font-size: 16px; }
.ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-sm); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--blue-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- D. Fallas ---------- */
.faults { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.fault { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color .2s, background .2s; }
.fault[open] { border-color: #BFDDF6; }
.fault summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 72px minmax(0, 1fr) 16px; align-items: center; gap: 14px; min-height: 96px; padding: 12px 20px 12px 12px; font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.25; }
.fault summary::-webkit-details-marker { display: none; }
.fault summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: translateY(-25%) rotate(45deg); transition: transform .25s var(--ease); justify-self: center; }
.fault[open] summary::after { transform: translateY(25%) rotate(-135deg); }
.f-ico, .f-ico img { display: block; width: 72px; height: 72px; }
.fault p { padding: 0 20px 20px 98px; color: var(--muted); font-size: 16px; }
.center-cta { text-align: center; margin-top: 22px; }

/* ---------- E. Así funciona una visita ---------- */
.visit { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.v-step { position: relative; display: grid; align-content: start; justify-items: center; gap: 8px; text-align: center; background: #fff; border-radius: var(--r-lg); padding: 26px 22px 28px; box-shadow: var(--shadow-sm); height: 100%; }
.v-ico, .v-ico img { display: block; width: 104px; height: 104px; }
.v-ico { margin: 0 0 6px; }
.v-num { position: absolute; top: 16px; left: 16px; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--blue-50); color: var(--blue-text); font: 800 14px/30px var(--f-body); text-align: center; }
.v-step h3 { font-size: 20px; }
.v-step p { color: var(--muted); font-size: 16px; line-height: 1.5; }

/* ---------- F. Confianza y equipo ---------- */
.team { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(28px, 5vw, 72px); }
.team-photo { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 3; background: var(--gray-100); }
.team-photo picture, .team-photo img { width: 100%; height: 100%; }
.team-photo img { object-fit: cover; object-position: 50% 55%; }
.team-copy .lead { margin-top: 16px; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.checks li { position: relative; padding-left: 32px; font-weight: 600; color: var(--navy); font-size: 17px; line-height: 1.35; }
.checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-50); }
.checks li::after { content: ""; position: absolute; left: 8px; top: 5px; width: 6px; height: 11px; border-right: 2px solid var(--blue-text); border-bottom: 2px solid var(--blue-text); transform: rotate(45deg); }
.brands-sec { padding-top: 0; }
.brands-sec .wrap { border-top: 1px solid var(--line); padding-top: var(--sec-y); }
.brands { list-style: none; padding: 0; margin: 0 auto; max-width: 1040px; display: flex; flex-wrap: wrap; justify-content: center; row-gap: clamp(28px, 4vw, 44px); }
.brands li { flex: 0 0 calc(100% / 6); display: flex; align-items: center; justify-content: center; height: 72px; padding: 0 14px; }
.brands picture { display: contents; }
.brands img { height: var(--h, 36px); width: auto; max-width: 100%; object-fit: contain; }
/* tamaño óptico: superficie visual parecida entre marcas (según proporción y densidad de cada logo) */
.b-samsung { --h: 44px; } .b-lg { --h: 50px; } .b-bosch { --h: 36px; } .b-electrolux { --h: 38px; }
.b-whirlpool { --h: 46px; } .b-mademsa { --h: 40px; } .b-fensa { --h: 33px; } .b-midea { --h: 50px; }
.b-teka { --h: 31px; } .b-mabe { --h: 39px; } .b-siemens { --h: 26px; }
.disclaimer { margin: clamp(28px, 4vw, 40px) auto 0; max-width: 60ch; text-align: center; color: var(--muted); font-size: 15px; }

/* ---------- G. Cobertura (mapa) ---------- */
.cov-stage { display: grid; justify-items: center; }
.map-card { position: relative; width: min(100%, 680px); padding: 12px; border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow-sm); container-type: inline-size; }
#mapa { position: relative; display: block; width: 100%; height: auto; touch-action: manipulation; overflow: visible; }
.cm-r { fill: var(--c); stroke: #FFFFFF; stroke-width: 2.5; stroke-linejoin: round; cursor: pointer; transform-box: fill-box; transform-origin: center; transition: fill .3s, opacity .6s var(--ease), transform .6s var(--ease), stroke .2s; }
#mapa.is-ready .cm-r:not(.is-on) { fill: #E8EEF3; }
.cm-r.is-hot { stroke: #0E2D52; stroke-width: 3.5; filter: saturate(1.35) brightness(.97); }
#mapa.is-ready .cm-r:not(.is-on).is-hot { fill: #DCE6EE; }
.js #mapa:not(.is-in) .cm-r { opacity: 0; }
.cm-l { font-family: var(--f-body); font-weight: 600; fill: #2B4058; text-anchor: middle; pointer-events: none; transition: opacity .5s .3s, fill .2s; paint-order: stroke; stroke: rgba(255,255,255,.55); stroke-width: 3px; }
#mapa.is-ready .cm-l:not(.is-on) { fill: #8394A7; font-weight: 500; }
.cm-l.is-hot { fill: #0E2D52; }
.js #mapa:not(.is-in) .cm-l { opacity: 0; }
@container (max-width: 520px) { .cm-l { display: none; } }
.cm-m { cursor: pointer; }
.cm-m > circle { transform-box: fill-box; transform-origin: center; transition: transform .45s cubic-bezier(.3,1.6,.5,1), fill .2s; }
.cm-dot { fill: #FFFFFF; stroke: #A7B7C6; stroke-width: 2.5; transform: scale(.75); }
.cm-halo { fill: none; }
.cm-m.is-on .cm-dot { fill: var(--blue); stroke: #FFFFFF; stroke-width: 3; transform: scale(1); }
.cm-m.is-on .cm-halo { fill: rgba(47,162,223,.20); }
.cm-m.is-hot .cm-dot { transform: scale(1.35); }
.cm-m.is-base .cm-halo { fill: none; stroke: var(--blue); stroke-width: 2.5; animation: ripple 2.8s ease-out infinite; }
.js #mapa:not(.is-in) .cm-m > circle { transform: scale(0); }
@container (max-width: 520px) {
  .cm-dot { stroke-width: 4; transform: scale(1.15); }
  .cm-m.is-on .cm-dot { stroke-width: 4.5; transform: scale(1.75); }
  .cm-m.is-hot .cm-dot { transform: scale(2.2); }
  .cm-r { stroke-width: 3.5; }
}
@keyframes ripple { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.map-tip {
  position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 12px)); pointer-events: none;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px; box-shadow: var(--shadow-md);
  white-space: nowrap; display: grid; gap: 2px;
}
.map-tip[hidden] { display: none; }
.map-tip strong { font-size: 15px; line-height: 1.2; color: var(--navy); }
.map-tip span { font-size: 12.5px; color: var(--muted); }
.map-tip.on span { color: var(--blue-text); font-weight: 600; }
.map-tip::after { content: ""; position: absolute; left: calc(50% + var(--arrow, 0px)); bottom: -6px; width: 10px; height: 10px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
.map-pick {
  position: relative; z-index: 3; margin: 18px 0 0; width: min(100%, 680px);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 12px 12px 24px;
  border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm);
}
.map-pick[hidden] { display: none; }
.map-pick p { display: grid; gap: 2px; font-size: 15px; color: var(--muted); text-align: left; }
.map-pick strong { font-size: 18px; line-height: 1.2; color: var(--navy); }
.map-pick.is-sel { box-shadow: 0 0 0 2px var(--blue), var(--shadow-sm); }

/* ---------- H. Preguntas frecuentes ---------- */
.faq { max-width: 800px; }
.faq > h2 { text-align: center; margin-bottom: clamp(24px, 3.5vw, 36px); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; position: relative; min-height: 64px; padding: 20px 44px 20px 0; font-size: 19px; font-weight: 700; line-height: 1.35; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }

/* ---------- I. Agenda tu visita ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(28px, 5vw, 72px); }
.contact-info .lead { margin-top: 16px; max-width: 40ch; }
.cinfo { margin: 30px 0 0; display: grid; border-top: 1px solid var(--line); }
.cinfo div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cinfo dt { color: var(--muted); font-size: 16px; }
.cinfo dd { margin: 0; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.cinfo a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }
.cinfo a:hover { color: var(--blue-text); }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); display: grid; place-items: center; }
.socials svg { width: 20px; height: 20px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.socials svg .f { fill: var(--navy); stroke: none; }
.socials a.is-empty { display: none; }
.form { background: #fff; border-radius: var(--r-xl); padding: clamp(24px, 3vw, 36px); display: grid; gap: 16px; box-shadow: var(--shadow-md); }
.field { display: grid; gap: 7px; min-width: 0; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.field label { font-weight: 600; font-size: 15px; color: var(--navy); }
.opt { font-weight: 400; color: #6A7888; }
.field input, .field select, .field textarea {
  font: 400 16px/1.4 var(--f-body); color: var(--ink); background: var(--gray-50); min-width: 0;
  border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 13px 14px; width: 100%; min-height: 50px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26,135,196,.14); }
.field .is-invalid { border-color: #C93A3A; }
.form-error { color: #B32D2D; font-size: 15px; font-weight: 500; }
.form-error[hidden], .form-status[hidden] { display: none; }
.form-status { font-size: 15px; color: var(--navy); background: #EEF8F1; border: 1px solid #BFE5CC; border-radius: 12px; padding: 12px 14px; }
.form-status a { color: var(--blue-text); font-weight: 600; }

/* ---------- Pie de página ---------- */
.foot { background: linear-gradient(160deg, var(--navy-700), var(--navy)); color: rgba(255,255,255,.82); padding: 44px 0 calc(44px + env(safe-area-inset-bottom, 0px)); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot .brand-img { height: 50px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot nav a { text-decoration: none; color: rgba(255,255,255,.8); font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; }
.foot nav a:hover { color: #fff; }
.foot-legal { width: 100%; color: rgba(255,255,255,.62); font-size: 14px; }
.foot-credits { width: 100%; margin-top: -10px; font-size: 12.5px; color: rgba(255,255,255,.55); }
.foot-credits a { color: inherit; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, #2BC866 0%, #1DAE55 48%, #128F42 100%); border: 1px solid rgba(10,110,50,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 10px 24px rgba(20,145,70,.28); transition: transform .18s var(--ease), box-shadow .2s, opacity .25s;
}
@media (hover: hover) { .wa-float:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 14px 30px rgba(20,145,70,.36); } }
.wa-float:active { transform: translateY(0); }
.wa-float:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
body.fab-off .wa-float { opacity: 0; transform: translateY(14px); pointer-events: none; }

/* =====================================================================
   Tablet y celular
   ===================================================================== */
@media (max-width: 1020px) {
  .brands li { flex-basis: calc(100% / 4); }
  .faults { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; --nav-h: 58px; }
  body { font-size: 17px; }
  .brand-img { height: 36px; }
  .nav-in { padding-left: 14px; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hero-copy { max-width: none; padding-bottom: 0; }
  .hero h1 { margin-top: 10px; font-size: clamp(34px, 9.4vw, 46px); }
  .hero .lead { margin-top: 14px; }
  .actions { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .actions .btn { width: 100%; }
  .hero-media { padding-bottom: 20px; }
  .hero-media img { height: min(50svh, 420px); min-height: 0; }

  .tiles { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tile-media { height: clamp(260px, 72vw, 340px); margin-bottom: 22px; }
  .tile-wide { margin-top: 14px; grid-template-columns: minmax(0, 1fr); text-align: center; gap: 18px; }
  .tile-wide .tile-media { height: 220px; }
  .tile-wide .tile-copy p { margin-left: auto; }

  .inside-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .inside-copy { display: contents; }
  .inside-copy h2 { order: 1; } .inside-copy .lead { order: 2; }
  .inside-media { order: 3; margin: 18px 0 0; }
  .inside-media img { height: min(70svh, 600px); }
  .points { order: 4; margin: 20px 0 22px; }
  .inside-copy > .btn { order: 5; width: 100%; }

  .team { grid-template-columns: minmax(0, 1fr); }
  .contact { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .faults { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fault summary { min-height: 84px; grid-template-columns: 62px minmax(0, 1fr) 16px; gap: 12px; padding: 10px 16px 10px 10px; }
  .f-ico, .f-ico img { width: 62px; height: 62px; }
  .fault p { padding: 0 16px 18px 84px; }
  .brands li { flex-basis: calc(100% / 3); height: 60px; padding: 0 8px; }
  .brands img { height: calc(var(--h, 36px) * .74); }
  .visit { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .v-step { grid-template-columns: 80px minmax(0, 1fr); grid-template-rows: auto auto; justify-items: start; text-align: left; column-gap: 16px; row-gap: 2px; padding: 18px 18px 18px 14px; }
  .v-ico { grid-row: 1 / 3; margin: 0; align-self: center; }
  .v-ico, .v-ico img { width: 80px; height: 80px; }
  .v-num { top: 10px; left: auto; right: 12px; }
  .v-step h3 { align-self: end; font-size: 19px; padding-right: 36px; }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .map-card { padding: 6px; }
  .map-pick { border-radius: 20px; flex-direction: column; align-items: stretch; padding: 16px; }
  .map-pick p { text-align: center; } .map-pick .btn { width: 100%; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .cinfo div { grid-template-columns: 90px minmax(0, 1fr); }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .foot { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }   /* el botón flotante no tapa el pie */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}


/* =====================================================================
   Movimiento y relieve (8-nov-2026)
   Botones de WhatsApp con relieve y efecto "push", íconos con movimiento
   suave y aparición de contenidos al hacer scroll. Las imágenes de los
   equipos no se mueven.
   ===================================================================== */

/* ---- Botones de WhatsApp con relieve ---- */
.btn-wa, .wa-float {
  --edge: #0B6A30;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,60,25,.18), 0 4px 0 var(--edge), 0 12px 24px rgba(20,145,70,.30);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), filter .2s;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .btn-wa:hover, .wa-float:hover { transform: translateY(-2px); filter: brightness(1.05);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(0,60,25,.18), 0 6px 0 var(--edge), 0 18px 32px rgba(20,145,70,.34); }
}
.btn-wa:active, .wa-float:active, .btn-wa.is-pushed, .wa-float.is-pushed {
  transform: translateY(4px); filter: brightness(.97);
  box-shadow: inset 0 2px 4px rgba(0,60,25,.28), 0 0 0 var(--edge), 0 4px 10px rgba(20,145,70,.22);
}
.btn-wa { margin-bottom: 4px; }

/* Botón flotante: aviso suave cada cierto tiempo */
.wa-float::before, .wa-float::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 3px solid #22D163; box-shadow: 0 0 14px rgba(34,209,99,.55); opacity: 0; animation: wa-ring 1.8s 1s infinite; pointer-events: none; }
.wa-float::before { animation-delay: 1.45s; }
@keyframes wa-ring { 0% { transform: scale(1); opacity: 1; } 60%, 100% { transform: scale(1.7); opacity: 0; } }
/* Botones alargados: el mismo latido, adaptado a su forma */
.btn-wa { position: relative; }
.btn-wa::before, .btn-wa::after { content: ""; position: absolute; inset: -2px; border-radius: 999px; border: 3px solid #22D163; box-shadow: 0 0 14px rgba(34,209,99,.55); opacity: 0; animation: wa-ring-pill 1.8s 1s infinite; pointer-events: none; }
.btn-wa::before { animation-delay: 1.45s; }
.btn-wa:active::after, .btn-wa.is-pushed::after, .btn-wa[disabled]::after, .btn-wa:active::before, .btn-wa.is-pushed::before, .btn-wa[disabled]::before { animation: none; opacity: 0; }
@keyframes wa-ring-pill { 0% { transform: scale(1); opacity: 1; } 60%, 100% { transform: scale(1.05, 1.45); opacity: 0; } }

/* Colores más vivos en los botones de WhatsApp */
.btn-wa, .wa-float { background: linear-gradient(180deg, #45EA87 0%, #25CF66 45%, #12A84C 100%); --edge: #0A7A36; }
.btn-wa { text-shadow: 0 1px 2px rgba(0,70,25,.55); }

/* ---- Íconos con movimiento ---- */
.f-ico, .v-ico, .ico { transition: transform .35s cubic-bezier(.3,1.5,.5,1); }
@media (hover: hover) {
  .fault:hover .f-ico, .v-step:hover .v-ico, .points li:hover .ico { transform: translateY(-4px) rotate(-4deg) scale(1.06); }
}
.fault summary:active .f-ico, .v-step:active .v-ico, .points li:active .ico { transform: scale(.9); transition-duration: .1s; }
.fault[open] .f-ico { transform: rotate(-6deg) scale(1.05); }
.rv.is-in .v-ico, .rv.is-in .f-ico { animation: ico-pop .7s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--d, 0ms) + 120ms); }
@keyframes ico-pop { 0% { transform: scale(.6) rotate(-10deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.v-step, .fault { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s, background .2s; }
@media (hover: hover) { .v-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); } }

/* ---- Aparición al hacer scroll ---- */
html.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
html.js .rv.is-in { opacity: 1; transform: none; }
html.js .fault.rv.is-in, html.js .v-step.rv.is-in { transition: opacity .7s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s, background .2s; transition-delay: var(--d, 0ms), 0ms, 0ms, 0ms, 0ms; }

/* ---------- E2. Antes de la reparación ---------- */
.before-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.b-item { margin: 0; }
.b-open { display: block; width: 100%; padding: 0; border: 0; background: var(--gray-100); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; cursor: zoom-in; box-shadow: var(--shadow-sm); }
.b-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
@media (hover: hover) { .b-open:hover img { transform: scale(1.04); } }
.b-open:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.b-item figcaption { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 1000px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(6,22,44,.82); }
.lightbox img { display: block; max-width: min(92vw, 1000px); max-height: 78vh; width: auto; height: auto; border-radius: var(--r-md); margin: 0 auto; }
.lightbox p { color: #fff; text-align: center; margin: 12px 8px 0; font-size: 16px; }
.lb-close { position: absolute; top: -48px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font: 400 30px/44px var(--f-body); cursor: pointer; }
@media (max-width: 860px) { .before-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .b-item figcaption { font-size: 14px; } }

@media (prefers-reduced-motion: reduce) {
  html.js .rv { opacity: 1; transform: none; }
  .wa-float::after, .btn-wa::after, .wa-float::before, .btn-wa::before { display: none; }
  .bubbles { display: none; }
}

/* ---------- Burbujas de fondo (8-nov-2026) ----------
   Suben detrás del contenido de cada sección. Solo se animan las de la
   sección que se está viendo, para no gastar batería en celulares. */
.bub-host { position: relative; isolation: isolate; }
.bub-host > .wrap { position: relative; z-index: 1; }
.bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bubbles i {
  position: absolute; bottom: -60px; left: var(--l); width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95) 0 12%, rgba(255,255,255,.25) 30%, rgba(11,142,224,.10) 62%, rgba(11,142,224,.22) 100%);
  border: 1px solid rgba(11,142,224,.28); box-shadow: inset -3px -4px 8px rgba(11,142,224,.12);
  opacity: 0; will-change: transform, opacity;
  animation: bub-rise var(--t) linear var(--dl) infinite; animation-play-state: paused;
}
.bubbles.is-on i { animation-play-state: running; }
@keyframes bub-rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  8% { opacity: var(--o); }
  50% { transform: translate3d(var(--x), calc(var(--h) * -.5), 0); }
  88% { opacity: var(--o); }
  100% { transform: translate3d(0, calc(var(--h) * -1), 0); opacity: 0; }
}
