/* Tokens: ver wiki/design-system.md. Tema claro unico, un solo acento (azul). Referencia de estilo: mobbin.com (limpio, mucho aire, tipografia grande). */
:root {
  --bg: #ffffff;
  --bg-2: #f5f6f8;
  --ink: #0b1426;
  --muted: #5b6270;
  --line: #e4e6eb;
  --accent: #0258a4;
  --accent-hover: #014a8a;
  --accent-soft: #e6f1fb;
  --on-accent: #ffffff;
  --wa: #1aa355;
  --danger: #c4262e;
  --ok: #12794a;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 56px; --s-8: 104px;
  /* Forma: botones y chips en pastilla, tarjetas 24px, campos 14px */
  --r-pill: 999px; --r-card: 24px; --r-field: 14px;
  --shadow: 0 1px 2px rgb(16 24 40 / 0.06), 0 14px 32px -14px rgb(16 24 40 / 0.18);
  --font: "Segoe UI Variable Display", "SF Pro Display", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-h1: clamp(2.2rem, 6.6vw, 3.7rem);
  --fs-h2: clamp(1.9rem, 5.5vw, 3rem);
  --max: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --touch: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--bg); overflow-x: clip; padding-bottom: 96px; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0 0 var(--s-4); font-weight: 700; letter-spacing: -0.04em; line-height: 1.04; color: var(--ink); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0 0 var(--s-4); }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--s-5); }
.lead { color: var(--muted); font-size: 1.2rem; max-width: 50ch; }

/* Progreso de scroll (mejora progresiva) */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  .progress { display: block; position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; animation: grow linear both; animation-timeline: scroll(root); }
}
@keyframes grow { to { transform: scaleX(1); } }

/* Botones (pastilla) */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: var(--touch); padding: 0 var(--s-6); border-radius: var(--r-pill); border: 1.5px solid transparent; font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform 300ms var(--ease), background 200ms, border-color 200ms; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
.btn--call { background: var(--accent); color: var(--on-accent); }
.btn--call:hover { background: var(--accent-hover); }
.btn--glass { background: var(--bg); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.btn--glass:hover { border-color: #c9cdd6; }
.btn--glass .icon { color: var(--wa); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 var(--s-5); }

/* Navegacion flotante */
.nav { position: fixed; top: var(--s-3); left: 50%; transform: translateX(-50%); width: calc(100% - 24px); max-width: 760px; z-index: 50; }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 6px 6px 6px var(--s-5); border-radius: var(--r-pill); background: rgb(255 255 255 / 0.8); border: 1px solid var(--line); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); box-shadow: var(--shadow); }
@media (prefers-reduced-transparency: reduce) { .nav__in, .dock__in, .float-card { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.brand { font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }

/* Hero */
.hero { padding: 132px 0 var(--s-8); background: var(--bg); }
.hero h1 { max-width: 16ch; margin-bottom: var(--s-5); }
.hero__grid { display: grid; gap: var(--s-7); }
.status { display: inline-flex; align-items: center; gap: var(--s-2); font-size: 0.95rem; font-weight: 500; background: var(--bg-2); border: 1px solid var(--line); padding: 6px var(--s-4) 6px 12px; border-radius: var(--r-pill); margin-bottom: var(--s-5); }
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.status.is-off .status__dot { background: #d68a00; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.hero .lead { margin-bottom: 0; }

.hero__visual { position: relative; }
.photo { position: relative; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center; padding: var(--s-5); color: var(--muted); font-weight: 500; background: linear-gradient(160deg, #eef0f4, var(--bg-2)); box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.float-card { position: absolute; left: var(--s-4); bottom: calc(-1 * var(--s-5)); display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-5) var(--s-3) var(--s-3); border-radius: var(--r-pill); background: rgb(255 255 255 / 0.88); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow); font-weight: 600; }
.float-card .icon { background: var(--accent); color: var(--on-accent); border-radius: 50%; width: 40px; height: 40px; padding: 9px; }
.float-card small { display: block; color: var(--muted); font-weight: 400; }

/* Titular: aparicion por palabra */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.w > span { display: inline-block; transform: translateY(115%); animation: rise 0.55s var(--ease) forwards; }
.w:nth-child(1) > span { animation-delay: 0s } .w:nth-child(2) > span { animation-delay: 0.05s }
.w:nth-child(3) > span { animation-delay: 0.1s } .w:nth-child(4) > span { animation-delay: 0.15s }
@keyframes rise { to { transform: none; } }

/* Confianza (estilo barra de logos: fila limpia con lineas finas) */
.trust { border-block: 1px solid var(--line); background: var(--bg); }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.trust li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-5) var(--s-4); font-weight: 600; line-height: 1.25; border-bottom: 1px solid var(--line); }
.trust li:nth-child(odd) { border-right: 1px solid var(--line); }
.trust li:nth-last-child(-n+2) { border-bottom: 0; }
.trust .icon { color: var(--accent); width: 28px; height: 28px; }

/* Secciones */
.section { padding: var(--s-8) 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { margin-bottom: var(--s-6); }

/* Servicios: bento de 4 celdas */
.bento { display: grid; gap: var(--s-4); }
.tile { --mx: 50%; --my: 50%; position: relative; isolation: isolate; text-align: left; overflow: hidden; border-radius: var(--r-card); padding: var(--s-6); border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; cursor: pointer; width: 100%; min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow); transition: transform 400ms var(--ease), border-color 200ms; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(380px circle at var(--mx) var(--my), rgb(2 88 164 / 0.08), transparent 60%); opacity: 0; transition: opacity 300ms; }
.tile:hover { transform: translateY(-3px); border-color: #c9cdd6; }
.tile:hover::before { opacity: 1; }

.tile p { color: var(--muted); margin: 0 0 var(--s-4); }
.tile h3 { margin-bottom: var(--s-2); }
.tile__go { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; color: var(--accent); }
.tile__go .icon { transition: transform 300ms var(--ease); }
.tile:hover .tile__go .icon { transform: translateX(4px); }
.tile--hot { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.tile--hot h3, .tile--hot .tile__go { color: var(--on-accent); }
.tile--hot p { color: rgb(255 255 255 / 0.85); }

.tile--hot::before { background: radial-gradient(380px circle at var(--mx) var(--my), rgb(255 255 255 / 0.16), transparent 60%); }
.tile--tint { background: var(--bg-2); }
.tile--grid { background-color: var(--bg); background-image: linear-gradient(rgb(11 11 15 / 0.05) 1px, transparent 1px), linear-gradient(90deg, rgb(11 11 15 / 0.05) 1px, transparent 1px); background-size: 32px 32px; }

/* Antes y despues */
.ba-grid { display: grid; gap: var(--s-6); }
.fig { margin: 0; }
.ba { position: relative; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; --pos: 50%; touch-action: pan-y; box-shadow: var(--shadow); }
.ba__layer { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; padding: var(--s-4); text-align: center; background-size: cover; background-position: center; }
.ba__layer--after { background: linear-gradient(150deg, #e3e8ff, #cfd8ff); color: var(--ink); }
.ba__layer--before { background: linear-gradient(150deg, #d6d8dd, #c3c6cd); color: #3a3f48; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__tag { position: absolute; top: var(--s-4); padding: 6px var(--s-4); background: rgb(255 255 255 / 0.9); color: var(--ink); font-size: 0.85rem; font-weight: 600; border-radius: var(--r-pill); border: 1px solid var(--line); }
.ba__tag--l { left: var(--s-4); } .ba__tag--r { right: var(--s-4); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08); }
.ba__knob { position: absolute; top: 50%; left: var(--pos); width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; transform: translate(-50%, -50%); pointer-events: none; box-shadow: var(--shadow); }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.ba-cap { margin: var(--s-3) 0 0; color: var(--muted); }

/* Quien soy */
.about { display: grid; gap: var(--s-6); align-items: center; }

/* Formulario */
.contact { display: grid; gap: var(--s-7); }
.tabs { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--bg-2); border: 1px solid var(--line); margin: 0 0 var(--s-5); width: 100%; max-width: 480px; }
.tab { min-height: 48px; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; border-radius: var(--r-pill); cursor: pointer; transition: background 250ms var(--ease), color 250ms; }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
form { display: grid; gap: var(--s-4); max-width: 560px; }
.field { display: grid; gap: var(--s-2); }
.field label { font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; min-height: var(--touch); padding: var(--s-3) var(--s-4); border: 1.5px solid #c9cdd6; border-radius: var(--r-field); background: var(--bg); color: var(--ink); width: 100%; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.hint { color: var(--muted); font-size: 0.9rem; }
.err { color: var(--danger); font-size: 0.9rem; min-height: 1.2em; }
.hp { position: absolute; left: -9999px; }
.previews { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.previews img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.notice { padding: var(--s-5); border-radius: var(--r-card); border: 1.5px solid var(--ok); background: #effaf4; max-width: 560px; }
.notice p { margin-bottom: var(--s-4); }
[hidden] { display: none !important; }
.contact__side p { color: var(--muted); }
.contact__side a { color: var(--ink); font-weight: 600; }

/* Footer */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: var(--s-7) 0 var(--s-8); color: var(--muted); }
.footer a { color: var(--ink); }
.footer h2 { font-size: 1.6rem; }
.footer__grid { display: grid; gap: var(--s-6); align-items: start; }
.contact-list { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: grid; gap: var(--s-3); }
.contact-list li { display: flex; align-items: center; gap: var(--s-3); color: var(--ink); font-weight: 500; }
.contact-list .icon { color: var(--accent); }
.map { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg-2); }
.map iframe { width: 100%; height: 320px; border: 0; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-8); } .map iframe { height: 380px; } }

/* Dock movil */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 0 var(--s-3) calc(var(--s-3) + env(safe-area-inset-bottom)); pointer-events: none; }
.dock__in { pointer-events: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: var(--r-pill); max-width: 480px; margin: 0 auto; background: rgb(255 255 255 / 0.88); border: 1px solid var(--line); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); box-shadow: var(--shadow); }
.dock .btn { min-height: 48px; padding: 0 var(--s-4); box-shadow: none; }

/* Entrada al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.bento .reveal:nth-child(2) { transition-delay: 80ms; } .bento .reveal:nth-child(3) { transition-delay: 160ms; } .bento .reveal:nth-child(4) { transition-delay: 240ms; }

/* Movil: acciones a todo el ancho, enlaces de texto con area tactil de 44 px */
@media (max-width: 767px) {
  .hero .cta-row { flex-direction: column; }
  .hero .cta-row .btn { width: 100%; min-height: 56px; font-size: 1.05rem; }
}
.brand, .contact-list a, .contact__side a, .footer a { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: var(--s-8); }
  .trust ul { grid-template-columns: repeat(4, 1fr); }
  .trust li { border-bottom: 0 !important; border-right: 1px solid var(--line); justify-content: center; }
  .trust li:last-child { border-right: 0; }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile { min-height: 290px; }
  .bento .tile:nth-child(1) { grid-column: span 4; }
  .bento .tile:nth-child(2) { grid-column: span 2; }
  .bento .tile:nth-child(3) { grid-column: span 2; }
  .bento .tile:nth-child(4) { grid-column: span 4; }
  .ba-grid { grid-template-columns: 1.25fr 0.75fr; align-items: end; }
  .ba-grid .fig:nth-child(2) .ba { aspect-ratio: 3 / 4; }
  .about { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-8); }
  .contact { grid-template-columns: 0.9fr 1.1fr; gap: var(--s-8); align-items: start; }
  .dock { left: auto; right: var(--s-6); bottom: var(--s-6); padding: 0; }
  .dock__in { display: block; padding: 0; background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .dock .btn--call { display: none; }
  .dock .btn--glass { box-shadow: var(--shadow); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .w > span { transform: none; }
}

/* Logo */
.brand { gap: var(--s-2); }

.brand__txt { display: grid; line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
.brand__txt small { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.brand--lg { gap: var(--s-4); }
.brand--lg .brand__txt { font-size: 2rem; }
.brand--lg .brand__txt small { font-size: 0.75rem; }
.logo-grid { display: grid; gap: var(--s-4); margin-top: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.logo-card { display: grid; justify-items: center; align-content: center; gap: var(--s-3); padding: var(--s-6); min-height: 220px; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); background: var(--bg); }
.logo-card--blue { background: var(--bg-2); }
.logo-card p { margin: 0; }
.sizes { display: flex; align-items: flex-end; gap: var(--s-4); }
.brand--lg img { width: 56px; height: 56px; }
.logo-card--tint { background: var(--bg-2); }
.logo-card--wide { grid-column: span 2; }
.logo-card--ink { background: var(--ink); border-color: var(--ink); }
.hint--light { color: #a9b0bd; }
.inv { filter: invert(1); }
.stack { display: grid; justify-items: center; gap: var(--s-2); text-align: center; }
.stack__name { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stack__name--light { color: #fff; }
.stack__sub { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.stack__sub--light { color: #aeb6ff; }
@media (max-width: 767px) { .logo-card--wide { grid-column: auto; } }
.brand img { width: 44px; height: 44px; }
.nav__in { padding-left: 10px; }
.footer__logo { width: 200px; height: auto; margin-bottom: var(--s-4); }
.logo-card img { height: auto; max-width: 100%; }
.sizes { flex-wrap: wrap; justify-content: center; }

/* Fotos de prueba (reemplazar por fotos reales de Javier) */
.photo img { aspect-ratio: auto; }
.photo:has(img) { padding: 0; }

/* Tarjetas de servicio con foto: imagen arriba, texto abajo */
.tile { padding: var(--s-3); justify-content: flex-start; gap: var(--s-4); min-height: 0; }
.tile__img { position: relative; display: block; flex: 1 1 auto; min-height: 170px; border-radius: 16px; overflow: hidden; background: var(--bg-2); }
.tile__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.tile:hover .tile__img img { transform: scale(1.05); }
.tile__img .icon { position: absolute; top: var(--s-3); left: var(--s-3); width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: rgb(255 255 255 / 0.92); color: var(--accent); box-shadow: var(--shadow); }
.tile__body { display: block; padding: 0 var(--s-3) var(--s-3); }
.tile--grid { background-image: none; }
.tile--hot .tile__img .icon { background: var(--accent); color: var(--on-accent); }
.tile--hot .tile__go .icon, .tile .tile__go .icon { position: static; width: 20px; height: 20px; padding: 0; background: none; box-shadow: none; color: inherit; }
@media (min-width: 768px) { .tile__img { min-height: 190px; } }
.tile--hot .tile__img img { object-position: center 55%; }

/* Botones del hero: mismo ancho y alto, en fila si caben o apilados */
.hero .cta-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: 520px; }
.hero .cta-row .btn { width: 100%; min-height: 56px; }

/* Hero: botones siempre apilados y del mismo ancho */
.hero .cta-row { grid-template-columns: minmax(0, 320px); max-width: none; }
@media (max-width: 767px) { .hero .cta-row { grid-template-columns: 1fr; } }

/* Recomendaciones: Google, Instagram y reseñas */
.stars { display: inline-flex; gap: 2px; color: #f5a623; }
.stars .icon { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.proof { display: grid; gap: var(--s-4); }
.proof__card { display: grid; align-content: space-between; gap: var(--s-2); min-height: 240px; padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform 400ms var(--ease), border-color 200ms; }
.proof__card:hover { transform: translateY(-3px); border-color: #c9cdd6; }
.proof__card--google { background: var(--accent-soft); border-color: transparent; }
.proof__big { font-size: clamp(3rem, 9vw, 4.5rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.proof__big--sm { font-size: clamp(1.8rem, 5vw, 2.4rem); letter-spacing: -0.03em; }
.proof__txt { color: var(--muted); }
.proof__go { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; color: var(--accent); }
.proof__go .icon { transition: transform 300ms var(--ease); }
.proof__card:hover .proof__go .icon { transform: translateX(4px); }
.proof__ig { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--bg-2); color: var(--ink); }
.reviews { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: flex; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-3); -webkit-overflow-scrolling: touch; }
.review { flex: 0 0 min(86%, 340px); scroll-snap-align: start; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg-2); }
.review p { margin: var(--s-3) 0 0; }
.review .review__who { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
@media (min-width: 768px) {
  .proof { grid-template-columns: 1fr 1fr; }
  .reviews { overflow: visible; display: grid; grid-template-columns: repeat(3, 1fr); }
  .review { flex: none; }
}

/* Cobertura: buscador de comuna */
.coverage { position: relative; overflow: hidden; }
.coverage::before { content: ""; position: absolute; right: -180px; top: -120px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, transparent 38%, rgb(2 88 164 / 0.07) 39%, rgb(2 88 164 / 0.07) 40%, transparent 41%, transparent 56%, rgb(2 88 164 / 0.06) 57%, rgb(2 88 164 / 0.06) 58%, transparent 59%, transparent 74%, rgb(2 88 164 / 0.05) 75%, rgb(2 88 164 / 0.05) 76%, transparent 77%); pointer-events: none; }
.coverage .wrap { position: relative; }
.cover { display: grid; gap: var(--s-6); align-items: start; }
.cover__check { padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg); box-shadow: var(--shadow); display: grid; gap: var(--s-3); }
.cover__label { font-weight: 600; }
.cover__field { display: flex; align-items: center; gap: var(--s-3); padding: 0 var(--s-4); min-height: var(--touch); border: 1.5px solid #c9cdd6; border-radius: var(--r-field); background: var(--bg); }
.cover__field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.cover__field .icon { color: var(--accent); }
.cover__field input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; color: var(--ink); background: transparent; min-height: 48px; }
.cover__result { margin: 0; color: var(--muted); min-height: 3em; }
.cover__result strong { color: var(--ink); }
.cover__result.is-yes { color: var(--ok); }
.cover__result.is-yes strong { color: var(--ok); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { font: inherit; font-weight: 600; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 10px var(--s-5); min-height: 44px; cursor: pointer; transition: background 200ms, color 200ms, border-color 200ms, opacity 200ms, transform 300ms var(--ease); }
.chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.chip.is-match { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chip.is-dim { opacity: 0.35; }
@media (min-width: 768px) { .cover { grid-template-columns: 0.85fr 1.15fr; gap: var(--s-8); } .chips { padding-top: var(--s-2); } }

/* WhatsApp flotante destacado: verde de marca, sólido, con pulso */
:root { --wa-solid: #15803d; --wa-solid-hover: #116a32; }
.btn--wa { background: var(--wa-solid); color: #fff; }
.btn--wa:hover { background: var(--wa-solid-hover); }
.btn--wa .icon { color: #fff; width: 26px; height: 26px; }
.dock .btn--wa { box-shadow: 0 8px 22px rgb(21 128 61 / 0.38); }
.dock .btn--wa::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--wa-solid); opacity: 0; animation: wa-pulse 2.6s var(--ease) infinite; pointer-events: none; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: 0.55; } 70%, 100% { transform: scale(1.22, 1.5); opacity: 0; } }
@media (min-width: 768px) {
  .dock .btn--wa { min-height: 60px; padding: 0 var(--s-6) 0 var(--s-5); font-size: 1.05rem; box-shadow: 0 12px 30px rgb(21 128 61 / 0.4); }
}
@media (prefers-reduced-motion: reduce) { .dock .btn--wa::after { display: none; } }

/* Guardar contacto */
.contact__side .btn { margin-top: var(--s-2); }

/* Guardar contacto: botón animado (brillo que recorre, icono que salta, halo) */
.btn--save { position: relative; overflow: hidden; isolation: isolate; min-height: 60px; padding: 0 var(--s-6); font-size: 1.05rem; color: #fff; background: linear-gradient(110deg, var(--accent) 0%, #0868b8 50%, var(--accent) 100%); background-size: 220% 100%; box-shadow: 0 10px 26px rgb(2 88 164 / 0.35); animation: save-flow 4s linear infinite, save-halo 2.6s ease-out infinite; }
.btn--save:hover { filter: none; transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 32px rgb(2 88 164 / 0.45); }
.btn--save::before { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.55), transparent); transform: skewX(-20deg); animation: save-sheen 3.2s var(--ease) infinite; z-index: -1; }
.btn--save .icon { width: 26px; height: 26px; animation: save-pop 3.2s var(--ease) infinite; }
@keyframes save-flow { to { background-position: -220% 0; } }
@keyframes save-sheen { 0%, 55% { left: -40%; } 100% { left: 140%; } }
@keyframes save-pop { 0%, 55%, 100% { transform: none; } 65% { transform: translateY(-4px) scale(1.18) rotate(-8deg); } 75% { transform: translateY(0) scale(0.95); } 85% { transform: scale(1.08) rotate(6deg); } }
@keyframes save-halo { 0% { box-shadow: 0 10px 26px rgb(2 88 164 / 0.35), 0 0 0 0 rgb(2 88 164 / 0.45); } 70%, 100% { box-shadow: 0 10px 26px rgb(2 88 164 / 0.35), 0 0 0 16px rgb(2 88 164 / 0); } }
.save-hint { margin: var(--s-2) 0 0; }
@media (prefers-reduced-motion: reduce) { .btn--save, .btn--save::before, .btn--save .icon { animation: none; } .btn--save::before { display: none; } }
.contact__side a.btn--save { color: #fff; min-height: 60px; font-weight: 700; }

/* Guardar contacto en la barra superior: más compacto */
.nav .btn--save { min-height: 44px; padding: 0 var(--s-5); font-size: 1rem; box-shadow: 0 6px 16px rgb(2 88 164 / 0.35); }
.nav .btn--save .icon { width: 22px; height: 22px; }
.save-long { display: none; }
@media (min-width: 400px) { .save-long { display: inline; } }
@keyframes save-halo-sm { 0% { box-shadow: 0 6px 16px rgb(2 88 164 / 0.35), 0 0 0 0 rgb(2 88 164 / 0.45); } 70%, 100% { box-shadow: 0 6px 16px rgb(2 88 164 / 0.35), 0 0 0 12px rgb(2 88 164 / 0); } }
.nav .btn--save { animation: save-flow 4s linear infinite, save-halo-sm 2.6s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .nav .btn--save { animation: none; } }

/* Rendimiento: imágenes de los sliders diferidas */
.ba__layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Animación del botón Guardar: más liviana (sin animar el fondo ni "left") */
.btn--save { animation: save-halo 2.6s ease-out infinite; background: linear-gradient(110deg, var(--accent), #0868b8); }
.nav .btn--save { animation: save-halo-sm 2.6s ease-out infinite; }
.btn--save::before { left: 0; transform: translateX(-160%) skewX(-20deg); animation: save-sheen2 3.2s var(--ease) infinite; }
@keyframes save-sheen2 { 0%, 55% { transform: translateX(-160%) skewX(-20deg); } 100% { transform: translateX(520%) skewX(-20deg); } }
/* Se pausa cuando el botón no está en pantalla */
.btn--save.is-paused, .btn--save.is-paused::before, .btn--save.is-paused .icon { animation-play-state: paused; }

/* Auditoría 2026-10-18 */
/* Titular: 18 caracteres por línea, balanceado (evita la "la" huérfana) */
.hero h1 { max-width: 18ch; text-wrap: balance; }
/* Texto pequeño de la marca: mínimo legible */
.brand__txt small { font-size: 0.75rem; }
/* Elevación declarada una vez: tarjetas con borde fino y sin sombra; la sombra queda para lo que flota */
.tile, .proof__card, .cover__check, .photo, .ba, .map, .review, .logo-card { box-shadow: none; }
.btn--glass { box-shadow: 0 1px 2px rgb(16 24 40 / 0.06); }
/* Ritmo vertical más corto en móvil */
@media (max-width: 767px) { :root { --s-8: 72px; } .hero { padding-bottom: var(--s-7); } }

.brand__txt small { white-space: nowrap; }
@media (max-width: 399px) { .brand__txt small .save-long { display: none; } }
@media (min-width: 400px) and (max-width: 520px) { .brand__txt small .save-long { display: none; } }
