/* ---------------------------------------------------------
   Reescríbete — sistema de diseño
   Navy Tinta / Violeta Profundo / Violeta Señal / Lavanda Niebla
--------------------------------------------------------- */

:root {
  --navy: #150E2B;
  --violet-deep: #2C1760;
  --violet: #703CE4;
  --violet-soft: #8A5CF0;
  --lavender: #F4E7F1;
  --smoke: #B7A6D9;
  --paper: #FBF8FC;
  --ink: #1D1730;

  --font-display: 'Playfair Display SC', 'Georgia', serif;
  --font-body: 'Ubuntu', -apple-system, sans-serif;
  --font-script: 'Caveat', cursive;

  --wrap: 1120px;
  --gap: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 18px;
  --ease: cubic-bezier(.65, 0, .35, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: .01em;
}

h2 { font-size: clamp(1.8rem, 4.4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }

p { margin: 0 0 1.1em; }

.wrap {
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

/* ---------------- sacred geometry (hilo de scroll) ---------------- */

.sacred-geometry {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}
.sacred-geometry svg {
  width: min(74vmin, 640px);
  height: min(74vmin, 640px);
  opacity: 0.16;
}
.sacred-geometry path {
  fill: none;
  stroke: var(--violet);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
@media (prefers-reduced-motion: reduce) {
  .sacred-geometry path { stroke-dashoffset: 0 !important; }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--violet);
  color: #fff;
  padding: .6em 1em;
  z-index: 200;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}

/* ---------------- header ---------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: clamp(.9rem, 2vw, 1.4rem) 0;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(21, 14, 43, 0.72);
  backdrop-filter: blur(10px);
  padding: .7rem 0;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: .06em;
  color: #fff;
}

/* ---------------- buttons & ctas ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 1.05em 1.9em;
  border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(112, 60, 228, 0.55);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -6px rgba(112, 60, 228, 0.65);
  background: var(--violet-soft);
}
.btn--ghost {
  border: 1.5px solid rgba(255,255,255,.5);
  color: #fff;
  padding: .6em 1.3em;
  font-size: .72rem;
}
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--small { padding: .6em 1.3em; }

.cta-cluster {
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
}
.cta-cluster__secondary {
  margin-top: 1.1em;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4em;
  font-size: .92rem;
}
.cta-cluster__secondary a {
  border-bottom: 1px solid currentColor;
  padding-bottom: .1em;
  opacity: .85;
}
.cta-cluster__secondary a:hover { opacity: 1; }
.cta-cluster__secondary--dark a { color: var(--smoke); }
.cta-cluster__secondary a { color: var(--violet-deep); }

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  background: radial-gradient(120% 90% at 20% 0%, var(--violet-deep) 0%, var(--navy) 60%);
  color: #fff;
  padding: clamp(7rem, 20vw, 10rem) 0 clamp(4rem, 10vw, 6rem);
  overflow: hidden;
}
.hero__inner { position: relative; max-width: 760px; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--violet-soft);
  margin: 0 0 .9em;
}
.section--light .eyebrow { color: var(--violet); }

.hero__title {
  font-size: clamp(2.3rem, 6.6vw, 4.1rem);
  margin-bottom: .7em;
}
.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--smoke);
  max-width: 42ch;
}

/* ---------------- rewrite (signature element) ---------------- */

.rewrite {
  display: inline-flex;
  align-items: baseline;
  gap: .35em;
  white-space: nowrap;
}
.rewrite__old {
  position: relative;
  opacity: .55;
}
.rewrite__strike {
  position: absolute;
  inset: -6% -8%;
  width: 116%;
  height: 112%;
  overflow: visible;
}
.rewrite__strike path {
  fill: none;
  stroke: var(--violet-soft);
  stroke-width: 3.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  transition: stroke-dashoffset .7s var(--ease) .15s;
}
.section--light .rewrite__strike path { stroke: var(--violet); }
.rewrite__new {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 1.2em;
  color: var(--violet-soft);
  transform: rotate(-4deg) translateY(6px);
  opacity: 0;
  transition: opacity .5s ease .4s, transform .5s var(--ease) .4s;
}
.section--light .rewrite__new { color: var(--violet); }
.in-view .rewrite__strike path { stroke-dashoffset: 0; }
.in-view .rewrite__new { opacity: 1; transform: rotate(-4deg) translateY(0); }

/* ---------------- notes ---------------- */

.note {
  display: inline-block;
  background: var(--paper);
  color: var(--ink);
  padding: .9em 1.4em;
  border-radius: 4px;
  font-size: .95rem;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.4);
  transform: rotate(-1.4deg);
  max-width: 30em;
}
.note strong { color: var(--violet); }
.note--pin { margin-top: 1.6em; }
.note--pin::before {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  background: var(--violet);
  border-radius: 50%;
  top: -5px; left: 1.4em;
  box-shadow: 0 0 0 3px rgba(112,60,228,.25);
}
.note--pin { position: relative; }
.note--stamp {
  background: transparent;
  border: 1.5px dashed rgba(255,255,255,.45);
  color: #fff;
  transform: rotate(1.2deg);
  box-shadow: none;
  margin-bottom: 2.2em;
}
.note--stamp strong { color: var(--violet-soft); }

/* ---------------- sections ---------------- */

.section { padding: clamp(4.5rem, 12vw, 7rem) 0; }
.section--light { background: var(--paper); color: var(--ink); }
.section--dark { background: var(--navy); color: var(--lavender); position: relative; overflow: hidden; }
.section--dark h2, .section--dark h3 { color: #fff; }

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 58ch;
  color: var(--violet-deep);
}
.lead--dark { color: var(--smoke); }

.closing-line {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--violet);
  margin-top: 1.6em;
  max-width: 30ch;
  transform: rotate(-1deg);
}

/* margin notes */

.margin-notes {
  margin: clamp(2.5rem, 6vw, 3.5rem) 0 2rem;
  display: grid;
  gap: 1.6rem;
}
.margin-note {
  position: relative;
  max-width: 46ch;
  padding: 1.4rem 1.6rem;
  background: var(--lavender);
  border-radius: var(--radius);
}
.margin-note::before {
  content: '';
  position: absolute;
  top: 0;
  right: 1.3rem;
  width: 22px;
  height: 12px;
  background: var(--paper);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.margin-note p:last-child { margin-bottom: 0; color: var(--violet-deep); }
.margin-note__title {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--violet);
  margin-bottom: .3em;
}
.margin-note--a { transform: rotate(-.6deg); justify-self: start; }
.margin-note--b { transform: rotate(.5deg); justify-self: end; }
.margin-note--c { transform: rotate(-.4deg); justify-self: start; }

/* chapters (método) */

.chapters {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  display: grid;
  gap: 2.4rem;
}
.chapter {
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.14);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2.05em,
    rgba(255,255,255,.05) 2.05em,
    rgba(255,255,255,.05) calc(2.05em + 1px)
  );
}
.chapter__number {
  font-family: var(--font-script);
  color: var(--violet-soft);
  font-size: 1.4rem;
  margin-bottom: .2em;
}
.chapter p:last-child { color: var(--smoke); max-width: 56ch; }

/* sobre andrea */

.andrea__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
.andrea__portrait {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 380px;
}
.andrea__frame {
  position: relative;
  z-index: 1;
  height: 100%;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--violet-deep), var(--navy));
  overflow: hidden;
  box-shadow: 0 24px 50px -20px rgba(44,23,96,.5);
}
.andrea__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.andrea__handle {
  display: inline-block;
  margin-top: 1rem;
  font-size: .85rem;
  color: var(--violet);
  border-bottom: 1px solid transparent;
}
.andrea__handle:hover { border-color: var(--violet); }
.andrea__copy p { max-width: 52ch; }
.pull-quote {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--violet);
  margin-top: 1.4em;
  transform: rotate(-1deg);
  max-width: 24ch;
}

/* offer points */

.offer-points {
  margin: clamp(2rem, 5vw, 3rem) 0 2.5rem;
  display: grid;
  gap: 1.8rem;
}
.offer-point {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.offer-point__mark {
  flex: none;
  width: 30px; height: 30px;
  margin-top: .2em;
}
.offer-point__mark svg { width: 100%; height: 100%; }
.offer-point__mark path {
  fill: none;
  stroke: var(--violet-soft);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.offer-point__title {
  font-family: var(--font-script);
  color: var(--violet-soft);
  font-size: 1.35rem;
  margin-bottom: .2em;
}
.offer-point p:last-child { color: var(--smoke); max-width: 52ch; }

/* testimonios */

.testimonials {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  display: grid;
  gap: 1.6rem;
}
.testimonial {
  background: var(--lavender);
  border-radius: var(--radius);
  padding: 1.8rem 1.9rem;
  position: relative;
  margin: 0;
}
.testimonial p {
  color: var(--violet-deep);
  font-size: 1rem;
}
.testimonial cite {
  font-family: var(--font-script);
  font-style: normal;
  font-size: 1.3rem;
  color: var(--violet);
}
.testimonial::before {
  content: '';
  position: absolute;
  top: 0; right: 1.6rem;
  width: 26px; height: 14px;
  background: var(--paper);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* cta final */

.section--final { text-align: left; }
.section--final h2 { max-width: 20ch; }
.signoff {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--violet-soft);
  margin-top: 2rem;
}

/* footer */

.site-footer {
  background: var(--navy);
  color: var(--smoke);
  padding: clamp(2.5rem, 6vw, 3.5rem) 0;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.wordmark--footer { color: #fff; margin: 0; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 1.8rem;
  font-size: .88rem;
}
.site-footer__links a:hover { color: #fff; }
.site-footer__copy { font-size: .78rem; opacity: .6; margin: 0; }

/* whatsapp float */

.whatsapp-float {
  position: fixed;
  right: clamp(1rem, 4vw, 1.6rem);
  bottom: clamp(1rem, 4vw, 1.6rem);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px -8px rgba(112,60,228,.6);
  z-index: 90;
  transition: transform .25s var(--ease);
}
.whatsapp-float svg { width: 26px; height: 26px; fill: #fff; }
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------------- reveal on scroll ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .rewrite__new, .rewrite__strike path {
    transition: none !important;
  }
}

/* ---------------- breakpoints ---------------- */

@media (min-width: 640px) {
  .margin-notes { grid-template-columns: repeat(2, 1fr); }
  .margin-note--c { grid-column: 1 / -1; justify-self: center; }
  .chapters { grid-template-columns: repeat(3, 1fr); }
  .testimonials { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 860px) {
  .andrea__grid { grid-template-columns: 340px 1fr; }
}

@media (min-width: 900px) {
  .margin-note--c { grid-column: auto; justify-self: center; }
  .margin-notes { grid-template-columns: repeat(3, 1fr); }
}
