/* Paleta: hueso / concreto / carbón */
:root {
  --bone: #eeece8;
  --bone-2: #e6e2dc;
  --paper: #f7f6f3;
  --concrete: #a39d94;
  --stone: #6b6661;
  --ink: #1a1a1a;
  --line: #d9d5ce;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(20px, 6vw, 96px);
  --max: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--stone); }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 18px;
  font-size: 13px; font-weight: 400;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 28px;
}
.rule { display: inline-block; width: 56px; height: 1px; background: var(--concrete); }
.eyebrow--light { color: var(--concrete); }
.eyebrow--light .rule { background: var(--stone); }

.heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.08;
  letter-spacing: -.01em;
}
.heading--light { color: var(--paper); }
.heading--light em { color: var(--concrete); }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 14px; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase;
  transition: background .25s, color .25s, border-color .25s;
}
.btn--dark { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn--dark:hover { background: transparent; color: var(--ink); }
.btn--ghost { border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  background: rgba(238, 236, 232, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid currentColor; font-family: var(--serif); font-size: 14px; letter-spacing: .02em;
}
.brand__name { font-size: 13px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; }
.nav__links { display: flex; align-items: center; gap: 36px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.nav__links a { position: relative; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--ink); transition: width .25s;
}
.nav__links a:hover::after { width: 100%; }
.nav__cta { padding: 9px 20px; border: 1px solid var(--ink); border-radius: 999px; }
.nav__cta:hover { background: var(--ink); color: var(--paper); }
.nav__toggle { display: none; background: none; border: 0; width: 32px; height: 22px; position: relative; cursor: pointer; }
.nav__toggle span { position: absolute; left: 0; width: 100%; height: 1px; background: var(--ink); transition: transform .3s, top .3s; }
.nav__toggle span:first-child { top: 6px; }
.nav__toggle span:last-child { top: 15px; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  min-height: calc(100vh - 70px);
  padding: 60px var(--pad) 40px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 40px 64px;
}
.display { font-family: var(--serif); line-height: .95; margin-bottom: 36px; }
.display__solid { display: block; font-weight: 400; font-size: clamp(64px, 10vw, 140px); letter-spacing: -.01em; }
.display__soft { display: block; font-weight: 400; font-size: clamp(64px, 10vw, 140px); color: var(--stone); }
.hero__hook { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; margin-bottom: 14px; }
.hero__lead { font-size: 17px; line-height: 1.6; color: var(--stone); max-width: 42ch; margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__visual { position: relative; justify-self: end; width: min(100%, 500px); aspect-ratio: 1; display: grid; place-items: center; }
.hero__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero__ring circle { fill: none; stroke: var(--stone); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: center; animation: draw 2.2s var(--ease, ease) .4s forwards; }
.hero__photo {
  width: 92%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(26, 26, 26, .35);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__foot {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px;
  padding-top: 26px; border-top: 1px solid var(--line);
  font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--stone);
}
.hero__foot .dot { color: var(--concrete); }
.hero__where { margin-left: auto; display: grid; gap: 10px; text-transform: none; letter-spacing: 0; }
.hero__where p { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.hero__tag { width: 92px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--concrete); }
.hero__where em { font-family: var(--serif); font-size: 21px; color: var(--ink); }
.hero__note { font-size: 13px; letter-spacing: .04em; color: var(--stone); }
.hero__pin { display: inline-flex; align-items: center; gap: 5px; border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.hero__pin svg { width: 15px; height: 15px; flex: none; }
.hero__pin:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Stats ---------- */
.stats {
  background: var(--ink); color: var(--paper);
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 64px var(--pad);
}
.stat { display: flex; align-items: center; gap: 24px; justify-content: center; }
.stat__ring { position: relative; width: 120px; height: 120px; flex: none; display: grid; place-items: center; }
.stat__ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.stat__track, .stat__fill { fill: none; stroke-width: 2; }
.stat__track { stroke: #3a3836; }
.stat__fill { stroke: var(--paper); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease, ease) .2s; }
.stats.is-visible .stat__fill { stroke-dashoffset: calc(1 - var(--frac)); }
.stat + .stat { border-left: 1px solid #3a3836; }
.stat__num { font-family: var(--serif); font-size: 44px; line-height: 1; }
.stat__label { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--concrete); line-height: 1.7; }

/* ---------- Secciones ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 150px) var(--pad); }

.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about__body p { margin-bottom: 20px; color: #3b3936; }
.checks { list-style: none; margin-top: 32px; border-top: 1px solid var(--line); }
.checks li {
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; letter-spacing: .06em;
  display: flex; gap: 14px; align-items: center;
}
.checks li::before { content: "★"; font-size: 12px; color: var(--stone); }

/* ---------- Galería ---------- */
.gallery { padding-top: 0; }
.gallery__grid { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.gallery__item { position: relative; overflow: hidden; border-radius: 4px; background: var(--bone-2); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.55) contrast(1.03) sepia(.08);
  transition: transform 1.2s ease, filter .8s ease;
}
.gallery__item:hover img { transform: scale(1.04); filter: saturate(.85) contrast(1.03); }
.gallery__item figcaption {
  position: absolute; left: 18px; bottom: 16px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(247, 246, 243, .9); color: var(--ink);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.gallery__ig { display: inline-block; margin-top: 28px; font-size: 15px; letter-spacing: .06em; color: var(--stone); }
.gallery__ig em { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.gallery__ig:hover em { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Servicios ---------- */
.services { border-top: 1px solid var(--line); }
.services .heading { margin-bottom: 64px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 40px 34px;
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -30px rgba(26, 26, 26, .4); }
.card__num { font-size: 13px; letter-spacing: .3em; color: var(--concrete); margin-bottom: 48px; }
.card__title { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; margin-bottom: 18px; }
.card p { font-size: 16px; color: #4a4744; margin-bottom: 26px; }
.card__list { list-style: none; margin-bottom: 34px; font-size: 14px; letter-spacing: .04em; }
.card__list li { padding: 10px 0; border-top: 1px solid var(--line); }
.card__link { margin-top: auto; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.card--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card--dark em { color: var(--concrete); }
.card--dark p { color: #c9c4bc; }
.card--dark .card__list li { border-color: #3a3836; }
.card--dark .card__num { color: var(--stone); }


/* ---------- Método ---------- */
.method { border-top: 1px solid var(--line); }
.method .heading { margin-bottom: 72px; }
.method__wrap { display: flex; flex-direction: column; align-items: center; }
.method__visual { position: relative; width: min(100%, 560px); aspect-ratio: 1; }
.cycle { width: 100%; height: 100%; overflow: visible; }
.cycle__track { fill: none; stroke: var(--line); stroke-width: 1.5; }
.cycle__fill { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: 200px 200px; }
.cycle__g { cursor: pointer; outline: none; }
.cycle__hit { fill: transparent; }
.cycle__node { fill: var(--bone); stroke: var(--stone); stroke-width: 1.5; transition: fill .5s, stroke .5s; }
.cycle__n { font-family: var(--sans); font-size: 12px; text-anchor: middle; fill: var(--stone); transition: fill .5s; pointer-events: none; }
.is-done .cycle__node { fill: var(--ink); stroke: var(--ink); }
.is-done .cycle__n { fill: var(--paper); }
.is-current .cycle__node { stroke-width: 6; stroke: rgba(26, 26, 26, .15); paint-order: stroke; }
.cycle__g:focus-visible .cycle__node { stroke: var(--ink); stroke-width: 3; }
.cycle__dot { fill: var(--ink); }
.cycle__center { position: absolute; inset: 22%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cycle__num { font-size: 12px; letter-spacing: .32em; color: var(--stone); margin-bottom: 8px; }
.cycle__name { font-family: var(--serif); font-style: italic; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; color: var(--ink); margin-bottom: 12px; }
.cycle__text { font-size: clamp(13px, 1.3vw, 15px); line-height: 1.55; color: #3b3936; max-width: 26ch; }
.cycle__keys { margin-top: 18px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--stone); text-align: center; }
.swap { animation: fadeUp .6s var(--ease, ease); }

/* ---------- Sistema ---------- */
.system { background: var(--bone-2); text-align: center; padding: clamp(90px, 12vw, 160px) var(--pad); }
.system__eyebrow { justify-content: center; }
.system__title { margin-bottom: 56px; }
.system__diagram { width: min(100%, 640px); height: auto; overflow: visible; }
.sys__edge { fill: none; stroke: var(--stone); stroke-width: 1.5; }
.sys__travel circle { fill: var(--ink); }
.sys__nl { font-family: var(--serif); font-size: 34px; fill: var(--paper); text-anchor: middle; }
.sys__tu { font-family: var(--serif); font-style: italic; font-size: 38px; fill: var(--ink); text-anchor: middle; }
.sys__app { font-family: var(--sans); font-size: 22px; letter-spacing: .2em; fill: var(--paper); text-anchor: middle; }
.sys__label { font-family: var(--sans); font-size: 15px; letter-spacing: .3em; fill: var(--stone); }
.system .sys__node { transform-box: fill-box; transform-origin: center; transform: scale(.6); opacity: 0; transition: transform .8s var(--ease, ease), opacity .8s; }
.system.is-visible .sys__node { transform: none; opacity: 1; }
.system.is-visible .sys__node:nth-of-type(2) { transition-delay: .15s; }
.system.is-visible .sys__node:nth-of-type(3) { transition-delay: .3s; }
.sys__edge { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.4s var(--ease, ease) .5s; }
.system.is-visible .sys__edge { stroke-dashoffset: 0; }

/* ---------- Contacto ---------- */
.contact { background: var(--ink); color: var(--paper); padding: clamp(90px, 12vw, 150px) var(--pad); }
.contact > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.contact__lead { margin-top: 24px; margin-bottom: 56px; color: var(--concrete); font-size: 18px; }
.contact__links { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #3a3836; }
.contact__item { padding: 32px 24px 32px 0; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid #3a3836; transition: padding-left .3s; }
.contact__item:hover { padding-left: 12px; }
.contact__label { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--stone); }
.contact__value { font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); word-break: break-word; }

/* ---------- Footer ---------- */
.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 28px var(--pad);
  background: var(--ink); color: var(--concrete);
  border-top: 1px solid #3a3836;
  font-size: 13px; letter-spacing: .1em;
}
.footer .brand { color: var(--paper); }

/* ---------- App ---------- */
.app { border-top: 1px solid var(--line); }
.app__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: end; margin-bottom: 64px; }
.app__lead { color: var(--stone); max-width: 46ch; }
.app__show { display: grid; grid-template-columns: auto minmax(0, 440px); gap: 96px; align-items: center; justify-content: center; }
.app__stage { display: flex; justify-content: center; }
.app__device { position: relative; width: 300px; aspect-ratio: 540 / 1040; border-radius: 40px; overflow: hidden; background: #e9e4dc; box-shadow: 0 40px 70px -40px rgba(26, 26, 26, .5); }
.app__device img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: translateY(24px) scale(1.02); transition: opacity .7s var(--ease, ease), transform .9s var(--ease, ease); }
.app__device img.is-active { opacity: 1; transform: none; }
.app__caption { max-width: 440px; }
.astep__num { display: block; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--stone); margin-bottom: 14px; }
.astep__title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; margin-bottom: 14px; }
.astep__text { color: #3b3936; min-height: 3.3em; }
.app__dots { display: flex; gap: 8px; margin-top: 28px; }
.app__dots button { position: relative; width: 44px; height: 18px; border: 0; background: none; cursor: pointer; padding: 0; }
.app__dots button i { position: absolute; left: 0; right: 0; top: 7px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.app__dots button i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.app__dots button.is-active i::after { transform: scaleX(var(--p, 0)); }
.app__cta { margin-top: 56px; }

/* ---------- WhatsApp flotante (celular) ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20;
  display: none; align-items: center; gap: 8px;
  height: 48px; padding: 0 18px 0 14px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 10px 30px -12px rgba(26, 26, 26, .5);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
}
.wa-float svg { width: 20px; height: 20px; }
.wa-float.is-shown { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Animación ---------- */
:root { --ease: cubic-bezier(.2, .7, .1, 1); }

/* Secciones al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Entrada del inicio: el nombre sube línea por línea, la foto se acerca suavemente */
.display__solid, .display__soft { animation: lineUp 1.2s var(--ease) both; }
.display__soft { animation-delay: .15s; }
.hero .eyebrow { animation: fadeUp 1s var(--ease) both; }
.hero__lead { animation: fadeUp 1s var(--ease) .45s both; }
.hero__actions { animation: fadeUp 1s var(--ease) .6s both; }
.hero__foot { animation: fadeIn 1.4s ease .9s both; }
.hero__visual { animation: fadeIn 1.4s ease .1s both; }
.hero__photo img { animation: settle 2.4s var(--ease) .1s both; }
@keyframes lineUp { from { opacity: 0; transform: translateY(60%); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 -20% 0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }

/* Tarjetas, fotos y pantallas aparecen una tras otra */
.stagger { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease), box-shadow .3s; transition-delay: calc(var(--i, 0) * 130ms + 150ms); }
.is-visible .stagger { opacity: 1; transform: none; }
.is-visible .card.stagger:hover { transform: translateY(-6px); transition-delay: 0s; }

/* Fotos de la galería: acercamiento lento al aparecer */
.gallery__item img { transform: scale(1.1); }
.is-visible .gallery__item img { transform: scale(1); transition: transform 2.2s var(--ease), filter .8s ease; transition-delay: calc(var(--i, 0) * 130ms + 150ms); }
.is-visible .gallery__item:hover img { transform: scale(1.04); transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .stagger { opacity: 1; transform: none; }
  .gallery__item img { transform: none; }
  .hero__ring circle, .sys__edge { stroke-dashoffset: 0; }
  .stats .stat__fill { stroke-dashoffset: calc(1 - var(--frac)); }
  .system .sys__node { transform: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .app__head { grid-template-columns: 1fr; gap: 24px; }
  .app__show { grid-template-columns: 1fr; gap: 32px; justify-items: center; text-align: center; }
  .app__caption { margin: 0 auto; }
  .app__dots { justify-content: center; }
  .app__device { width: 230px; border-radius: 30px; }
  .cards { grid-template-columns: 1fr; }
    .about__grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wa-float { display: inline-flex; }
  .gallery__grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery__item--tall { grid-row: auto; aspect-ratio: 4 / 5; }
  .gallery__item:not(.gallery__item--tall) { aspect-ratio: 16 / 10; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 24px;
    padding: 32px var(--pad) 40px;
    background: var(--bone);
    border-bottom: 1px solid var(--line);
    opacity: 0; pointer-events: none; transform: translateY(-8px);
    transition: opacity .25s, transform .25s;
  }
  .nav.is-open .nav__links { opacity: 1; pointer-events: auto; transform: none; }
  .nav.is-open .nav__toggle span:first-child { top: 10px; transform: rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { top: 10px; transform: rotate(-45deg); }

  .hero { grid-template-columns: 1fr; grid-template-rows: auto; min-height: auto; padding-top: 32px; gap: 40px; }
  .hero__visual { order: -1; justify-self: center; width: min(82%, 360px); }
  .hero__where { margin-left: 0; width: 100%; margin-top: 8px; }
  .hero__where p { gap: 4px 12px; }
  .hero__note { width: 100%; padding-left: 104px; margin-top: -2px; }

  .stats { grid-template-columns: 1fr; gap: 28px; padding: 48px var(--pad); }
  .stat { justify-content: flex-start; }
  .stat__ring { width: 96px; height: 96px; }
  .cycle__center { inset: 18%; }
  .cycle__name { font-size: 30px; margin-bottom: 8px; }
  .cycle__text { font-size: 13px; line-height: 1.5; }
  .stat__num { font-size: 36px; }
  .stat + .stat { border-left: 0; border-top: 1px solid #3a3836; padding-top: 28px; }

    .contact__links { grid-template-columns: 1fr; }
}
