/* ============================================
   David Vildoso Lemoine — Author Website
   Aesthetic: Literary Warmth / Earthy Bolivian
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* Earth & ink palette */
  --color-ink: #1a1410;
  --color-bark: #2d2117;
  --color-earth: #4a3728;
  --color-terracotta: #b8613a;
  --color-gold: #c8944a;
  --color-sand: #e8d5b7;
  --color-parchment: #f5ede0;
  --color-cream: #faf6ef;
  --color-white: #fffdf9;
  --color-sage: #6b7c5e;
  --color-blood: #8b2e1a;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Serif 4', 'Georgia', serif;
  --font-accent: 'Cormorant Garamond', 'Georgia', serif;
  --font-ui: 'DM Sans', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;

  /* Layout */
  --max-width: 1200px;
  --max-text: 720px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

em, i {
  font-style: italic;
  font-weight: inherit;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background-color: var(--color-cream);
  line-height: 1.75;
  font-size: 1.05rem;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-terracotta);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-blood);
}

::selection {
  background: var(--color-gold);
  color: var(--color-ink);
}

/* --- Texture overlay for pages --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 var(--space-md);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(250, 246, 239, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(26, 20, 16, 0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-accent);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-ink);
  letter-spacing: 0.02em;
}

.nav-logo span {
  color: var(--color-terracotta);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-earth);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-terracotta);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--color-terracotta);
  background: rgba(184, 97, 58, 0.08);
}

.nav-lang {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-terracotta);
  white-space: nowrap;
  padding: 0.4rem 1rem;
  border-radius: 3px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.3s ease;
}

.nav-lang:hover {
  background: var(--color-blood);
  color: var(--color-white);
}

/* Dark-header nav: white/gold links over dark hero photos, reverts to normal on scroll */
.nav-dark:not(.scrolled) {
  background: transparent;
  box-shadow: none;
}

.nav-dark:not(.scrolled) .nav-logo {
  color: var(--color-white);
}

.nav-dark:not(.scrolled) .nav-logo span {
  color: var(--color-gold);
}

.nav-dark:not(.scrolled) .nav-links a {
  color: rgba(255, 255, 255, 0.85);
}

.nav-dark:not(.scrolled) .nav-links a:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.12);
}

.nav-dark:not(.scrolled) .nav-links a::after {
  background: var(--color-gold);
}

.nav-dark:not(.scrolled) .nav-toggle span {
  background: var(--color-white);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(200, 148, 74, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-text {
  animation: fadeInUp 1s ease both;
}

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: var(--space-sm);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-ink);
  margin-bottom: var(--space-md);
}

.hero-title em {
  font-style: normal;
  color: var(--color-terracotta);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.55rem;
  color: var(--color-bark);
  line-height: 1.65;
  margin-bottom: var(--space-md);
  max-width: 560px;
}

.hero-subtitle strong {
  color: var(--color-terracotta);
  font-weight: 700;
}

.hero-quote {
  font-family: var(--font-accent);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-bark);
  border-left: 4px solid var(--color-terracotta);
  padding: 0.75rem var(--space-sm) 0.75rem var(--space-md);
  margin-bottom: var(--space-md);
  font-style: italic;
  background: rgba(200,148,74,0.08);
  border-radius: 0 8px 8px 0;
}

.hero-quote cite {
  display: block;
  font-size: 1rem;
  font-style: normal;
  color: var(--color-earth);
  margin-top: 0.5rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-image-frame {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 4px;
  box-shadow:
    0 25px 60px rgba(26, 20, 16, 0.15),
    0 8px 20px rgba(26, 20, 16, 0.1);
  background: transparent;
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 2px solid var(--color-gold);
  border-radius: 4px;
  z-index: -1;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 1.8rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--color-terracotta);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-blood);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(184, 97, 58, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-earth);
  border: 1.5px solid var(--color-earth);
}

.btn-outline:hover {
  background: var(--color-earth);
  color: var(--color-white);
}

/* --- Section Shared --- */
.section {
  padding: var(--space-xl) var(--space-md);
}

.section-dark {
  background: var(--color-bark);
  color: var(--color-sand);
}

.section-warm {
  background: var(--color-parchment);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: var(--space-xs);
}

.section-dark .section-eyebrow {
  color: var(--color-gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.2;
}

.section-dark .section-title {
  color: var(--color-parchment);
}

.section-subtitle {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 600;
  color: var(--color-earth);
  margin-top: var(--space-xs);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --- Featured Books Section --- */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.book-card {
  background: var(--color-white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26, 20, 16, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(26, 20, 16, 0.12);
}

.book-card-cover {
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--color-parchment);
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.book-card:hover .book-card-cover img {
  transform: scale(1.03);
}

/* Placeholder book covers */
.book-cover-placeholder {
  width: 70%;
  height: 80%;
  background: var(--color-earth);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  text-align: center;
  position: relative;
  box-shadow: 4px 4px 12px rgba(0,0,0,0.2);
}

.book-cover-placeholder::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.15);
}

.book-cover-placeholder .book-placeholder-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-sand);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.book-cover-placeholder .book-placeholder-author {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  color: var(--color-gold);
  font-style: italic;
  font-weight: 600;
}

.book-cover-placeholder.arbol { background: linear-gradient(145deg, #2d4a1f, #1a2e12); }
.book-cover-placeholder.amor { background: linear-gradient(145deg, #5c1a2a, #3a0f1a); }
.book-cover-placeholder.amando { background: linear-gradient(145deg, #1a3a5c, #0f2440); }
.book-cover-placeholder.cuentos { background: linear-gradient(145deg, #4a3728, #2d2117); }

.book-card-info {
  padding: 1.5rem;
}

.book-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 0.3rem;
}

.book-card-meta {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--color-earth);
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
}

.book-card-desc {
  font-size: 0.92rem;
  color: var(--color-earth);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.book-card-link {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.book-card-link:hover {
  gap: 0.7rem;
}

.book-card-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.book-card-link:hover svg {
  transform: translateX(3px);
}

/* --- Testimonial / Quote Banner --- */
.quote-banner {
  padding: var(--space-xl) var(--space-md);
  background: var(--color-bark);
  text-align: center;
  position: relative;
}

.quote-banner::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 12rem;
  color: rgba(200, 148, 74, 0.08);
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}

.quote-banner blockquote {
  max-width: var(--max-text);
  margin: 0 auto;
  font-family: var(--font-accent);
  font-size: clamp(1.3rem, 2.8vw, 1.75rem);
  font-style: italic;
  font-weight: 600;
  color: var(--color-sand);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.quote-banner cite {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-top: var(--space-sm);
}

/* --- About Preview --- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-preview-image {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
}

.about-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(26, 20, 16, 0.1);
}

.about-preview-image-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--color-parchment), var(--color-sand));
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--color-earth);
  text-align: center;
  padding: var(--space-md);
  box-shadow: 0 20px 50px rgba(26, 20, 16, 0.1);
}

.about-preview-text h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.about-preview-text p {
  font-size: 1.02rem;
  color: var(--color-earth);
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

.about-preview-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.role-tag {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  background: var(--color-parchment);
  color: var(--color-earth);
  border-radius: 2px;
}

/* --- Princeton Banner --- */
.princeton-banner {
  background: linear-gradient(135deg, #3a2a1d 0%, var(--color-bark) 100%);
  padding: var(--space-lg) var(--space-md);
  border-top: 1px solid rgba(200, 148, 74, 0.15);
  border-bottom: 1px solid rgba(200, 148, 74, 0.15);
}

.princeton-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  justify-content: center;
  text-align: center;
}

.princeton-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.princeton-text {
  max-width: 620px;
}

.princeton-text p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-sand);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.princeton-text strong {
  color: var(--color-gold);
  font-weight: 700;
  font-size: 1.35rem;
}

/* --- Footer --- */
.footer {
  background: linear-gradient(180deg, var(--color-bark) 0%, var(--color-ink) 100%);
  color: var(--color-sand);
  padding: var(--space-xl) var(--space-md) var(--space-md);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-lg);
}

.footer-brand p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: rgba(232, 213, 183, 0.85);
  margin-top: var(--space-sm);
  font-weight: 500;
  max-width: 320px;
  line-height: 1.75;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 3px solid var(--color-terracotta);
  padding-bottom: 0.4rem;
  display: inline-block;
}

.footer h4 {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(232, 213, 183, 0.8);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: var(--space-lg) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(232, 213, 183, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: rgba(232, 213, 183, 0.55);
}

/* --- Page Headers (non-home pages) --- */
.page-header {
  padding: calc(72px + var(--space-xl)) var(--space-md) var(--space-lg);
  background: var(--color-parchment);
  text-align: center;
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--color-ink);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.page-header p {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 600;
  color: var(--color-earth);
}

/* --- Books Page (catalog) --- */
.book-detail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid rgba(74, 55, 40, 0.1);
}

.book-detail:last-child {
  border-bottom: none;
}

.book-detail-cover {
  aspect-ratio: 2/3;
  background: var(--color-parchment);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(26, 20, 16, 0.1);
}

.book-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-detail-info h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-ink);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.book-detail-meta {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--color-earth);
  margin-bottom: var(--space-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.book-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.book-detail-info .synopsis {
  font-size: 1rem;
  color: var(--color-earth);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.edition-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-terracotta);
  color: var(--color-white);
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* --- Biography Page --- */
.bio-content {
  max-width: var(--max-text);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
}

.bio-content p {
  font-size: 1.05rem;
  color: var(--color-earth);
  line-height: 1.85;
  margin-bottom: var(--space-md);
}

.bio-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-ink);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.bio-highlight {
  background: var(--color-parchment);
  border-left: 3px solid var(--color-gold);
  padding: var(--space-md);
  margin: var(--space-md) 0;
  border-radius: 0 4px 4px 0;
}

.bio-highlight p {
  font-family: var(--font-accent);
  font-size: 1.35rem;
  line-height: 1.7;
  font-style: italic;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 0;
}

/* --- Press Page --- */
.press-item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(74, 55, 40, 0.08);
}

.press-item:last-child {
  border-bottom: none;
}

.press-item-source {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: 0.4rem;
}

.press-item h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-ink);
  margin-bottom: 0.4rem;
}

.press-item-date {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--color-earth);
  margin-bottom: 0.8rem;
}

.press-item blockquote {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 600;
  color: var(--color-earth);
  border-left: 2px solid var(--color-gold);
  padding-left: var(--space-sm);
  margin: var(--space-sm) 0;
  line-height: 1.7;
}

.press-item .press-link {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-terracotta);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background: var(--color-white);
  padding: var(--space-md);
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(26, 20, 16, 0.05);
  text-align: center;
}

.contact-card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-ink);
  margin-bottom: 0.4rem;
}

.contact-card p {
  font-size: 0.92rem;
  color: var(--color-earth);
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .hero-image {
    order: -1;
    max-width: 350px;
    margin: 0 auto;
  }

  .about-preview {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .book-detail {
    grid-template-columns: 200px 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(250, 246, 239, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .book-detail {
    grid-template-columns: 1fr;
  }

  .book-detail-cover {
    max-width: 250px;
  }

  .princeton-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== BOOKS COLLECTION BANNER ===== */
.books-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 4rem 0;
}

.books-banner-inner {
  position: relative;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}

.books-banner-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
  transition: transform 0.8s ease;
}

.books-banner:hover .books-banner-inner img {
  transform: scale(1.03);
}

.books-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: #fff;
  background: linear-gradient(to top, rgba(26,20,16,0.85) 0%, rgba(26,20,16,0.4) 50%, rgba(26,20,16,0.2) 100%);
}

.books-banner-count {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.books-banner-overlay h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.35;
  max-width: 36ch;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}

.books-banner-overlay .btn {
  border-color: #fff;
  color: #fff;
}

.books-banner-overlay .btn:hover {
  background: #fff;
  color: var(--color-ink);
}

/* ===== PHOTO GALLERY ===== */
.photo-gallery-section {
  background: var(--color-parchment);
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 1;
}

.gallery-item-wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: saturate(0.9);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.25) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* About preview image styling */
.about-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* Hero image frame img styling */
.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item-wide {
    grid-column: span 2;
  }

  .books-banner-inner {
    max-height: 350px;
  }
}

@media (max-width: 480px) {
  .photo-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }

  .books-banner-inner {
    max-height: 280px;
  }

  .books-banner-overlay h3 {
    font-size: 1.2rem;
  }
}

/* ===== BIOGRAPHY PAGE PHOTOS ===== */
.page-header-bio {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-header-bio .page-header-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-header-bio .page-header-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.3);
}

.page-header-bio .page-header-text {
  position: relative;
  z-index: 1;
}

.page-header-bio .page-header-text h1 {
  color: var(--color-white);
  text-shadow: 0 2px 16px rgba(0,0,0,0.8), 0 1px 4px rgba(0,0,0,0.6);
}

.page-header-bio .page-header-text p {
  color: var(--color-sand);
  text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.5);
}

.bio-photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.bio-photo {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.bio-photo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.bio-photo:hover img {
  transform: scale(1.04);
}

.bio-photo-caption {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--color-earth);
  padding: 0.6rem 0;
  font-style: normal;
  text-align: center;
}

.bio-photo-full {
  margin: 2.5rem 0;
  overflow: hidden;
  border-radius: 6px;
}

.bio-photo-full img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.bio-photo-full:hover img {
  transform: scale(1.03);
}

.bio-photo-full .bio-photo-caption {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--color-earth);
  padding: 0.6rem 0;
  font-style: normal;
  text-align: center;
}

@media (max-width: 768px) {
  .bio-photo-pair {
    grid-template-columns: 1fr;
  }
  .bio-photo img {
    height: 220px;
  }
  .page-header-bio {
    min-height: 300px;
  }
}

/* ============================================
   FRASES — Quote Carousel & Grid
   ============================================ */

/* --- Rotating Quote Carousel (replaces static lema banner) --- */
.frases-carousel {
  padding: var(--space-xl) var(--space-md);
  background: var(--color-bark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.frases-carousel::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 12rem;
  color: rgba(200, 148, 74, 0.08);
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}

.frases-carousel .carousel-track {
  position: relative;
  max-width: var(--max-text);
  margin: 0 auto;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.frases-carousel .carousel-slide {
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}

.frases-carousel .carousel-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.frases-carousel blockquote {
  font-family: var(--font-accent);
  font-size: clamp(1.3rem, 2.8vw, 1.75rem);
  font-style: italic;
  font-weight: 600;
  color: var(--color-sand);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.frases-carousel .frase-original {
  margin-bottom: 0.5rem;
}

.frases-carousel .frase-translation {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: rgba(232, 213, 183, 0.55);
  font-style: italic;
  font-weight: 600;
  margin-top: 0.4rem;
}

.frases-carousel cite {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-top: var(--space-sm);
}

.frases-carousel .carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
  position: relative;
  z-index: 2;
}

.frases-carousel .carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(200, 148, 74, 0.25);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 18px;
  background-clip: content-box;
}

.frases-carousel .carousel-dot.active {
  background: var(--color-gold);
  transform: scale(1.3);
}

/* --- Frases Grid Section --- */
.frases-section {
  padding: var(--space-xl) 0;
  background: var(--color-parchment);
}

.frases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

@media (max-width: 900px) {
  .frases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .frases-grid { grid-template-columns: 1fr; }
}

.frase-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: var(--space-md);
  position: relative;
  border-left: 3px solid var(--color-terracotta);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.frase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.frase-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 4rem;
  color: rgba(184, 97, 58, 0.1);
  position: absolute;
  top: 0.2rem;
  left: 0.8rem;
  line-height: 1;
}

.frase-card .frase-text {
  font-family: var(--font-accent);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 700;
  color: var(--color-bark);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.frase-card .frase-text-en {
  font-size: 0.95rem;
  color: var(--color-earth);
  opacity: 0.55;
  font-style: italic;
  margin-top: 0.5rem;
  line-height: 1.5;
}

.frase-card .frase-location {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--color-terracotta);
  margin-top: var(--space-sm);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* --- Inline Frase Breaker (between book details) --- */
.frase-breaker {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  position: relative;
}

.frase-breaker::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-terracotta);
  margin: 0 auto var(--space-md);
  opacity: 0.5;
}

.frase-breaker blockquote {
  font-family: var(--font-accent);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-style: italic;
  font-weight: 600;
  color: var(--color-earth);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.frase-breaker cite {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-top: 0.6rem;
  opacity: 0.7;
}

/* ============================================
   FLOATING WHATSAPP BUBBLE — bottom-right
   ============================================ */
.wa-bubble {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.wa-bubble.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.wa-bubble a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-bubble a:hover {
  transform: scale(1.08);
  box-shadow: 0 5px 18px rgba(0,0,0,0.28);
}

.wa-bubble svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

/* Tooltip on hover — appears left of bubble */
.wa-bubble a::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-bark, #3b2d23);
  color: var(--color-sand, #f5f0e8);
  font-family: var(--font-ui, sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.wa-bubble a:hover::after {
  opacity: 1;
}

@media (max-width: 480px) {
  .wa-bubble {
    bottom: 1rem;
    right: 1rem;
  }
  .wa-bubble a {
    width: 48px;
    height: 48px;
  }
  .wa-bubble svg {
    width: 22px;
    height: 22px;
  }
  .wa-bubble a::after {
    display: none;
  }
}


/* Facebook bubble — stacked above WhatsApp */
.wa-bubble .fb-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #1877F2;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 0.5rem;
}

.wa-bubble .fb-link:hover {
  transform: scale(1.08);
  box-shadow: 0 5px 18px rgba(0,0,0,0.28);
}

.wa-bubble .tk-link {
  background: #010101;
}

.wa-bubble .yt-link {
  background: #FF0000;
}

.wa-bubble .fb-link svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.wa-bubble .fb-link::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 56px;
  background: var(--color-bark, #3b2d23);
  color: var(--color-sand, #f5f0e8);
  font-family: var(--font-ui, sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.wa-bubble .fb-link:hover::after {
  opacity: 1;
}

/* Stack vertically */
.wa-bubble {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

@media (max-width: 480px) {
  .wa-bubble .fb-link {
    width: 44px;
    height: 44px;
  }
  .wa-bubble .fb-link svg {
    width: 20px;
    height: 20px;
  }
  .wa-bubble .fb-link::after {
    display: none;
  }
}

/* ============================================
   BUTTERY POLISH — Smooth & Fluid Enhancements
   ============================================ */

/* Smoother global transitions */
a, .btn, img {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fade-in: stagger children for cascade effect */
.fade-in {
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Book cards: lift + warm glow on hover */
.book-card {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.book-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 40px rgba(184, 97, 58, 0.12),
    0 8px 16px rgba(26, 20, 16, 0.08);
}

/* Book card cover: subtle zoom */
.book-card-cover img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.book-card:hover .book-card-cover img {
  transform: scale(1.04);
}

/* Book detail cards (libros page): warm border on hover */
.book-detail {
  transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s ease;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 1.5rem;
}
.book-detail:hover {
  box-shadow: 0 8px 30px rgba(184, 97, 58, 0.08);
  border-color: rgba(200, 148, 74, 0.2);
}

/* Book detail cover: gentle tilt */
.book-detail-cover img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s ease;
}
.book-detail:hover .book-detail-cover img {
  transform: scale(1.02) rotate(-0.5deg);
  box-shadow: 0 12px 24px rgba(26, 20, 16, 0.15);
}

/* Buttons: smooth press effect */
.btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.btn:active {
  transform: scale(0.97);
}

/* WhatsApp buttons: pulse glow */
.btn[style*="#25D366"]:hover,
a.btn[href*="wa.me"]:hover {
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

/* Section titles: subtle slide-in from left */
.section-title {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Quote banners: elegant fade */
.quote-banner,
.frase-breaker {
  transition: opacity 0.8s ease;
}
.quote-banner blockquote,
.frase-breaker blockquote {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.quote-banner:hover blockquote,
.frase-breaker:hover blockquote {
  transform: scale(1.01);
}

/* Hero image: slow drift */
@keyframes heroDrift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hero-image-frame {
  animation: heroDrift 6s ease-in-out infinite;
}

/* Princeton banner: shimmer on hover */
.princeton-banner {
  transition: background 0.5s ease;
}
.princeton-banner:hover {
  background: linear-gradient(135deg, #443020 0%, #3a2a1d 100%);
}

/* Smooth image loading */
img {
  transition: opacity 0.4s ease;
}
img[loading="lazy"] {
  opacity: 0;
}
img[loading="lazy"].loaded,
img[loading="lazy"]:not([data-src]) {
  opacity: 1;
}

/* Edition/Proximamente badges: subtle pulse */
.edition-badge {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.edition-badge:hover {
  transform: scale(1.05);
}

/* Credential cards on invitar page */
.credential-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease;
}
.credential-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 20, 16, 0.1);
}

/* Frase cards: warm hover */
.frase-card {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}
.frase-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(184, 97, 58, 0.1);
  border-color: var(--color-gold);
}

/* --- Mobile polish (375px) --- */
@media (max-width: 480px) {
  .hero-subtitle {
    font-size: 1.15rem;
  }
  .section {
    padding: 3rem 1rem;
  }
  .book-detail-info h2 {
    font-size: 1.4rem;
  }
  .footer-bottom {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    text-align: center;
  }
  .book-detail-cover {
    margin: 0 auto;
  }
}

/* --- Cookie Consent Banner --- */
.consent-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-bark);
  color: var(--color-cream);
  padding: 1rem 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.consent-banner.show { display: block; }

.consent-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.consent-inner p {
  margin: 0;
  flex: 1;
  min-width: 200px;
  line-height: 1.5;
  color: var(--color-sand);
}

.consent-inner a {
  color: var(--color-gold);
  text-decoration: underline;
}

.consent-buttons {
  display: flex;
  gap: 0.625rem;
  flex-shrink: 0;
}

.consent-btn {
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.consent-btn:hover { opacity: 0.85; }

.consent-btn-accept {
  background: var(--color-terracotta);
  color: var(--color-white);
}

.consent-btn-decline {
  background: transparent;
  color: var(--color-sand);
  border: 1.5px solid rgba(232, 213, 183, 0.5);
}

@media (max-width: 480px) {
  .consent-inner { flex-direction: column; text-align: center; }
  .consent-buttons { width: 100%; justify-content: center; }
  .consent-btn { flex: 1; }
}

/* --- Gallery Lightbox --- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(26, 20, 16, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: zoom-out;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-overlay.show {
  display: flex;
  animation: lbFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 253, 249, 0.15);
  color: var(--color-cream);
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 253, 249, 0.3);
}

@keyframes lbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gallery-item { cursor: zoom-in; }

/* --- Toast Notification --- */
.dvl-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-bark);
  color: var(--color-cream);
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(26, 20, 16, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9998;
  max-width: 90vw;
  text-align: center;
}

.dvl-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-gold));
  z-index: 1001;
  width: 0%;
  pointer-events: none;
  transition: width 0.05s linear;
}

/* --- Trust Stats Strip --- */
.trust-strip {
  padding: var(--space-lg) var(--space-md);
  border-top: 1px solid var(--color-sand);
  border-bottom: 1px solid var(--color-sand);
  background: var(--color-parchment);
}

.trust-strip-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.trust-item { text-align: center; }

.trust-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-terracotta);
  line-height: 1.2;
}

.trust-label {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--color-earth);
  font-weight: 500;
}

@media (max-width: 600px) {
  .trust-strip { padding: var(--space-md) var(--space-sm); }
  .trust-strip-inner { gap: 2rem; }
  .trust-num { font-size: 1.75rem; }
}

/* --- Directional Scroll Reveals --- */
.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-image-frame {
    animation: none;
  }
  .fade-in, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
  }
  .scroll-progress { display: none; }
}
