/* =============================================================
   1. Tokens
   Layout: editorial cálido. Columna centrada de 1200px, foto en arco,
   método en bento asimétrico, una franja de profesiones, CTA final con luz suave.
   ============================================================= */
:root {
  --bg: #fbf6f2;
  --bg-2: #f2e6df;
  --paper: #ffffff;
  --ink: #2a1d22;
  --ink-mute: #6f5f65;
  --accent: #9e3557;
  --accent-soft: rgba(158, 53, 87, 0.12);
  --sage: #56705f;
  --on-accent: #ffffff;
  --line: rgba(42, 29, 34, 0.12);
  --nav-solid: rgba(251, 246, 242, 0.92);
  --halo: rgba(158, 53, 87, 0.22);
  --todo: #9e3557;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --radius: 24px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1316; --bg-2: #261b1f; --paper: #2b2025; --ink: #f6ece8; --ink-mute: #bcaab0;
    --accent: #e8829f; --accent-soft: rgba(232, 130, 159, 0.14); --sage: #9bbaa5; --on-accent: #1b1316;
    --line: rgba(246, 236, 232, 0.14); --nav-solid: rgba(27, 19, 22, 0.9); --halo: rgba(232, 130, 159, 0.2);
    --todo: #f0a3b9; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1316; --bg-2: #261b1f; --paper: #2b2025; --ink: #f6ece8; --ink-mute: #bcaab0;
  --accent: #e8829f; --accent-soft: rgba(232, 130, 159, 0.14); --sage: #9bbaa5; --on-accent: #1b1316;
  --line: rgba(246, 236, 232, 0.14); --nav-solid: rgba(27, 19, 22, 0.9); --halo: rgba(232, 130, 159, 0.2);
  --todo: #f0a3b9; color-scheme: dark;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-inline: var(--gutter);
  padding-block: 0;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; font-weight: 400; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.wrap { max-width: 1200px; margin-inline: auto; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg); border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
[data-todo] { color: var(--todo); outline: 1px dashed var(--todo); outline-offset: 2px; border-radius: 4px; }

/* =============================================================
   4. Typography
   ============================================================= */
h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 120, "SOFT" 100;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 48, "SOFT" 100;
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.2;
}
h1 em, h2 em, .nav-brand em { font-style: italic; color: var(--accent); }
.kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sage);
}

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 50px; padding: .8rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .97rem;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s, color .25s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px var(--halo); }
.btn-ghost { border: 1px solid var(--line); background: var(--paper); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }

.ph {
  position: relative; display: grid; place-items: end center;
  width: 100%; max-width: 100%;
  background: var(--bg-2);
  border: 1px dashed color-mix(in srgb, var(--ink-mute) 45%, transparent);
  padding: 18px;
}
.ph-label { font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-mute); }

/* =============================================================
   6. Sections
   ============================================================= */
/* Nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.nav.is-scrolled { background: var(--nav-solid); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 16px; }
.nav-brand { font-family: var(--serif); font-size: 1.35rem; font-variation-settings: "opsz" 60, "SOFT" 100; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: .93rem; font-weight: 500; }
.nav-links a:not(.nav-cta) { position: relative; padding-block: 4px; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta { padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; }
.nav-cta:hover { background: var(--accent); color: var(--on-accent); }

/* Hero */
.hero { padding-block: clamp(24px, 5vw, 64px) clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-weight: 380;
  font-size: clamp(2.7rem, 6.6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.hero-sub { font-size: 1.12rem; color: var(--ink-mute); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { font-size: .9rem; color: var(--ink-mute); padding-top: 18px; border-top: 1px solid var(--line); max-width: 52ch; }
.hero-proof strong { color: var(--ink); }
.hero-photo { max-width: 460px; justify-self: center; width: 100%; }
.ph-hero { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); }
.hero-img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: 999px 999px var(--radius) var(--radius); filter: saturate(1.05); }

/* Manifesto */
.manifesto { padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); }
.manifesto-grid { display: grid; gap: 20px; }
.manifesto-tag { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--accent); }
.manifesto-body { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.manifesto-body p { font-size: 1.12rem; color: var(--ink-mute); max-width: 62ch; }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 112px); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.section-head-row { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-head-row > div { display: flex; flex-direction: column; gap: 14px; }

/* Bento */
.bento { display: grid; gap: 16px; }
.card {
  --rx: 0deg; --ry: 0deg;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .55s var(--ease-soft), box-shadow .45s var(--ease-out), border-color .3s;
  min-width: 0;
}
.card:hover { box-shadow: 0 24px 48px -24px var(--halo); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.card p { color: var(--ink-mute); }
.step {
  align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 4px 12px; border-radius: 999px;
}
.card-a { background: var(--ink); color: var(--bg); border-color: transparent; }
.card-a p { color: color-mix(in srgb, var(--bg) 78%, transparent); }
.card-a .step { background: color-mix(in srgb, var(--bg) 14%, transparent); color: var(--bg); }
.card-a h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

/* Marquee */
.marquee {
  margin-inline: calc(var(--gutter) * -1);
  overflow: hidden; background: var(--sage); color: var(--paper);
  padding-block: 18px;
}
.marquee-track {
  display: flex; width: max-content; gap: 40px;
  font-family: var(--serif); font-style: italic; font-size: 1.35rem;
  animation: marquee 40s linear infinite;
}
.marquee-track span::after { content: "✦"; margin-left: 40px; font-style: normal; font-size: .8em; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Offers */
.offers {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 82%);
  gap: 16px; overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
.offer {
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg-2); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); min-width: 0;
}
.offer p:not(.offer-tag) { color: var(--ink-mute); }
.offer-tag { align-self: flex-start; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sage); }
.offer-list { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: .93rem; }
.offer-list li { position: relative; padding-left: 22px; }
.offer-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.offer-main { background: var(--paper); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.offer-link { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--accent); align-self: flex-start; }
.offer-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* About */
.about { padding-block: clamp(56px, 8vw, 112px); background: var(--bg-2); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.about-grid { display: grid; gap: 40px; align-items: center; }
.about-photo { max-width: 440px; width: 100%; justify-self: center; }
.about-img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); transform: rotate(-1.5deg); box-shadow: 0 24px 48px -28px var(--halo); }
.ph-about { aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--bg); }
.about-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.about-copy p { max-width: 60ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.stats dt { font-family: var(--serif); font-size: 2rem; line-height: 1.1; justify-self: start; font-variant-numeric: tabular-nums; }
.stats div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.stats dd { margin: 0; font-size: .86rem; color: var(--ink-mute); line-height: 1.35; }

/* Posts */
.posts { display: grid; gap: 16px; grid-auto-flow: column; grid-auto-columns: minmax(220px, 70%); overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.post { scroll-snap-align: start; }
.post { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ph-post { aspect-ratio: 4 / 5; border-radius: var(--radius); margin-bottom: 6px; transition: transform .5s var(--ease-out); }
.post:hover .ph-post { transform: scale(1.02); }
.post p { color: var(--ink-mute); }

/* CTA */
@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.cta { padding-block: clamp(56px, 8vw, 112px); }
.cta-grid {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 32px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 32px;
  padding: clamp(28px, 5vw, 64px);
}
.cta-grid::before {
  content: ""; position: absolute; inset: -20%; z-index: -1;
  background:
    radial-gradient(40% 50% at 15% 20%, var(--accent-soft), transparent 70%),
    conic-gradient(from var(--mesh-angle) at 80% 80%, var(--halo), transparent 30%, color-mix(in srgb, var(--sage) 22%, transparent), transparent 70%, var(--halo));
  filter: blur(60px);
  opacity: .8;
  animation: meshShift 26s linear infinite;
}
@keyframes meshShift { to { --mesh-angle: 360deg; } }
.cta-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cta-copy p { color: var(--ink-mute); max-width: 52ch; }

/* Form */
.form {
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
  background: var(--bg); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; }
.opt { font-weight: 400; color: var(--ink-mute); }
.field input {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; min-height: 50px;
  transition: border-color .2s;
}
.field input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[aria-invalid="true"] { border-color: var(--accent); }
.form-error { color: var(--accent); font-size: .9rem; font-weight: 600; }
.form-ok { font-weight: 600; color: var(--sage); }
.micro { font-size: .82rem; color: var(--ink-mute); text-align: center; }

/* Footer */
.footer { padding-block: clamp(48px, 7vw, 88px) 32px; border-top: 1px solid var(--line); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; }
.footer-title { font-size: clamp(2.8rem, 8vw, 5.5rem); font-style: italic; }
.footer-mail { font-size: 1.15rem; margin-top: 8px; user-select: all; overflow-wrap: anywhere; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; }
.footer-links a:hover { color: var(--accent); }
.copy { margin-top: 40px; font-size: .82rem; color: var(--ink-mute); }

/* =============================================================
   7. Effects — cursor
   ============================================================= */
.cursor { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; display: none; opacity: 0; transition: opacity .25s var(--ease-out); }
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform; border-radius: 50%; }
.cursor-dot { width: 6px; height: 6px; margin: -3px; background: var(--accent); }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px; border: 1px solid var(--accent);
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .35s;
}
.cursor.is-interactive .cursor-ring { width: 54px; height: 54px; margin: -27px; background: var(--accent-soft); }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 720px) {
  .manifesto-grid { grid-template-columns: 200px 1fr; gap: 40px; }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .card-a { grid-column: span 4; grid-row: span 2; justify-content: flex-end; min-height: 340px; }
  .card-b, .card-c { grid-column: span 2; }
  .card-d { grid-column: span 6; }
  .posts { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; gap: 24px; }
  .stats dt { font-size: 2.4rem; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.2fr .8fr; gap: 56px; }
  .hero-photo { justify-self: end; }
  .offers { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .about-grid { grid-template-columns: .85fr 1.15fr; gap: 72px; }
  .cta-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .bento { grid-template-columns: repeat(12, 1fr); }
  .card-a { grid-column: span 6; }
  .card-b, .card-c { grid-column: span 3; }
  .card-d { grid-column: 7 / span 6; }
}

/* =============================================================
   9. Reduced motion — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation-duration: 90s; }
}
