/* Home: "Lo que deja de pasar" y "Vamos a tu negocio". */

/* ---------- Dolores que se tachan al pasar por pantalla */
.pains { list-style: none; margin: 0; padding: 6px 36px; counter-reset: pain; }
.pain { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; padding: 26px 0; border-top: 1px solid var(--line); }
.pain:first-child { border-top: 0; }
.pain-old { font: 700 clamp(1.25rem, 2.1vw, 1.75rem)/1.22 var(--head); letter-spacing: -.02em; color: var(--ink); transition: color .8s; }
.pain-old span {
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 58% / 0% 3px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .9s cubic-bezier(.65,0,.35,1);
}
.pain-new { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; color: var(--ink); font-size: 1.05rem; line-height: 1.45;
  opacity: 0; transform: translateX(-14px); transition: opacity .6s .45s, transform .8s .45s cubic-bezier(.16,1,.3,1); }
.pain-txt { flex: 1 1 15em; }
.pain-chips { display: inline-flex; gap: 6px; }
.pain-chips img { width: auto; height: 22px; padding: 7px 11px; border-radius: 10px; background: #fff; border: 1px solid rgb(15 30 61 / .07); box-sizing: content-box; }
.pain.in .pain-old { color: var(--ink-2); }
.pain.in .pain-old span { background-size: 100% 3px; }
.pain.in .pain-new { opacity: 1; transform: none; }
.no-io .pain .pain-new { opacity: 1; transform: none; }

.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.promise { display: grid; gap: 4px; padding: 22px 22px 24px; border-radius: calc(var(--r) * 1.6); border: 1px solid var(--glass-line); background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 var(--glass-hi); }
.promise b { font: 700 1.3rem/1.15 var(--head); letter-spacing: -.02em; }
.promise span { color: var(--ink-2); font-size: .98rem; }

/* ---------- Visita */
.visit { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 22px; align-items: stretch; }
.visit-copy { display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.visit-copy h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.visit-copy p { color: var(--ink-2); font-size: 1.15rem; max-width: 26em; }
.visit-team span:last-child { max-width: 15em; }
.visit-team { display: flex; align-items: center; gap: 14px; font-size: .95rem; color: var(--ink-2); }
.faces { display: inline-flex; flex: none; }
.faces img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--surface); margin-left: -12px; background: var(--surface-2); transition: transform .4s cubic-bezier(.16,1,.3,1); }
.faces img:first-child { margin-left: 0; }
.faces:hover img { transform: translateX(calc(var(--k, 0) * 6px)); }
.faces img:nth-child(2) { --k: 1; } .faces img:nth-child(3) { --k: 2; }
.visit-copy .actions { margin-top: 6px; }

.visit-route { padding: 18px 18px 22px; display: grid; gap: 10px; }
.visit-map { display: block; width: 100%; height: auto; }
.visit-map .v-dot { fill: color-mix(in srgb, var(--ink) 10%, transparent); }
.visit-map .v-road { fill: none; stroke: color-mix(in srgb, var(--ink) 16%, transparent); stroke-width: 4; stroke-dasharray: 2 12; stroke-linecap: round; }
.visit-map .v-done { fill: none; stroke: #F8680C; stroke-width: 6; stroke-linecap: round; }
.visit-map .v-fill { fill: var(--ink); }
.visit-map .v-num { fill: var(--bg); font: 700 15px var(--head); }
.visit-map .v-door { fill: #F8680C; }
.visit-map .v-ring { fill: none; stroke: #F8680C; stroke-width: 2; }
.visit-map .v-gull { fill: var(--accent); stroke: none; }

.vsteps { list-style: none; margin: 0; padding: 0 6px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vstep { display: grid; gap: 4px; padding-top: 14px; border-top: 3px solid var(--line); position: relative; }
.vstep::before { content: ""; position: absolute; left: 0; top: -3px; height: 3px; width: 0; background: var(--accent); }
.vstep b { font: 700 1.08rem var(--head); }
.vsteps { counter-reset: vs; }
.vstep { counter-increment: vs; }
.vstep span { font-size: .95rem; color: var(--ink-2); }
.visit-route.play .vstep::before { animation: vfill .6s var(--t) cubic-bezier(.16,1,.3,1) forwards; }
.visit-route.play .vstep b { animation: vglow 1.2s var(--t) ease both; }
@keyframes vfill { to { width: 100%; } }
@keyframes vglow { 0% { color: var(--ink); } 30% { color: var(--accent-ink); } 100% { color: var(--ink); } }

@media (max-width: 1000px) {
  .pain { grid-template-columns: 1fr; gap: 10px; }
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visit { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .pains { padding: 4px 22px; }
  .promise { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--surface) 92%, transparent); }
  .vsteps { grid-template-columns: 1fr; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .pain-old, .pain-old span, .pain-new { transition: none; }
  .visit-route .vstep::before { width: 100%; animation: none; }
}

/* ---------- Portada v7: centrada, con el hilo en un panel oscuro */
.hero2 { display: flex; flex-direction: column; min-height: calc(100svh - 80px); padding: 0 max(14px, 1.2vw) max(14px, 1.2vw); }
.h2-top { text-align: center; display: grid; justify-items: center; padding: clamp(20px, min(4.6vw, 6vh), 76px) 20px clamp(24px, min(3.2vw, 4.5vh), 50px); position: relative; z-index: 2; }
.hero2 .btn-ghost { background: #fff; }
.kick { display: inline-flex; align-items: center; gap: .6em; font: 600 .92rem var(--body); color: #3A4055; padding: .5em 1em .5em .75em; border: 1px solid #DDE0E8; border-radius: 99px; background: #fff; margin-bottom: 26px; }
.kick i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero2 h1 { font-size: clamp(2.8rem, min(6.4vw, 10.5vh), 6.4rem); line-height: .98; letter-spacing: -.05em; max-width: 11.5em; text-wrap: balance; }
.hero2 h1 em { font-style: normal; color: var(--accent); }
.hero2 .lead { margin: 22px auto 0; max-width: 34em; text-align: center; }
.hero2 .actions { justify-content: center; margin-top: 32px; }

.h2-panel { position: relative; flex: 1; min-height: clamp(340px, min(32vw, 46vh), 470px); border-radius: 28px; overflow: hidden; color: #F2F3F8;
  background: radial-gradient(70% 90% at 50% 0%, #1B3366 0%, #0E1C3A 60%); display: flex; flex-direction: column; justify-content: flex-end; }
.h2-panel::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgb(255 255 255 / .07) 1px, transparent 1.2px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(#000, transparent 80%); mask-image: linear-gradient(#000, transparent 80%); }
.h2-line, .h2-sts { position: absolute; left: 0; right: 0; top: 13%; height: 44%; }
.h2-line svg { display: block; width: 100%; height: 100%; overflow: visible; }
.h2-line path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.h2-line .base { stroke: rgb(255 255 255 / .1); stroke-width: 2; }
.h2-line .draw, .h2-line .glow { stroke: var(--accent); stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.h2-line .draw { stroke-width: 3.5; }
.h2-line .glow { stroke-width: 16; opacity: .18; filter: blur(6px); }
.hst { position: absolute; left: var(--x); top: 0; bottom: 0; transform: translateX(-50%); display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-decoration: none; color: inherit; }
.hchip { white-space: nowrap; font-size: .9rem; padding: .55em .95em; border-radius: 99px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); color: #DADCE7; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .6s cubic-bezier(.16,1,.3,1), border-color .3s; }
.hchip b { color: #FF9A4D; margin-right: .5em; }
.hlogo { margin-bottom: -12%; opacity: .25; transform: translateY(6px); transition: opacity .6s, transform .7s cubic-bezier(.16,1,.3,1); }
.hlogo .plogo { display: block; height: clamp(30px, 3.2vw, 48px); width: auto; overflow: visible; }
.hst.on .hchip, .hst.on .hlogo { opacity: 1; transform: none; }
.hst:hover .hchip { border-color: var(--accent); }
.hst:hover .hlogo { transform: translateY(-3px); }
.h2-foot { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px; padding: 20px 28px; border-top: 1px solid rgb(255 255 255 / .08); }
.h2-foot > a { color: #C3C7D8; font-size: .92rem; white-space: nowrap; text-decoration: none; }
.h2-foot > a:hover { color: #fff; text-decoration: underline; }
.h2-mq { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.h2-mq ul { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0 12px 0 0; flex: none; animation: h2mq 46s linear infinite; }
.h2-mq li { flex: none; width: 88px; height: 54px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 4px; }
.h2-mq img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.h2-mq:hover ul { animation-play-state: paused; }
@keyframes h2mq { to { transform: translateX(-100%); } }

@media (max-width: 760px) {
  .hero2 { min-height: 0; padding: 0 10px 10px; }
  .h2-top { padding: 22px 8px 28px; }
  .kick { font-size: .82rem; margin-bottom: 18px; }
  .hero2 .actions .btn { flex: 1 1 0; padding-inline: 12px; }
  .hero2 h1 { font-size: 2.75rem; }
  .hero2 .lead { font-size: 1.05rem; margin-top: 16px; }
  .hero2 .actions { width: 100%; margin-top: 24px; }
  .h2-panel { min-height: 400px; border-radius: 22px; }
  .h2-line { left: -55%; right: -55%; top: 5%; height: 20%; }
  .h2-sts { top: 27%; bottom: 100px; height: auto; display: grid; align-content: center; justify-items: center; gap: 14px; }
  .hst { position: static; transform: none; flex-direction: row; gap: 12px; }
  .hlogo { margin: 0; }
  .hlogo .plogo { height: 26px; }
  .hchip { font-size: .85rem; }
  .h2-foot { grid-template-columns: 1fr; gap: 10px; text-align: center; padding: 16px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .h2-line .draw, .h2-line .glow { stroke-dashoffset: 0; }
  .hchip, .hlogo { opacity: 1; transform: none; transition: none; }
  .h2-mq ul { animation: none; }
}
