/* gualda.ai · sitio del grupo.
   La familia visual de la marca de Axel (verde casi negro, turquesa de Chatty,
   Fraunces + Inter Tight) llevada a un sitio editorial: oscuro donde se mira
   la cartera, claro donde se lee. Un solo acento (turquesa) y uno de estado
   (ámbar). Sin librerías: CSS y un JS de 30 líneas. */

:root {
  --ink: #06110f;
  --ink-2: #0a1c18;
  --paper: #fafdfc;
  --mint: #eef7f4;
  --mint-2: #dcefe9;
  --text: #0d1f1b;
  --muted: #4c625b;
  --rule: #d3e3dd;
  --on-dark: #e8f3ef;
  --on-dark-2: #9bb9b0;     /* 8:1 sobre --ink */
  --hair: rgba(232, 243, 239, 0.13);
  --accent: #14c8b0;        /* turquesa Chatty: sólo sobre oscuro */
  --accent-ink: #0a7a6b;    /* turquesa legible sobre claro (AA) */
  --amber: #e3b35c;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17.5px/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; line-height: 1.5; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.light :focus-visible, .mint :focus-visible, .paper :focus-visible { outline-color: var(--accent-ink); }

.skip { position: absolute; left: 12px; top: -60px; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 8px; z-index: 100; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- superficies --------------------------------------------------- */
.dark { background: var(--ink); color: var(--on-dark); }
.dark--2 { background: var(--ink-2); }
.mint { background: var(--mint); }
.paper { background: var(--paper); }

/* ---- barra superior ------------------------------------------------ */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s var(--ease), border-color .3s; border-bottom: 1px solid transparent; }
.top.is-solid { background: rgba(6, 17, 15, .82); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: var(--hair); }
.top__in { max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 30px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--on-dark-2); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--on-dark); }

/* ---- botones y enlaces --------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #04211c; font-weight: 600; font-size: 16px; line-height: 1; padding: 16px 24px; border-radius: 999px; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s, background .2s; }
.btn:hover { background: #3fe0ca; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(20, 200, 176, .28); }
.btn--small { padding: 11px 18px; font-size: 14.5px; }
.btn--ink { background: var(--ink); color: var(--on-dark); }
.btn--ink:hover { background: #12302a; box-shadow: 0 8px 28px rgba(6, 17, 15, .22); }
.link { color: var(--on-dark); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(232, 243, 239, .3); text-underline-offset: 5px; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: var(--accent); }
.link--ink { color: var(--text); text-decoration-color: rgba(13, 31, 27, .3); }
.link--ink:hover { text-decoration-color: var(--accent-ink); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }

/* ---- tipografía editorial ------------------------------------------ */
.eyebrow { font: 500 12.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.eyebrow--ink { color: var(--accent-ink); }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.018em; font-variation-settings: "opsz" 144, "SOFT" 40; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6.4vw, 5.6rem); line-height: 1.02; max-width: 15.5ch; }
h1 em, h2 em { font-style: italic; color: var(--accent); font-weight: 400; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.07; }
h3 { font: 600 20px/1.3 var(--sans); letter-spacing: -.005em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.55; color: var(--on-dark-2); max-width: 46ch; }
.lead--ink { color: var(--muted); }

/* ---- hero ---------------------------------------------------------- */
.stage {
  background:
    radial-gradient(46% 38% at 88% -4%, rgba(20, 200, 176, .17), transparent 72%),
    radial-gradient(40% 30% at 0% 38%, rgba(20, 200, 176, .06), transparent 70%),
    var(--ink);
  padding-top: clamp(112px, 15vw, 188px);
  padding-bottom: clamp(56px, 8vw, 104px);
  position: relative;
  overflow: hidden;
}
.stage::before { /* grano finísimo para que el negro no se vea plano */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.stage > * { position: relative; }
.hero { display: grid; gap: clamp(20px, 3vw, 32px); justify-items: start; padding-bottom: clamp(72px, 10vw, 136px); }
.hero .lead { max-width: 40ch; }

/* ---- órbita: las marcas del grupo, sólo decorativa ----------------- */
.orbit { position: absolute; z-index: 0; right: calc(var(--gutter) + 12px); top: clamp(120px, 14vw, 190px); width: 440px; height: 440px; display: none; pointer-events: none; }
.orbit__ring, .orbit__ring::after { position: absolute; border-radius: 50%; border: 1px solid var(--hair); inset: 0; }
.orbit__ring::after { content: ""; inset: 70px; border-style: dashed; border-color: rgba(232, 243, 239, .09); }
.orbit__core { position: absolute; inset: 0; margin: auto; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, rgba(20, 200, 176, .22), rgba(20, 200, 176, .04) 70%); border: 1px solid rgba(20, 200, 176, .35); }
.orbit__core img { display: block; width: 58px; height: auto; margin-left: -4px; }
.orbit__spin { position: absolute; inset: 0; animation: spin 110s linear infinite; }
.orbit__t { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; transform: rotate(var(--a)) translateY(-220px) rotate(calc(var(--a) * -1)); }
.orbit__t > .tile { width: 60px; height: 60px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); animation: unspin 110s linear infinite; }
.orbit__t > .tile svg { width: 60px; height: 60px; }
.orbit__t > .tile--chatty img { width: 42px; height: 42px; }
.orbit__t > .tile--img img, .orbit__t > .tile--dc img, .orbit__t > .tile--noti img { width: 60px; height: 60px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes unspin { to { transform: rotate(-360deg); } }
@media (min-width: 1180px) { .orbit { display: block; } }
@media (prefers-reduced-motion: reduce) { .orbit__spin, .orbit__t > .tile { animation: none; } }

/* ---- cartera (ledger) ---------------------------------------------- */
.ledger-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--on-dark-2); }
.ledger-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.ledger-head .mono { color: var(--on-dark-2); }
.group-h { font: 500 12.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); padding: 34px 0 14px; }
.ledger { border-top: 1px solid var(--hair); }
.ledger li { border-bottom: 1px solid var(--hair); }

.row {
  display: grid;
  grid-template-columns: 34px 56px minmax(0, 1fr) 262px 150px 26px;
  align-items: center;
  gap: 0 22px;
  padding: 26px 14px;
  margin-inline: -14px;
  border-radius: 14px;
  text-decoration: none;
  position: relative;
  transition: background .25s var(--ease);
}
.row:hover, .row:focus-visible { background: rgba(232, 243, 239, .045); }
.num { color: var(--on-dark-2); }
.main { display: grid; gap: 4px; min-width: 0; }
.name { font: 400 clamp(1.5rem, 2.4vw, 2rem)/1.1 var(--serif); letter-spacing: -.008em; font-variation-settings: "opsz" 96; color: var(--on-dark); transition: color .2s; }
.row:hover .name { color: var(--accent); }
.what { color: var(--on-dark-2); font-size: 16px; line-height: 1.5; max-width: 58ch; }
.tags { color: var(--on-dark-2); font-size: 12px; white-space: nowrap; }
.go { font-size: 22px; line-height: 1; color: var(--on-dark-2); justify-self: end; transition: transform .25s var(--ease), color .2s; }
.row:hover .go { color: var(--accent); transform: translate(3px, -3px); }

.chip { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: .02em; color: var(--on-dark); border: 1px solid var(--hair); border-radius: 999px; padding: 8px 12px 8px 12px; white-space: nowrap; }
.chip--live::before, .chip--wip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(20, 200, 176, .5); animation: pulse 2.4s infinite; }
.chip--wip::before { background: var(--amber); box-shadow: 0 0 0 0 rgba(227, 179, 92, .5); animation-name: pulse-amber; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(20, 200, 176, 0); } 100% { box-shadow: 0 0 0 0 rgba(20, 200, 176, 0); } }
@keyframes pulse-amber { 70% { box-shadow: 0 0 0 7px rgba(227, 179, 92, 0); } 100% { box-shadow: 0 0 0 0 rgba(227, 179, 92, 0); } }

/* mosaicos de cada proyecto */
.tile { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; flex: none; transition: transform .3s var(--ease); }
.row:hover .tile { transform: rotate(-4deg) scale(1.04); }
.tile svg { width: 56px; height: 56px; }
.tile--chatty { background: #fff; }
.tile--chatty img { width: 40px; height: 40px; }
.tile--dc { background: #f4f1f7; }
.tile--dc img, .tile--noti img, .tile--img img { width: 56px; height: 56px; }
.tile--gt { background: #fff; }
.tile--gt img { width: 44px; height: auto; }
.tile--utn { background: #fff; }
.tile--utn img { width: 44px; height: 44px; }

/* ---- bloques claros ------------------------------------------------ */
.block { padding-block: clamp(72px, 10vw, 140px); }
.block-head { display: grid; gap: 22px; justify-items: start; margin-bottom: clamp(44px, 6vw, 76px); }
.block-head h2 { max-width: 20ch; }
.mint, .paper { color: var(--text); }

.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.svc__head { display: grid; gap: 22px; justify-items: start; }
.svc__head h2 { max-width: 15ch; }
.svc__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--text); }
.svc__list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.svc__n { color: var(--accent-ink); font-size: .8rem; letter-spacing: .08em; padding-top: 7px; }
.svc__list h3 { font: 500 clamp(1.3rem, 2vw, 1.55rem)/1.2 var(--serif); font-variation-settings: "opsz" 48; margin: 0 0 8px; color: var(--text); }
.svc__list p { margin: 0; color: var(--muted); font-size: 16.5px; max-width: 50ch; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: r; border-top: 1px solid var(--text); }
.rule { padding: 34px 32px 8px 0; display: grid; gap: 14px; align-content: start; }
.rule + .rule { padding-left: 32px; border-left: 1px solid var(--rule); }
.rule__n { font: italic 400 clamp(3.4rem, 6vw, 5rem)/1 var(--serif); color: var(--accent-ink); letter-spacing: -.04em; font-variation-settings: "opsz" 144; }
.rule p { color: var(--muted); font-size: 16.5px; max-width: 38ch; }

/* ---- caso Julia ---------------------------------------------------- */
.case { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.case__text { display: grid; gap: 24px; justify-items: start; }
.case__text h2 { max-width: 14ch; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; width: 100%; padding-top: 10px; }
.split h3 { color: var(--accent); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .1em; font-weight: 500; }
.mono--amber { color: var(--amber) !important; }
.ticks { display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.45; color: var(--on-dark); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .38em; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.ticks--ask li::before { width: 10px; height: 10px; border: 2px solid var(--amber); border-radius: 50%; transform: none; top: .3em; }
.note { color: var(--on-dark-2); font-size: 15px; max-width: 52ch; padding-top: 6px; }

.panel { background: linear-gradient(180deg, rgba(232, 243, 239, .05), rgba(232, 243, 239, .02)); border: 1px solid var(--hair); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.panel__bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--hair); color: var(--on-dark-2); }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s infinite; }
.sched li { display: grid; grid-template-columns: 148px 1fr; gap: 18px; padding: 20px; border-bottom: 1px solid var(--hair); align-items: start; }
.when { color: var(--accent); font-size: 12.5px; }
.when small { color: var(--on-dark-2); font-size: 12px; }
.do { font-size: 16px; line-height: 1.5; color: var(--on-dark); }
.sched__self { background: rgba(20, 200, 176, .06); }
.sched__self .when { align-self: center; }
.panel__foot { padding: 14px 20px; color: var(--on-dark-2); font-size: 11.5px; }

/* ---- fundador ------------------------------------------------------ */
.founder { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
/* La foto es un recorte con borde difuminado: sobre blanco se ve sucia, sobre
   el verde de la marca el borde se funde. Marco oscuro con un resplandor turquesa. */
.founder__ph { background: radial-gradient(90% 70% at 62% 18%, rgba(20, 200, 176, .30) 0%, rgba(20, 200, 176, 0) 62%), linear-gradient(165deg, #0f2b26 0%, var(--ink-2) 55%, var(--ink) 100%); border: 1px solid rgba(20, 200, 176, .22); border-radius: 22px; overflow: hidden; aspect-ratio: 1 / .98; position: relative; box-shadow: 0 24px 60px -28px rgba(6, 17, 15, .55); }
.founder__ph img { position: absolute; inset: auto 0 0 0; width: 100%; height: auto; }
.founder__text { display: grid; gap: 20px; justify-items: start; }
.founder__text > p:not(.eyebrow):not(.lead) { color: var(--muted); max-width: 50ch; }
.founder__text .lead { max-width: 30ch; font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.3; color: var(--text); font-variation-settings: "opsz" 48; }
.facts { display: grid; grid-template-columns: repeat(3, auto); gap: 0 clamp(20px, 3vw, 44px); padding: 22px 0; border-block: 1px solid var(--rule); width: 100%; justify-content: start; }
.facts dt { color: var(--muted); font-size: 11.5px; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .08em; }
.facts dd { font: 400 clamp(1.4rem, 2.2vw, 1.8rem)/1.1 var(--serif); letter-spacing: -.02em; color: var(--text); white-space: nowrap; }

/* ---- cierre y pie -------------------------------------------------- */
.closing { background: radial-gradient(60% 90% at 100% 100%, rgba(20, 200, 176, .14), transparent 70%), var(--ink); }
.closing__in { display: grid; gap: 26px; justify-items: start; }
.closing h2 { max-width: 16ch; }
.closing .lead { max-width: 46ch; }

.foot { padding-top: 64px; overflow: hidden; border-top: 1px solid var(--hair); }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 220px)); gap: 28px 48px; }
.foot__h { color: var(--on-dark-2); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; }
.foot li + li { margin-top: 8px; }
.foot a { text-decoration: none; color: var(--on-dark); font-size: 15.5px; }
.foot a:hover { color: var(--accent); }
.foot__legal { margin-top: 48px; color: var(--on-dark-2); font-size: 14px; }
.foot__mark { font: 600 clamp(5rem, 23vw, 20rem)/.78 var(--serif); letter-spacing: -.055em; color: transparent; -webkit-text-stroke: 1px rgba(232, 243, 239, .2); text-align: center; white-space: nowrap; margin-top: 28px; padding-bottom: .2em; user-select: none; font-variation-settings: "opsz" 144; }
.foot__mark span { -webkit-text-stroke-color: rgba(20, 200, 176, .4); font-weight: 400; }

/* ---- entrada al hacer scroll (sin JS todo se ve) ------------------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .chip--live::before, .chip--wip::before, .live i { animation: none; }
  .row:hover .tile, .row:hover .go, .btn:hover { transform: none; }
}

/* ---- pantallas medianas y chicas ----------------------------------- */
@media (max-width: 1040px) {
  .row { grid-template-columns: 34px 56px minmax(0, 1fr) 148px 26px; }
  .tags { display: none; }
  .case { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; }
  .svc__head h2 { max-width: 20ch; }
  .foot__cols { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .top__in { justify-content: space-between; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .row { grid-template-columns: 56px minmax(0, 1fr) 24px; grid-template-areas: "tile main go" ". chip chip"; gap: 12px 16px; padding: 22px 10px; margin-inline: -10px; align-items: start; }
  .num, .tags { display: none; }
  .tile { grid-area: tile; }
  .main { grid-area: main; }
  .go { grid-area: go; }
  .chip { grid-area: chip; }
  .ledger-head { flex-direction: column; gap: 6px; }
  .rules { grid-template-columns: 1fr; }
  .rule { padding: 28px 0 24px; }
  .rule + .rule { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .rule p { max-width: none; }
  .split { grid-template-columns: 1fr; }
  .sched li { grid-template-columns: 1fr; gap: 6px; }
  .founder { grid-template-columns: 1fr; }
  .founder__ph { max-width: 420px; }
  .facts { grid-template-columns: 1fr; gap: 16px; }
  .foot__cols { grid-template-columns: repeat(2, 1fr); }
}
