/* ══════════════════════════════════════════════════════════════════════════
   MentalFusion · hoja de estilos
   La línea visual sale del feed de Instagram: cielos azules, vidrio esmerilado,
   Instrument Serif con cursiva para los titulares y Outfit para todo lo demás.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --ink: #0a1a3f;
  --ink-2: #26375a;
  --muted: #5a6a86;
  --paper: #f5f8fc;
  --paper-2: #e9f0f9;
  --line: rgba(10, 26, 63, .1);

  --brand: #2f6e90;          /* el azul del logo */
  --deep: #0a1c55;
  --royal: #1d47a8;
  --sky: #7fb2e5;
  --mist: #dce9f7;
  --pink: #e36aa4;           /* el puntito de los chips del feed */

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1220px;
  --gutter: clamp(20px, 4vw, 48px);
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;

  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--royal); color: #fff; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 12px; z-index: 100; background: #fff; padding: .6rem 1rem; border-radius: 10px; }
.skip:focus { left: 12px; }

/* ── Tipografía ─────────────────────────────────────────────────────────── */
.display, .h2, .h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.012em;
  margin: 0;
}
.display { font-size: clamp(3.2rem, 7.6vw, 7rem); line-height: .93; }
.h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1; }
.h3 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: 1.05; }
.display em, .h2 em, .h3 em { font-style: italic; }

.eyebrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.4rem;
}
.lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); font-weight: 300; color: var(--ink-2); max-width: 36em; }
.on-dark { color: #fff; }
.on-dark .lead, .on-dark p { color: rgba(255, 255, 255, .78); }
.on-dark .eyebrow { color: rgba(255, 255, 255, .7); }

/* ── Piezas ─────────────────────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .42rem .9rem .42rem .75rem;
  border-radius: 999px;
  font-size: .8rem; font-weight: 400; letter-spacing: .01em;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .24);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); flex: none; }
.chip--light { background: var(--paper-2); border-color: var(--line); color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .98rem; font-weight: 500; line-height: 1;
  cursor: pointer;
  transition: transform .35s var(--ease), background-color .3s, color .3s, box-shadow .35s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--light { background: #fff; color: var(--ink); box-shadow: 0 14px 30px -14px rgba(3, 12, 45, .55); }
.btn--light:hover { box-shadow: 0 20px 40px -16px rgba(3, 12, 45, .6); }
.btn--glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .32); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn--glass:hover { background: rgba(255, 255, 255, .2); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--royal); }
.btn--line { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--line:hover { border-color: var(--ink); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.glass {
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .26);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 30px 60px -30px rgba(3, 12, 45, .5), inset 0 1px 0 rgba(255, 255, 255, .25);
}

/* Grano de película: el mismo acabado que tienen los posts. */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  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%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .16; mix-blend-mode: overlay;
}

/* ── Encabezado ─────────────────────────────────────────────────────────── */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: 18px 0;
  color: #fff;
  transition: padding .4s var(--ease), background-color .4s, color .4s, box-shadow .4s;
}
.header.is-solid {
  padding: 10px 0;
  color: var(--ink);
  background: rgba(245, 248, 252, .9);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; min-height: 46px; }
/* Solo la palabra. El margen negativo compensa el espacio que letter-spacing
   deja después de la última letra, para que quede alineada con el resto. */
.brand span { font-size: .92rem; font-weight: 600; letter-spacing: .34em; margin-right: -.34em; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  padding: .55rem .95rem; border-radius: 999px;
  font-size: .95rem; font-weight: 400; opacity: .86;
  transition: opacity .25s, background-color .25s;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { opacity: 1; background: rgba(255, 255, 255, .14); }
.header.is-solid .nav a:not(.btn):hover, .header.is-solid .nav a[aria-current="page"] { background: rgba(10, 26, 63, .06); }
.nav .btn { margin-left: 10px; padding: .8rem 1.2rem; font-size: .92rem; }
.header.is-solid .nav .btn--light { background: var(--ink); color: #fff; box-shadow: none; }

.menu-btn {
  display: none;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid currentColor; background: transparent; cursor: pointer;
  position: relative; opacity: .9;
}
.menu-btn span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), opacity .3s; }
.menu-btn span:nth-child(1) { top: 18px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.sky {
  background:
    radial-gradient(90% 55% at 78% 108%, rgba(214, 232, 255, .9) 0%, rgba(214, 232, 255, 0) 55%),
    radial-gradient(70% 45% at 10% 12%, rgba(90, 140, 240, .35) 0%, transparent 60%),
    linear-gradient(180deg, #06123a 0%, #0c2670 28%, #1b4aac 56%, #4f86d3 80%, #a9caee 100%);
  color: #fff;
}
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 0 70px;
  overflow: hidden;
}
.hero .glow {
  position: absolute; z-index: -2; border-radius: 50%;
  filter: blur(70px); opacity: .55; pointer-events: none;
  animation: drift 26s ease-in-out infinite alternate;
}
.hero .glow--a { width: 520px; height: 520px; left: -140px; top: 18%; background: #3b6fe0; }
.hero .glow--b { width: 440px; height: 440px; right: 8%; top: -120px; background: #6c5bd6; opacity: .28; animation-duration: 32s; animation-delay: -8s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(90px, 40px, 0) scale(1.12); }
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.hero__copy .chip { margin-bottom: 1.8rem; }
.hero__copy .display { margin-bottom: 1.6rem; }
.hero__copy .lead { color: rgba(255, 255, 255, .82); margin: 0 0 2.2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin-top: 3rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: .88rem; color: rgba(255, 255, 255, .72);
}
.hero__meta span { display: inline-flex; align-items: center; gap: .55rem; }
.hero__meta svg { width: 16px; height: 16px; opacity: .8; }

.portrait { position: relative; justify-self: end; width: min(100%, 440px); }
.arch {
  aspect-ratio: 4 / 5.3;
  border-radius: 999px 999px var(--r-xl) var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 50px 90px -40px rgba(2, 8, 35, .8);
  background: #d9dde3;
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.float {
  position: absolute;
  border-radius: 20px;
  padding: 16px 18px;
  color: #fff;
  max-width: 230px;
  animation: bob 7s ease-in-out infinite;
}
.float strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.6rem; line-height: .9; margin-bottom: .35rem; }
.float small { display: block; font-size: .84rem; line-height: 1.35; color: rgba(255, 255, 255, .85); }
/* Las dos tarjetas van a la altura del torso: arriba tapaban la cara en
   pantallas de laptop, donde el arco es más angosto. */
.float--a { left: -64px; bottom: 32%; }
.float--b { right: -30px; bottom: 7%; animation-delay: -3.5s; }
.float--b strong { font-size: 1.55rem; line-height: 1.05; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 1px; height: 46px; background: rgba(255, 255, 255, .25); overflow: hidden;
}
.scroll-hint::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%;
  background: #fff; animation: fall 2.4s var(--ease) infinite;
}
@keyframes fall { to { top: 110%; } }

/* ── Logos ──────────────────────────────────────────────────────────────── */
.trust { padding: 56px 0; background: #fff; border-bottom: 1px solid var(--line); }
.trust .wrap { display: flex; align-items: center; gap: 40px; justify-content: space-between; }
.trust p { margin: 0; max-width: 15em; font-size: .95rem; color: var(--muted); line-height: 1.4; }
.trust p strong { display: block; color: var(--ink); font-weight: 500; }
.logos { display: flex; gap: 14px; }
.logos li {
  list-style: none; width: 92px; height: 92px; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); background: #fff;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.logos li:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -18px rgba(10, 26, 63, .35); }
.logos img { width: 100%; height: 100%; object-fit: cover; }
.logos { margin: 0; padding: 0; }

/* ── Secciones ──────────────────────────────────────────────────────────── */
.section { padding: clamp(90px, 12vw, 160px) 0; position: relative; }
.section__head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section__head .h2 { margin-bottom: 1.4rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lead { margin-inline: auto; }

/* Fusión */
.fusion__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.venn { width: 100%; max-width: 580px; margin-inline: auto; overflow: visible; }
.venn .c1, .venn .c2 { transition: transform 1.6s var(--ease); transform-box: fill-box; }
.venn .lens, .venn .core { transition: opacity 1.2s ease 1s; }
.venn text { font-family: var(--serif); font-size: 34px; }
.venn .core { font-family: var(--sans); font-size: 12px; letter-spacing: .3em; font-weight: 600; }
.js .venn:not(.is-in) .c1 { transform: translateX(-54px); }
.js .venn:not(.is-in) .c2 { transform: translateX(54px); }
.js .venn:not(.is-in) .lens, .js .venn:not(.is-in) .core { opacity: 0; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(56px, 7vw, 96px); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(28px, 3vw, 44px);
}
.card .h3 { margin-bottom: 1rem; }
.card p { color: var(--ink-2); margin: 0 0 1.2rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--ink-2); line-height: 1.45; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--royal); box-shadow: 0 0 0 4px rgba(29, 71, 168, .12);
}

/* Servicios */
.services { background: #fff; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc {
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.svc:hover { transform: translateY(-6px); box-shadow: 0 40px 60px -40px rgba(10, 26, 63, .45); }
.svc__img { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc:hover .svc__img img { transform: scale(1.05); }
.svc__img .chip { position: absolute; left: 16px; top: 16px; color: #fff; background: rgba(10, 26, 63, .35); }
.svc__body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.svc__num { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--brand); margin-bottom: .6rem; }
.svc .h3 { margin-bottom: .5rem; }
.svc__sub { color: var(--muted); font-size: .95rem; margin: 0 0 1.4rem; }
.svc .ticks li { font-size: .96rem; }
.svc__foot { margin-top: auto; padding-top: 1.6rem; font-size: .9rem; color: var(--ink-2); }

/* Frase */
.quote-band { padding: clamp(110px, 15vw, 200px) 0; text-align: center; overflow: hidden; }
.quote-band.sky {
  background:
    radial-gradient(60% 40% at 20% 75%, rgba(255, 255, 255, .55), transparent 70%),
    radial-gradient(50% 35% at 85% 30%, rgba(255, 255, 255, .35), transparent 70%),
    linear-gradient(180deg, #2a5cbc 0%, #5b90d8 45%, #a8c9ec 100%);
}
.quote-band blockquote { margin: 0 auto; max-width: 15em; font-family: var(--serif); font-size: clamp(2.4rem, 5.6vw, 5rem); line-height: 1; }
.quote-band blockquote em { font-style: italic; }
.quote-band p { margin: 2rem auto 0; max-width: 34em; color: rgba(255, 255, 255, .85); font-weight: 300; }

/* Conóceme */
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.about__photo { position: relative; }
.about__photo .frame { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; background: #d9dde3; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.about__photo .tag {
  position: absolute; left: 20px; bottom: 20px; right: 20px;
  padding: 16px 20px; border-radius: 18px; color: #fff;
  background: rgba(10, 26, 63, .32);
}
.about__photo .tag strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.1; }
.about__photo .tag small { font-size: .85rem; opacity: .85; }
.about__text p { color: var(--ink-2); }
.about__text .h2 { margin-bottom: 1.6rem; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin: 2.2rem 0 2.4rem; }
.stat { background: var(--paper); padding: 22px 22px 24px; }
.stat strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.3rem; line-height: 1; color: var(--royal); margin-bottom: .45rem; }
.stat span { font-size: .9rem; line-height: 1.4; color: var(--ink-2); display: block; }

/* Enfoques */
.deep {
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(90, 130, 230, .45), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(40, 90, 200, .45), transparent 70%),
    linear-gradient(180deg, #06123a 0%, #0c2468 55%, #16409e 100%);
  color: #fff; overflow: hidden;
}
.deep .rings {
  position: absolute; z-index: -1; right: -12vw; top: 50%; transform: translateY(-50%);
  width: 70vw; max-width: 900px; aspect-ratio: 1; pointer-events: none; opacity: .5;
}
.deep .rings circle { fill: none; stroke: rgba(255, 255, 255, .12); }
.deep__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.deep__intro { position: sticky; top: 130px; }
.deep__intro .h2 { margin-bottom: 1.4rem; }
.panel { border-radius: var(--r-xl); padding: clamp(10px, 1.6vw, 18px) clamp(24px, 3vw, 44px); }
.row { display: grid; grid-template-columns: 56px 1fr; gap: 8px 20px; padding: 30px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.row:last-child { border-bottom: 0; }
.row__n { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: rgba(255, 255, 255, .6); line-height: 1.2; }
.row h3 { margin: 0 0 .6rem; font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.3vw, 2.1rem); line-height: 1.05; }
.row h3 .chip { font-family: var(--sans); font-size: .72rem; vertical-align: middle; margin-left: .5rem; position: relative; top: -3px; }
.row p { margin: 0; color: rgba(255, 255, 255, .76); font-weight: 300; }
.who { margin-top: clamp(64px, 8vw, 110px); }
.who h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.4rem); margin: 0 0 1.6rem; }
.who h3 em { font-style: italic; }
.who ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.who li { padding: .75rem 1.15rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .07); font-size: .98rem; font-weight: 300; }

/* Testimonios */
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.tst { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 32px 28px; display: flex; flex-direction: column; }
.tst__mark { font-family: var(--serif); font-size: 4.4rem; line-height: .6; color: var(--sky); height: 30px; }
.tst__text { margin: 1rem 0 1.2rem; color: var(--ink-2); font-size: 1.02rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.tst.is-open .tst__text { -webkit-line-clamp: unset; display: block; }
.tst__more { align-self: flex-start; background: none; border: 0; padding: 0; cursor: pointer; color: var(--royal); font-weight: 500; font-size: .92rem; }
.tst__more:hover { text-decoration: underline; text-underline-offset: 3px; }
.tst__who { display: flex; align-items: center; gap: 12px; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.tst__who .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); font-family: var(--serif); font-size: 1.2rem; color: var(--royal); flex: none; }
.tst__who strong { display: block; font-weight: 500; font-size: .95rem; line-height: 1.2; }
.tst__who small { color: var(--muted); font-size: .84rem; }

/* Contacto */
.contact { overflow: hidden; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact__info .h2 { margin-bottom: 1.4rem; }
.contact__list { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; gap: 4px; }
.contact__list a, .contact__list div {
  display: flex; align-items: center; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.contact__list .ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); flex: none; }
.contact__list .ic svg { width: 19px; height: 19px; }
.contact__list small { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.contact__list span { font-size: 1.02rem; }
.contact__list a:hover span { text-decoration: underline; text-underline-offset: 3px; }

.form { border-radius: var(--r-xl); padding: clamp(28px, 3.4vw, 44px); color: #fff; }
.form h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; margin: 0 0 .4rem; line-height: 1.05; }
.form > p { margin: 0 0 1.8rem; color: rgba(255, 255, 255, .75); font-size: .95rem; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label, .field legend { font-size: .84rem; color: rgba(255, 255, 255, .8); padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; padding: .95rem 1.1rem; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .1); color: #fff;
  outline: none; transition: border-color .25s, background-color .25s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='white' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1rem center; padding-right: 2.6rem; }
.field select option { color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .5); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #fff; background: rgba(255, 255, 255, .16); }
fieldset.field { border: 0; margin: 0 0 18px; padding: 0; }
.seg { display: flex; gap: 8px; }
.seg label { flex: 1; cursor: pointer; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: .85rem 1rem; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-size: .95rem; transition: background-color .25s, color .25s, border-color .25s; }
.seg input:checked + span { background: #fff; color: var(--ink); border-color: #fff; }
.seg input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.form .btn { width: 100%; margin-top: 6px; padding: 1.1rem; }
.form .note { margin: 14px 0 0; font-size: .8rem; color: rgba(255, 255, 255, .6); text-align: center; }

/* Pie */
.footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 90px 0 36px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; }
.footer .brand { color: #fff; margin-bottom: 1.2rem; }
.footer p { margin: 0; font-size: .95rem; max-width: 22em; }
.footer h4 { margin: 0 0 1rem; font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(255, 255, 255, .45); font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .95rem; }
.footer a:hover { color: #fff; }
/* La misma letra del logo del encabezado (Outfit 600, mayúsculas, espaciada),
   en grande. El margen negativo compensa el espacio que letter-spacing deja
   después de la última letra, para que quede centrada en el ancho. */
.footer .footer__word {
  font-family: var(--sans); font-weight: 600; text-transform: uppercase;
  color: #fff; line-height: .9; letter-spacing: .14em; margin: 0 -.14em 40px 0;
  /* "MENTALFUSION" con este espaciado mide ~9.3 veces su tamaño de letra: se
     divide el ancho disponible entre 9.55 para llenarlo con un poco de aire
     (y sin cortarse aunque la barra de desplazamiento de Windows ocupe lugar). */
  font-size: min(calc((100vw - 2 * var(--gutter)) / 9.55), calc(var(--max) / 9.55));
  white-space: nowrap;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, .15));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }

/* Botón flotante de WhatsApp */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.2rem .85rem 1rem; border-radius: 999px;
  background: #1f9d55; color: #fff; font-weight: 500; font-size: .95rem;
  box-shadow: 0 18px 40px -14px rgba(10, 60, 30, .6);
  transform: translateY(140%); transition: transform .5s var(--ease), background-color .3s;
}
.fab svg { width: 22px; height: 22px; }
.fab.is-on { transform: none; }
.fab:hover { background: #178a49; }

/* Aparición al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.js .hero .reveal { transition-duration: 1.1s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .venn:not(.is-in) .c1, .js .venn:not(.is-in) .c2 { transform: none; }
  .js .venn:not(.is-in) .lens, .js .venn:not(.is-in) .core { opacity: 1; }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .float--a { left: -24px; }
  .float--b { right: -12px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: stretch; justify-content: center; gap: 0;
    padding: 100px var(--gutter) 40px;
    background: linear-gradient(180deg, #06123a, #16409e);
    color: #fff;
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .header { color: #fff; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav a:not(.btn) { font-family: var(--serif); font-size: 2.6rem; line-height: 1.1; padding: .7rem 0; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .14); opacity: 1; }
  .nav a:not(.btn):hover, .nav a[aria-current="page"] { background: none; }
  .nav a[aria-current="page"] { font-style: italic; }
  .nav .btn { margin: 32px 0 0; padding: 1.1rem; font-size: 1rem; }
  .header.is-solid .nav .btn--light { background: #fff; color: var(--ink); }

  .hero { padding: 120px 0 80px; }
  .hero__grid { grid-template-columns: 1fr; }
  .portrait { justify-self: center; width: min(100%, 360px); margin-top: 16px; }
  .float { max-width: 200px; }
  .float--a { top: 14%; bottom: auto; left: -110px; }
  .float--b { bottom: 8%; right: -110px; }

  .trust .wrap { flex-direction: column; align-items: flex-start; gap: 24px; }
  .marquee { max-width: none; width: 100%; }

  .fusion__grid, .about__grid, .deep__grid, .contact__grid { grid-template-columns: 1fr; }
  .deep__intro { position: static; }
  .pair { grid-template-columns: 1fr; }
  .svc-grid, .tst-grid { grid-template-columns: 1fr; max-width: 560px; }
  .about__photo { max-width: 480px; }
}

@media (max-width: 560px) {
  .brand span { font-size: .8rem; letter-spacing: .3em; margin-right: -.3em; }
  .hero__cta .btn { flex: 1 1 100%; }
  .float { padding: 12px 14px; max-width: 180px; }
  .float--a { top: auto; bottom: 27%; left: -10px; }
  .float--b { bottom: 7%; right: -10px; }
  .float strong { font-size: 2rem; }
  .float--b strong { font-size: 1.2rem; }
  .float small { font-size: .76rem; }
  .logos li { width: 72px; height: 72px; border-radius: 18px; }
  .stats { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .fab span { display: none; }
  .fab { padding: 14px; }
}

.menu-open body { overflow: hidden; }

/* ══════════════════════════════════════════════════════════════════════════
   Páginas internas
   ══════════════════════════════════════════════════════════════════════════ */
.page-hero { padding: 170px 0 clamp(90px, 10vw, 130px); overflow: hidden; }
.page-hero .display { font-size: clamp(3rem, 6.2vw, 5.8rem); margin: 0 0 1.5rem; }
.page-hero .lead { color: rgba(255, 255, 255, .82); margin: 0 0 2.2rem; }
.page-hero .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.page-hero .media { box-shadow: 0 50px 90px -40px rgba(2, 8, 35, .8); border: 1px solid rgba(255, 255, 255, .3); }
.crumbs { display: flex; gap: .55rem; margin-bottom: 1.6rem; font-size: .85rem; color: rgba(255, 255, 255, .62); }
.crumbs a:hover { color: #fff; }

/* Historia */
.story__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.story__intro { position: sticky; top: 130px; }
.story__intro .h2 { margin-bottom: 1.4rem; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--sky), var(--royal) 70%, var(--pink)); }
.timeline li { position: relative; padding: 0 0 52px 54px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 2px solid var(--royal); }
.timeline li.is-key::before { background: var(--pink); border-color: var(--pink); box-shadow: 0 0 0 7px rgba(227, 106, 164, .16); }
.timeline small { display: block; margin-bottom: .55rem; font-size: .74rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--brand); }
.timeline h3 { margin: 0 0 .7rem; font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.05; }
.timeline h3 em { font-style: italic; }
.timeline p { margin: 0; color: var(--ink-2); }

/* Bloques de dos columnas */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split + .split { margin-top: clamp(90px, 11vw, 150px); }
.split--flip > :first-child { order: 2; }
.media { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 3.3; background: #d9dde3; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 4 / 5; }
.split .h2 { margin-bottom: 1.3rem; }
.split p { color: var(--ink-2); }
.split .ticks { margin: 1.6rem 0 2.2rem; }
.split .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.split .aside { margin: -0.6rem 0 2rem; font-size: .92rem; color: var(--muted); }

.aspects { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; counter-reset: a; }
.aspects li { counter-increment: a; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 20px 22px; line-height: 1.4; }
.aspects li::before { content: "0" counter(a); display: block; margin-bottom: .55rem; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--brand); }

.callout { margin-top: clamp(64px, 8vw, 110px); border-radius: var(--r-xl); padding: clamp(40px, 6vw, 88px); overflow: hidden; }
.callout .eyebrow { color: rgba(255, 255, 255, .7); }
.callout blockquote { margin: 0; max-width: 18em; font-family: var(--serif); font-size: clamp(2rem, 3.8vw, 3.4rem); line-height: 1.04; }
.callout blockquote em { font-style: italic; }
.callout p { margin: 1.6rem 0 0; max-width: 42em; color: rgba(255, 255, 255, .84); font-weight: 300; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 30px; }
.pillar .h3 { margin-bottom: .7rem; }
.pillar p { margin: 0; color: var(--ink-2); }
.pillar__n { display: block; margin-bottom: 1.4rem; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--brand); }

.badge-card { display: flex; gap: 16px; align-items: flex-start; margin-top: 2rem; padding: 20px 22px; border-radius: var(--r-md); background: var(--paper-2); border: 1px solid var(--line); }
.badge-card svg { width: 26px; height: 26px; flex: none; color: var(--royal); margin-top: 2px; }
.badge-card p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.badge-card strong { color: var(--ink); font-weight: 500; }

.cta-band { padding: clamp(90px, 11vw, 140px) 0; text-align: center; overflow: hidden; }
.cta-band .h2 { max-width: 13em; margin: 0 auto 1.3rem; }
.cta-band .lead { margin: 0 auto 2.4rem; color: rgba(255, 255, 255, .84); }
.cta-band .hero__cta { justify-content: center; }

/* Contacto como portada */
.contact--hero { padding-top: 160px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-grid .card .h3 { margin: 0 0 .8rem; }
.info-grid .card p { margin: 0 0 1.4rem; }
.info-grid .card .btn { padding: .85rem 1.2rem; font-size: .92rem; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.hours li:last-child { border-bottom: 0; }
.hours b { font-weight: 500; color: var(--ink); }

.faq { max-width: 860px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; font-family: var(--serif); font-size: clamp(1.4rem, 2.1vw, 1.85rem); line-height: 1.15;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg); transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { color: var(--royal); }
.faq details p { margin: 0 0 28px; max-width: 46em; color: var(--ink-2); }

/* ══════════════════════════════════════════════════════════════════════════
   Respiración 4-4-6
   ══════════════════════════════════════════════════════════════════════════ */
.breath { display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff; }
.breath__stage { position: relative; width: min(72vw, 330px, 40svh); min-width: 220px; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 30px; }
.breath__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); }
.breath__ring::after { content: ""; position: absolute; inset: 22.5%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .22); }
.breath__orb {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .5), rgba(255, 255, 255, .14) 58%, rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 0 70px rgba(170, 205, 255, .5), inset 0 0 50px rgba(255, 255, 255, .28);
  transform: scale(.55);
  transition: transform 1.2s cubic-bezier(.45, .05, .55, .95), box-shadow 1.2s;
}
.breath.is-hold .breath__orb { animation: hold 2s ease-in-out infinite; }
@keyframes hold { 50% { box-shadow: 0 0 110px rgba(200, 225, 255, .75), inset 0 0 60px rgba(255, 255, 255, .4); } }
.breath__label { position: relative; z-index: 1; display: grid; gap: 2px; }
.breath__label strong { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1; }
.breath__label span { font-size: .92rem; color: rgba(255, 255, 255, .8); font-variant-numeric: tabular-nums; min-height: 1.4em; }
.breath__steps { display: flex; gap: 8px; margin-bottom: 26px; }
.breath__steps span { padding: .45rem .85rem; border-radius: 999px; font-size: .82rem; border: 1px solid rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .7); transition: background-color .4s, color .4s, border-color .4s; }
.breath__steps span.is-on { background: #fff; color: var(--ink); border-color: #fff; }
.breath .btn { min-width: 170px; }
.breath__ciclos { margin: 14px 0 0; font-size: .85rem; color: rgba(255, 255, 255, .65); min-height: 1.3em; }

.breathe__card { border-radius: var(--r-xl); padding: clamp(40px, 6vw, 90px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; overflow: hidden; }
.breathe__card .h2 { margin-bottom: 1.3rem; }
.breathe__card .lead { margin: 0 0 1.6rem; }
.breathe__card .note { margin: 0 0 2rem; font-size: .88rem; color: rgba(255, 255, 255, .62); }

.respira { min-height: 100svh; display: flex; align-items: center; padding: 110px 0 56px; text-align: center; overflow: hidden; }
.respira .wrap { display: flex; flex-direction: column; align-items: center; }
.respira .h2 { margin-bottom: .8rem; }
.respira .eyebrow { margin-bottom: 1rem; }
.respira .lead { margin: 0 auto 2rem; color: rgba(255, 255, 255, .82); max-width: 30em; }
.respira__foot { margin-top: 1.6rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.respira__nota { margin: 1.4rem auto 0; max-width: 34em; font-size: .85rem; color: rgba(255, 255, 255, .6); }

/* 404 */
.lost { min-height: 100svh; display: flex; align-items: center; padding: 130px 0 80px; text-align: center; overflow: hidden; }
.lost .display { margin: 0 auto 1.4rem; max-width: 11em; }
.lost .lead { margin: 0 auto 2.4rem; color: rgba(255, 255, 255, .82); }
.lost .hero__cta { justify-content: center; }

@media (max-width: 900px) {
  .page-hero { padding-top: 130px; }
  .page-hero .hero__grid { grid-template-columns: 1fr; }
  .page-hero .media { max-width: 520px; }
  .story__grid, .split, .breathe__card { grid-template-columns: 1fr; }
  .story__intro { position: static; }
  .split--flip > :first-child { order: 0; }
  .pillars, .info-grid { grid-template-columns: 1fr; max-width: 560px; }
  .contact--hero { padding-top: 130px; }
}
@media (max-width: 560px) {
  .timeline li { padding-left: 44px; }
  .split .btns .btn { flex: 1 1 100%; }
  .breath__steps span { padding: .4rem .65rem; font-size: .78rem; }
}

/* Teléfonos chicos: tarjetas más compactas para que no se choquen ni tapen la cara. */
@media (max-width: 400px) {
  .float { max-width: 142px; padding: 9px 11px; border-radius: 14px; }
  .float strong { font-size: 1.5rem; }
  .float--b strong { font-size: .98rem; }
  .float small { font-size: .68rem; line-height: 1.3; }
  .float--a { bottom: 30%; left: -6px; }
  .float--b { bottom: 5%; right: -6px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Movimiento
   Todo tiene un porqué: guiar la lectura (titular, filas, línea de tiempo),
   dar profundidad (retrato) o cerrar con un gesto (el pie). Nada al tocar.
   ══════════════════════════════════════════════════════════════════════════ */

/* Logos: cinta en bucle, con los bordes desvanecidos; se detiene al pasar el mouse. */
.marquee {
  display: flex; gap: 14px; overflow: hidden; flex: 1; max-width: 660px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  padding: 8px 0;
}
.marquee .logos { flex: none; animation: cinta 26s linear infinite; }
.marquee:hover .logos { animation-play-state: paused; }
@keyframes cinta { to { transform: translateX(calc(-100% - 14px)); } }

/* Titular: cada línea sube desde detrás de una máscara. */
.lines .line { display: block; overflow: hidden; padding: 0 .12em .1em 0; margin-bottom: -.1em; }
.lines .line > * { display: inline-block; }
.js .lines .line > * { transform: translateY(108%); transition: transform 1.15s var(--ease); }
.js .lines.is-in .line > * { transform: none; }
.js .lines .line:nth-child(2) > * { transition-delay: .12s; }
.js .lines .line:nth-child(3) > * { transition-delay: .24s; }

/* Línea de tiempo: se dibuja con el scroll; cada punto aparece al llegar. */
.timeline::before { transform-origin: top; transform: scaleY(var(--p, 1)); }
.js .timeline li::before { transform: scale(0); transition: transform .7s var(--ease) .2s; }
.js .timeline li.is-in::before { transform: scale(1); }

/* Pie: las letras de MentalFusion suben una por una. El degradado va en cada
   letra (es vertical, así que se ve igual que sobre la palabra entera). */
.footer .footer__word.letras { background: none; -webkit-background-clip: initial; background-clip: initial; }
.footer__word .ch {
  display: inline-block;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, .15));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.js .footer__word.letras .ch { transform: translateY(60%); opacity: 0; transition: transform 1s var(--ease), opacity 1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.js .footer__word.letras.is-in .ch { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; flex-wrap: wrap; }
  .marquee .logos { animation: none; flex-wrap: wrap; }
  .marquee .logos[aria-hidden] { display: none; }
  .js .lines .line > * { transform: none; }
  .js .timeline li::before { transform: none; }
  .js .footer__word.letras .ch { transform: none; opacity: 1; }
}

/* Bloque de texto solo (donde antes iba una foto al lado): ancho de lectura. */
.prosa { max-width: 760px; }
.prosa .h2 { margin-bottom: 1.3rem; }
.prosa p { color: var(--ink-2); }
.prosa .btns { display: flex; flex-wrap: wrap; gap: 12px; }
