.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/IconoMHB.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0.2;
}

/* Martha Salamanca — hoja de estilos. Paleta y tipografía en :root */
:root {
  --cream: #FCFAF7;
  --ink: #1F1B1B;
  --ink-2: #4A4444;
  --lilac: #E6DCF2;
  --rose: #F9D9E5;
  --sky: #D9E6F7;
  --mint: #DDF2E8;
  --peach: #FBE3D3;
  --pink-line: #FF66C4;   /* solo decoración y contornos */
  --pink-fill: #FF83D0;   /* fondo de botones, siempre con texto oscuro */
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --header-h: 5rem;
  --radius: 1.75rem;
  --ease: cubic-bezier(.22,.8,.26,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.1875rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}
@media (min-width: 64em) { body { font-size: 1.25rem; } }

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: .5rem; }
main:focus { outline: none; }

.skip-link {
  position: fixed; top: .75rem; left: .75rem; z-index: 100;
  background: var(--ink); color: var(--cream); font-weight: 700;
  padding: .9rem 1.4rem; border-radius: 999px; text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; outline-color: var(--pink-line); }

/* ---------- Tipografía ---------- */
.caps {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}
.script {
  font-family: var(--script); font-weight: 400; text-transform: none; letter-spacing: 0;
  font-size: 1.45em; line-height: 1; display: inline-block; padding: 0 .08em;
  max-width: 100%; overflow-wrap: anywhere;
}
h2 {
  font-size: clamp(1.875rem, 1.3rem + 3vw, 3.125rem); line-height: 1.15; text-wrap: balance;
}
h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .05em; font-size: 1.6rem; line-height: 1.2; font-weight: 700; }
.eyebrow {
  max-width: 100%; min-width: 0; overflow-wrap: anywhere;
  font-size: .9375rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 1rem; display: inline-flex; align-items: center; gap: .8rem; flex-wrap: wrap;
}
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: var(--pink-line); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3.5rem; padding: .8rem 1.75rem; border-radius: 999px;
  font-family: var(--body); font-size: 1.0625rem; font-weight: 700; line-height: 1.3;
  text-decoration: none; color: var(--ink); text-align: center;
  border: 2px solid var(--pink-line);
  max-width: 100%; min-width: 0; overflow-wrap: anywhere; flex-wrap: wrap;
  transition: transform .35s var(--ease), background-color .3s, box-shadow .35s var(--ease);
}
.btn-fill { background: var(--pink-fill); border-color: var(--pink-fill); }
.btn-line { background: transparent; }
.btn-lg { min-height: 3.75rem; padding: 1rem 2.25rem; font-size: 1.125rem; }
.btn:hover { box-shadow: 0 .9rem 1.8rem -1.1rem rgba(255,102,196,.75); }
.btn-line:hover { background: var(--rose); }
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-2px); }
  .btn span[aria-hidden] { transition: transform .35s var(--ease); }
  .btn:hover span[aria-hidden] { transform: translateX(4px); }
}

/* ---------- Cabecera y navegación ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(252,250,247,.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lilac);
}
.header-inner {
  max-width: 78rem; margin: 0 auto; min-height: 5rem;
  padding: .5rem clamp(1rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; min-height: 3.25rem; }
.brand-mark {
  width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 1.5px solid var(--pink-line);
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: .04em;
}
.brand-name { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 1.15rem; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 3.25rem; padding: .5rem 1rem;
  font-size: 1rem; font-weight: 600; text-decoration: none; border-radius: 999px; position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .7rem; height: 1.5px;
  background: var(--pink-line); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current="true"]::after { transform: scaleX(1); }

.menu-toggle {
  display: none; align-items: center; gap: .7rem; min-height: 3.5rem; min-width: 3.5rem;
  padding: .5rem 1.2rem; border-radius: 999px; border: 2px solid var(--pink-line);
  background: var(--cream); color: var(--ink); font: 700 1.0625rem var(--body); cursor: pointer;
}
.burger { display: grid; gap: 5px; width: 1.6rem; }
.burger span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Móvil con JS: menú desplegable. Sin JS la navegación queda visible y en flujo. */
@media (max-width: 63.99em) {
  .no-js .site-header { position: static; }
  .no-js .site-nav { width: 100%; }
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--lilac);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: 1rem clamp(1rem, 4vw, 2.5rem) 2rem;
    display: none;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav a { width: 100%; font-size: 1.25rem; min-height: 3.5rem; border-bottom: 1px solid var(--lilac); border-radius: 0; }
  .js .site-nav a::after { display: none; }
}
@media (max-width: 26em) { .brand-name { display: none; } }

/* ---------- Estructura ---------- */
main { display: block; padding-top: var(--header-h); }
.no-js main { padding-top: 0; }
@media (min-width: 64em) { .no-js main { padding-top: var(--header-h); } }
.wrap { max-width: 78rem; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section-head { text-align: center; max-width: 52rem; margin: 0 auto clamp(2.75rem, 6vw, 4.5rem); }
.section-head.left { text-align: left; margin-left: 0; }

.divider { display: flex; justify-content: center; padding: 0 1.5rem; }
.divider span {
  position: relative; width: min(28rem, 80%); height: 1px;
  background: linear-gradient(90deg, transparent, var(--lilac) 20%, var(--rose) 50%, var(--sky) 80%, transparent);
}
.divider span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: .8rem; height: .8rem;
  border: 1.5px solid var(--pink-line); border-radius: 50%; background: var(--cream);
  transform: translate(-50%, -50%);
}

.tone-lilac { background: var(--lilac); }
.tone-rose { background: var(--rose); }
.tone-sky { background: var(--sky); }
.tone-mint { background: var(--mint); }
.tone-peach { background: var(--peach); }
/* Sobre pasteles, todo el texto usa el tono primario para asegurar 7:1 */
[class*="tone-"], [class*="tone-"] .eyebrow, [class*="tone-"] .meta { color: var(--ink); }

/* ---------- Inicio ---------- */
.hero {
  position: relative; overflow: hidden; min-height: calc(100dvh - var(--header-h));
  display: grid; place-items: center; padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 5vw, 3rem);
  background:
    radial-gradient(60% 50% at 15% 20%, rgba(230,220,242,.7), transparent 70%),
    radial-gradient(50% 45% at 88% 78%, rgba(249,217,229,.65), transparent 70%),
    radial-gradient(40% 40% at 80% 12%, rgba(217,230,247,.6), transparent 70%),
    var(--cream);
}
.orbits {
  position: absolute; width: min(64rem, 150vw); left: 50%; top: 50%;
  transform: translate(-50%, -50%); fill: none; stroke-width: 1.5; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .orbits { animation: drift 90s linear infinite; }
  @keyframes drift { to { transform: translate(-50%, -50%) rotate(360deg); } }
}
.hero-inner { position: relative; text-align: center; max-width: 54rem; width: 100%; min-width: 0; }
.hero-title { margin: .5rem 0 1.75rem; line-height: 1; }
.hero-title .caps { display: block; font-size: clamp(2.75rem, 1.5rem + 6vw, 6.25rem); letter-spacing: .18em; padding-left: .18em; }
.hero-title .script { display: block; font-size: clamp(4rem, 2rem + 9vw, 9.5rem); margin-top: -.08em; line-height: 1.15; }
.lead { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); color: var(--ink-2); max-width: 44rem; margin: 0 auto 2.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- Interactivos ---------- */
.tools, .books, .socials { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.tools > *, .books > *, .socials > *, .feature > *, .about-grid > * { min-width: 0; }
@media (min-width: 48em) { .tools { grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr)); } }
.tool {
  position: relative; border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex; flex-direction: column; align-items: flex-start; overflow: hidden;
  transition: transform .45s var(--ease);
}
.tool > *, .social > *, .benefits > * { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.tool::before {
  content: ""; position: absolute; width: 16rem; height: 16rem; right: -6rem; top: -7rem;
  border: 1px solid var(--pink-line); border-radius: 50%; opacity: .5; pointer-events: none;
}
.tool:nth-child(even)::before { right: auto; left: -8rem; top: auto; bottom: -9rem; }
.tool-num { font-family: var(--display); font-size: 1.15rem; font-weight: 700; letter-spacing: .1em; margin-bottom: .75rem; }
.tool h3 { margin-bottom: .9rem; font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); }
.tool p { flex: 0 0 auto; }
.meta {
  font-size: .9375rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border-top: 1px solid rgba(31,27,27,.25); padding-top: .9rem; margin: auto 0 1.5rem; width: 100%;
}
.tool .meta { margin-top: auto; }
.tool > p:not(.meta) { margin-bottom: 1.75rem; }
.badge {
  display: inline-block; width: auto; border: 1.5px solid var(--pink-line); border-radius: 999px;
  padding: .3rem 1rem; font-size: .9375rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: var(--cream); color: var(--ink);
}
.tool .badge.meta { width: auto; border-top: 1.5px solid var(--pink-line); padding-top: .3rem; }
@media (prefers-reduced-motion: no-preference) { .tool:hover { transform: translateY(-4px); } }

/* ---------- Sobre mí ---------- */
.about { background: linear-gradient(180deg, transparent, rgba(221,242,232,.45) 50%, transparent); }
.about-grid { display: grid; gap: clamp(3rem, 7vw, 6rem); align-items: center; }
@media (min-width: 60em) { .about-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr)); } }
.portrait { display: flex; justify-content: center; }
.monogram {
  position: relative; width: min(24rem, 78vw); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, var(--rose), var(--lilac) 55%, var(--sky));
}
.monogram > img { position: relative; z-index: 1; width: 88%; height: 88%; object-fit: cover; border-radius: 50%; }
.monogram .ring { position: absolute; inset: -9%; width: 118%; height: 118%; fill: none; }
@media (prefers-reduced-motion: no-preference) {
  .monogram .ring { animation: spin 60s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
}
.prose { color: var(--ink-2); max-width: 40rem; margin-bottom: 2rem; }
.prose p:first-child { color: var(--ink); font-size: 1.15em; }

/* ---------- Libros ---------- */
.cover { border-radius: 1rem; overflow: hidden; background: var(--lilac); aspect-ratio: 2 / 3; box-shadow: 0 1.5rem 3rem -1.75rem rgba(31,27,27,.45); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  .feature:hover .cover img, .book:hover .cover img { transform: scale(1.04); }
}
.featured { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: clamp(3rem, 6vw, 5rem); }
@media (min-width: 72em) { .featured { grid-template-columns: repeat(auto-fit, minmax(min(100%, 32rem), 1fr)); } }
.feature {
  border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); align-items: center;
}
@media (min-width: 40em) { .feature { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); } }
.feature h3 { font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.5rem); margin: .75rem 0 .9rem; }
.feature p:not(.badge) { margin-bottom: 1.75rem; }
.feature .cover { max-width: 18rem; width: 100%; margin: 0 auto; }

@media (min-width: 36em) { .books { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); } }
.book { display: flex; flex-direction: column; gap: 1rem; }
.book h3 { font-size: 1.45rem; margin-top: .5rem; }
.book .btn { margin-top: auto; align-self: flex-start; }
.desc summary { list-style: none; cursor: pointer; color: var(--ink-2); border-radius: .5rem; }
.desc summary::-webkit-details-marker { display: none; }
.desc .clamp { display: -webkit-box; line-clamp: 2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.desc[open] .clamp { display: block; line-clamp: unset; -webkit-line-clamp: unset; }
.desc .more {
  display: inline-flex; align-items: center; min-height: 3.25rem; margin-top: .25rem;
  font-size: .9375rem; font-weight: 700; color: var(--ink); text-decoration: underline;
  text-decoration-color: var(--pink-line); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.desc[open] .more { font-size: 0; }
.desc[open] .more::after { content: "Leer menos"; font-size: .9375rem; }

/* ---------- Newsletter ---------- */
.news {
  position: relative; overflow: hidden; text-align: center;
  border-radius: clamp(1.75rem, 4vw, 3rem); padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.5rem, 6vw, 5rem);
  background: linear-gradient(120deg, var(--lilac), var(--rose) 35%, var(--peach) 60%, var(--sky) 85%, var(--mint));
}
.news > *:not(svg) { position: relative; }
.news-orbit { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; opacity: .55; pointer-events: none; }
.news h2 { max-width: 46rem; margin: 0 auto 2rem; }
.benefits { list-style: none; padding: 0; margin: 0 0 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1rem; }
.benefits li {
  font-weight: 600; font-size: 1.0625rem; color: var(--ink); background: rgba(252,250,247,.85);
  padding: .55rem 1.25rem; border-radius: 999px; border: 1px solid var(--pink-line);
}

/* ---------- Redes ---------- */
@media (min-width: 48em) { .socials { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); } }
.social { border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 2.5rem); display: flex; flex-direction: column; align-items: flex-start; }
.social .icon { width: 2.75rem; height: 2.75rem; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; color: var(--ink); margin-bottom: 1.25rem; }
.social h3 { margin-bottom: .25rem; }
.handle { font-weight: 600; margin-bottom: 1.5rem; word-break: break-word; }
.social .btn { background: var(--cream); margin-top: auto; }
.social .btn:hover { background: var(--pink-fill); }

/* ---------- Pie ---------- */
.site-footer {
  text-align: center; padding: 3.5rem 1.5rem; border-top: 1px solid var(--lilac);
  color: var(--ink-2); font-size: 1rem;
}
.site-footer p { margin: 0; }
.site-footer p:first-child { color: var(--ink); font-weight: 600; margin-bottom: .4rem; }

/* ---------- Aparición suave ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
