/* =====================================================
   Siembra Vientos, Cosecha Torbellinos · Samuel Valverde
   Landing page - Editorial pastoral
   ===================================================== */

/* ============ FUENTES LOCALES ============ */
@font-face {
  font-family: 'Big Caslon CC';
  src: url('assets/fonts/fonnts.com-Big_Caslon_CC.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Big Caslon CC';
  src: url('assets/fonts/fonnts.com-Big_Caslon_CC_Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Big Caslon CC';
  src: url('assets/fonts/fonnts.com-Big_Caslon_CC_Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Big Caslon CC';
  src: url('assets/fonts/fonnts.com-Big_Caslon_CC_Bold_Italic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Big Caslon CC';
  src: url('assets/fonts/fonnts.com-Big_Caslon_CC_Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Big Caslon CC';
  src: url('assets/fonts/fonnts.com-Big_Caslon_CC_Black_Italic.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ============ VARIABLES ============ */
:root {
  --color-bg: #faf7f2;          /* crema cálido */
  --color-bg-alt: #f3ede3;      /* crema más oscuro */
  --color-ink: #1a1612;         /* casi negro cálido */
  --color-ink-soft: #4a423a;    /* gris cálido */
  --color-ink-muted: #80766b;   /* gris suave */
  --color-rule: #d8cfc1;        /* línea sutil */
  --color-accent: #8a2820;      /* burdeos pastoral */
  --color-accent-soft: #c66a5f;
  --color-dark: #0f0c08;
  --color-dark-soft: #2a221b;

  --font-display: 'Big Caslon CC', 'Cormorant Garamond', Georgia, serif;
  --font-serif: 'Cormorant Garamond', 'Big Caslon CC', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --container-narrow: 760px;

  --radius: 4px;
  --shadow-soft: 0 30px 60px -20px rgba(26, 22, 18, 0.25);
  --shadow-cover: 0 40px 80px -20px rgba(26, 22, 18, 0.45);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-bg);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
ul, ol { padding: 0; margin: 0; list-style: none; }
blockquote { margin: 0; }
button, input, select, textarea { font: inherit; }

/* ============ LAYOUT ============ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container.narrow { max-width: var(--container-narrow); }
.container.centered { text-align: center; }

.section {
  padding: 120px 0;
  position: relative;
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .container { padding: 0 24px; }
}

/* ============ TIPOGRAFÍA BASE ============ */
.eyebrow,
.kicker {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 24px;
}
.kicker.light { color: var(--color-accent-soft); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  margin: 0 0 32px;
}

.prose p {
  margin: 0 0 24px;
  font-size: 19px;
  line-height: 1.75;
  color: var(--color-ink-soft);
}
.prose p:last-child { margin-bottom: 0; }
.prose em { color: var(--color-ink); font-style: italic; }
.prose strong { color: var(--color-ink); font-weight: 600; }

.prose-emphasis {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px !important;
  line-height: 1.4 !important;
  color: var(--color-ink) !important;
  padding: 16px 0;
}

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  line-height: 1.45;
  color: var(--color-ink);
  padding: 32px 0 32px 32px;
  border-left: 2px solid var(--color-accent);
  margin: 48px 0 0;
}
.pull-quote.small { font-size: 22px; padding: 24px 0 0 24px; margin-top: 32px; }
.pull-quote cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.microcopy {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-ink-muted);
  margin-top: 24px;
}
.microcopy.light { color: rgba(255, 255, 255, 0.6); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(138, 40, 32, 0.5);
}
.btn-primary:hover {
  background: var(--color-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.btn-ghost:hover {
  background: var(--color-ink);
  color: var(--color-bg);
}
.btn-large {
  padding: 20px 40px;
  font-size: 15px;
}
.btn-link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-rule);
  padding-bottom: 4px;
  transition: all 0.2s var(--ease);
}
.btn-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-link.light {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-link.light:hover {
  color: #fff;
  border-color: #fff;
}

/* ============ NAV ============ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-rule);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 6px;
}
.nav-brand-logo {
  height: 28px;
  width: auto;
  display: block;
  /* logo principal viene oscuro: lo dejamos tal cual */
}
.nav-brand-tag {
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-ink-soft);
  position: relative;
}
.nav-links a:hover { color: var(--color-accent); }
.nav-cta {
  padding: 12px 24px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
}
@media (max-width: 540px) {
  .nav-cta { display: none; }
  .nav-inner { padding: 16px 24px; }
}

/* ============ HERO ============ */
.hero {
  padding: 100px 0 120px;
  position: relative;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-cover {
  position: relative;
  display: flex;
  justify-content: center;
}
.cover-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 2/3;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: var(--shadow-cover);
  transform: rotate(-1.5deg);
  transition: transform 0.6s var(--ease);
}
.cover-frame:hover { transform: rotate(0); }
.cover-frame img { width: 100%; height: 100%; object-fit: cover; }
.cover-shadow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(138, 40, 32, 0.08) 0%, transparent 60%);
  z-index: -1;
  filter: blur(40px);
}

.hero-text { max-width: 580px; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--color-ink);
  margin: 0 0 32px;
}
.hero-title em {
  font-style: italic;
  color: var(--color-accent);
}
.hero-sub {
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-ink-soft);
  margin: 0 0 24px;
}
.hero-author {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-ink-muted);
  margin: 0 0 36px;
}
.hero-author strong { color: var(--color-ink); font-weight: 600; }
.hero-cta {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-rule {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: var(--color-accent);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
    text-align: center;
  }
  .hero-cover { order: -1; }
  .cover-frame { max-width: 280px; transform: rotate(0); }
  .hero-cta { justify-content: center; }
}

/* ============ SECTION PROMISE ============ */
.section-promise {
  background: var(--color-bg);
  text-align: center;
}
.section-promise .section-title {
  font-style: italic;
  font-size: clamp(30px, 4.5vw, 48px);
  margin-bottom: 48px;
}
.section-promise .prose p {
  font-size: 21px;
  line-height: 1.75;
}

/* ============ SECTION SINOPSIS ============ */
.section-sinopsis {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
}
.two-col {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.col-side { position: sticky; top: 120px; }
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .col-side { position: static; }
}

/* ============ SECTION LEARN ============ */
.section-learn { background: var(--color-bg); }
.section-head {
  margin-bottom: 64px;
  max-width: 720px;
}
.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.learn-list {
  display: grid;
  gap: 1px;
  background: var(--color-rule);
  border: 1px solid var(--color-rule);
}
.learn-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 40px 32px;
  background: var(--color-bg);
  align-items: start;
  transition: background 0.3s var(--ease);
}
.learn-item:hover { background: var(--color-bg-alt); }
.learn-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 40px;
  font-weight: 400;
  color: var(--color-accent);
  line-height: 1;
}
.learn-item h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--color-ink);
}
.learn-item p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-ink-soft);
}
@media (max-width: 600px) {
  .learn-item { grid-template-columns: 1fr; gap: 12px; padding: 32px 24px; }
}

/* ============ SECTION TOC ============ */
.section-toc { background: var(--color-bg-alt); }
.toc-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
  margin-top: 32px;
}
.toc-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--color-rule);
}
.toc-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  color: var(--color-accent);
  line-height: 1;
}
.toc-item h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 8px;
  line-height: 1.3;
}
.toc-item p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-ink-soft);
  margin: 0;
}
.toc-foot {
  text-align: center;
  margin-top: 48px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}
@media (max-width: 800px) {
  .toc-list { grid-template-columns: 1fr; gap: 0; }
}

/* ============ SECTION AUTHOR ============ */
.section-author { background: var(--color-bg); }
.author-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.author-photo {
  position: sticky;
  top: 120px;
}
.author-figure {
  margin: 0;
  position: relative;
}
.author-figure img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: var(--shadow-soft);
  display: block;
}
.author-figure figcaption {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-top: 16px;
  text-align: center;
}
@media (max-width: 900px) {
  .author-grid { grid-template-columns: 1fr; gap: 40px; }
  .author-photo { position: static; max-width: 320px; margin: 0 auto; }
}

/* ============ SECTION TESTIMONIALS ============ */
.section-testimonials { background: var(--color-bg-alt); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}
.testimonial {
  background: var(--color-bg);
  padding: 40px 32px;
  border-radius: 2px;
  border: 1px solid var(--color-rule);
  display: flex;
  flex-direction: column;
}
.testimonial-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink-muted);
  font-family: var(--font-display);
  margin-bottom: 24px;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.5;
  font-style: italic;
  color: var(--color-ink);
  margin: 0 0 24px;
  flex: 1;
}
.testimonial footer { font-family: var(--font-sans); font-size: 13px; }
.testimonial footer strong {
  display: block;
  color: var(--color-ink);
  font-weight: 600;
}
.testimonial footer span {
  color: var(--color-ink-muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}
@media (max-width: 900px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ============ FAQ ============ */
.section-faq { background: var(--color-bg); }
.faq-list { margin-top: 32px; }
.faq-item {
  border-top: 1px solid var(--color-rule);
  padding: 24px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--color-rule); }
.faq-item summary {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--color-ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
  transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: var(--color-accent);
  font-family: var(--font-sans);
  font-weight: 300;
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item summary:hover { color: var(--color-accent); }
.faq-item p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-ink-soft);
  margin: 16px 0 0;
}

/* ============ FINAL CTA ============ */
.section-final {
  background: linear-gradient(160deg, var(--color-dark) 0%, #1a0d0a 60%, #2a0f0a 100%);
  color: var(--color-bg);
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}
.section-final::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(198, 106, 95, 0.15) 0%, transparent 70%);
  filter: blur(60px);
}
.final-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.1;
  margin: 0 0 40px;
  color: #fff;
  position: relative;
}
.final-title em { color: var(--color-accent-soft); font-style: italic; }
.section-final .prose.light p { color: rgba(255, 255, 255, 0.78); font-size: 19px; }
.section-final .prose-emphasis { color: #fff !important; }
.final-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin: 48px 0 32px;
  flex-wrap: wrap;
  position: relative;
}
.section-final .btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.section-final .btn-primary:hover { background: var(--color-accent-soft); }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-logo {
  height: 32px;
  width: auto;
  display: block;
  margin: 0 0 12px;
  /* logo blanco sobre fondo oscuro */
}
.footer-role {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 16px;
}
.footer-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--color-accent-soft);
  margin: 0;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 14px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--color-accent-soft); }
.footer-meta {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
}
.footer-meta p { margin: 0 0 8px; }
.footer-credit strong { color: rgba(255, 255, 255, 0.85); font-weight: 600; }
@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-meta { text-align: left; }
}

/* ============ REVEAL ANIMATIONS ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal="left"] {
  transform: translateX(-32px);
}
[data-reveal="right"] {
  transform: translateX(32px);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}
