/* ==========================================================
   Kaia Crossing — base de estilos
   Paleta y tipografías definidas por el cliente.
   ========================================================== */

:root {
  /* Paleta */
  --arena:      #d8c3a5;   /* acento cálido: detalles, bordes, fondos suaves */
  --verde:      #2e6e62;   /* color primario: botones, links, títulos de sección */
  --celeste:    #bfe1e8;   /* acento frío: fondos de bloques destacados, chips */
  --hueso:      #f7f5f0;   /* fondo general de la página */
  --bosque:     #173b34;   /* texto principal, header/footer oscuros */

  /* Roles semánticos */
  --bg:            var(--hueso);
  --bg-alt:        #ffffff;
  --bg-dark:       var(--bosque);
  --text:          var(--bosque);
  --text-muted:    #4f6660;
  --text-on-dark:  var(--hueso);
  --primary:       var(--verde);
  --primary-hover: #245a50;
  --accent-warm:   var(--arena);
  --accent-cool:   var(--celeste);
  --border:        #e3ddd1;

  /* Tipografía */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;   /* títulos */
  --font-body:    "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif; /* texto */
  --font-ui:      "IBM Plex Sans", system-ui, sans-serif;            /* botones, nav, etiquetas */

  /* Escala */
  --maxw: 1120px;
  --gutter: 20px;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(23, 59, 52, 0.08);
}

/* Reset mínimo */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Botones */
.btn {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .95rem;
  display: inline-block;
  padding: .8em 1.6em;
  border-radius: 999px;
  border: 2px solid var(--primary);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--primary); }
.btn--ghost:hover { background: var(--primary); color: #fff; }
.btn--light { background: var(--hueso); border-color: var(--hueso); color: var(--bosque); }
.btn--light:hover { background: var(--arena); border-color: var(--arena); color: var(--bosque); }

/* Etiqueta pequeña sobre títulos de sección */
.eyebrow {
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .6em;
  display: block;
}

/* Secciones */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--alt  { background: var(--bg-alt); }
.section--cool { background: var(--accent-cool); }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--text-on-dark); }

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--arena);
  border-bottom: 1px solid rgba(23, 59, 52, 0.12);
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--bosque);
}
.brand__iso { width: 48px; height: 48px; border-radius: 8px; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: .95rem;
  color: var(--bosque);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s;
}
.nav a:hover { border-color: var(--verde); }
.nav__cta {
  background: var(--verde);
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 999px;
  border-bottom: 0 !important;
}
.nav__cta:hover { background: var(--primary-hover); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--bosque); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative;
  padding: clamp(72px, 12vw, 150px) 0 clamp(80px, 12vw, 160px);
  background: var(--hueso);
  overflow: hidden;
}
.hero__inner { max-width: 760px; }
.hero h1 { margin-bottom: .4em; }
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 2em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.arc {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  width: 100%; height: 60px;
  color: var(--verde);
  opacity: .8;
}

/* ==========================================================
   Layout helpers
   ========================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.section__head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head p { color: var(--text-muted); font-size: 1.05rem; }
.section__head--row {
  max-width: none;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
}
.section__cta { text-align: center; margin-top: clamp(32px, 5vw, 56px); }

.link-arrow {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .95rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.link-arrow::after { content: "\2192"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }
.link-arrow--light, .eyebrow--light { color: var(--celeste); }
.link-arrow--light:hover { color: #fff; }

/* Para quien */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li {
  position: relative;
  padding: 16px 18px 16px 52px;
  background: var(--hueso);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
}
.checklist li::before {
  content: "";
  position: absolute; left: 18px; top: 50%;
  width: 20px; height: 20px; transform: translateY(-50%);
  border-radius: 50%;
  background: var(--verde);
}
.checklist li::after {
  content: "";
  position: absolute; left: 24px; top: 50%;
  width: 6px; height: 10px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: translateY(-60%) rotate(45deg);
}

/* Quienes somos */
.about__card {
  background: var(--arena);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow);
}
.about__logo { width: 100%; border-radius: 8px; }
.founder {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.founder h3 { margin-bottom: .1em; }
.founder__role {
  font-family: var(--font-ui);
  font-size: .85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: .9em;
}

/* Servicios */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg-alt);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--hueso);
  color: var(--verde);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .5em; }
.card p { color: var(--text-muted); flex: 1; }
.card__list { margin: 0; padding: 0 0 0 18px; font-size: .92rem; color: var(--text); }
.card__list li { margin-bottom: 4px; }
.card__list li::marker { color: var(--verde); }

.pillars { margin-top: clamp(40px, 6vw, 72px); }
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pillars__grid > div {
  padding: 20px 0 0;
  border-top: 2px solid var(--arena);
  display: grid; gap: 4px;
}
.pillars__grid strong { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; }
.pillars__grid span { font-size: .92rem; color: var(--text-muted); }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.post time {
  font-family: var(--font-ui);
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
}
.post h3 { margin: 0; }
.post h3 a { color: var(--text); }
.post h3 a:hover { color: var(--primary); }
.post p { color: var(--text-muted); flex: 1; margin: 0; }

/* Contacto */
.section--dark p { color: rgba(247, 245, 240, .82); }
.form {
  background: rgba(247, 245, 240, .06);
  border: 1px solid rgba(247, 245, 240, .15);
  border-radius: 16px;
  padding: clamp(24px, 3vw, 36px);
  display: grid; gap: 18px;
}
.form__row { display: grid; gap: 6px; }
.form label {
  font-family: var(--font-ui);
  font-size: .85rem; font-weight: 600;
  color: var(--celeste);
}
.form input, .form select, .form textarea {
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(247, 245, 240, .25);
  background: var(--hueso);
  color: var(--bosque);
  width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 3px solid var(--celeste);
  outline-offset: 1px;
}
.form textarea { resize: vertical; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer {
  background: var(--arena);
  padding: 40px 0;
}
.site-footer__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.site-footer__logo { width: 160px; border-radius: 8px; }
.site-footer__copy { margin: 0; font-family: var(--font-ui); font-size: .9rem; color: var(--bosque); }
.site-footer__copy a { color: var(--bosque); text-decoration: underline; }

/* ==========================================================
   Paginas internas (blog, gracias)
   ========================================================== */
.page { padding: clamp(48px, 7vw, 96px) 0; }
.page__inner { max-width: 720px; margin: 0 auto; }
.page__inner .eyebrow { margin-bottom: 1em; }
.prose p { font-size: 1.08rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 0 0 0 20px;
  border-left: 3px solid var(--arena);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--primary);
}
.page__meta {
  font-family: var(--font-ui);
  font-size: .85rem; color: var(--text-muted);
  margin-bottom: 2em;
}
.page__back { margin-top: 3em; padding-top: 2em; border-top: 1px solid var(--border); }
.centered { text-align: center; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 960px) {
  .cards, .posts { grid-template-columns: 1fr 1fr; }
  .pillars__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--arena);
    border-bottom: 1px solid rgba(23, 59, 52, 0.12);
    padding: 8px var(--gutter) 16px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(23, 59, 52, 0.1); }
  .nav__cta { margin-top: 12px; text-align: center; }
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 1; }
  .cards, .posts { grid-template-columns: 1fr; }
  .brand__name { font-size: 1.05rem; }
}
@media (max-width: 480px) {
  .pillars__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; text-align: center; }
}

/* ==========================================================
   CAPA DE MOVIMIENTO (v2)
   Concepto: el cruce, el horizonte y el mar. Movimiento lento,
   revelado progresivo y nada brusco. Todo se apaga con
   "reducir movimiento" del sistema operativo.
   ========================================================== */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.45, 0, .2, 1);
  --header-h: 72px;
}
main [id] { scroll-margin-top: calc(var(--header-h) + 8px); }
main { overflow-x: hidden; }
@supports (overflow: clip) { main { overflow-x: clip; } }
body { animation: page-in .8s var(--ease-soft) both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
::selection { background: var(--celeste); color: var(--bosque); }

/* ---------- Header translucido que se compacta al hacer scroll ---------- */
.site-header {
  background: rgba(216, 195, 165, .84);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  transition: box-shadow .4s var(--ease-soft), background-color .4s var(--ease-soft);
}
.site-header__inner { transition: min-height .45s var(--ease-out); }
.site-header.is-scrolled {
  background: rgba(216, 195, 165, .93);
  box-shadow: 0 12px 30px -20px rgba(23, 59, 52, .5);
}
.site-header.is-scrolled .site-header__inner { min-height: 60px; }
.brand__iso { transition: transform .6s var(--ease-out), width .45s var(--ease-out), height .45s var(--ease-out); }
.site-header.is-scrolled .brand__iso { width: 40px; height: 40px; }
.brand:hover .brand__iso { transform: rotate(-6deg) scale(1.05); }
.scroll-progress {
  position: absolute; left: 0; bottom: -1px;
  width: 100%; height: 2px;
  background: var(--verde);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}

@media (min-width: 761px) {
  .nav a:not(.nav__cta) { position: relative; border-bottom: 0; }
  .nav a:not(.nav__cta)::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px; background: var(--verde);
    transform: scaleX(0); transform-origin: right;
    transition: transform .45s var(--ease-out);
  }
  .nav a:not(.nav__cta):hover::after,
  .nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
}
.nav__cta { transition: background-color .3s, transform .4s var(--ease-out); }
.nav__cta:hover { transform: translateY(-1px); }
.nav.is-open { animation: nav-in .4s var(--ease-out); }
@keyframes nav-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Botones: relleno que sube desde abajo ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease-soft), border-color .35s var(--ease-soft),
              transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--bosque);
  transform: translateY(101%);
  transition: transform .55s var(--ease-out);
}
.btn:hover { background: var(--primary); border-color: var(--bosque); transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(23, 59, 52, .6); }
.btn:hover::before { transform: translateY(0); }
.btn--ghost::before { background: var(--verde); }
.btn--ghost:hover { background: transparent; border-color: var(--verde); color: #fff; }
.btn--light::before { background: var(--arena); }
.btn--light:hover { background: var(--hueso); border-color: var(--arena); color: var(--bosque); }

.link-arrow { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease-out), color .3s; padding-bottom: 2px; }
.link-arrow:hover { background-size: 100% 1px; }

/* ---------- Hero: horizonte que se dibuja, olas lentas y luz que respira ---------- */
.hero {
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  padding: clamp(64px, 10vw, 120px) 0 clamp(150px, 17vw, 210px);
  isolation: isolate;
}
.hero__inner { position: relative; z-index: 2; max-width: 860px; }
.hero__title {
  font-size: clamp(2.7rem, 7.4vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin: .1em 0 .45em;
}
.hero__title em { font-style: italic; color: var(--verde); }
.line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.line > span { display: inline-block; transform: translateY(112%); animation: rise 1.3s var(--ease-out) .1s forwards; }
.line:nth-child(2) > span { animation-delay: .24s; }
@keyframes rise { to { transform: translateY(0); } }

.hero__glow {
  position: absolute; inset: -25% -15% -10% -15%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 42% at 80% 32%, rgba(191, 225, 232, .9), transparent 70%),
    radial-gradient(32% 38% at 12% 72%, rgba(216, 195, 165, .6), transparent 70%),
    radial-gradient(25% 30% at 55% 85%, rgba(46, 110, 98, .12), transparent 70%);
  filter: blur(24px);
  animation: drift 20s var(--ease-soft) infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-5%, 4%, 0) scale(1.1); }
}

.hero__sea {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  height: clamp(120px, 15vw, 190px);
  pointer-events: none; overflow: hidden;
}
.hero__sea svg { position: absolute; left: 0; display: block; }
.arc-draw { top: 0; width: 100%; height: 62%; overflow: visible; }
.arc-draw path {
  fill: none; stroke: var(--verde); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 2.6s .6s var(--ease-soft) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.wave { bottom: 0; width: 200%; }
.wave--1 { height: 72%; fill: rgba(191, 225, 232, .75); animation: wave 26s linear infinite; }
.wave--2 { height: 58%; fill: rgba(46, 110, 98, .14); animation: wave 38s linear infinite reverse; }
.wave--3 { height: 44%; fill: var(--bg-alt); animation: wave 48s linear infinite; }
@keyframes wave { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(14px, 2.4vw, 26px); z-index: 3;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: .7rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0; animation: fade-in 1s 2s forwards;
}
.scroll-cue:hover { color: var(--verde); }
.scroll-cue__line { position: relative; width: 1px; height: 34px; overflow: hidden; background: rgba(46, 110, 98, .25); }
.scroll-cue__line::after {
  content: ""; position: absolute; left: 0; top: -40%;
  width: 100%; height: 40%; background: var(--verde);
  animation: cue 2.2s var(--ease-soft) infinite;
}
@keyframes cue { to { top: 100%; } }
@keyframes fade-in { to { opacity: 1; } }

/* ---------- Revelado al hacer scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  filter: blur(6px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="right"] { transform: translate3d(36px, 0, 0); }
.js [data-reveal="left"]  { transform: translate3d(-36px, 0, 0); }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ---------- Lista "Para quien es" ---------- */
.checklist li { transition: border-color .4s, box-shadow .5s var(--ease-out), translate .5s var(--ease-out); }
.checklist li:hover { border-color: var(--verde); box-shadow: 0 10px 24px -18px rgba(23, 59, 52, .5); translate: 4px 0; }
.checklist li::before, .checklist li::after { transition: transform .7s var(--ease-out), opacity .5s; transition-delay: calc(var(--d, 0s) + .3s); }
.js .checklist li:not(.is-in)::before { transform: translateY(-50%) scale(0); }
.js .checklist li:not(.is-in)::after { opacity: 0; }

/* ---------- Manifiesto: texto que se enciende palabra por palabra ---------- */
.manifesto {
  position: relative; overflow: hidden;
  padding: clamp(90px, 13vw, 170px) 0;
  background: var(--hueso);
}
.manifesto::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: min(900px, 120vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(191, 225, 232, .55), transparent);
  pointer-events: none;
}
.manifesto__text {
  position: relative;
  max-width: 1000px; margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.2vw, 3.2rem);
  line-height: 1.24; letter-spacing: -.01em;
  text-align: center; color: var(--bosque);
}
.manifesto__text em { font-style: italic; color: var(--verde); }
.manifesto__text .w { opacity: var(--o, 1); transition: opacity .2s linear; }
.js .manifesto__text .w { --o: .16; }
.manifesto__sign {
  position: relative; display: block; margin-top: 2.2rem;
  text-align: center;
  font-family: var(--font-ui); font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--primary);
}

/* ---------- Cinta de palabras ---------- */
.marquee {
  overflow: hidden;
  padding: 22px 0;
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}
.marquee__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--verde);
}
.marquee__track span::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--arena); margin: 0 1.1em;
}
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Quienes somos ---------- */
.about__card {
  overflow: hidden;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
  transform-style: preserve-3d;
}
.about__card:hover { box-shadow: 0 30px 60px -30px rgba(23, 59, 52, .45); }
.about__logo { will-change: transform; }

/* ---------- Tarjetas: elevacion y luz que sigue al cursor ---------- */
.card, .post { position: relative; isolation: isolate; transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .4s; }
.card::before, .post::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(191, 225, 232, .75), transparent 60%);
  opacity: 0; transition: opacity .5s var(--ease-soft);
}
.card:hover, .post:hover { transform: translateY(-8px); box-shadow: 0 32px 60px -30px rgba(23, 59, 52, .4); }
.card:hover::before, .post:hover::before { opacity: 1; }
.post:hover { border-color: rgba(46, 110, 98, .35); }
.card__icon { transition: background-color .5s var(--ease-soft), color .5s var(--ease-soft), transform .7s var(--ease-out); }
.card:hover .card__icon { background: var(--verde); color: #fff; transform: rotate(-8deg) scale(1.06); }

/* ---------- Pilares: la linea verde crece al entrar ---------- */
.pillars__grid { counter-reset: pilar; }
.pillars__grid > div { position: relative; counter-increment: pilar; }
.pillars__grid > div::before {
  content: ""; position: absolute; left: 0; right: 0; top: -2px;
  height: 2px; background: var(--verde);
  transform-origin: left;
  transition: transform 1.3s var(--ease-out) calc(var(--d, 0s) + .2s);
}
.js .pillars__grid > div:not(.is-in)::before { transform: scaleX(0); }
.pillars__grid > div::after {
  content: counter(pilar, decimal-leading-zero);
  position: absolute; top: 20px; right: 0;
  font-family: var(--font-ui); font-size: .72rem; letter-spacing: .12em;
  color: var(--text-muted);
}
.pillars__grid strong { padding-right: 2.2em; }

/* ---------- Contacto: borde de ola y luz tenue ---------- */
.section--dark { position: relative; overflow: hidden; padding-top: clamp(96px, 11vw, 150px); }
.edge-wave {
  position: absolute; top: -1px; left: 0; z-index: 1;
  width: 200%; height: clamp(34px, 5vw, 64px);
  fill: var(--bg);
  animation: wave 30s linear infinite;
}
.contact__glow {
  position: absolute; right: -10%; bottom: -30%;
  width: 60vw; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(46, 110, 98, .45), transparent);
  animation: drift 24s var(--ease-soft) infinite alternate;
}
.section--dark .container { position: relative; z-index: 2; }
.form input, .form select, .form textarea { transition: border-color .3s, box-shadow .4s var(--ease-out), background-color .3s; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--celeste); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; box-shadow: 0 0 0 4px rgba(191, 225, 232, .45); border-color: var(--celeste); }
.form__row:focus-within label { color: #fff; }
.form label { transition: color .3s; }

/* ---------- Footer ---------- */
.site-footer__logo { transition: transform .6s var(--ease-out); }
.site-footer__logo:hover { transform: translateY(-3px) rotate(-1deg); }

@media (max-width: 760px) {
  .hero { min-height: auto; padding-top: 72px; }
  .scroll-cue { display: none; }
}

/* ---------- Reducir movimiento: se respeta la preferencia del sistema ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .line > span { transform: none; }
  .arc-draw path { stroke-dashoffset: 0; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .js .manifesto__text .w { --o: 1; }
  .marquee__track, .wave, .edge-wave, .hero__glow, .contact__glow { animation: none !important; }
}
