/* ============================================================
   Cuida Tus Pensamientos — Roberto Ocampo
   Design System & Stylesheet
   v1.0.0 — 2026-05-20
   Ocampo-Infra Agent System
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================================
   DESIGN TOKENS — theme-factory output (custom Roberto Ocampo)
   ============================================================ */
:root {
  /* Brand Palette */
  --brand-gold:        #d4a84b;
  --brand-gold-light:  #e8c97a;
  --brand-gold-dark:   #a07a2e;
  --brand-blue:        #1a3a5c;
  --brand-blue-light:  #2a5280;
  --brand-blue-deep:   #0d2035;
  --paper-warm:        #f7f1e3;
  --paper-dark:        #ede5d0;

  /* Typography */
  --font-serif:  'Cormorant Garamond', 'DejaVu Serif', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', 'DejaVu Sans', system-ui, -apple-system, sans-serif;

  --font-size-xs:   0.75rem;
  --font-size-sm:   0.875rem;
  --font-size-base: 1rem;
  --font-size-lg:   1.125rem;
  --font-size-xl:   1.375rem;
  --font-size-2xl:  1.75rem;
  --font-size-3xl:  2.25rem;
  --font-size-4xl:  3rem;
  --font-size-5xl:  4rem;
  --font-size-6xl:  5.5rem;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   2rem;
  --space-xl:   3rem;
  --space-2xl:  5rem;
  --space-3xl:  8rem;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.12);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.16);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.24);
  --shadow-gold: 0 0 40px rgba(212,168,75,0.18);

  /* Border Radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Layout */
  --max-width:     820px;
  --max-width-lg:  1200px;
  --section-pad:   var(--space-2xl) var(--space-lg);
}

/* ============================================================
   DARK THEME (default)
   ============================================================ */
:root,
[data-theme="dark"] {
  --bg-base:        #0a0f1a;
  --bg-secondary:   #111827;
  --bg-card:        #1a2537;
  --bg-card-hover:  #1e2d42;
  --text-primary:   #f0ede6;
  --text-secondary: #c8bfa8;
  --text-muted:     #8a7d6b;
  --border:         rgba(212,168,75,0.18);
  --border-hover:   rgba(212,168,75,0.4);
  --divider:        rgba(255,255,255,0.08);
  --gold-accent:    var(--brand-gold);
  --gold-text:      var(--brand-gold-light);
  --link-color:     var(--brand-gold-light);

  /* Theme toggle icon: sun (click to go light) */
  --theme-icon: "☀";
  --theme-icon-color: #f59e0b;
}

/* ============================================================
   LIGHT THEME
   ============================================================ */
[data-theme="light"] {
  --bg-base:        var(--paper-warm);
  --bg-secondary:   #ede5d0;
  --bg-card:        #fff8ec;
  --bg-card-hover:  #fffdf5;
  --text-primary:   #1c1c1e;
  --text-secondary: #4a3f2f;
  --text-muted:     #7a6a52;
  --border:         rgba(26,58,92,0.15);
  --border-hover:   rgba(26,58,92,0.35);
  --divider:        rgba(0,0,0,0.08);
  --gold-accent:    var(--brand-gold-dark);
  --gold-text:      var(--brand-gold-dark);
  --link-color:     var(--brand-blue);

  /* Theme toggle icon: moon (click to go dark) */
  --theme-icon-color: #1e3a5f;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-base);
  transition:
    background-color var(--transition-slow),
    color var(--transition-slow);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--link-color);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

a:hover { opacity: 0.75; }

/* ============================================================
   TOP NAV — theme + language toggles
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--transition-base);
}

.site-nav.scrolled {
  background: color-mix(in srgb, var(--bg-base) 85%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  transition:
    border-color var(--transition-fast),
    color var(--transition-fast),
    background var(--transition-fast);
}

.nav-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-card);
}

#theme-toggle {
  font-size: 1.1rem;
}

#lang-toggle {
  font-family: var(--font-sans);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  width: auto;
  padding: 0 var(--space-sm);
  border-radius: var(--radius-sm);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.section-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Dark: deep blue gradient */
[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(26,58,92,0.5) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(212,168,75,0.08) 0%, transparent 60%),
    var(--bg-base);
}

/* Light: warm paper gradient */
[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(247,241,227,0.9) 0%, transparent 80%),
    var(--paper-warm);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-image-wrapper {
  margin: 0 auto var(--space-lg);
  max-width: 720px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition-base);
}

.hero-image-wrapper:hover {
  box-shadow: 0 12px 48px rgba(0,0,0,0.35), 0 0 60px rgba(212,168,75,0.25);
}

.hero-image {
  width: 100%;
  height: auto;
}

.hero-attribution {
  font-family: var(--font-serif);
  font-size: var(--font-size-xl);
  font-style: italic;
  color: var(--text-muted);
  margin-top: var(--space-md);
}

/* ============================================================
   SECTION STYLES
   ============================================================ */
.section {
  padding: var(--section-pad);
}

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

.section-alt {
  background-color: var(--bg-secondary);
}

/* Section label (small caps above title) */
.section-label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-accent);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-serif);
  font-size: var(--font-size-4xl);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-family: var(--font-serif);
  font-size: var(--font-size-2xl);
  font-style: italic;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.4;
}

.body-text {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

/* Gold divider */
.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin: var(--space-xl) auto;
  max-width: 400px;
}

.gold-divider::before,
.gold-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--brand-gold);
  opacity: 0.4;
}

.gold-divider-diamond {
  width: 8px;
  height: 8px;
  background: var(--brand-gold);
  transform: rotate(45deg);
  opacity: 0.8;
  flex-shrink: 0;
}

/* ============================================================
   LA FRASE SECTION
   ============================================================ */
.quote-block {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}

.quote-lema-es,
.quote-lema-en {
  font-family: var(--font-serif);
  font-style: italic;
  line-height: 1.5;
  color: var(--text-primary);
}

.quote-lema-es { font-size: var(--font-size-4xl); }
.quote-lema-en { font-size: var(--font-size-3xl); color: var(--text-secondary); }

.quote-emphasis {
  color: var(--brand-gold);
  font-weight: 600;
}

.quote-attribution {
  margin-top: var(--space-xl);
  font-family: var(--font-serif);
  font-size: var(--font-size-xl);
  color: var(--text-muted);
}

.laurel-wrapper {
  display: flex;
  justify-content: center;
  margin: var(--space-lg) 0;
  opacity: 0.7;
}

/* ============================================================
   FILOSOFIA — 3 column cards
   ============================================================ */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.philosophy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition:
    border-color var(--transition-base),
    background var(--transition-base),
    transform var(--transition-base);
}

.philosophy-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.card-number {
  font-family: var(--font-serif);
  font-size: var(--font-size-5xl);
  font-weight: 300;
  color: var(--brand-gold);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.card-title {
  font-family: var(--font-serif);
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.card-body {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   AUTHOR BIO SECTION
   ============================================================ */
.author-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.author-photo-wrapper {
  position: sticky;
  top: var(--space-2xl);
}

.author-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-hover);
  box-shadow: var(--shadow-md);
}

.author-name {
  font-family: var(--font-serif);
  font-size: var(--font-size-3xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.author-title {
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: var(--space-lg);
}

.author-signature {
  font-family: var(--font-serif);
  font-size: var(--font-size-xl);
  font-style: italic;
  color: var(--brand-gold);
  margin-top: var(--space-lg);
}

/* ============================================================
   VERIFICATION CALLOUT
   ============================================================ */
.verification-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-gold);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
}

.verification-verdict {
  display: inline-block;
  background: rgba(212,168,75,0.15);
  color: var(--brand-gold);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

/* ============================================================
   E-BOOK / WAITLIST SECTION
   ============================================================ */
.ebook-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.ebook-cover {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  width: 100%;
}

.waitlist-form {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.waitlist-input {
  flex: 1;
  min-width: 200px;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  outline: none;
}

.waitlist-input::placeholder { color: var(--text-muted); }

.waitlist-input:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(212,168,75,0.15);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--brand-gold);
  color: #1a1000;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--brand-gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212,168,75,0.35);
  opacity: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
  opacity: 1;
}

.form-success {
  display: none;
  color: #22c55e;
  font-size: var(--font-size-sm);
  margin-top: var(--space-sm);
}

/* ============================================================
   DOWNLOADS SECTION
   ============================================================ */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  text-decoration: none;
  transition:
    border-color var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
  display: block;
}

.download-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), var(--shadow-gold);
  opacity: 1;
}

.download-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.download-label {
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.download-desc {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--brand-blue-deep);
  color: var(--text-secondary);
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  text-align: center;
}

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

.footer-logo {
  font-family: var(--font-serif);
  font-size: var(--font-size-3xl);
  font-style: italic;
  color: var(--brand-gold);
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

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

.footer-copy {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: var(--space-lg);
  line-height: 1.6;
}

/* ============================================================
   CHAIN VISUAL (Pensamiento → Actos → Hábitos → Identidad)
   ============================================================ */
.chain-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-xl) 0;
  font-family: var(--font-serif);
}

.chain-node {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-size-base);
  font-style: italic;
  color: var(--text-primary);
  white-space: nowrap;
}

.chain-arrow {
  color: var(--brand-gold);
  font-size: var(--font-size-xl);
  opacity: 0.7;
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-xl) 0;
  font-size: var(--font-size-sm);
}

.comparison-table th {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: var(--space-md);
  font-family: var(--font-sans);
  font-weight: 600;
  text-align: left;
  color: var(--text-primary);
}

.comparison-table th:first-child {
  border-left: 3px solid var(--brand-gold);
}

.comparison-table td {
  border: 1px solid var(--divider);
  padding: var(--space-md);
  color: var(--text-secondary);
  vertical-align: top;
  line-height: 1.6;
}

.comparison-table td.highlight {
  background: rgba(212,168,75,0.07);
  color: var(--text-primary);
  font-weight: 500;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.animate-fadein {
  animation: fadeIn 0.8s ease both;
}

.animate-fadeup {
  animation: fadeInUp 0.8s ease both;
}

.animate-delay-1 { animation-delay: 0.15s; }
.animate-delay-2 { animation-delay: 0.3s; }
.animate-delay-3 { animation-delay: 0.45s; }

/* ============================================================
   SCROLL REVEAL (JS-triggered)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-pad: var(--space-xl) var(--space-md);
  }

  .section-title  { font-size: var(--font-size-3xl); }
  .quote-lema-es  { font-size: var(--font-size-3xl); }
  .quote-lema-en  { font-size: var(--font-size-2xl); }

  .author-section {
    grid-template-columns: 1fr;
  }
  .author-photo-wrapper {
    position: static;
    max-width: 160px;
    margin: 0 auto;
  }

  .ebook-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ebook-cover {
    max-width: 200px;
    margin: 0 auto;
  }

  .waitlist-form {
    flex-direction: column;
  }

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

  .chain-visual {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .section-title { font-size: var(--font-size-2xl); }
  .quote-lema-es { font-size: var(--font-size-2xl); }
  .hero-attribution { font-size: var(--font-size-base); }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .site-nav, .waitlist-form, .downloads-grid { display: none; }
  body { background: white; color: black; }
  .quote-lema-es { color: #1a3a5c; }
}

/* ============================================================
   HERO POSTER — live bilingual hero (replaces baked-text PNG)
   Always rendered on warm paper, framed in gold; text switches ES/EN.
   Added by Ocampo-Infra Agent System · 2026-06-15
   ============================================================ */
.hero-poster {
  position: relative;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #f7f1e3;                 /* paper-warm, fixed regardless of theme */
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(0,0,0,.30), inset 0 0 0 1px rgba(160,122,46,.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1rem, 4vw, 3rem) clamp(1rem, 5vw, 4rem);
  overflow: hidden;
}
/* gold frame lines top & bottom, with diamond end-caps */
.hero-poster::before,
.hero-poster::after {
  content: "";
  position: absolute;
  left: 5.2%;
  right: 5.2%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4a84b 7%, #d4a84b 93%, transparent);
}
.hero-poster::before { top: 6%; }
.hero-poster::after  { bottom: 6%; }
.hero-poster .hp-l1,
.hero-poster .hp-l2,
.hero-poster .hp-l3,
.hero-poster .hp-l4 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: .005em;
  max-width: 92%;
}
.hero-poster .hp-l1 { font-size: clamp(1.9rem, 6.1vw, 4.3rem); color: #26201a; }
.hero-poster .hp-l2 { font-size: clamp(1.35rem, 4.3vw, 2.9rem); color: #1a3a5c; margin-top: .55em; }
.hero-poster .hp-l3 { font-size: clamp(1.15rem, 3.3vw, 2.25rem); color: #26201a; margin-top: .95em; }
.hero-poster .hp-l4 { font-size: clamp(1.25rem, 3.7vw, 2.5rem);  color: #1a3a5c; margin-top: .4em; }
.hero-poster .hp-div {
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4a84b, transparent);
  margin: 1em auto .1em;
  position: relative;
}
.hero-poster .hp-div::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 7px; height: 7px;
  background: #d4a84b;
  transform: translate(-50%, -50%) rotate(45deg);
}
.hero-poster .hp-attr {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2.3vw, 1.45rem);
  color: #6b5a3e;
  margin-top: 1.25em;
}
.hero-poster .hp-wm {
  position: absolute;
  right: 3.4%;
  bottom: 3.2%;
  font-family: var(--font-sans);
  font-size: clamp(.5rem, 1.15vw, .72rem);
  color: #b9912f;
  letter-spacing: .02em;
  opacity: .92;
}
@media (max-width: 600px) {
  .hero-poster::before { top: 5%; }
  .hero-poster::after  { bottom: 5%; }
  .hero-poster .hp-wm { font-size: .5rem; }
}

/* ============================================================
   OFFICIAL MULTI-PAGE SITE — components (Ocampo-Infra · 2026-06-15)
   ============================================================ */
.site-header{position:sticky;top:0;z-index:100;display:flex;align-items:center;gap:1rem;
  flex-wrap:wrap;padding:.7rem clamp(1rem,4vw,2.5rem);
  background:color-mix(in srgb,var(--bg-secondary) 92%,transparent);
  backdrop-filter:blur(10px);border-bottom:1px solid var(--border);}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:var(--text-primary);}
.brand-mark{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:6px;
  border:1.5px solid var(--brand-gold);color:var(--gold-text);font-family:var(--font-serif);
  font-weight:700;font-size:.95rem;letter-spacing:.02em;}
.brand-text{font-family:var(--font-serif);font-weight:600;font-size:1.05rem;letter-spacing:.01em;white-space:nowrap;}
.site-tabs{display:flex;flex-wrap:wrap;gap:.2rem .9rem;flex:1;justify-content:center;}
.site-tabs a{font-family:var(--font-sans);font-size:.86rem;font-weight:500;letter-spacing:.01em;
  text-decoration:none;color:var(--text-secondary);padding:.3rem .15rem;border-bottom:2px solid transparent;
  transition:color .2s,border-color .2s;white-space:nowrap;}
.site-tabs a:hover{color:var(--text-primary);}
.site-tabs a[aria-current="page"]{color:var(--gold-text);border-bottom-color:var(--brand-gold);}
.nav-toggles{display:flex;gap:.5rem;}
.site-header .nav-btn{background:transparent;border:1px solid var(--border);color:var(--text-secondary);
  border-radius:6px;min-width:38px;height:34px;padding:0 .5rem;cursor:pointer;font-family:var(--font-sans);
  font-size:.8rem;font-weight:600;display:inline-grid;place-items:center;transition:border-color .2s,color .2s;}
.site-header .nav-btn:hover{border-color:var(--border-hover);color:var(--text-primary);}

/* interior page hero */
.page-hero{text-align:center;padding:clamp(2.5rem,6vw,4.5rem) var(--space-lg) clamp(1.5rem,3vw,2.5rem);}
.page-hero .kicker{font-family:var(--font-sans);font-size:.8rem;letter-spacing:.18em;text-transform:uppercase;
  color:var(--gold-accent);display:block;margin-bottom:.8rem;}
.page-hero h1{font-family:var(--font-serif);font-weight:600;font-size:clamp(2.1rem,5.5vw,3.6rem);line-height:1.08;}
.page-hero .lead{max-width:640px;margin:1.1rem auto 0;font-family:var(--font-serif);font-style:italic;
  font-size:clamp(1.1rem,2.4vw,1.45rem);color:var(--text-secondary);}

/* section cards (home navigation) */
.section-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.2rem;
  max-width:1100px;margin:0 auto;}
.nav-card{display:block;text-decoration:none;background:var(--bg-card);border:1px solid var(--border);
  border-radius:12px;padding:var(--space-lg);transition:transform .2s,border-color .2s,background .2s;}
.nav-card:hover{transform:translateY(-3px);border-color:var(--border-hover);background:var(--bg-card-hover);}
.nav-card .nc-kicker{font-family:var(--font-sans);font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-accent);}
.nav-card h3{font-family:var(--font-serif);font-size:1.5rem;font-weight:600;margin:.4rem 0 .5rem;color:var(--text-primary);}
.nav-card p{font-family:var(--font-sans);font-size:.92rem;color:var(--text-secondary);line-height:1.55;}
.nav-card .nc-go{display:inline-block;margin-top:.8rem;color:var(--gold-text);font-family:var(--font-sans);font-size:.85rem;font-weight:600;}

/* book feature */
.book-feature{display:grid;grid-template-columns:minmax(220px,320px) 1fr;gap:clamp(1.5rem,4vw,3.5rem);
  align-items:center;max-width:1000px;margin:0 auto;}
.book-feature .book-mockup{width:100%;height:auto;filter:drop-shadow(0 20px 40px rgba(0,0,0,.4));}
@media(max-width:720px){.book-feature{grid-template-columns:1fr;justify-items:center;text-align:center;}
  .book-feature .book-mockup{max-width:280px;}}

/* downloads with real thumbnails */
.downloads-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1.2rem;max-width:1000px;margin:0 auto;}
.download-card{display:flex;flex-direction:column;align-items:center;gap:.6rem;text-decoration:none;
  background:var(--bg-card);border:1px solid var(--border);border-radius:12px;padding:1rem;
  transition:transform .2s,border-color .2s;}
.download-card:hover{transform:translateY(-3px);border-color:var(--border-hover);}
.download-thumb{width:100%;max-height:200px;object-fit:contain;border-radius:6px;
  box-shadow:0 6px 18px rgba(0,0,0,.25);background:#f7f1e3;}
.download-card .download-label{font-family:var(--font-serif);font-size:1.15rem;color:var(--text-primary);}
.download-card .download-desc{font-family:var(--font-sans);font-size:.78rem;color:var(--text-muted);}

/* chapter / prose */
.prose{max-width:720px;margin:0 auto;padding:0 var(--space-lg);}
.prose p{font-family:var(--font-serif);font-size:clamp(1.15rem,2.2vw,1.32rem);line-height:1.75;
  color:var(--text-primary);margin-bottom:1.3rem;}
.prose .lema-inset{font-style:italic;text-align:center;color:var(--gold-text);border-left:none;
  font-size:clamp(1.3rem,3vw,1.7rem);margin:1.5rem auto 2rem;}
.prose h3{font-family:var(--font-serif);font-size:1.6rem;color:var(--text-primary);margin:2rem 0 .8rem;}
.prose .edit-tag{font-family:var(--font-sans);font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-accent);font-weight:600;}

/* forms */
.form{max-width:560px;margin:0 auto;display:flex;flex-direction:column;gap:1rem;}
.form-row{display:flex;flex-direction:column;gap:.35rem;text-align:left;}
.form-row label{font-family:var(--font-sans);font-size:.82rem;color:var(--text-secondary);font-weight:500;}
.form input,.form textarea{font-family:var(--font-sans);font-size:1rem;padding:.8rem 1rem;border-radius:8px;
  border:1px solid var(--border);background:var(--bg-card);color:var(--text-primary);width:100%;}
.form input:focus,.form textarea:focus{outline:none;border-color:var(--brand-gold);}
.form textarea{min-height:140px;resize:vertical;}
.form-success{font-family:var(--font-sans);color:var(--gold-text);min-height:1.2rem;font-size:.9rem;}

/* blog list */
.blog-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.4rem;max-width:1000px;margin:0 auto;}
.blog-card{background:var(--bg-card);border:1px solid var(--border);border-radius:12px;padding:var(--space-lg);
  text-decoration:none;display:block;transition:transform .2s,border-color .2s;}
.blog-card:hover{transform:translateY(-3px);border-color:var(--border-hover);}
.blog-card .bc-tag{font-family:var(--font-sans);font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-accent);}
.blog-card h3{font-family:var(--font-serif);font-size:1.4rem;color:var(--text-primary);margin:.4rem 0;}
.blog-card p{font-family:var(--font-sans);font-size:.9rem;color:var(--text-secondary);line-height:1.55;}
.footer-tabs{display:flex;flex-wrap:wrap;gap:.4rem 1.1rem;justify-content:center;margin-bottom:1rem;}
.footer-tabs a{font-family:var(--font-sans);font-size:.85rem;color:var(--text-secondary);text-decoration:none;}
.footer-tabs a:hover{color:var(--gold-text);}
/* ============================================================
   HAMBURGER / RESPONSIVE NAV — Ocampo-Infra Agent System · 2026-06-15
   Breakpoint: 860px  |  Burger: #nav-burger  |  Menu: #site-tabs
   ============================================================ */

/* --- Burger button (hidden on desktop) --- */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  order: 2;                        /* brand | burger | nav-toggles on mobile */
  flex-shrink: 0;
  transition: border-color var(--transition-fast);
}
.nav-burger:hover { border-color: var(--border-hover); }
.nav-burger:focus-visible { outline: 2px solid var(--brand-gold); outline-offset: 2px; }

.burger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform 0.3s ease,
    opacity   0.2s ease,
    background 0.2s ease;
}
.nav-burger:hover .burger-bar { background: var(--text-primary); }

/* Animated X when menu is open */
.nav-burger[aria-expanded="true"] .burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .burger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger[aria-expanded="true"] .burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile nav panel (below 860px) --- */
@media (max-width: 860px) {
  /* Show burger, rearrange header */
  .nav-burger { display: flex; }

  /* Header layout: brand (flex-1) | burger | toggles */
  .site-header { flex-wrap: nowrap; position: relative; }
  .brand       { flex: 1; }
  .nav-toggles { order: 3; flex-shrink: 0; }

  /* Collapsed nav: hidden off-screen below header */
  .site-tabs {
    order: 4;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    padding: 0;
    background: color-mix(in srgb, var(--bg-secondary) 97%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    /* Slide-down animation via max-height */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
    z-index: 99;
  }

  /* Open state */
  .site-tabs.nav-open {
    max-height: 640px;   /* enough for 10 links; content clips before this */
    padding: .5rem 0;
  }

  /* Individual links — full-width tap targets ≥44px */
  .site-tabs a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: .55rem clamp(1rem, 4vw, 2.5rem);
    font-size: .95rem;
    border-bottom: none;            /* no underline decoration on mobile */
    border-left: 3px solid transparent;
    transition: background .15s, border-color .15s, color .15s;
  }
  .site-tabs a:hover {
    background: var(--bg-card);
    border-left-color: var(--border-hover);
  }
  .site-tabs a[aria-current="page"] {
    border-left-color: var(--brand-gold);
    color: var(--gold-text);
    background: color-mix(in srgb, var(--brand-gold) 8%, transparent);
  }

  /* Light theme overrides inside mobile menu */
  [data-theme="light"] .site-tabs a { color: var(--brand-blue); opacity: 1; }
  [data-theme="light"] .site-tabs a:hover,
  [data-theme="light"] .site-tabs a[aria-current="page"] {
    color: var(--brand-blue);
    border-left-color: var(--brand-gold-dark);
  }
  [data-theme="light"] .site-tabs a[aria-current="page"] {
    background: color-mix(in srgb, var(--brand-gold-dark) 8%, transparent);
  }
}

/* Small screen: hide brand text per existing rule */
@media (max-width: 520px) { .brand-text { display: none; } }

/* ============================================================
   DESIGN REVIEW FIXES — Aesthetic Style Consultant + Expert Graphic
   Designer (Ocampo-Infra Agent System) · 2026-06-15
   WCAG AA contrast + footer hierarchy + hover/card polish
   ============================================================ */
/* token AA corrections */
:root, [data-theme="dark"] { --text-muted: #a09080; }              /* was #8a7d6b: 3.83:1 on cards → 4.98:1 */
[data-theme="light"] { --gold-accent: #7a5c1e; --gold-text: #7a5c1e; } /* was #a07a2e: 3.51:1 → 5.5:1 on paper */

/* FOOTER — dark navy band, fixed LIGHT text (AA on both #0d2035 and light-theme #1a3a5c) + tiered hierarchy */
.site-footer { color: #c8bfa8; border-top: 1px solid rgba(212,168,75,0.22); padding: 4rem clamp(1rem,4vw,2.5rem) 2.5rem; }
[data-theme="light"] .site-footer { background: var(--brand-blue); border-top-color: rgba(212,168,75,0.30); } /* softer navy, not near-black */
.footer-logo { font-size: clamp(1.75rem,4vw,2.5rem); letter-spacing: .02em; line-height: 1; margin-bottom: var(--space-lg); }
.footer-tabs { gap: .35rem 1.6rem; margin-bottom: 0; padding-bottom: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-tabs a { font-size: .9rem; color: #d3cbb9; letter-spacing: .01em; }
.footer-tabs a:hover { color: var(--brand-gold-light); opacity: 1; }
.footer-links { gap: .4rem 2rem; margin-top: 1.1rem; margin-bottom: 0; }
.footer-links a { color: #c8bfa8; font-size: .82rem; letter-spacing: .03em; }
.footer-links a:hover { color: var(--brand-gold-light); opacity: 1; }
.site-footer .gold-divider { margin: 1.4rem auto 1rem; max-width: 220px; }
.footer-copy { color: #b7ad97; font-size: .77rem; letter-spacing: .015em; line-height: 1.7; margin-top: 0; }

/* HEADER — active tab weight + light-theme tab contrast (brand-blue on paper) */
.site-tabs a[aria-current="page"] { font-weight: 600; }
.site-tabs a:hover { color: var(--text-primary); opacity: 1; }
[data-theme="light"] .site-tabs a { color: var(--brand-blue); opacity: .7; }
[data-theme="light"] .site-tabs a:hover,
[data-theme="light"] .site-tabs a[aria-current="page"] { color: var(--brand-blue); opacity: 1; border-bottom-color: var(--brand-gold-dark); }
@media (max-width: 520px) { .brand-text { display: none; } }

/* CARD HOVER — cancel inherited a:hover opacity dim (cards were dimming + rising) + accents */
.nav-card:hover, .blog-card:hover, .download-card:hover { opacity: 1; }
.nav-card .nc-go { transition: color var(--transition-fast); }
.nav-card:hover .nc-go { color: var(--brand-gold); }
.blog-card { border-left: 3px solid transparent; transition: transform .2s, border-color .2s, background .2s; }
.blog-card:hover { border-left-color: var(--brand-gold); transform: translateY(-2px); }
.blog-card .bc-tag { letter-spacing: .16em; font-weight: 600; }

/* BOOK FEATURE (libro) — give the mockup a stage + warm ambient glow */
.book-feature { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: clamp(2rem,4vw,3.5rem); }
.book-feature .book-mockup { filter: drop-shadow(0 24px 48px rgba(0,0,0,.45)) drop-shadow(0 0 32px rgba(212,168,75,.12)); }

/* SECTION ALT edges + small contrast fixes */
.section-alt { border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
[data-theme="light"] .form-success { color: #146b33; }      /* was #22c55e: 2.16:1 → 5.9:1 */
.download-thumb { height: 170px; object-fit: contain; }     /* uniform card height, no crop */
