/* KD Web · estilos públicos (mobile first) */

:root {
  --pet: #27494B;          /* verde petróleo del logo */
  --pet-2: #1E3B3D;
  --pet-deep: #142729;
  --ter: #BD6C3F;          /* terracota de "Web" */
  --ter-2: #DE9064;
  --crema: #F2EEE5;
  --arena: #E7E0D1;
  --papel: #FBF8F2;
  --tinta: #173032;
  --muted: #587070;
  --muted-dark: #A7BDBA;
  --line: rgba(39, 73, 75, .14);
  --wa: #25D366;
  --font-display: "Bricolage Grotesque", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  color: var(--tinta); background: var(--crema); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ter); outline-offset: 3px; border-radius: 6px; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--pet); color: var(--crema); padding: .6rem 1rem; border-radius: 10px; }
.skip:focus { left: 8px; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--pet); --fg: var(--crema);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.3rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg); font: 600 1rem/1 var(--font); text-decoration: none;
  box-shadow: 0 10px 24px -12px var(--bg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
  will-change: transform; position: relative;
}
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover { box-shadow: 0 16px 30px -14px var(--bg); }
.btn:hover .ico { transform: rotate(-10deg) scale(1.12); }
.btn:active { transform: scale(.96) !important; }
.btn--sm { padding: .6rem 1rem; font-size: .95rem; }
.btn--lg { padding: 1.05rem 1.6rem; font-size: 1.05rem; }
.btn--ter { --bg: var(--ter); --fg: #fff; }
.btn--ter:hover { background: #a95d33; }
.btn--pet { --bg: var(--pet); }
.btn--pet:hover { background: var(--pet-2); }
.btn--crema { --bg: var(--crema); --fg: var(--pet); }
.btn--ghost { background: transparent; color: var(--crema); box-shadow: inset 0 0 0 1.5px rgba(242,238,229,.45); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--crema); background: rgba(242,238,229,.08); }

/* ---------- Menú ---------- */
.nav { position: fixed; inset: 12px 0 auto; z-index: 50; pointer-events: none; }
.nav__bar {
  pointer-events: auto; width: min(1180px, 100% - 1.5rem); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 60px; padding: 0 .6rem 0 1rem; border-radius: 999px;
  background: rgba(242, 238, 229, .86); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,.5); box-shadow: 0 10px 30px -18px rgba(20,39,41,.6);
  transition: height .3s var(--ease), box-shadow .3s;
}
.nav.is-scrolled .nav__bar { height: 54px; box-shadow: 0 14px 34px -18px rgba(20,39,41,.8); }
.nav__brand img { height: 44px; width: auto; transition: transform .4s var(--ease); }
.nav__brand:hover img { transform: rotate(-6deg) scale(1.05); }
.nav__links { display: none; }
.nav__toggle {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--pet); color: var(--crema);
  display: grid; place-items: center; cursor: pointer;
}
.nav__toggle .i-close { display: none; }
.nav.is-open .nav__toggle .i-open { display: none; }
.nav.is-open .nav__toggle .i-close { display: block; }
.nav.is-open .nav__links {
  display: flex; flex-direction: column; gap: .25rem; position: fixed; inset: 84px .75rem auto;
  background: var(--crema); padding: 1rem; border-radius: 24px; box-shadow: 0 30px 60px -20px rgba(20,39,41,.7);
  animation: drop .35s var(--ease);
}
.nav__links a:not(.btn) { text-decoration: none; font-weight: 600; padding: .8rem 1rem; border-radius: 14px; color: var(--pet); }
.nav__links a:not(.btn):hover, .nav__links a.is-active { background: rgba(39,73,75,.08); }
.nav.is-open .nav__cta { margin-top: .5rem; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }

@media (min-width: 900px) {
  .nav__toggle { display: none; }
  .nav__links { display: flex; align-items: center; gap: .15rem; }
  .nav__links a:not(.btn) { padding: .5rem .8rem; font-size: .96rem; position: relative; }
  .nav__links a:not(.btn)::after {
    content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px; border-radius: 2px;
    background: var(--ter); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  }
  .nav__links a:not(.btn):hover { background: none; }
  .nav__links a.is-active::after, .nav__links a:not(.btn):hover::after { transform: scaleX(1); }
  .nav__links a.is-active { background: none; }
  .nav__cta { margin-left: .5rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 50% at 78% 40%, rgba(189,108,63,.28), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(62,120,118,.45), transparent 70%),
    var(--pet-deep);
  color: var(--crema); display: flex; align-items: flex-end;
}
.hero__3d { position: absolute; inset: 0; z-index: -1; }
.hero__3d canvas { display: block; width: 100% !important; height: 100% !important; }
.hero__cat {
  position: absolute; z-index: -1; height: min(36svh, 330px); width: auto; left: 50%; top: 92px;
  translate: -50% 0; animation: float 5s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35));
  transition: opacity .8s var(--ease);
}
.hero.is-3d .hero__cat { opacity: 0; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-16px) rotate(3deg); } }
.hero__inner { padding: calc(min(36svh, 330px) + 120px) 0 5.5rem; }
.hero__title {
  font-size: clamp(2.5rem, 9.5vw, 5.9rem); font-weight: 800; letter-spacing: -.035em; line-height: .96;
  max-width: 12ch; font-variation-settings: "opsz" 96; text-wrap: balance;
}
.hero__sub { margin-top: 1.4rem; max-width: 46ch; font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: #D5E2DF; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__actions .btn { flex: 1 1 auto; }
.hero__title, .hero__sub, .hero__actions { animation: rise .9s var(--ease) both; }
.hero__sub { animation-delay: .12s; }
.hero__actions { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
.hero__scroll {
  position: absolute; bottom: 22px; left: 50%; translate: -50% 0; width: 26px; height: 42px;
  border-radius: 20px; box-shadow: inset 0 0 0 2px rgba(242,238,229,.5); display: none;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--crema); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translateY(12px); opacity: 0; } 61% { transform: none; opacity: 0; } 100% { opacity: 1; } }

@media (min-width: 900px) {
  .hero { align-items: center; }
  .hero__inner { padding: 7rem 0 5rem; }
  .hero__cat { left: auto; right: 12%; top: 50%; height: min(62vh, 560px); translate: 0 -50%; }
  .hero__actions .btn { flex: 0 0 auto; }
  .hero__scroll { display: block; }
}

/* ---------- Secciones ---------- */
.sec { padding: clamp(4.5rem, 10vw, 8.5rem) 0; position: relative; overflow-x: clip; } /* las tarjetas que entran desde el costado no ensanchan la página en el celular */
.sec--crema { background: var(--crema); }
.sec--arena { background: var(--arena); }
.sec--pet { background: var(--pet); color: var(--crema); }
.sec--deep { background: var(--pet-deep); color: var(--crema); }
.sec__head { max-width: 40rem; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.sec__head h2, .contact__form h2 {
  font-size: clamp(2.1rem, 6vw, 3.8rem); font-weight: 800; letter-spacing: -.03em; text-wrap: balance;
}
.sec__head p { margin-top: 1rem; font-size: 1.12rem; color: var(--muted); max-width: 52ch; }
.sec--pet .sec__head p, .sec--deep p { color: var(--muted-dark); }

/* Rasguño del gato: el detalle de la marca */
.scratch { display: inline-block; position: relative; width: .8em; height: .55em; margin-left: .12em; top: -.55em; overflow: visible; vertical-align: baseline; }
.scratch path { fill: none; stroke: var(--ter); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.reveal.is-in .scratch path, .scratch.is-in path { animation: claw .5s var(--ease) forwards; }
.reveal.is-in .scratch path:nth-child(2) { animation-delay: .09s; }
.reveal.is-in .scratch path:nth-child(3) { animation-delay: .18s; }
@keyframes claw { to { stroke-dashoffset: 0; } }

/* ---------- Servicios ---------- */
.services { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.card {
  background: var(--papel); border: 1px solid var(--line); border-radius: 26px; padding: 1.6rem;
  position: relative; transform-style: preserve-3d; transition: box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { box-shadow: 0 30px 50px -30px rgba(20,39,41,.45); border-color: rgba(189,108,63,.4); }
.service__icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  background: var(--pet); color: var(--crema); margin-bottom: 1.2rem; transform: translateZ(30px);
  transition: background-color .3s, transform .4s var(--ease);
}
.service__icon .ico { width: 26px; height: 26px; }
.service:hover .service__icon { background: var(--ter); transform: translateZ(30px) rotate(-8deg); }
.service h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: .5rem; transform: translateZ(20px); }
.service p { color: var(--muted); }
.service__claw .scratch { top: 0; margin: 0; }
.service__claw { position: absolute; top: 1.3rem; right: 2.6rem; font-size: 2rem; opacity: 0; transition: opacity .2s; }
.service__claw .scratch path { stroke-width: 4; }
.service:hover .service__claw { opacity: 1; }
.service:hover .service__claw .scratch path { animation: claw .35s var(--ease) forwards; }

@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .services { grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; }
  .service:first-child { grid-column: span 2; background: var(--pet); color: var(--crema); border-color: transparent; }
  .service:first-child p { color: var(--muted-dark); }
  .service:first-child .service__icon { background: var(--ter); }
  .service:first-child h3 { font-size: 1.9rem; }
  .service:nth-child(6) { grid-column: span 2; }
  .service:nth-child(7) {
    grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: 1.4rem; align-items: center;
    background: var(--ter); color: #fff; border-color: transparent;
  }
  .service:nth-child(7) .service__icon { grid-row: span 2; margin: 0; background: rgba(255,255,255,.18); }
  .service:nth-child(7) p { color: #FBE6D8; }
  .service:nth-child(7) .scratch path { stroke: #fff; }
}

/* ---------- Proyectos ---------- */
.projects { display: grid; gap: 2rem; }
.project { display: grid; gap: 1.2rem; }
.project__img {
  margin: 0; border-radius: 24px; overflow: hidden; background: var(--pet-2);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); transform-style: preserve-3d; aspect-ratio: 16 / 10;
}
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project:hover .project__img img { transform: scale(1.05); }
.project__cat { color: var(--ter-2); font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.project h3 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 700; margin-bottom: .6rem; }
.project__body > p:not(.project__cat) { color: var(--muted-dark); margin-bottom: 1.3rem; max-width: 55ch; }
.project--demo .project__img { outline: 2px dashed rgba(242,238,229,.35); outline-offset: 6px; }

@media (min-width: 860px) {
  .projects { gap: 4.5rem; }
  .project { grid-template-columns: 1.25fr 1fr; align-items: center; gap: 3rem; }
  .project:nth-child(even) { grid-template-columns: 1fr 1.25fr; }
  .project:nth-child(even) .project__img { order: 2; }
}

/* ---------- Planes ---------- */
.plans { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: stretch; }
.plan {
  background: var(--papel); border-radius: 28px; padding: 1.8rem 1.6rem; display: flex; flex-direction: column;
  border: 1px solid var(--line); position: relative; transform-style: preserve-3d;
}
.plan h3 { font-size: 1.6rem; font-weight: 800; }
.plan__summary { color: var(--muted); margin-top: .35rem; min-height: 3.2em; }
.plan__price { margin: 1.2rem 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem; }
.plan__price strong { font-family: var(--font-display); font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.plan__price small { color: var(--muted); font-size: .95rem; }
.plan__list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .6rem; flex: 1; align-content: start; }
.plan__list li { display: flex; gap: .55rem; align-items: flex-start; font-size: .98rem; }
.plan__list .ico { color: var(--ter); margin-top: .15em; }
.plan .btn { width: 100%; white-space: nowrap; padding-inline: 1rem; }
.plan__price small:first-child { flex-basis: 100%; }
.plan--featured { background: var(--pet); color: var(--crema); border-color: transparent; box-shadow: 0 40px 70px -35px rgba(20,39,41,.9); }
.plan--featured .plan__summary, .plan--featured .plan__price small { color: var(--muted-dark); }
.plan--featured .plan__list .ico { color: var(--ter-2); }
.plan__badge {
  position: absolute; top: -13px; left: 1.6rem; background: var(--ter); color: #fff; font-weight: 700; font-size: .85rem;
  padding: .35rem .8rem; border-radius: 999px; transform: rotate(-3deg);
}
.plans__note { margin-top: 1.6rem; color: var(--muted); font-size: .95rem; }
@media (min-width: 680px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) {
  .plans { grid-template-columns: repeat(4, 1fr); }
  .plan--featured { transform: translateY(-14px); }
}

/* ---------- Mantenimiento ---------- */
.maint { overflow: hidden; }
.maint__pulse { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: 120px; translate: 0 -50%; opacity: .16; pointer-events: none; }
.maint__pulse path { fill: none; stroke: var(--ter-2); stroke-width: 3; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: pulse-line 4.5s linear infinite; }
@keyframes pulse-line { to { stroke-dashoffset: -1400; } }
.maint__grid { display: grid; gap: 2.5rem; position: relative; }
.maint__live { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; color: #9FE3B5; margin-bottom: 1.1rem; font-size: .95rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #43D17A; box-shadow: 0 0 0 0 rgba(67,209,122,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 12px rgba(67,209,122,0); } 100% { box-shadow: 0 0 0 0 rgba(67,209,122,0); } }
.maint__text h2 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; max-width: 16ch; }
.maint__text p:not(.maint__live) { margin: 1.1rem 0 1.8rem; max-width: 46ch; }
.maint__items { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.maint__items li {
  display: flex; gap: 1rem; padding: 1.2rem; border-radius: 22px;
  background: rgba(242,238,229,.05); border: 1px solid rgba(242,238,229,.1);
  transition: background-color .3s, transform .3s var(--ease);
}
.maint__items li:hover { background: rgba(242,238,229,.09); transform: translateX(6px); }
.maint__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(189,108,63,.2); color: var(--ter-2); flex: none; }
.maint__items h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .25rem; }
.maint__items p { font-size: .98rem; }
@media (min-width: 900px) {
  .maint__grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; }
  .maint__items { grid-template-columns: 1fr 1fr; }
  .maint__items li { flex-direction: column; }
}

/* ---------- Por qué ---------- */
.why { display: grid; gap: 1.8rem 2rem; grid-template-columns: 1fr; }
.why__item { padding-top: 1.2rem; border-top: 2px solid var(--pet); }
.why__icon { color: var(--ter); display: inline-block; margin-bottom: .8rem; transition: transform .4s var(--ease); }
.why__icon .ico { width: 34px; height: 34px; }
.why__item:hover .why__icon { transform: translateY(-4px) rotate(-8deg); }
.why__item h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: .4rem; }
.why__item p { color: var(--muted); }
.stats {
  margin-top: clamp(3rem, 7vw, 5rem); display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  background: var(--pet); color: var(--crema); border-radius: 30px; padding: clamp(1.8rem, 4vw, 3rem);
}
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 9vw, 5rem); line-height: 1; letter-spacing: -.04em; color: var(--ter-2); }
.stat__label { color: var(--muted-dark); margin-top: .4rem; max-width: 22ch; }
@media (min-width: 700px) { .why { grid-template-columns: repeat(2, 1fr); } .stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .why { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 2.5rem; }
.contact__form > p { color: var(--muted); margin: .9rem 0 1.8rem; max-width: 46ch; }
.form { display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; font-weight: 600; font-size: .95rem; color: var(--pet); }
.field em { font-weight: 400; color: var(--muted); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--font); color: var(--tinta);
  background: var(--papel); border: 1.5px solid rgba(39,73,75,.2); border-radius: 16px; padding: .9rem 1rem;
  transition: border-color .2s, box-shadow .2s; min-height: 50px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pet); box-shadow: 0 0 0 4px rgba(39,73,75,.12); }
.field .is-invalid { border-color: #B6412E; }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .6; pointer-events: none; }
.form__status { min-height: 1.5em; font-weight: 600; color: var(--pet); }
.form__status.is-error { color: #B6412E; }
.form__turnstile:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__side { display: grid; gap: .9rem; align-content: start; }
.quick {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: 22px; text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.quick .ico { width: 34px; height: 34px; }
.quick span { display: grid; }
.quick strong { font-family: var(--font-display); font-size: 1.25rem; }
.quick:hover { transform: translateY(-3px); box-shadow: 0 20px 34px -20px rgba(20,39,41,.6); }
.quick--wa { background: var(--pet); color: var(--crema); }
.quick--wa .ico { color: var(--wa); }
.quick--ig { background: var(--papel); color: var(--pet); border: 1px solid var(--line); }
.quick--ig .ico { color: var(--ter); }
.map { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--papel); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact__addr { display: flex; gap: .5rem; color: var(--muted); font-size: .95rem; }
.contact__addr .ico { color: var(--ter); margin-top: .15em; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .contact { grid-template-columns: 1.3fr 1fr; gap: 4rem; } }

/* ---------- Footer ---------- */
.footer { background: var(--crema); padding: 3.5rem 0 6.5rem; border-top: 1px solid var(--line); }
.footer__grid { display: grid; gap: 1.5rem; align-items: center; }
.footer__logo { width: 110px; height: auto; }
.footer__text { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--pet); max-width: 28ch; }
.footer__addr { display: flex; gap: .4rem; color: var(--muted); margin-top: .5rem; font-size: .95rem; }
.footer__social { display: flex; gap: .6rem; }
.footer__social a {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--pet); color: var(--crema);
  transition: transform .3s var(--ease), background-color .2s;
}
.footer__social a:hover { transform: translateY(-3px) rotate(-8deg); background: var(--ter); }
.footer__copy { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 2.5rem; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: auto 1fr auto; gap: 2.5rem; } .footer { padding-bottom: 3rem; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 14px 30px -10px rgba(37,211,102,.7);
  transition: transform .3s var(--ease);
}
.wa-float .ico { width: 32px; height: 32px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.4s ease-out infinite; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
@media (max-width: 899px) {
  .wa-float { opacity: 0; transform: scale(.6); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
  .past-hero .wa-float { opacity: 1; transform: none; pointer-events: auto; }
}
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Animaciones al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
.js .reveal[data-anim="left"] { transform: translateX(40px); }
.js .reveal[data-anim="scale"] { transform: scale(.92); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Retraso escalonado de las tarjetas: posición × paso de cada grupo (antes iba en style="" y la CSP ya no lo permite).
   Hasta 12 elementos por grupo; del 13 en adelante entran sin retraso. */
.services { --step: 60ms; }
.projects, .maint__items { --step: 90ms; }
.plans { --step: 80ms; }
.why { --step: 70ms; }
:is(.services, .projects, .plans, .maint__items, .why) > .reveal { --d: calc(var(--i) * var(--step)); }
:is(.services, .projects, .plans, .maint__items, .why) > .reveal:nth-child(1) { --i: 0; }
:is(.services, .projects, .plans, .maint__items, .why) > .reveal:nth-child(2) { --i: 1; }
:is(.services, .projects, .plans, .maint__items, .why) > .reveal:nth-child(3) { --i: 2; }
:is(.services, .projects, .plans, .maint__items, .why) > .reveal:nth-child(4) { --i: 3; }
:is(.services, .projects, .plans, .maint__items, .why) > .reveal:nth-child(5) { --i: 4; }
:is(.services, .projects, .plans, .maint__items, .why) > .reveal:nth-child(6) { --i: 5; }
:is(.services, .projects, .plans, .maint__items, .why) > .reveal:nth-child(7) { --i: 6; }
:is(.services, .projects, .plans, .maint__items, .why) > .reveal:nth-child(8) { --i: 7; }
:is(.services, .projects, .plans, .maint__items, .why) > .reveal:nth-child(9) { --i: 8; }
:is(.services, .projects, .plans, .maint__items, .why) > .reveal:nth-child(10) { --i: 9; }
:is(.services, .projects, .plans, .maint__items, .why) > .reveal:nth-child(11) { --i: 10; }
:is(.services, .projects, .plans, .maint__items, .why) > .reveal:nth-child(12) { --i: 11; }
.js .plan--featured.reveal.is-in { transform: none; }
@media (min-width: 1120px) { .js .plan--featured.reveal.is-in { transform: translateY(-14px); } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .scratch path { stroke-dashoffset: 0; }
  .hero__cat { animation: none; }
  .wa-float::before, .maint__pulse { display: none; }
}
