/* ============================================================
   SPIRIT CUENTOS — Landing styles
   Paleta y tipografías coherentes con los libros
   ============================================================ */

:root {
  --cream: #F4E9D4;
  --warm: #EAD9C2;
  --terra: #B5651D;
  --terra-dark: #8E4F12;
  --brown: #3D2817;
  --brown-soft: #5A3F2C;
  --sage: #7A8A66;
  --honey: #C19A55;
  --white: #FFFCF7;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-accent: 'Caveat', cursive;

  --radius: 12px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(61, 40, 23, 0.06);
  --shadow-md: 0 8px 24px rgba(61, 40, 23, 0.10);
  --shadow-lg: 0 16px 48px rgba(61, 40, 23, 0.14);

  --container: 1100px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--brown);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--terra-dark); }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section {
  padding: 80px 0;
  position: relative;
}
@media (max-width: 720px) {
  section { padding: 56px 0; }
}

/* ============================================================
   NAV / HEADER
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 233, 212, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(181, 101, 29, 0.10);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--terra);
  letter-spacing: 0.5px;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-toggle {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--brown);
  padding: 6px 12px;
  border: 1px solid rgba(181, 101, 29, 0.30);
  border-radius: 999px;
  transition: all 0.2s;
}
.lang-toggle:hover {
  background: var(--terra);
  color: var(--cream);
  border-color: var(--terra);
}
.nav-cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
  background: var(--terra);
  padding: 8px 18px;
  border-radius: 999px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--terra-dark); color: var(--cream); }
@media (max-width: 540px) {
  .nav-cta { display: none; }
  .nav-logo { font-size: 18px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--warm) 100%);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  color: var(--sage);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1.08;
  color: var(--brown);
  margin-bottom: 22px;
}
.hero-title em {
  font-style: italic;
  color: var(--terra);
}
.hero-subtitle {
  font-size: 18px;
  color: var(--brown-soft);
  margin-bottom: 32px;
  max-width: 520px;
}
@media (max-width: 880px) { .hero-subtitle { margin-left: auto; margin-right: auto; } }
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
@media (max-width: 880px) { .hero-ctas { justify-content: center; } }
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--terra);
  color: var(--cream);
}
.btn-primary:hover { background: var(--terra-dark); color: var(--cream); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--terra);
  border-color: var(--terra);
}
.btn-ghost:hover { background: var(--terra); color: var(--cream); }
.hero-visual {
  position: relative;
  height: 460px;
}
@media (max-width: 880px) { .hero-visual { height: 380px; } }
.hero-book {
  position: absolute;
  width: 56%;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s;
}
.hero-book:hover { transform: translateY(-6px); }
.hero-book-1 {
  left: 10%;
  top: 10%;
  transform: rotate(-6deg);
  z-index: 2;
}
.hero-book-2 {
  right: 8%;
  top: 25%;
  transform: rotate(7deg);
  z-index: 1;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--cream);
}
.about-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  color: var(--sage);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  color: var(--brown);
  margin-bottom: 32px;
}
.divider {
  width: 60px;
  height: 1px;
  background: var(--terra);
  opacity: 0.5;
  margin: 28px auto;
}
.about-text {
  font-size: 18px;
  line-height: 1.85;
  color: var(--brown);
}
.about-text p + p { margin-top: 18px; }

/* ============================================================
   SERIES
   ============================================================ */
.series {
  background: var(--warm);
  position: relative;
}
.series-header {
  text-align: center;
  margin-bottom: 56px;
}
.series-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 720px) { .series-grid { grid-template-columns: 1fr; gap: 40px; } }
.book-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.book-cover {
  width: 220px;
  height: 220px;
  margin: 0 auto 24px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}
.book-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 12px;
  color: var(--sage);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.book-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  color: var(--brown);
  margin-bottom: 12px;
}
.book-desc {
  font-size: 16px;
  color: var(--brown-soft);
  margin-bottom: 24px;
  flex-grow: 1;
}
.book-meta {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  color: var(--sage);
  margin-bottom: 20px;
}
.book-ctas {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.book-cta {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--brown);
  background: var(--cream);
  padding: 11px 16px;
  border-radius: 999px;
  transition: background 0.2s;
}
.book-cta:hover { background: var(--terra); color: var(--cream); }
.book-cta .flag { margin-right: 8px; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  background: var(--cream);
}
.newsletter-card {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--warm) 0%, var(--cream) 100%);
  border: 1px solid rgba(181, 101, 29, 0.18);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 720px) { .newsletter-card { padding: 40px 24px; } }
.newsletter-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.2;
  color: var(--brown);
  margin-bottom: 16px;
}
.newsletter-subtitle {
  font-size: 16px;
  color: var(--brown-soft);
  margin-bottom: 32px;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 16px;
  flex-wrap: wrap;
}
.newsletter-input {
  flex: 1;
  min-width: 200px;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 20px;
  border: 1px solid rgba(61, 40, 23, 0.15);
  border-radius: 999px;
  background: var(--white);
  color: var(--brown);
  outline: none;
  transition: border 0.2s;
}
.newsletter-input:focus { border-color: var(--terra); }
.newsletter-btn {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
  background: var(--terra);
  padding: 14px 28px;
  border-radius: 999px;
  transition: background 0.2s;
}
.newsletter-btn:hover { background: var(--terra-dark); }
.newsletter-note {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  color: var(--sage);
  margin-top: 14px;
}
.newsletter-success {
  display: none;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--terra);
  padding: 20px;
}
.newsletter-success.visible { display: block; }
.newsletter-form.hidden { display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--brown);
  color: var(--cream);
  padding: 56px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; gap: 28px; text-align: center; } }
.footer-brand .nav-logo {
  color: var(--cream);
  font-size: 26px;
  display: block;
  margin-bottom: 8px;
}
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--honey);
  opacity: 0.85;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 12px;
  color: var(--honey);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--cream);
  opacity: 0.85;
  margin-bottom: 8px;
  transition: opacity 0.2s;
}
.footer-col a:hover { opacity: 1; color: var(--cream); }
.footer-bottom {
  border-top: 1px solid rgba(244, 233, 212, 0.12);
  padding-top: 24px;
  text-align: center;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 12px;
  color: var(--cream);
  opacity: 0.6;
}

/* ============================================================
   SPRIG / DECORATIVE
   ============================================================ */
.sprig {
  display: block;
  margin: 0 auto 20px;
  opacity: 0.7;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.center { text-align: center; }
.mt-md { margin-top: 28px; }
