@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/fonts/nunito-latin.woff2") format("woff2");
}

:root {
  /* Color */
  --green: #0E7C66;
  --green-dark: #0A5E4D;
  --green-soft: #E4F0EC;
  --green-tint: #F0F6F4;
  --coral: #E8735A;
  --bg: #F5F7F6;
  --white: #FFFFFF;
  --ink: #13201E;
  --ink-2: #4A5956;
  --line: #E1E8E6;
  --hairline: rgba(19, 32, 30, 0.08);

  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  /* Espaciado: escala de 4 px */
  --s1: 0.25rem;  /* 4 */
  --s2: 0.5rem;   /* 8 */
  --s3: 0.75rem;  /* 12 */
  --s4: 1rem;     /* 16 */
  --s5: 1.5rem;   /* 24 */
  --s6: 2rem;     /* 32 */
  --s7: 3rem;     /* 48 */
  --s8: 4rem;     /* 64 */
  --s9: 6rem;     /* 96 */
  --s10: 8rem;    /* 128 */

  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1120px;
  --gutter: 1.25rem;
  --header-h: 60px;

  /* Movimiento: curvas sin rebote (amortiguamiento crítico) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
  --press: 120ms;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--s3)); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--green-soft); color: var(--green-dark); }

[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.dot { color: var(--coral); }
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0; }
.mono-inline { font-family: var(--mono); font-size: 0.88em; white-space: nowrap; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: var(--s3); top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: var(--s2) var(--s4); border-radius: 10px; text-decoration: none;
}
.skip:focus { top: var(--s3); }

/* ---------- Tipografía: tracking e interlineado según tamaño ---------- */
.hero h1 {
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  font-weight: 800; line-height: 1.04; letter-spacing: -0.035em;
  max-width: 14ch;
}
.section h2, .offer h2 {
  font-size: clamp(2rem, 6.4vw, 3.25rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.028em;
  max-width: 18ch;
}
h3 { font-size: 1.1875rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.012em; }
.lead { font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); margin-top: var(--s5); max-width: 32em; }

/* ---------- Header: material translúcido ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 transparent;
  transition: box-shadow 200ms ease, background-color 200ms ease;
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--hairline); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.logo {
  font-weight: 900; font-size: 1.625rem; letter-spacing: -0.035em;
  color: var(--green); text-decoration: none; line-height: 1;
}
.logo-sm { font-size: 1.375rem; }

.nav { display: flex; align-items: center; gap: var(--s6); }
.nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.9375rem;
  transition: color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav a:not(.btn):hover { color: var(--green); }
}

.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; border-radius: 10px;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle span {
    display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink);
    transition: transform 240ms var(--ease-out);
  }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  /* Menú como hoja que nace del header y vuelve por el mismo camino */
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s2) var(--gutter) var(--s5);
    background: var(--white);
    box-shadow: 0 1px 0 var(--hairline), 0 24px 40px -24px rgba(19, 32, 30, 0.28);
    transform-origin: top center;
    opacity: 0; transform: translateY(-8px) scale(0.98);
    visibility: hidden; pointer-events: none;
    transition: opacity 180ms ease, transform 220ms var(--ease-out), visibility 0s linear 220ms;
  }
  .nav.open {
    opacity: 1; transform: none; visibility: visible; pointer-events: auto;
    transition: opacity 200ms ease, transform 320ms var(--ease-sheet), visibility 0s;
  }
  .nav a:not(.btn) { padding: var(--s4) 0; border-bottom: 1px solid var(--hairline); font-size: 1.125rem; }
  .nav .btn { margin-top: var(--s5); }
}

/* ---------- Botones: respuesta al presionar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s3);
  min-height: 50px; padding: 0 var(--s5);
  font: inherit; font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.005em;
  border-radius: 999px; text-decoration: none; cursor: pointer;
  background: var(--green); color: #fff; border: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform var(--press) var(--ease-out), background-color 150ms ease, box-shadow 150ms ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; }
.btn-sm { min-height: 40px; padding: 0 var(--s4); font-size: 0.9375rem; }
.btn-lg { min-height: 56px; padding: 0 var(--s6); font-size: 1.125rem; }
.btn-wa { box-shadow: 0 1px 2px rgba(10, 94, 77, 0.25), 0 8px 20px -10px rgba(10, 94, 77, 0.55); }
/* Secundario: relleno tenue en vez de borde casi invisible */
.btn-ghost { background: var(--green-soft); color: var(--green-dark); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--green-dark); }
  .btn-ghost:hover { background: #D5E8E1; }
  .btn-light:hover { background: var(--green-tint); }
}

/* ---------- Inicio ---------- */
.hero { background: var(--bg); padding: var(--s7) 0 var(--s8); overflow: hidden; }
.hero-grid { display: grid; gap: var(--s7); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero-place { margin-top: var(--s4); font-size: 0.9375rem; font-weight: 700; color: var(--ink-2); letter-spacing: 0.005em; }

@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
  .hero-place { text-align: center; }
}

/* Ficha de entrega */
.handover {
  background: var(--white); border-radius: 24px; padding: var(--s5);
  box-shadow: 0 1px 2px rgba(19, 32, 30, 0.06), 0 24px 48px -24px rgba(19, 32, 30, 0.22);
  max-width: 460px; width: 100%; justify-self: center;
}
.handover-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3);
  font-weight: 800; font-size: 0.9375rem; color: var(--ink);
  padding-bottom: var(--s4); border-bottom: 1px solid var(--hairline);
}
.handover-head .mono { font-size: 0.8125rem; color: var(--green); }
.handover ul { list-style: none; margin: 0; padding: 0; }
.handover li {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "k ok" "v ok";
  column-gap: var(--s3); row-gap: 2px; padding: var(--s4) 0; border-bottom: 1px solid var(--hairline);
}
.handover li:last-child { border-bottom: 0; }
.handover .k { grid-area: k; font-weight: 800; font-size: 1rem; }
.handover .v { grid-area: v; color: var(--ink-2); font-size: 0.875rem; overflow-wrap: anywhere; }
.handover .ok {
  grid-area: ok; align-self: center;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: 0.8125rem; color: var(--green-dark);
  background: var(--green-soft); padding: 6px var(--s3) 6px var(--s2); border-radius: 999px; white-space: nowrap;
}
.handover .ok::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.8 7.2l2.1 2 4.3-4.4' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
@media (max-width: 420px) {
  .handover li { grid-template-areas: "k ok" "v v"; row-gap: var(--s1); }
  .handover .ok { align-self: start; }
}
.handover-foot { margin-top: var(--s3); padding-top: var(--s4); border-top: 1px solid var(--hairline); font-size: 0.875rem; color: var(--ink-2); }
.handover-foot strong { color: var(--ink); }

/* Carga de la ficha: un solo momento, filas en cascada y confirmaciones sin rebote */
.js .handover li { opacity: 0; transform: translateY(6px); }
.js .handover .ok { opacity: 0; transform: scale(0.92); }
.js .handover.play li { animation: rowIn 420ms var(--ease-out) forwards; }
.js .handover.play .ok { animation: okIn 320ms var(--ease-out) forwards; }
.js .handover.play li:nth-child(1) { animation-delay: 120ms; }
.js .handover.play li:nth-child(2) { animation-delay: 180ms; }
.js .handover.play li:nth-child(3) { animation-delay: 240ms; }
.js .handover.play li:nth-child(4) { animation-delay: 300ms; }
.js .handover.play li:nth-child(1) .ok { animation-delay: 480ms; }
.js .handover.play li:nth-child(2) .ok { animation-delay: 600ms; }
.js .handover.play li:nth-child(3) .ok { animation-delay: 720ms; }
.js .handover.play li:nth-child(4) .ok { animation-delay: 840ms; }
@keyframes rowIn { to { opacity: 1; transform: none; } }
@keyframes okIn { to { opacity: 1; transform: none; } }

@media (min-width: 900px) {
  .hero { padding: var(--s9) 0 var(--s10); }
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: var(--s8); }
  .hero h1 { max-width: 16ch; }
  .handover { justify-self: end; padding: var(--s6); }
}

/* ---------- Secciones ---------- */
.section { padding: var(--s8) 0 var(--s9); }
.section-alt { background: var(--bg); }
.section-head { margin-bottom: var(--s6); }

@media (min-width: 900px) {
  .section { padding: var(--s10) 0; }
  .section-head { margin-bottom: var(--s8); }
}

/* Servicios: lista abierta con líneas finas, sin cajas */
.cards { display: grid; gap: 0 var(--s7); }
.card { padding: var(--s5) 0 var(--s6); border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; column-gap: var(--s4); }
.card .icon {
  grid-row: span 2;
  width: 40px; height: 40px; padding: 9px;
  border-radius: var(--radius-sm); background: var(--green-soft);
  fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { align-self: center; min-height: 40px; display: flex; align-items: center; }
.card p { color: var(--ink-2); margin-top: var(--s2); max-width: 36em; }
@media (min-width: 760px) { .cards { grid-template-columns: 1fr 1fr; } }

/* Proyectos */
.project { display: grid; gap: var(--s6); align-items: center; }
.project + .project { margin-top: var(--s9); }
.project-meta { font-weight: 700; color: var(--green); font-size: 0.9375rem; }
.project h3 { font-size: clamp(1.75rem, 4.5vw, 2.25rem); line-height: 1.1; letter-spacing: -0.025em; margin: var(--s1) 0 var(--s3); }
.project-copy > p:not(.project-meta) { color: var(--ink-2); max-width: 34em; }
.tags { list-style: none; padding: 0; margin: var(--s5) 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.tags li {
  font-size: 0.8125rem; font-weight: 700; color: var(--ink-2);
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line); padding: var(--s1) var(--s3); border-radius: 999px;
}
.link-out {
  font-weight: 800; text-decoration: none; display: inline-flex; gap: var(--s2); align-items: center;
  min-height: 44px;
}
.link-out span { display: inline-block; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-out:hover { text-decoration: underline; }
  .link-out:hover span { transform: translateX(4px); }
}

@media (min-width: 900px) {
  .project { grid-template-columns: 1.35fr 1fr; gap: var(--s8); }
  .project-flip { grid-template-columns: 1fr 1.35fr; }
  .project-flip .devices { order: 2; }
  .project + .project { margin-top: var(--s10); }
}

/* Mockups */
.devices { position: relative; padding: 0 14% 9% 0; }
.project-flip .devices { padding: 0 0 9% 14%; }
.laptop-screen {
  background: var(--ink); padding: 2.2% 2.2% 0; border-radius: 14px 14px 0 0;
  box-shadow: 0 30px 50px -30px rgba(19, 32, 30, .45);
}
.laptop-screen img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; object-position: top; border-radius: 3px 3px 0 0; }
.laptop-base {
  position: relative; height: 0; padding-bottom: 3.2%;
  width: 112%; margin-left: -6%;
  background: linear-gradient(#E3E9E7, #C4CFCB); border-radius: 2px 2px 14px 14px;
}
.laptop-base::before {
  content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 40%;
  background: #B3C0BC; border-radius: 0 0 8px 8px;
}
.phone {
  position: absolute; right: 0; bottom: 0; width: 25%;
  background: var(--ink); padding: 2.2%; border-radius: 22% / 10.5%;
  box-shadow: 0 24px 40px -18px rgba(19, 32, 30, .5);
}
.phone img { aspect-ratio: 9 / 19.5; width: 100%; object-fit: cover; object-position: top; border-radius: 18% / 8.3%; }
.project-flip .phone { right: auto; left: 0; }

@media (max-width: 899px) {
  .devices, .project-flip .devices { padding: 0 12% 10% 0; }
  .project-flip .phone { left: auto; right: 0; }
  .laptop-base { width: 108%; margin-left: -4%; }
}

/* Oferta: vista previa gratis */
.offer { background: var(--green); color: #fff; padding: var(--s8) 0; overflow: hidden; }
.offer-grid { display: grid; gap: var(--s7); align-items: center; }
.offer h2 { max-width: 14ch; }
.offer-text { font-size: 1.1875rem; line-height: 1.5; color: #fff; margin: var(--s4) 0 var(--s6); max-width: 30em; }
.btn-light { background: #fff; color: var(--green-dark); box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 10px 24px -12px rgba(0, 0, 0, .4); }
.offer :focus-visible { outline-color: #fff; }
@media (max-width: 520px) { .offer .btn { width: 100%; } }

/* Boceto de página */
.sketch {
  position: relative; width: 100%; max-width: 440px; justify-self: center;
  background: #fff; border-radius: var(--radius); overflow: visible;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 30px 60px -28px rgba(0, 0, 0, .45);
}
.sketch-bar {
  display: flex; align-items: center; gap: 6px; padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; background: var(--bg);
}
.sketch-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.sketch-bar .mono { margin-left: var(--s2); font-size: 0.8125rem; color: var(--ink-2); }
.sketch-body { padding: var(--s5); display: grid; gap: var(--s5); }
.sketch-body span, .sketch-body b { display: block; border-radius: 6px; }
.sk-nav { display: flex; align-items: center; gap: var(--s2); }
.sk-nav b { width: 54px; height: 12px; background: var(--green); margin-right: auto; }
.sk-nav span { width: 28px; height: 7px; background: var(--line); }
.sk-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s4); align-items: center; }
.sk-line { height: 12px; background: var(--ink); margin-bottom: var(--s2); opacity: .85; }
.sk-thin { height: 7px; background: var(--ink-2); opacity: .35; margin-top: var(--s1); }
.sk-w90 { width: 90%; } .sk-w70 { width: 70%; } .sk-w80 { width: 80%; }
.sk-btn { width: 64px; height: 20px; border-radius: 999px !important; background: var(--green); margin-top: var(--s3); }
.sk-img {
  aspect-ratio: 4 / 3; border-radius: 10px !important;
  background: linear-gradient(160deg, var(--green-soft), var(--green-tint));
}
.sk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.sk-cards span { height: 46px; background: var(--bg); }
.sketch-tag {
  position: absolute; right: var(--s4); bottom: calc(var(--s4) * -1);
  background: var(--ink); color: #fff; font-weight: 800; font-size: 0.875rem;
  padding: var(--s2) var(--s4); border-radius: 999px;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .45);
}
@media (min-width: 900px) {
  .offer { padding: var(--s10) 0; }
  .offer-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s8); }
  .sketch { justify-self: end; }
}

/* Cómo trabajo: la secuencia sí aporta, los números se quedan */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0 var(--s7); }
.steps li { position: relative; padding: var(--s5) 0 var(--s6); border-top: 1px solid var(--line); }
.step-n {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 800; font-size: 1rem;
  font-variant-numeric: tabular-nums; margin-bottom: var(--s4);
}
.steps p { color: var(--ink-2); margin-top: var(--s2); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* Sobre mí */
.about { display: grid; gap: var(--s6); align-items: center; }
.about-photo {
  width: 160px; aspect-ratio: 4 / 5; height: auto; object-fit: cover;
  border-radius: 24px; background: var(--green-soft);
  box-shadow: 0 2px 4px rgba(19, 32, 30, .06), 0 20px 40px -24px rgba(19, 32, 30, .4);
}
.about-copy p { color: var(--ink-2); margin-top: var(--s4); max-width: 38em; }
.about-copy h2 { margin-bottom: var(--s1); }
@media (min-width: 900px) {
  .about { grid-template-columns: 240px 1fr; gap: var(--s8); }
  .about-photo { width: 240px; border-radius: 32px; }
}

/* Contacto */
.contact { text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact h2 { font-size: clamp(2.5rem, 9vw, 4rem); letter-spacing: -0.035em; line-height: 1.04; max-width: none; }
.contact .lead { margin: var(--s4) auto var(--s6); }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); }
@media (max-width: 520px) { .contact-actions { width: 100%; } .contact-actions .btn { width: 100%; } }
.contact-list {
  list-style: none; padding: 0; margin: var(--s7) 0 0; width: 100%; max-width: 960px;
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
}
.contact-list li {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
  padding: var(--s4) 0; border-bottom: 1px solid var(--line); text-align: left;
}
.contact-list .k { font-weight: 700; color: var(--ink-2); font-size: 0.9375rem; }
.contact-list a { font-weight: 800; text-decoration: none; overflow-wrap: anywhere; min-height: 44px; display: inline-flex; align-items: center; }
@media (hover: hover) and (pointer: fine) { .contact-list a:hover { text-decoration: underline; } }
.contact-list a.mono { font-weight: 500; font-size: 1rem; }
@media (min-width: 760px) {
  .contact-list { grid-template-columns: repeat(4, 1fr); border-top: 0; gap: var(--s5); }
  .contact-list li { flex-direction: column; align-items: flex-start; gap: 0; border-bottom: 0; border-top: 1px solid var(--line); padding: var(--s4) 0 0; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: var(--s6) 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s3) var(--s5); }
.site-footer p { color: var(--ink-2); font-size: 0.875rem; }
.footer-tel {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4);
  background: var(--bg); border-radius: 999px;
  color: var(--ink); font-weight: 800; text-decoration: none; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--press) var(--ease-out), background-color 150ms ease;
}
.footer-tel:active { transform: scale(0.97); }
.footer-tel span:not([data-tel-texto]) { color: var(--green-dark); }
.footer-tel svg { width: 18px; height: 18px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .footer-tel:hover { background: var(--green-soft); } }

/* Botón flotante WhatsApp (solo celular, aparece al bajar) */
.wa-float {
  position: fixed; right: var(--s4); bottom: max(var(--s4), env(safe-area-inset-bottom)); z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green); color: #fff;
  box-shadow: 0 2px 4px rgba(10, 94, 77, .25), 0 12px 24px -8px rgba(10, 94, 77, .6);
  -webkit-tap-highlight-color: transparent;
  opacity: 0; transform: translateY(12px) scale(0.92); pointer-events: none;
  transition: opacity 200ms ease, transform 320ms var(--ease-out);
}
.wa-float svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.wa-float.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-float.show:active { transform: scale(0.94); transition-duration: var(--press); }
@media (min-width: 900px) { .wa-float { display: none; } }

/* Aparición al hacer scroll: corta, rápida y en cascada */
.js .reveal {
  opacity: 0; transform: translateY(12px);
  transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Se quitan desplazamientos; se mantienen fundidos breves */
  .js .reveal, .js .handover li, .js .handover .ok, .nav, .wa-float { transform: none !important; }
  .js .reveal { transition: opacity 200ms ease; transition-delay: 0ms; }
  .js .handover.play li, .js .handover.play .ok { animation: fadeIn 200ms ease forwards; animation-delay: 0ms; }
  .btn, .footer-tel, .link-out span, .nav-toggle span { transition: background-color 150ms ease; }
  .btn:active, .footer-tel:active { transform: none; }
}
@keyframes fadeIn { to { opacity: 1; } }

@media (prefers-reduced-transparency: reduce) {
  .site-header, .nav { background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --ink-2: #2E3B38; --line: #8FA39E; --hairline: rgba(19, 32, 30, 0.4); }
  .btn-ghost { box-shadow: inset 0 0 0 2px var(--green-dark); }
}
