/* ==========================================================================
   Ana López-Bravo · Web de autora
   Diseño: Enrique Rocamora
   Paleta: crema (base) · verde salvia (principal) · terracota (acento) · tinta cálida
   ========================================================================== */

:root {
  --cream: #FAF5EC;
  --cream-2: #F3EADB;
  --paper: #FFFDF8;
  --sage-100: #E6EBDF;
  --sage-300: #B4C1A8;
  --sage: #8A9A7B;
  --sage-600: #5B7053;
  --sage-800: #3D4E37;
  --terra-100: #F6E1D5;
  --terra: #C8714E;
  --terra-600: #A65230;
  --ink: #2F2621;
  --ink-soft: #5C4F46;
  --line: #E4D8C6;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow-s: 0 1px 2px rgba(47, 38, 33, .06), 0 4px 14px rgba(47, 38, 33, .06);
  --shadow: 0 2px 6px rgba(47, 38, 33, .05), 0 18px 40px -12px rgba(61, 78, 55, .22);
  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(138, 154, 123, .10), transparent 38%),
    radial-gradient(circle at 92% 30%, rgba(200, 113, 78, .07), transparent 32%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--terra-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sage-800); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--terra-100); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 60, "WONK" 0;
}
h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
em.accent, .accent { font-style: italic; color: var(--terra-600); font-variation-settings: "SOFT" 100, "WONK" 1; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 720px; }
.center { text-align: center; margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 200;
  background: var(--ink); color: var(--cream); padding: .7rem 1rem; border-radius: var(--radius-s);
  transition: top .2s;
}
.skip-link:focus { top: 1rem; color: var(--cream); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sage-600); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--terra); border-radius: 2px; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.28rem); color: var(--ink-soft); line-height: 1.65; }

/* ---------- Placeholder marker (contenido a completar) ---------- */
.ph {
  background: repeating-linear-gradient(-45deg, rgba(200,113,78,.07) 0 8px, transparent 8px 16px);
  border: 1.5px dashed rgba(166, 82, 48, .45);
  border-radius: var(--radius-s);
  padding: .9rem 1.1rem;
  color: var(--ink-soft);
}
.ph-inline { background: var(--terra-100); color: var(--terra-600); padding: .05em .45em; border-radius: 6px; font-size: .92em; font-weight: 500; }
.tag {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .32rem .7rem; border-radius: 999px;
  background: var(--sage-100); color: var(--sage-800);
}
.tag--example { background: var(--terra-100); color: var(--terra-600); }
.tag--soon { background: var(--cream-2); color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--sage-600); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.5rem;
  font: 600 1rem/1.2 var(--font-body);
  color: var(--fg); background: var(--bg);
  border: 2px solid var(--bg); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  box-shadow: 0 6px 18px -8px rgba(61, 78, 55, .55);
}
.btn:hover { transform: translateY(-2px); color: var(--fg); background: var(--sage-800); border-color: var(--sage-800); box-shadow: 0 12px 24px -10px rgba(61, 78, 55, .6); }
.btn--terra { --bg: var(--terra-600); box-shadow: 0 6px 18px -8px rgba(166, 82, 48, .6); }
.btn--terra:hover { background: #8E4325; border-color: #8E4325; }
.btn--ghost { --bg: transparent; --fg: var(--sage-800); border-color: var(--sage-300); box-shadow: none; }
.btn--ghost:hover { background: var(--sage-100); color: var(--sage-800); border-color: var(--sage); box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- Header & nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 245, 236, .97);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(47,38,33,.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.32rem; font-weight: 500; line-height: 1; letter-spacing: -.01em; }
.brand-sub { display: block; font-family: var(--font-body); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-600); margin-top: .3rem; font-weight: 600; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 44px; padding: 0 1rem; border-radius: 999px;
  background: var(--paper); border: 1.5px solid var(--line); color: var(--ink);
  font: 600 .95rem var(--font-body); cursor: pointer;
}
.nav-toggle-icon { position: relative; width: 18px; height: 12px; }
.nav-toggle-icon span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.nav-toggle-icon span:nth-child(1) { top: 0; }
.nav-toggle-icon span:nth-child(2) { top: 5px; }
.nav-toggle-icon span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.nav-link, .submenu-toggle {
  display: flex; align-items: center; gap: .35rem;
  font: 500 1rem/1.2 var(--font-body); color: var(--ink);
  text-decoration: none; background: none; border: 0; cursor: pointer;
  padding: .7rem .9rem; border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav-link:hover, .submenu-toggle:hover { background: var(--sage-100); color: var(--sage-800); }
.nav-link[aria-current="page"], .has-submenu.is-current > .submenu-toggle { color: var(--terra-600); }
.nav-link[aria-current="page"]::after, .has-submenu.is-current > .submenu-toggle::after { content: ""; }
.chev { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.submenu-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.submenu a { display: flex; gap: .8rem; align-items: center; text-decoration: none; color: var(--ink); border-radius: 12px; padding: .65rem .8rem; }
.submenu a:hover, .submenu a:focus-visible { background: var(--sage-100); color: var(--sage-800); }
.submenu a[aria-current="page"] { background: var(--terra-100); color: var(--terra-600); }
.submenu .sm-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--cream-2); color: var(--sage-600); }
.submenu .sm-icon svg { width: 20px; height: 20px; }
.submenu .sm-title { font-weight: 600; display: block; line-height: 1.2; }
.submenu .sm-desc { font-size: .84rem; color: var(--ink-soft); line-height: 1.3; }
.nav-cta { display: none; }

/* Mobile nav (default, mobile-first) */
@media (max-width: 959.98px) {
  .portrait { aspect-ratio: 1 / 1; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--cream);
    padding: 1rem 1.25rem 2rem;
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav-link, .submenu-toggle { width: 100%; justify-content: space-between; font-family: var(--font-display); font-size: 1.45rem; padding: 1rem .25rem; border-radius: 0; }
  .nav-link:hover, .submenu-toggle:hover { background: none; }
  .submenu { display: none; padding: 0 0 1rem; }
  .submenu.is-open { display: block; animation: fadeDown .3s var(--ease); }
  body.nav-open { overflow: hidden; }
}

/* Desktop nav */
@media (min-width: 960px) {
  .site-header { background: rgba(250, 245, 236, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
  .nav-toggle { display: none; }
  .main-nav > ul { display: flex; align-items: center; gap: .15rem; }
  .has-submenu { position: relative; }
  .submenu {
    position: absolute; top: calc(100% + 10px); left: 50%;
    width: 300px; padding: .6rem;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
    transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* puente hover */
  .submenu::after {
    content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px;
    background: var(--paper); border-left: 1px solid var(--line); border-top: 1px solid var(--line);
    transform: translateX(-50%) rotate(45deg);
  }
  .submenu.is-open,
  .has-submenu.hover-enabled:hover > .submenu {
    opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s;
  }
  .has-submenu.hover-enabled:hover > .submenu-toggle .chev { transform: rotate(180deg); }
  .nav-cta { display: inline-flex; margin-left: .6rem; min-height: 42px; padding: .55rem 1.15rem; font-size: .95rem; }
}

@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section--tint { background: var(--cream-2); }
.section--sage { background: var(--sage-800); color: #F1EEE6; }
.section--sage h2, .section--sage h3 { color: #FBF7EF; }
.section-head { max-width: 680px; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.section-head.center { text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.wave { display: block; width: 100%; height: 48px; color: var(--cream-2); }
.wave--flip { transform: scaleY(-1); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6.5rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { margin-bottom: .35em; font-size: clamp(2.4rem, 5.2vw, 4rem); }
.hero h1 .line2 { font-size: .82em; color: var(--ink-soft); margin-top: .1em; }
.hero h1 .line2 { display: block; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-soft); }
.hero-meta strong { color: var(--ink); font-weight: 600; }
.hero-art { position: relative; justify-self: center; width: min(100%, 560px); }
.hero-blob { position: absolute; inset: 6% -4% 2% 4%; color: var(--sage-100); z-index: 0; }
.hero-blob svg { width: 100%; height: 100%; }
.hero-cover { position: relative; z-index: 1; filter: drop-shadow(0 30px 30px rgba(61,78,55,.28)); transform: rotate(-2.5deg); transition: transform .6s var(--ease); }
.hero-art:hover .hero-cover { transform: rotate(0deg) scale(1.015); }
.hero-badge {
  position: absolute; z-index: 2; right: -2%; bottom: 4%;
  width: 118px; height: 118px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--terra-600); color: #FFF7F0;
  font: 500 .95rem/1.15 var(--font-display);
  box-shadow: 0 14px 30px -12px rgba(166,82,48,.7);
  animation: floaty 6s ease-in-out infinite;
}
.hero-badge small { display: block; font: 700 .64rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; opacity: .9; margin-bottom: .2rem; }
.deco { position: absolute; pointer-events: none; z-index: 0; }
.deco--sprig-1 { display: none; width: 90px; top: 8%; left: -20px; color: var(--sage-300); transform: rotate(-20deg); }
.deco--yarn { width: 70px; right: 6%; top: 6%; color: var(--terra); opacity: .9; animation: floaty 7s ease-in-out infinite reverse; }
.deco--thread { position: absolute; left: 0; right: 0; bottom: 0; height: 80px; color: var(--terra); opacity: .45; }

@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(3deg); } }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
  .hero-art { justify-self: end; }
  .deco--sprig-1 { display: block; }
}

/* ---------- Intro / about strip ---------- */
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 380px 1fr; gap: 4.5rem; } .portrait-wrap { max-width: 380px; } }

.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: 200px 200px var(--radius-l) var(--radius-l);
  background: linear-gradient(160deg, var(--sage-100), var(--cream-2));
  border: 1.5px dashed var(--sage);
  display: grid; place-items: center; text-align: center; padding: 2rem;
  color: var(--sage-800); overflow: hidden;
}
.portrait svg { width: 88px; margin: 0 auto 1rem; color: var(--sage); }
.portrait p { margin: 0; font-size: .95rem; }
.portrait strong { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; margin-bottom: .25rem; }
.portrait-wrap { position: relative; max-width: 300px; margin-inline: auto; width: 100%; }
.portrait-wrap::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--terra); border-radius: 200px 200px var(--radius-l) var(--radius-l); z-index: -1; opacity: .55; }

.signature { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--terra-600); margin-top: 1.2rem; font-variation-settings: "SOFT" 100, "WONK" 1; }

/* ---------- Highlights ---------- */
.highlights { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .highlights { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .highlights { grid-template-columns: repeat(4, 1fr); } }
.hl {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.5rem; position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.hl:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.hl-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.1rem; background: var(--sage-100); color: var(--sage-600); }
.hl:nth-child(even) .hl-icon { background: var(--terra-100); color: var(--terra-600); }
.hl-icon svg { width: 26px; height: 26px; }
.hl h3 { font-size: 1.22rem; margin-bottom: .4rem; }
.hl p { font-size: .97rem; color: var(--ink-soft); margin: 0; }

/* ---------- Genre cards (Cuentos / Poesía / Relatos) ---------- */
.genres { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .genres { grid-template-columns: repeat(3, 1fr); } }
.genre {
  display: flex; flex-direction: column; gap: .5rem;
  padding: 2rem 1.8rem; border-radius: var(--radius-l);
  text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  position: relative; overflow: hidden; min-height: 240px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.genre:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: var(--ink); border-color: var(--sage-300); }
.genre .tag { align-self: flex-start; position: relative; z-index: 1; }
.genre h3, .genre p, .genre .more { position: relative; z-index: 1; }
.genre h3 { font-size: 1.7rem; margin: .6rem 0 .2rem; }
.genre p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.genre .more { margin-top: auto; padding-top: 1rem; font-weight: 600; color: var(--sage-600); display: inline-flex; gap: .4rem; align-items: center; }
.genre .more svg { width: 18px; transition: transform .3s var(--ease); }
.genre:hover .more svg { transform: translateX(4px); }
.genre-art { position: absolute; right: -14px; top: -14px; width: 120px; opacity: .9; color: var(--sage-100); }
.genre--terra .genre-art { color: var(--terra-100); }

/* ---------- Book feature / detail ---------- */
.book-feature { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .book-feature { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }
.book-stage {
  position: relative; border-radius: var(--radius-l); padding: clamp(1.5rem, 4vw, 3rem);
  background: radial-gradient(circle at 50% 40%, var(--paper), var(--sage-100) 75%);
  border: 1px solid var(--line);
}
.book-stage img { filter: drop-shadow(0 24px 24px rgba(61,78,55,.25)); }
.book-title { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: .25em; }
.book-byline { color: var(--ink-soft); margin-bottom: 1.4rem; }
.book-byline strong { color: var(--ink); font-weight: 600; }
.price { font-family: var(--font-display); font-size: 2rem; color: var(--ink); line-height: 1; }
.price small { font-family: var(--font-body); font-size: .85rem; color: var(--ink-soft); margin-left: .4rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 0; padding: 0; list-style: none; }

.spec-list { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); }
@media (min-width: 560px) { .spec-list { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.spec-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--ink-soft); font-size: .95rem; }
.spec-list dd { margin: 0; font-weight: 600; text-align: right; font-size: .97rem; }

.synopsis {
  position: relative; background: var(--paper); border-radius: var(--radius-l); border: 1px solid var(--line);
  padding: clamp(1.8rem, 4vw, 3rem);
}
.synopsis p:first-of-type::first-letter {
  float: left; font-family: var(--font-display); font-size: 4.2rem; line-height: .8;
  padding: .35rem .6rem 0 0; color: var(--terra-600);
}
.synopsis-source { font-size: .85rem; color: var(--ink-soft); margin: 0; }

.detail-grid { display: grid; gap: 2rem; }
@media (min-width: 960px) { .detail-grid { grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; } }

.aside-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.aside-card + .aside-card { margin-top: 1.2rem; }
.aside-card h3 { font-size: 1.25rem; }
.aside-card ul { padding-left: 1.1rem; margin: 0; }
.aside-card li { margin-bottom: .35rem; }

/* ---------- Page hero ---------- */
.page-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); max-width: 14ch; }
.page-hero .lead { max-width: 60ch; }
.breadcrumbs { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: .4rem; color: var(--sage); }
.breadcrumbs a { color: var(--ink-soft); }
.page-hero .deco--sprig-2 { width: 160px; right: 4%; top: 20%; color: var(--sage-300); opacity: .7; }

.subnav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.subnav a { text-decoration: none; padding: .55rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 500; font-size: .95rem; transition: all .2s; }
.subnav a:hover { border-color: var(--sage); color: var(--sage-800); }
.subnav a[aria-current="page"] { background: var(--sage-600); border-color: var(--sage-600); color: #fff; }

/* ---------- Cards (press, examples) ---------- */
.cards { display: grid; gap: 1.4rem; }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1.6rem 1.5rem; position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-bottom: 1rem; font-size: .88rem; color: var(--ink-soft); }
.card-medium { font-weight: 700; color: var(--sage-800); letter-spacing: .02em; }
.card h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.card blockquote { margin: 0 0 1.2rem; padding-left: 1rem; border-left: 3px solid var(--terra-100); color: var(--ink-soft); font-style: italic; font-size: 1rem; }
.card .card-link { margin-top: auto; font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.card .card-link svg { width: 16px; height: 16px; }
.card--example { background: transparent; border: 1.5px dashed var(--sage-300); }
.card--example:hover { transform: none; box-shadow: none; }
.card--example h3, .card--example p { color: var(--ink-soft); }
.card--soon { align-items: flex-start; }
.card-note { font-size: .84rem; color: var(--ink-soft); margin: .6rem 0 0; }

.empty-state {
  text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 1.5rem; border-radius: var(--radius-l);
  background: var(--paper); border: 1px solid var(--line); position: relative; overflow: hidden;
}
.empty-state svg.es-icon { width: 92px; margin: 0 auto 1.2rem; color: var(--sage); }
.empty-state h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.empty-state p { max-width: 52ch; margin-inline: auto; color: var(--ink-soft); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--sage-300), var(--terra-100)); }
.timeline li { position: relative; padding: 0 0 1.8rem 2.6rem; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--cream); border: 3px solid var(--sage-600); }
.timeline li.is-ph::before { border-color: var(--terra); border-style: dashed; }
.timeline .t-year { font-family: var(--font-display); font-size: 1.3rem; color: var(--terra-600); line-height: 1.2; }
.timeline h3 { font-size: 1.2rem; margin: .2rem 0 .3rem; }
.timeline p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- Quote band ---------- */
.quote-band { text-align: center; }
.quote-band p.q { font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.3; max-width: 28ch; margin: 0 auto 1rem; font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }

/* ---------- Newsletter ---------- */
.newsletter {
  position: relative; overflow: hidden;
  background: var(--sage-800); color: #EFEBE2;
  border-radius: var(--radius-l); padding: clamp(2rem, 5vw, 3.5rem);
  display: grid; gap: 1.8rem; align-items: center;
}
@media (min-width: 900px) { .newsletter { grid-template-columns: 1.1fr 1fr; gap: 3rem; } }
.newsletter h2 { color: #FBF7EF; font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.newsletter p { color: #D9DDD0; margin: 0; }
.newsletter .eyebrow { color: var(--sage-300); }
.newsletter-deco { position: absolute; right: -60px; bottom: -80px; width: 260px; color: #fff; opacity: .07; pointer-events: none; }
.nl-form { position: relative; z-index: 1; }
.nl-row { display: flex; flex-direction: column; gap: .7rem; }
@media (min-width: 520px) { .nl-row { flex-direction: row; } }
.nl-row input { flex: 1; }
.newsletter input[type="email"] { background: rgba(255,255,255,.96); border-color: transparent; }
.nl-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; color: #D9DDD0; margin-top: .9rem; }
.nl-consent input { margin-top: .3rem; accent-color: var(--terra); width: 16px; height: 16px; flex: none; }
.nl-consent a { color: #F3D2C2; }
.demo-note { font-size: .8rem; opacity: .85; margin-top: .7rem; display: flex; gap: .4rem; align-items: center; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: .85rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 50px; padding: .8rem 1rem;
  font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 150px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B7053' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; padding-right: 2.6rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sage-600); box-shadow: 0 0 0 4px rgba(91,112,83,.18); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.check input { margin-top: .32rem; width: 17px; height: 17px; accent-color: var(--sage-600); flex: none; }
.form-status { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 12px; background: var(--sage-100); color: var(--sage-800); font-weight: 500; display: none; }
.form-status.is-visible { display: block; animation: fadeDown .35s var(--ease); }
.newsletter .form-status { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.35fr 1fr; gap: 3rem; align-items: start; } }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1.5rem, 4vw, 2.6rem); box-shadow: var(--shadow-s); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.ci-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--sage-100); color: var(--sage-600); flex: none; }
.ci-icon svg { width: 20px; height: 20px; }
.ci-label { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.social { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.social a { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--line); color: var(--sage-800); transition: all .25s var(--ease); }
.social a:hover { background: var(--sage-600); border-color: var(--sage-600); color: #fff; transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }

.schools {
  display: grid; gap: 2rem; align-items: center;
  background: linear-gradient(135deg, var(--terra-100), #FBEFE6);
  border-radius: var(--radius-l); padding: clamp(1.8rem, 5vw, 3.4rem); position: relative; overflow: hidden;
}
@media (min-width: 900px) { .schools { grid-template-columns: 1fr 1.1fr; gap: 3rem; } }
.schools h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.schools .eyebrow { color: var(--terra-600); }
.schools .eyebrow::before { background: var(--sage-600); }
.offer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.offer-list li { display: flex; gap: 1rem; background: rgba(255,253,248,.85); border-radius: var(--radius); padding: 1.1rem 1.2rem; border: 1px solid rgba(166,82,48,.15); }
.offer-list .oi { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--terra-600); color: #fff; }
.offer-list .oi svg { width: 22px; height: 22px; }
.offer-list h3 { font-size: 1.15rem; margin: 0 0 .2rem; }
.offer-list p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D8CFC4; padding: 4rem 0 2rem; margin-top: 0; position: relative; }
.site-footer a { color: #F1E9DD; text-decoration: none; }
.site-footer a:hover { color: #F3B99E; text-decoration: underline; }
.footer-grid { display: grid; gap: 2.2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-brand .brand-name { color: #FBF7EF; font-size: 1.6rem; }
.footer-brand p { max-width: 36ch; margin-top: 1rem; font-size: .96rem; }
.footer-title { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-300); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between; font-size: .9rem; }
.site-footer .social a { background: transparent; border-color: rgba(255,255,255,.2); color: #F1E9DD; }
.site-footer .social a:hover { background: var(--terra); border-color: var(--terra); color: #fff; text-decoration: none; }
.back-top { display: inline-flex; gap: .4rem; align-items: center; }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .1s; }
.js .reveal[data-delay="2"] { transition-delay: .2s; }
.js .reveal[data-delay="3"] { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Draw thread animation */
.thread-path { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 3.2s var(--ease) .4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
@media (max-width: 759.98px) { .page-hero .deco--sprig-2 { display: none; } }

/* ---------- Retrato real de la autora ---------- */
.portrait--photo { padding: 0; border: 0; display: block; margin: 0; background: var(--sage-100); box-shadow: var(--shadow); }
.portrait--photo picture, .portrait--photo img { display: block; width: 100%; height: 100%; }
.portrait--photo img { object-fit: cover; object-position: 50% 18%; }
.portrait--round { aspect-ratio: 1 / 1; border-radius: 50%; }
.portrait-wrap--round::after { border-radius: 50%; inset: 14px -14px -14px 14px; }
.contact-author { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.2rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.contact-author picture { flex: 0 0 84px; }
.contact-author img { display: block; width: 84px; height: 84px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--terra-100); }
.contact-author p { margin: 0; line-height: 1.35; }
.contact-author strong { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; }
.contact-author span { font-size: .92rem; color: var(--ink-soft); }
.portrait-wrap { isolation: isolate; }
.portrait--photo { position: relative; z-index: 1; }
.aside-card .contact-author + .contact-list { padding-left: 0; }
@media (min-width: 860px) { .portrait-wrap { max-width: 380px; } }

/* Inicio independiente: opciones futuras visibles, sin navegación. */
[aria-disabled="true"] { cursor: not-allowed; }
.main-nav span.nav-link { display: flex; align-items: center; }
.main-nav span[aria-disabled="true"] { opacity: .65; }
span.btn { display: inline-flex; opacity: .55; box-shadow: none; }
span.genre { display: block; }
span.genre:hover { transform: none; }
.footer-nav span { display: block; }
.social span[aria-disabled] { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; opacity: .5; }
.social span svg { width: 20px; height: 20px; }
span.brand { display: inline-flex; }
