/* ── NAV ────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 3.5rem;
  background: linear-gradient(to bottom, rgba(246,237,216,0.97) 70%, transparent);
  backdrop-filter: blur(6px);
  transition: padding 0.3s;
}
nav.scrolled {
  padding: 0.9rem 3.5rem;
  box-shadow: 0 1px 20px rgba(30,18,10,0.08);
}
.nav-brand {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--wine);
  text-decoration: none;
  z-index: 210;
}
/* Nav links — agrega underline al hacer focus/hover */
.nav-links a {
  font-family: 'EB Garamond', serif;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
  /* Underline visible solo en focus para accesibilidad por teclado */
  outline: none;
}

.nav-links a:hover { color: var(--burgundy); }

.nav-links a:focus-visible {
  color: var(--burgundy);
  text-decoration: underline;
  text-underline-offset: 4px;
  outline: 2px solid var(--amber);
  outline-offset: 4px;
  border-radius: 2px;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px; height: 30px;
  cursor: pointer;
  background: none; border: none;
  z-index: 210; padding: 2px;
}
.hamburger span {
  display: block;
  width: 100%; height: 1.5px;
  background: var(--wine);
  transition: all 0.35s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed; inset: 0;
  z-index: 190;
  background: rgba(246,237,216,0.98);
  backdrop-filter: blur(10px);
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-style: italic; font-weight: 300;
  color: var(--wine); text-decoration: none;
  transition: color 0.25s;
}
.mobile-menu a:hover { color: var(--amber); }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  position: relative;
  padding: 8rem 2rem 6rem;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 25%, rgba(201,151,58,0.06) 0%, transparent 65%), var(--cream);
}
.leaf { position: absolute; opacity: 0.12; pointer-events: none; }
.leaf-1 { top: 8%;    left: 5%;  width: 180px; transform: rotate(-25deg); }
.leaf-2 { top: 15%;   right: 6%; width: 130px; transform: rotate(40deg);  }
.leaf-3 { bottom: 12%; left: 8%; width: 110px; transform: rotate(15deg);  }
.leaf-4 { bottom: 20%; right: 4%; width: 160px; transform: rotate(-50deg); }

.hero-ornament {
  font-size: 1rem; letter-spacing: 0.6em; color: var(--amber);
  margin-bottom: 2rem; opacity: 0;
  animation: fadeUp 1s 0.3s ease forwards;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 300; line-height: 0.95; color: var(--wine);
  opacity: 0; animation: fadeUp 1s 0.6s ease forwards;
}
.hero-title em { font-style: italic; color: var(--burgundy); font-weight: 300; }

.hero-divider {
  width: 60px; height: 1px; background: var(--amber);
  margin: 2.5rem auto; opacity: 0;
  animation: fadeUp 1s 0.9s ease forwards;
}
.hero-tagline {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-style: italic; color: var(--muted);
  max-width: 520px; line-height: 1.8;
  opacity: 0; animation: fadeUp 1s 1.1s ease forwards;
}
.hero-cta {
  margin-top: 3.5rem;
  display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center;
  opacity: 0; animation: fadeUp 1s 1.4s ease forwards;
}
.scroll-arrow {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  opacity: 0; animation: fadeUp 1s 1.8s ease forwards;
  color: var(--amber); font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.scroll-arrow::after {
  content: ''; display: block; width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  animation: arrowPulse 2s infinite;
}

/* ── ABOUT ──────────────────────────────────────────────── */
.about {
  background: var(--parchment);
  border-top: 1px solid rgba(180,150,100,0.25);
  border-bottom: 1px solid rgba(180,150,100,0.25);
}
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 5rem; align-items: start; }
.about-sidebar { position: sticky; top: 8rem; }
.about-sidebar .section-title { font-size: clamp(2.5rem, 4vw, 3.5rem); }
.about-text p { margin-bottom: 1.5rem; color: #3a2a1a; font-size: 1.05rem; }

/* ── BOOK ───────────────────────────────────────────────── */
.book-grid { display: grid; grid-template-columns: 300px 1fr; gap: 6rem; align-items: center; }
.book-cover {
  width: 100%; height: auto; display: block;
  box-shadow:
    -8px 8px 0 var(--parchment),
    -16px 16px 0 rgba(107,30,46,0.12),
    -24px 24px 30px rgba(30,18,10,0.25);
  border-radius: 2px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.book-cover:hover {
  transform: translateX(6px) translateY(-4px);
  box-shadow:
    -14px 12px 0 var(--parchment),
    -24px 22px 0 rgba(107,30,46,0.12),
    -32px 30px 40px rgba(30,18,10,0.3);
}
.book-title-display {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 300; font-style: italic; color: var(--wine);
  line-height: 1.05; margin-bottom: 0.6rem;
}
.book-author {
  font-family: 'Cinzel', serif; font-size: 0.75rem;
  letter-spacing: 0.3em; color: var(--amber); margin-bottom: 2rem;
}
.book-description { color: #3a2a1a; font-size: 1.05rem; margin-bottom: 1.2rem; }
.book-coming-soon { font-size: 0.85rem; font-style: italic; color: var(--muted); margin-bottom: 1.5rem; }
.book-meta {
  display: flex; gap: 2.5rem; margin: 2.5rem 0; padding: 1.5rem 0;
  border-top: 1px solid rgba(180,150,100,0.3);
  border-bottom: 1px solid rgba(180,150,100,0.3);
  flex-wrap: wrap;
}
.meta-item span {
  display: block; font-family: 'Cinzel', serif; font-size: 0.6rem;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.3rem;
}
.meta-item strong {
  font-family: 'Cormorant Garamond', serif; font-size: 1.1rem;
  font-weight: 500; color: var(--ink);
}
.buy-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* ── CHAPTERS ───────────────────────────────────────────── */
.chapters-section { background: var(--soft); }
.chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
  border: 1px solid rgba(180,150,100,0.3);
  margin-top: 3rem;
}
.chapter-card {
  padding: 2rem 1.8rem;
  border-right: 1px solid rgba(180,150,100,0.3);
  border-bottom: 1px solid rgba(180,150,100,0.3);
  position: relative; transition: background 0.3s, border-left 0.3s;
  border-left: 3px solid transparent;
}
.chapter-card:hover {
  background: rgba(180,150,100,0.08);
  border-left-color: var(--amber);
}
.chapter-num {
  font-family: 'Cormorant Garamond', serif; font-size: 3rem;
  font-weight: 300; color: rgba(107,30,46,0.1);
  line-height: 1; position: absolute; top: 0.8rem; right: 1rem;
}
.chapter-name {
  font-family: 'Cormorant Garamond', serif; font-size: 1.5rem;
  font-style: italic; color: var(--wine); margin-bottom: 0.6rem;
}
.chapter-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

/* ── POEM ───────────────────────────────────────────────── */
.excerpt-section { background: var(--wine); color: var(--cream); }
.excerpt-section .section-label { color: var(--gold); }
.excerpt-section .section-title { color: var(--cream); }
.excerpt-section .section-title em { color: var(--gold); }
.excerpt-divider {
  width: 40px; height: 1px;
  background: rgba(201,151,58,0.5); margin: 0 auto 3rem;
}
.poem { max-width: 600px; margin: 0 auto; text-align: left; }
.poem-title {
  font-family: 'Cormorant Garamond', serif; font-size: 2rem;
  font-style: italic; color: var(--gold); margin-bottom: 2.5rem; text-align: center;
}
.poem-stanza { margin-bottom: 2rem; }
.poem-line {
  display: block; font-size: 1.1rem; line-height: 1.9;
  color: rgba(246,237,216,0.9); font-style: italic;
}
.poem-attribution {
  margin-top: 3rem; text-align: right;
  font-family: 'Cinzel', serif; font-size: 0.7rem;
  letter-spacing: 0.2em; color: var(--gold); opacity: 0.7;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 1.1rem 1.5rem; }
  nav.scrolled { padding: 0.8rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .hero { padding: 7rem 1.5rem 5rem; }
  .leaf { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-sidebar { position: static; }
  .book-grid { grid-template-columns: 1fr; gap: 3rem; }
  .book-cover-wrapper { max-width: 240px; margin: 0 auto; }
}

@media (min-width: 769px) {
  .nav-links {
    display: flex !important;
    flex-direction: row !important;
    gap: 2.5rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .nav-links li {
    list-style: none !important;
  }

  .hamburger   { display: none !important; }
  .mobile-menu { display: none !important; }
}

.nav-logo {
  height: 48px;
  width: auto;
  display: block;
  transition: opacity 0.3s;
}

.nav-logo:hover {
  opacity: 0.85;
}

.hero-logo {
  height: 140px;
  width: auto;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s 0.1s ease forwards;
  filter: drop-shadow(0 4px 20px rgba(201,151,58,0.3));
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 12px 0;
}

.footer-links a {
  font-size: 12px;
  color: var(--cream);         /* ajusta según tu variable de color muted */
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}

.poem-cta-wrap {
  text-align: center;
  margin-top: 2rem;
}

.poem-cta-link {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s;
}

.poem-cta-link:hover {
  background: rgba(201, 168, 76, 0.08);
}

/* ── TESTIMONIALS ───────────────────────────────────────── */
.testimonials-section {
  background: var(--parchment);
  border-top: 1px solid rgba(180,150,100,0.25);
  border-bottom: 1px solid rgba(180,150,100,0.25);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.testimonial-card {
  padding: 2.5rem 2rem 2rem;
  background: rgba(246,237,216,0.7);
  border: 1px solid rgba(180,150,100,0.2);
  position: relative;
  transition: box-shadow 0.3s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px rgba(30,18,10,0.08);
}
.testimonial-card::before {
  content: '\201C';
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.5rem;
  font-weight: 300;
  color: rgba(107,30,46,0.12);
  position: absolute;
  top: 0.2rem;
  left: 1rem;
  line-height: 1;
  pointer-events: none;
}
.testimonial-quote {
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: #3a2a1a;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.testimonial-author {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--amber);
}

/* ── SCROLL TO TOP ──────────────────────────────────────── */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--wine);
  color: var(--cream);
  border: 1px solid rgba(201,151,58,0.25);
  border-radius: 2px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background 0.25s;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top-btn:hover { background: var(--burgundy); }

/* ── ACTIVE NAV LINK ────────────────────────────────────── */
.nav-links a.active { color: var(--burgundy); }

@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .scroll-top-btn { bottom: 1.2rem; right: 1.2rem; }
}