/* =========================================================
   HitoGrowth · estilos
   Los colores de la marca están aquí arriba: si cambias un
   valor, cambia en toda la web.
   ========================================================= */

:root {
  /* Marca */
  --green: #49775E;      /* color principal */
  --mint: #96FCC6;       /* color secundario: la luz */
  --white: #FFFFFF;

  /* Fondos oscuros (derivados del verde) */
  --ink: #08110D;
  --ink-2: #0D1A14;
  --ink-3: #142A21;
  --ink-deep: #050B08;

  /* Textos */
  --text: #E9F5EE;
  --text-dim: #A7C2B4;
  --text-on-white: #08110D;
  --text-on-white-dim: #46594F;
  --error: #FFB4A6;

  /* Líneas */
  --line: rgba(150, 252, 198, .18);
  --line-strong: rgba(150, 252, 198, .4);

  /* Tipografía */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Zen Kaku Gothic New", "Helvetica Neue", Arial, sans-serif;

  /* Medidas */
  --nav-h: 76px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(5rem, 11vw, 9.5rem);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

@media (max-width: 720px) {
  :root { --nav-h: 64px; }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--green) var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--mint);
  overflow-x: clip;
}

body.menu-open { overflow: hidden; }
body.menu-open .chat-launcher { opacity: 0; pointer-events: none; }

::selection { background: var(--mint); color: var(--ink); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--green); border: 2px solid var(--ink); border-radius: 10px; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

.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-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--mint); color: var(--ink); padding: .75rem 1rem;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.container { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: 0 1.6rem;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 700;
  font-size: .875rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .16s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--mint); color: var(--ink); }

.btn--ghost { background: transparent; color: var(--white); border-color: var(--line-strong); }

.btn--sm { min-height: 42px; padding: 0 1.1rem; font-size: .78rem; }

/* ---------- Cabecera ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); }
/* El fondo va en una capa aparte para que el menú móvil (fixed) no quede atrapado dentro */
.nav::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(8, 17, 13, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .35s;
}
.nav.is-solid::before { opacity: 1; }
.nav__inner {
  position: relative; height: 100%; width: min(1400px, 100% - 2 * var(--gutter)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}

.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand__mark { width: 30px; height: auto; fill: var(--mint); flex: none; }
.brand__name {
  font-family: var(--font-display); font-stretch: 118%; font-weight: 800;
  font-size: 1.2rem; letter-spacing: -.01em; color: var(--white);
}

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a:not(.btn) {
  font-size: .95rem; font-weight: 500; text-decoration: none; color: var(--text);
  transition: color .2s;
}
.nav__links a:not(.btn):hover { color: var(--mint); }

.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong);
  background: transparent; border-radius: 2px; cursor: pointer; place-items: center;
}
.nav__toggle svg { width: 22px; stroke: var(--white); stroke-width: 1.6; fill: none; }

@media (max-width: 860px) {
  .nav__toggle { display: grid; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    background: var(--ink);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .16s var(--ease-out), transform .16s var(--ease-out), visibility 0s .16s;
  }
  .nav__links.is-open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .22s var(--ease-out), transform .26s var(--ease-out);
  }
  .nav__links > * { opacity: 0; transform: translateY(8px); transition: opacity .15s, transform .15s; }
  .nav__links.is-open > * {
    opacity: 1; transform: none;
    transition: opacity .24s var(--ease-out), transform .28s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 40ms + 40ms);
  }
  .nav__links.is-open > :nth-child(2) { --i: 1; }
  .nav__links.is-open > :nth-child(3) { --i: 2; }
  .nav__links.is-open > :nth-child(4) { --i: 3; }
  .nav__links a:not(.btn) {
    font-family: var(--font-display); font-stretch: 115%; font-weight: 800;
    font-size: 1.75rem; text-transform: uppercase; line-height: 1.1;
    padding: 1.1rem 0; border-bottom: 1px solid var(--line);
  }
  .nav__cta { margin-top: 2rem; min-height: 54px; font-size: .9rem; }
  body.menu-open .nav::before { opacity: 1; background: var(--ink); }
}

/* =========================================================
   PORTADA · el torii
   ========================================================= */
.hero {
  --tw: min(100vw, 140svh);  /* ancho del torii */
  --open-top: .276;          /* dónde empieza el hueco del torii (proporción del ancho) */
  --open-w: .6;              /* ancho del hueco (proporción del ancho) */
  --origin-y: 52%;
  position: relative;
  height: 210svh;
}
.hero__stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  background:
    radial-gradient(ellipse 48% 62% at 50% 58%, rgba(73, 119, 94, .55), transparent 72%),
    radial-gradient(ellipse 90% 70% at 50% 40%, rgba(73, 119, 94, .22), transparent 75%),
    radial-gradient(ellipse 120% 80% at 50% 0%, #0E1E17, transparent 60%),
    var(--ink);
  isolation: isolate;
}

.torii {
  position: absolute; left: 50%; top: calc(var(--nav-h) + 6px);
  width: var(--tw); aspect-ratio: 1000 / 820;
  transform: translateX(-50%) scale(var(--s, 1));
  transform-origin: 50% var(--origin-y);
  will-change: transform;
}
.torii__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.torii__svg--narrow { display: none; }
.torii__glow {
  position: absolute; left: 19%; right: 19%; top: 30%; bottom: -8%;
  background:
    radial-gradient(ellipse 52% 46% at 50% 42%, rgba(220, 255, 236, .62), rgba(150, 252, 198, .34) 38%, rgba(150, 252, 198, .08) 70%, transparent 82%);
  filter: blur(6px);
  animation: breathe 7s ease-in-out infinite;
}
/* haz de luz que cae por el hueco del torii */
.torii__glow::after {
  content: ""; position: absolute; left: 18%; right: 18%; top: 5%; bottom: 0;
  background: linear-gradient(to bottom, rgba(150, 252, 198, .28), rgba(150, 252, 198, .1) 55%, transparent 90%);
  clip-path: polygon(24% 0, 76% 0, 100% 100%, 0 100%);
  filter: blur(14px);
}
@keyframes breathe {
  0%, 100% { opacity: .85; }
  50% { opacity: 1; }
}

.hero__motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }

.hero__mist {
  position: absolute; inset: auto 0 0; height: 42%; pointer-events: none;
  background: linear-gradient(to top, var(--ink) 8%, rgba(8, 17, 13, .65) 45%, transparent);
}

.hero__content {
  position: absolute; left: 50%; bottom: 0;
  top: calc(var(--nav-h) + 6px + var(--tw) * var(--open-top));
  width: calc(var(--tw) * var(--open-w) - 2.5rem);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: clamp(1rem, 2.6svh, 1.6rem);
  padding-top: clamp(1.75rem, 6svh, 4rem);
  text-align: center;
  transform: translateX(-50%) translateY(var(--ty, 0px));
  opacity: var(--fade, 1);
}
.hero__title {
  font-family: var(--font-display); font-stretch: 116%; font-weight: 800;
  font-size: clamp(2.25rem, min(5.4vw, 6.6svh), 5rem);
  line-height: .96; letter-spacing: -.012em; text-transform: uppercase;
  color: var(--white); text-wrap: balance;
  text-shadow: 0 2px 30px rgba(8, 17, 13, .45);
}
.hero__lede {
  max-width: 44ch; font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.55;
  color: var(--text); text-shadow: 0 1px 16px rgba(8, 17, 13, .7);
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: .4rem; }
.hero__actions { align-items: center; gap: .75rem 1.5rem; }
.hero__actions .btn--primary { min-height: 56px; padding: 0 2.2rem; font-size: .92rem; }
.hero__chat {
  background: none; border: 0; padding: .35rem .25rem; cursor: pointer;
  font-size: .95rem; color: var(--text-dim);
  text-decoration: underline; text-decoration-color: rgba(150, 252, 198, .35);
  text-underline-offset: .3em; text-decoration-thickness: 1px;
  text-shadow: 0 1px 12px rgba(8, 17, 13, .8);
  transition: color .2s ease, text-decoration-color .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .hero__chat:hover { color: var(--mint); text-decoration-color: var(--mint); }
}

.hero__hint {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-stretch: 115%; font-weight: 600;
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-dim);
  white-space: nowrap; opacity: var(--fade, 1); pointer-events: none;
}
.hero__hint::after {
  content: ""; width: 1px; height: 34px;
  background: linear-gradient(var(--mint), transparent);
  transform-origin: top; animation: hint 2.4s var(--ease-out) infinite;
}
@keyframes hint {
  0% { transform: scaleY(0); opacity: 1; }
  70% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

.hero__flood { position: absolute; inset: 0; pointer-events: none; }
.hero__flood--light {
  background: radial-gradient(circle at 50% 52%, #F2FFF8 0%, var(--mint) 38%, #6FB98F 75%, var(--green) 100%);
  opacity: var(--light, 0);
}
.hero__flood--field { background: var(--green); opacity: var(--field, 0); }

@media (max-width: 720px) {
  .hero {
    --tw: 108vw;
    --open-top: .23;
    --open-w: .71;
    --origin-y: 26%;
    height: 180svh;
  }
  .torii { aspect-ratio: 1000 / 1400; top: calc(var(--nav-h) + 4px); }
  .torii__svg--wide { display: none; }
  .torii__svg--narrow { display: block; }
  .torii__glow { left: 14.5%; right: 14.5%; top: 16%; bottom: 10%; }
  .torii__glow::after { top: 1%; }
  .hero__content { width: calc(var(--tw) * var(--open-w) - 2rem); justify-content: center; padding-top: 0; padding-bottom: 4.5rem; }
  .hero__title { font-size: clamp(2.1rem, 10.6vw, 2.9rem); font-stretch: 108%; }
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__chat { align-self: center; }
  .hero__actions .btn { white-space: normal; padding: .75rem 1rem; letter-spacing: .05em; font-size: .85rem; text-align: center; }
}

/* =========================================================
   SECCIONES · comunes
   ========================================================= */
.section-title {
  font-family: var(--font-display); font-stretch: 116%; font-weight: 800;
  font-size: clamp(2rem, 4.8vw, 4rem); line-height: .98; letter-spacing: -.012em;
  text-transform: uppercase; text-wrap: balance;
}
.section-lede { max-width: 44ch; font-size: clamp(1.0625rem, 1.3vw, 1.2rem); line-height: 1.6; }

/* ---------- Servicios: dos columnas sobre la noche del torii ---------- */
.services {
  color: var(--white); padding-block: var(--section-y);
  background:
    radial-gradient(ellipse 50% 45% at 20% 10%, rgba(73, 119, 94, .32), transparent 70%),
    radial-gradient(ellipse 60% 50% at 85% 70%, rgba(73, 119, 94, .22), transparent 70%),
    var(--ink);
  border-top: 1px solid rgba(150, 252, 198, .35);
}
.services__grid {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 3rem clamp(3rem, 7vw, 7rem); align-items: start;
}
.services .section-head { position: sticky; top: calc(var(--nav-h) + 3rem); }
.services .section-lede { margin-top: 1.5rem; color: var(--text-dim); }

.service-list { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.service {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem; align-items: start; transition: opacity .25s ease;
}
.service__name {
  font-family: var(--font-display); font-stretch: 112%; font-weight: 750;
  font-size: clamp(1.5rem, 2.5vw, 2.3rem); line-height: 1.05; text-transform: uppercase;
  letter-spacing: -.005em; text-wrap: balance;
}
.service__desc { margin-top: .75rem; max-width: 46ch; line-height: 1.6; color: var(--text-dim); }
.service__link {
  margin-top: 1rem; display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 700;
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--mint); white-space: nowrap;
}
.service__link::after { content: ""; position: absolute; inset: 0; }
.service__link svg {
  width: 20px; stroke: currentColor; stroke-width: 1.8; fill: none;
  transition: transform .25s var(--ease-out);
}

@media (max-width: 900px) {
  .services__grid { grid-template-columns: 1fr; }
  .services .section-head { position: static; }
}
@media (max-width: 560px) {
  .service { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------- Sobre mí (oscuro, como servicios) ---------- */
.about {
  color: var(--white); padding-block: var(--section-y);
  background:
    radial-gradient(ellipse 45% 55% at 20% 40%, rgba(73, 119, 94, .28), transparent 70%),
    radial-gradient(ellipse 55% 45% at 85% 20%, rgba(73, 119, 94, .18), transparent 70%),
    var(--ink);
  border-top: 1px solid rgba(150, 252, 198, .2);
}
.about__grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 3rem clamp(3rem, 6vw, 6rem); align-items: center;
}
.about__media { margin: 0; position: relative; }
.about__media img {
  width: 100%; height: auto; aspect-ratio: 780 / 1120; object-fit: cover;
  /* la foto se funde con el fondo por los bordes */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 72%, transparent 100%), linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 72%, transparent 100%), linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-composite: intersect;
}

.about__quote { margin: 0 0 clamp(2.5rem, 4vw, 3.5rem); padding-left: 1.5rem; border-left: 1px solid var(--mint); }
.about__quote p {
  font-size: clamp(1.3rem, 2.1vw, 1.85rem); line-height: 1.35; font-weight: 500; color: var(--mint); text-wrap: pretty;
}

.about__name {
  font-family: var(--font-display); font-stretch: 116%; font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -.012em; text-transform: uppercase; text-wrap: balance;
}
.about__role { margin-top: .6rem; color: var(--text-dim); }
.about__text { margin-top: 1.25rem; max-width: 64ch; line-height: 1.7; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

.pillars { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.pillars li {
  padding: .5rem 1rem; border: 1px solid rgba(150, 252, 198, .45); border-radius: 999px;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 700;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mint);
}

.stats {
  margin: clamp(3.5rem, 6vw, 5rem) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(150, 252, 198, .3); border-bottom: 1px solid rgba(150, 252, 198, .3);
}
.stat { padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1rem, 2.5vw, 2rem); text-align: center; }
.stat + .stat { border-left: 1px solid rgba(150, 252, 198, .3); }
.stat dt {
  display: flex; justify-content: center; align-items: center; min-height: 1em;
  font-family: var(--font-display); font-stretch: 116%; font-weight: 800;
  font-size: clamp(3rem, 6vw, 5.25rem); line-height: 1; letter-spacing: -.02em; color: var(--mint);
}
.stat__icon { width: .9em; height: .9em; fill: var(--mint); }
.stat dd { margin: .75rem 0 0; font-size: clamp(.95rem, 1.2vw, 1.1rem); color: var(--white); }


@media (max-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .about__media { max-width: 440px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat + .stat { border-left: 0; border-top: 1px solid rgba(150, 252, 198, .3); }
}

/* ---------- Confían en nosotros ---------- */
.trust { background: var(--white); color: var(--text-on-white); padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.trust :focus-visible { outline-color: var(--green); }
.trust .section-title { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.logos {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(2rem, 5vw, 3rem) 0;
}
.logo {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  padding-inline: clamp(1.5rem, 5vw, 4.5rem);
}
.logo + .logo { border-left: 1px solid rgba(73, 119, 94, .3); }
.logo img {
  height: clamp(84px, 9vw, 120px); width: auto;
  mix-blend-mode: multiply; filter: grayscale(1);
}
.logo__name {
  font-family: var(--font-display); font-stretch: 112%; font-weight: 600;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-on-white-dim);
}

@media (max-width: 480px) {
  .logo { padding-inline: 1.25rem; }
}

/* ---------- Contacto ---------- */
.contact {
  padding-block: var(--section-y);
  background:
    radial-gradient(ellipse 50% 60% at 75% 30%, rgba(73, 119, 94, .35), transparent 70%),
    var(--ink);
}
.contact__grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 6vw, 6rem); align-items: start;
}
.contact__intro .section-lede { margin-top: 1.5rem; color: var(--text); }

.channels { margin-top: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.channel {
  display: flex; align-items: center; gap: 1rem; padding: 1.15rem 0;
  border-top: 1px solid var(--line); text-decoration: none; color: var(--text-dim);
  transition: color .2s;
}
.channel svg { width: 24px; flex: none; stroke: var(--mint); stroke-width: 1.5; fill: none; stroke-linejoin: round; }
.channel strong {
  display: block; font-family: var(--font-display); font-stretch: 112%; font-weight: 700;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--white);
}
.channel:hover { color: var(--mint); }

.contact__gate { position: relative; padding-top: 44px; }
.contact__kasagi {
  position: absolute; left: 0; top: 0; width: 100%; height: 56px; overflow: visible;
  fill: none; stroke: var(--mint); stroke-width: 1.5; vector-effect: non-scaling-stroke;
}
.contact__kasagi path { vector-effect: non-scaling-stroke; }
.contact__kasagi path:nth-child(2) { stroke-opacity: .5; }
.contact__kasagi path:nth-child(3) { stroke-opacity: .35; }

.form {
  position: relative;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.25rem, 3vw, 2.5rem) clamp(1.75rem, 3vw, 2.5rem);
  border-inline: 1px solid var(--line-strong);
  background: linear-gradient(to bottom, rgba(150, 252, 198, .08), rgba(150, 252, 198, 0) 70%);
  display: grid; gap: 1.25rem;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: .45rem; align-content: start; }
.field label { font-size: .9rem; font-weight: 500; color: var(--text); }
.field label span { color: var(--mint); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .8rem 1rem;
  font-size: 1rem; line-height: 1.4;
  background: rgba(233, 245, 238, .04); color: var(--white);
  border: 1px solid rgba(150, 252, 198, .26); border-radius: 2px;
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(150, 252, 198, .5); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--mint); background: rgba(150, 252, 198, .07);
  box-shadow: 0 0 0 1px var(--mint);
}
.field [aria-invalid="true"] { border-color: var(--error) !important; }
.field__error { font-size: .85rem; color: var(--error); min-height: 0; }
.field__error:empty { display: none; }

.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer; }
.select select option { background: var(--ink-2); color: var(--white); }
.select::after {
  content: ""; position: absolute; right: 1.1rem; top: 50%; width: 8px; height: 8px;
  border-right: 1.5px solid var(--mint); border-bottom: 1.5px solid var(--mint);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}

.field--check { grid-template-columns: auto 1fr; align-items: start; gap: .35rem .75rem; }
.field--check input {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: .15rem 0 0;
  border: 1px solid var(--line-strong); border-radius: 2px; background: rgba(233, 245, 238, .04);
  display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.field--check input::after {
  content: ""; width: 6px; height: 11px; margin-top: -3px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) scale(0); transition: transform .25s var(--ease-out);
}
.field--check input:hover { border-color: var(--mint); }
.field--check input:checked { background: var(--mint); border-color: var(--mint); }
.field--check input:checked::after { transform: rotate(45deg) scale(1); }
.field--check label { font-weight: 400; color: var(--text-dim); }
.field--check label a { color: var(--white); }
.field--check label a:hover { color: var(--mint); }
.field--check .field__error { grid-column: 2; }

.form__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.form__status { font-size: .95rem; color: var(--mint); }
.form__status:empty { display: none; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
  .form__actions .btn { flex: 1 1 100%; }
}

/* ---------- Pie ---------- */
.footer { background: var(--ink-deep); border-top: 1px solid var(--line); padding: 3rem 0 calc(3rem + env(safe-area-inset-bottom)); }
.footer__inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem 3rem;
}
.footer__tag { color: var(--text-dim); font-size: .95rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .9rem; }
.footer__links a { text-decoration: none; color: var(--text-dim); transition: color .2s; }
.footer__links a:hover { color: var(--mint); }
.footer__copy { grid-column: 1 / -1; font-size: .85rem; color: var(--text-dim); padding-top: 1.5rem; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* =========================================================
   ASISTENTE (chatbot)
   ========================================================= */
.chat-launcher {
  position: fixed; z-index: 60;
  right: max(1.25rem, env(safe-area-inset-right)); bottom: max(1.25rem, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: .55rem;
  height: 56px; padding: 0 1.3rem 0 1.05rem;
  background: var(--mint); color: var(--ink); border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 700;
  font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .65), 0 2px 6px rgba(0, 0, 0, .25);
  transition: transform .16s var(--ease-out), background-color .2s ease, opacity .2s ease;
}
.chat-launcher:active { transform: scale(.96); }
.chat-launcher svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chat-launcher:focus-visible { outline-color: var(--white); }

.chat {
  position: fixed; z-index: 61;
  right: max(1.25rem, env(safe-area-inset-right)); bottom: calc(max(1.25rem, env(safe-area-inset-bottom)) + 68px);
  width: min(390px, 100vw - 2.5rem); height: min(620px, 100svh - 120px);
  display: flex; flex-direction: column;
  background: var(--ink-2); color: var(--text);
  border: 1px solid rgba(150, 252, 198, .22); border-radius: 6px; overflow: hidden;
  box-shadow: 0 28px 60px -16px rgba(0, 0, 0, .75), 0 4px 14px rgba(0, 0, 0, .3);
  opacity: 0; transform: translateY(14px) scale(.98); transform-origin: bottom right;
  transition: opacity .22s var(--ease-out), transform .3s var(--ease-out);
}
.chat[hidden] { display: none; }
.chat:not(.is-open) { transition: opacity .15s var(--ease-out), transform .16s var(--ease-out); }
.chat.is-open { opacity: 1; transform: none; }

.chat__head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .85rem;
  padding: 1rem 1rem 1rem 1.15rem; border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(150, 252, 198, .07), transparent);
}
.chat__head .brand__mark { width: 28px; }
.chat__title {
  font-family: var(--font-display); font-stretch: 112%; font-weight: 800;
  font-size: .92rem; letter-spacing: .03em; text-transform: uppercase; color: var(--white);
}
.chat__sub { font-size: .8rem; color: var(--text-dim); line-height: 1.35; }
.chat__close {
  width: 40px; height: 40px; display: grid; place-items: center; border: 0;
  background: transparent; border-radius: 2px; cursor: pointer; color: var(--text-dim);
}
.chat__close:hover { color: var(--mint); background: rgba(150, 252, 198, .08); }
.chat__close svg { width: 20px; stroke: currentColor; stroke-width: 1.7; fill: none; }

.chat__log {
  flex: 1; overflow-y: auto; padding: 1.15rem; display: flex; flex-direction: column; gap: .6rem;
  scrollbar-width: thin; overscroll-behavior: contain;
}
.msg {
  max-width: 88%; padding: .7rem .9rem; font-size: .95rem; line-height: 1.5;
  border-radius: 2px 12px 12px 12px; white-space: pre-line;
  animation: msg-in .25s var(--ease-out);
}
.msg--bot { align-self: flex-start; background: var(--ink-3); color: var(--text); }
.msg--user { align-self: flex-end; background: var(--mint); color: var(--ink); border-radius: 12px 2px 12px 12px; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }

.typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: .9rem 1rem; background: var(--ink-3); border-radius: 2px 12px 12px 12px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); opacity: .4; animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { opacity: 1; transform: translateY(-2px); } }

.chat__chips { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0 1.15rem .9rem; }
.chat__chips:empty { display: none; }
.chip {
  padding: .5rem .85rem; font-size: .85rem; line-height: 1.25; text-align: left;
  background: transparent; color: var(--mint); border: 1px solid rgba(150, 252, 198, .45);
  border-radius: 999px; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.chip:active { transform: scale(.96); }
.chip { transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .16s var(--ease-out); }

.chat__form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--line); }
.chat__form input {
  flex: 1; min-width: 0; min-height: 46px; padding: 0 .9rem; font-size: 1rem;
  background: rgba(233, 245, 238, .05); border: 1px solid rgba(150, 252, 198, .2); border-radius: 2px;
}
.chat__form input::placeholder { color: var(--text-dim); }
.chat__form input:focus { outline: none; border-color: var(--mint); }
.chat__send {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  background: var(--mint); color: var(--ink); border: 0; border-radius: 2px; cursor: pointer;
}
.chat__send:active { transform: scale(.94); }
.chat__send { transition: background-color .2s ease, transform .16s var(--ease-out); }
.chat__send svg { width: 20px; stroke: currentColor; stroke-width: 2; fill: none; }

@media (max-width: 560px) {
  .chat-launcher { width: 56px; padding: 0; justify-content: center; }
  .chat-launcher__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .chat {
    left: 0; right: 0; bottom: 0; width: 100%;
    height: min(88svh, 680px); border-radius: 12px 12px 0 0; border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(24px); transform-origin: bottom center;
  }
  body.chat-open .chat-launcher { opacity: 0; pointer-events: none; }
}

/* ---------- Iconos animados de servicios ----------
   Dibujo en dos tonos (línea menta + relleno translúcido).
   En reposo se ven completos; al pasar el ratón por el servicio
   se reproduce su animación (en móvil, una vez al aparecer). */
.svc-icon {
  width: clamp(52px, 4.8vw, 68px); height: auto; flex: none; overflow: visible;
  fill: none; stroke: var(--mint); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s var(--ease-out);
}
.svc-icon * { transform-box: fill-box; transform-origin: center; }
.svc-icon .tint { fill: rgba(150, 252, 198, .1); }
.svc-icon .solid { fill: var(--ink); }
.svc-icon .dot { stroke-width: 2.4; }

/* Web: pantallas en capas y cursor */
.svc-icon--web .c1 .solid { fill: #0F1E17; }
.svc-icon--web .blk { fill: rgba(150, 252, 198, .3); }
.svc-icon--web .cur { fill: var(--mint); stroke: var(--ink); stroke-width: 1; transform-origin: left top; }
.svc-icon--web .ln { transform-origin: left center; }
.play .svc-icon--web .c3 { animation: web-fan3 1s var(--ease-out) both; }
.play .svc-icon--web .c2 { animation: web-fan2 1s var(--ease-out) both; }
.play .svc-icon--web .cur { animation: web-cursor 1s var(--ease-out) both; }
.play .svc-icon--web .c1 { animation: web-press 1s var(--ease-out) both; }
.play .svc-icon--web .blk { animation: web-blk 1s ease both; }
.play .svc-icon--web .ln { animation: web-line 1s var(--ease-out) both; }
.play .svc-icon--web .ln2 { animation-delay: .06s; }
.play .svc-icon--web .ln3 { animation-delay: .12s; }
@keyframes web-fan3 { 0%, 100% { transform: none; } 35%, 60% { transform: translate(6px, -5px); } }
@keyframes web-fan2 { 0%, 100% { transform: none; } 35%, 60% { transform: translate(3px, -2.5px); } }
@keyframes web-cursor { 0% { transform: translate(14px, 12px); opacity: 0; } 40% { transform: none; opacity: 1; } 50% { transform: scale(.82); } 60%, 100% { transform: none; } }
@keyframes web-press { 0%, 45% { transform: none; } 52% { transform: scale(.95); } 64%, 100% { transform: none; } }
@keyframes web-blk { 0%, 50% { fill: rgba(150, 252, 198, .3); } 60% { fill: rgba(150, 252, 198, .85); } 100% { fill: rgba(150, 252, 198, .3); } }
@keyframes web-line { 0%, 55% { transform: scaleX(0); } 85%, 100% { transform: none; } }

/* Estrategia: mapa de nodos y ruta hacia el objetivo */
.svc-icon--map .alt { stroke-dasharray: 2 4; stroke-opacity: .4; }
.svc-icon--map .gd { fill: rgba(150, 252, 198, .4); stroke: none; }
.svc-icon--map .route { stroke-width: 2.2; }
.svc-icon--map .nd { fill: var(--ink); }
.svc-icon--map .start, .svc-icon--map .goal { fill: var(--mint); stroke: none; }
.svc-icon--map .ring { fill: rgba(150, 252, 198, .14); }
.svc-icon--map .pulse, .svc-icon--target .pulse, .svc-icon--ai .pulse { opacity: 0; }
.play .svc-icon--map .route { stroke-dasharray: 1; animation: map-draw .8s var(--ease-out) both; }
.play .svc-icon--map .nd { animation: pop .35s var(--ease-out) both; }
.play .svc-icon--map .nd1 { animation-delay: .15s; }
.play .svc-icon--map .nd2 { animation-delay: .3s; }
.play .svc-icon--map .nd3 { animation-delay: .45s; }
.play .svc-icon--map .ring, .play .svc-icon--map .goal { animation: pop .4s var(--ease-out) .62s both; }
.play .svc-icon--map .pulse { animation: pulse .8s var(--ease-out) .75s both; }
@keyframes map-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Publicidad: diana y dardo que acierta en el cliente ideal */
.svc-icon--target .r1 { fill: var(--mint); }
.svc-icon--target .dart { stroke-width: 2.2; transform-origin: left bottom; }
.svc-icon--target .fl { stroke-width: 1.6; }
.play .svc-icon--target .dart { animation: dart 1s var(--ease-out) both; }
.play .svc-icon--target .r { animation: ripple .5s var(--ease-out) .5s both; }
.play .svc-icon--target .r2 { animation-delay: .56s; }
.play .svc-icon--target .r3 { animation-delay: .62s; }
.play .svc-icon--target .pulse { animation: pulse-big .7s var(--ease-out) .48s both; }
@keyframes dart { 0% { transform: none; } 22% { transform: translate(16px, -16px); opacity: 0; } 30% { transform: translate(16px, -16px); opacity: 0; } 50% { transform: translate(-2px, 2px); opacity: 1; } 62%, 100% { transform: none; } }
@keyframes ripple { 0%, 100% { transform: none; } 40% { transform: scale(1.07); } }
@keyframes pulse-big { from { transform: scale(1); opacity: .9; } to { transform: scale(4); opacity: 0; } }

/* Redes: reacciones que suben desde el móvil */
.svc-icon--social .feed { fill: rgba(150, 252, 198, .3); }
.svc-icon--social .badge, .svc-icon--social .rx1, .svc-icon--social .rx2 { fill: var(--mint); }
.svc-icon--social .badge { stroke: var(--ink); stroke-width: 1.5; }
.play .svc-icon--social .rx { animation: float-up .7s var(--ease-out) both; }
.play .svc-icon--social .rx2 { animation-delay: .14s; }
.play .svc-icon--social .rx3 { animation-delay: .26s; }
.play .svc-icon--social .badge { animation: pop .4s var(--ease-out) .45s both; }
.play .svc-icon--social .feed { animation: feed .8s ease both; }
@keyframes float-up { 0% { transform: translateY(14px) scale(.4); opacity: 0; } 60% { transform: translateY(-3px) scale(1.08); opacity: 1; } 100% { transform: none; } }
@keyframes feed { 0%, 100% { fill: rgba(150, 252, 198, .3); } 40% { fill: rgba(150, 252, 198, .7); } }

/* IA: red neuronal con señales que viajan hasta la respuesta */
.svc-icon--ai .links { stroke-width: 1; stroke-opacity: .32; }
.svc-icon--ai .n1 { fill: var(--mint); stroke: none; }
.svc-icon--ai .n2 { fill: var(--ink); }
.svc-icon--ai .out { fill: rgba(150, 252, 198, .25); stroke-width: 2; }
.svc-icon--ai .spark { fill: var(--mint); stroke: none; }
.svc-icon--ai .sig { stroke-width: 2.4; stroke-dasharray: .16 1.2; stroke-dashoffset: .16; opacity: 0; }
.play .svc-icon--ai .sig { animation: signal .75s cubic-bezier(.65, 0, .35, 1) both; }
.play .svc-icon--ai .s2 { animation-delay: .1s; }
.play .svc-icon--ai .s3 { animation-delay: .2s; }
.play .svc-icon--ai .n2 { animation: node-flash .5s ease .25s both; }
.play .svc-icon--ai .out { animation: out-glow .6s var(--ease-out) .7s both; }
.play .svc-icon--ai .pulse { animation: pulse .8s var(--ease-out) .75s both; }
.play .svc-icon--ai .spark { animation: spark .6s var(--ease-out) .8s both; }
@keyframes signal { 0% { stroke-dashoffset: .16; opacity: 1; } 90% { opacity: 1; } 100% { stroke-dashoffset: -1; opacity: 0; } }
@keyframes node-flash { 0%, 100% { fill: var(--ink); } 40% { fill: var(--mint); } }
@keyframes out-glow { 0%, 100% { fill: rgba(150, 252, 198, .25); transform: none; } 35% { fill: var(--mint); transform: scale(1.25); } }
@keyframes spark { from { transform: rotate(-90deg) scale(.3); opacity: 0; } }

/* Compartidas */
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.15); opacity: 1; } 100% { transform: none; } }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }

@media (max-width: 900px) {
  .svc-icon { margin-bottom: .25rem; }
}

/* ---------- Hover solo en dispositivos con ratón (en móvil no se queda "pegado") ---------- */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: scale(.97); }
  .btn--primary:hover { background: var(--white); }
  .btn--ghost:hover { border-color: var(--mint); color: var(--mint); background: rgba(150, 252, 198, .07); }
  .service-list:hover .service:not(:hover) { opacity: .45; }
  .service:hover .svc-icon { transform: translateY(-3px) scale(1.08); }
  .service:hover .service__link svg { transform: translateX(6px); }
  .chat-launcher:hover { background: var(--white); transform: translateY(-2px); }
  .chat-launcher:active { transform: scale(.95); }
  .chip:hover { background: var(--mint); color: var(--ink); border-color: var(--mint); }
  .chat__send:hover { background: var(--white); }
}

/* ---------- Icono del menú: hamburguesa a X ---------- */
.nav__toggle path { transition: transform .3s var(--ease-out), opacity .2s; }
.nav__toggle .l1 { transform-origin: 12px 7px; }
.nav__toggle .l3 { transform-origin: 12px 17px; }
.nav__toggle[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .l2 { opacity: 0; }
.nav__toggle[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Aparición al hacer scroll (una sola vez) ---------- */
.can-reveal .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s ease-out, transform .8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.can-reveal .reveal.is-in { opacity: 1; transform: none; }
.can-reveal .contact__kasagi { clip-path: inset(-4px 100% -4px 0); transition: clip-path 1.1s var(--ease-out); }
.can-reveal .contact__gate.is-in .contact__kasagi { clip-path: inset(-4px -4px -4px 0); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .hero__stage { position: relative; }
  .hero__hint, .hero__motes { display: none; }
  .torii__glow { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .btn:hover, .btn:active, .chat-launcher:hover, .chat-launcher:active, .chip:active, .chat__send:active,
  .service:hover .service__name, .service:hover .service__link svg { transform: none !important; }
  .chat, .chat.is-open, .nav__links, .nav__links > * { transform: none !important; }
}

/* Pantallas de portátil bajas: el aviso de scroll se oculta para no tapar los botones */
@media (min-width: 721px) and (max-height: 800px) {
  .hero__hint { display: none; }
  .hero__content { padding-top: clamp(1.25rem, 4svh, 2rem); }
}


/* ---------- Pulido (revisión redesign-skill) ---------- */
/* Grano muy sutil sobre toda la página para quitar la sensación "plana" digital */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 55; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Sin palabras sueltas al final de los párrafos */
p, li, dd, blockquote { text-wrap: pretty; }
/* Cifras con ancho fijo */
.stat dt { font-variant-numeric: tabular-nums; }
/* Sección actual marcada en el menú */
.nav__links a[aria-current="true"]:not(.btn) { color: var(--mint); }
@media (min-width: 861px) {
  .nav__links a:not(.btn) { position: relative; }
  .nav__links a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--mint);
    transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out);
  }
  .nav__links a[aria-current="true"]:not(.btn)::after { transform: scaleX(1); }
}
