/* datos.cl: portada rediseñada. Referencia: fuentes/propuesta-datos-cl.webp. Foto: fuentes/datos-hero-profesional-1600x1200.jpg. */
:root {
  --rojo: #CC0640;
  --rojo-logo: #CB0A3D;   /* el rojo exacto del logotipo (simbolo.png y palabra.png: rgb 203, 10, 61) */
  --rojo-osc: #A8052F;
  --rosa: #FBE9EE;
  --verde: #00964A;
  --verde-osc: #007F3E;
  --tinta: #111318;
  --texto: #3E434B;
  --gris: #565D68;
  --borde: #E6E2DD;
  --fondo: #FAF9F6;
  --fondo-suave: #F3F1ED;
  --wrap: 1248px;
  --gutter: clamp(32px, 3.4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--fondo); color: var(--tinta);
  font: 400 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico .relleno { fill: currentColor; stroke: none; }
.ico .blanco { stroke: #fff; stroke-width: 2.2; }
.sr-only { position: absolute; 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: 12px; top: -60px; z-index: 50; background: var(--tinta); color: #fff; padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--rojo); outline-offset: 3px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.aviso-previa { background: #FFF4CC; color: #4A3B00; text-align: center; font-size: 13px; line-height: 1.4; padding: 7px var(--gutter); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 0 22px;
  border-radius: 8px; font-weight: 600; text-decoration: none; transition: background-color .15s, color .15s; }
.btn-contorno { border: 1.5px solid var(--rojo); color: var(--rojo); background: transparent; }
.btn-contorno:hover { background: var(--rojo); color: #fff; }
.btn-wa { background: var(--verde); color: #fff; }
.btn-wa:hover { background: var(--verde-osc); }
.btn-wa .ico { stroke-width: 1.7; }

/* Encabezado */
.header { background: #fff; border-bottom: 1px solid var(--borde); position: relative; z-index: 20; }
.header-in { display: flex; align-items: center; gap: 56px; min-height: 76px; }
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.marca-simbolo { width: 44px; height: 44px; }
.marca-palabra { width: 112px; height: auto; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 40px; flex: 1; }
.nav a:not(.btn) { color: var(--tinta); text-decoration: none; font-size: 16px; font-weight: 500; padding: 12px 0; }
.nav a:not(.btn):hover { color: var(--rojo); }
.nav .btn { margin-left: auto; min-height: 48px; padding: 0 22px; font-size: 16px; }
.menu-btn { display: none; }

/* Hero */
.hero { padding: 40px 0 44px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px); gap: 48px; align-items: center; }
.antetitulo { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--rojo); font-weight: 700; }
h1 { margin-top: 18px; font-size: clamp(38px, 4.5vw, 60px); font-weight: 800; color: var(--tinta); letter-spacing: -.04em; line-height: 1.05; text-wrap: balance; }
.h1-dato { color: var(--rojo-logo); }
.h1-sin-corte { white-space: nowrap; }
.bajada { margin-top: 20px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--texto); max-width: 31em; }
.btn-grande { margin-top: 26px; min-height: 64px; padding: 0 34px; font-size: 21px; font-weight: 700; border-radius: 8px; letter-spacing: -.01em; }
.btn-grande .ico { width: 34px; height: 34px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; color: var(--texto); font-size: 16px; max-width: 34em; }
.checks li { display: flex; align-items: center; gap: 10px; }
.checks .ico { width: 24px; height: 24px; color: var(--rojo); }

.hero-foto { position: relative; border-radius: 20px; overflow: hidden; background: var(--fondo-suave); }
.hero-foto picture, .hero-foto img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* Ejemplo de conversación (ilustración estática sobre la foto) */
.chat-mini { position: absolute; left: 26px; bottom: 56px; width: min(300px, 62%); background: #fff; border-radius: 14px; padding: 14px 14px 14px;
  box-shadow: 0 8px 24px rgba(17, 19, 24, .16); display: flex; flex-direction: column; gap: 12px; }
.chat-mini p { display: flex; align-items: center; gap: 12px; }
.cm-yo span { font-size: 16px; line-height: 1.3; color: var(--tinta); }
.cm-wa { width: 34px; height: 34px; color: #1FAF5A; }
.cm-dc img { width: 40px; height: 40px; border-radius: 9px; flex: none; }
.cm-dc span { flex: 1; font-size: 15px; line-height: 1.3; color: var(--tinta); background: #F1EFEB; border-radius: 9px; padding: 11px 12px; }

/* Categorías */
.servicios { padding: 4px 0 40px; }
.servicios h2 { font-size: clamp(26px, 2.5vw, 34px); font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
.categorias { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 22px; }
.categoria { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 148px; padding: 14px 8px;
  border: 1px solid var(--borde); border-radius: 8px; background: #fff; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.categoria:hover, .categoria:focus-visible { background: #FDECF0; border-color: var(--rojo); }
.categoria span { font-size: 18px; font-weight: 600; color: var(--tinta); text-align: center; }
.cat-ico { width: 48px; height: 48px; stroke-width: 1.5; color: var(--rojo); }

/* Pasos */
.pasos-sec { background: var(--fondo-suave); padding: 34px 0 44px; }
.pasos-sec h2 { margin-top: 8px; font-size: clamp(26px, 2.5vw, 34px); font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.pasos li { display: flex; align-items: flex-start; gap: 18px; padding: 4px 28px 4px 0; }
.pasos li + li { padding-left: 32px; border-left: 1px solid #DDD8D2; }
.num { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--rojo); color: var(--rojo); display: grid; place-items: center;
  font-weight: 700; font-size: 20px; }
.pasos h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.pasos p { color: var(--gris); font-size: 16px; margin-top: 4px; }

/* Cierre para clientes */
.cierre { margin-top: 40px; padding-top: 34px; border-top: 1px solid #DDD8D2; text-align: center; }
.cierre h2 { margin: 0 0 20px; font-size: clamp(26px, 2.5vw, 34px); }
.cierre .btn-grande { margin-top: 0; }

/* Franja de prestadores (discreta) */
.franja { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin: 36px auto 0; display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 6px 18px; padding-top: 22px; border-top: 1px solid #DDD8D2; text-align: center; }
.franja p { color: var(--gris); font-size: 16px; line-height: 1.4; }
.franja strong { font-weight: 700; color: var(--tinta); margin-right: 6px; }
.franja-enlace { color: var(--rojo); font-weight: 600; font-size: 16px; text-decoration: underline; text-underline-offset: 3px; padding: 12px 4px; }
.franja-enlace:hover { color: var(--rojo-osc); }

/* Pie */
.pie { background: var(--fondo); border-top: 1px solid var(--borde); padding: 18px 0; }
.pie-in { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.pie .marca-simbolo { width: 36px; height: 36px; }
.pie .marca-palabra { width: 92px; }
.lema { color: var(--gris); font-size: 15px; padding-left: 22px; border-left: 1px solid var(--borde); }
.contacto { margin-left: auto; color: var(--rojo); font-weight: 600; font-size: 15px; text-decoration: none; padding: 12px 4px; }
.contacto:hover { text-decoration: underline; }

[data-pendiente] { cursor: not-allowed; }

/* Escritorio estrecho y tableta */
@media (max-width: 1100px) {
  .header-in { gap: 32px; }
  .nav { gap: 28px; }
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .btn-grande { padding: 0 24px; font-size: 20px; }
}
@media (max-width: 1000px) {
  .categorias { grid-template-columns: repeat(3, 1fr); }
  .pasos { grid-template-columns: 1fr; gap: 20px; max-width: 560px; }
  .pasos li, .pasos li + li { padding: 0; border-left: 0; }
}

/* Móvil y tableta pequeña */
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .header-in { justify-content: space-between; min-height: 64px; gap: 12px; }
  .menu-btn { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--borde); border-radius: 8px; background: #fff;
    color: var(--tinta); font-size: 24px; cursor: pointer; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--borde);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; box-shadow: 0 12px 24px rgba(0, 0, 0, .08); }
  .nav.abierto { display: flex; }
  .nav a:not(.btn) { padding: 13px 4px; min-height: 48px; border-bottom: 1px solid #F2EFED; }
  .nav .btn { margin: 12px 0 0; }
  .hero { padding: 28px 0 32px; }
  .hero-in { grid-template-columns: 1fr; gap: 28px; }
  .antetitulo { font-size: 12px; }
  h1 { font-size: clamp(34px, 9.4vw, 44px); margin-top: 14px; }
  .bajada { font-size: 17px; margin-top: 16px; }
  .btn-grande { display: flex; width: 100%; min-height: 60px; padding: 0 16px; font-size: clamp(17px, 5vw, 21px); gap: 10px; }
  .btn-grande .ico { width: 30px; height: 30px; }
  .checks { flex-direction: column; gap: 10px; margin-top: 18px; font-size: 16px; }
  .chat-mini { left: 12px; bottom: 14px; width: min(260px, 72%); padding: 10px; gap: 8px; border-radius: 12px; }
  .cm-yo span { font-size: 14px; }
  .cm-wa { width: 28px; height: 28px; }
  .cm-dc img { width: 32px; height: 32px; }
  .cm-dc span { font-size: 13.5px; padding: 8px 10px; }
  .servicios { padding-bottom: 32px; }
  .franja { flex-direction: column; gap: 2px; margin-top: 28px; }
  .franja strong { display: block; margin: 0 0 2px; }
  .cierre { margin-top: 32px; padding-top: 28px; }
  .lema { padding-left: 0; border-left: 0; flex-basis: 100%; order: 3; }
  .contacto { margin-left: auto; }
}
@media (max-width: 600px) {
  .categorias { grid-template-columns: repeat(2, 1fr); }
  .categoria { min-height: 120px; }
  .categoria span { font-size: 16.5px; }
}
