/* El Umbral — estilos comunes */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #F5F0E8;
  --cream-dark: #EDE5D0;
  --cream-darker: #D9CEBC;
  --green-deep: #2C3B2D;
  --green-mid: #4A5E3A;
  --green-light: #7A9464;
  --green-muted: #B5C4A1;
  --ink: #1C1A14;
  --ink-mid: #3D3A2E;
  --ink-light: #6B6554;
  --amber: #C17B2A;
  --amber-light: #E8A84A;
  --paper: #FAF6EE;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: 'Lora', Georgia, serif;
  min-height: 100vh;
  overflow-x: hidden;
}

nav {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--cream-darker);
}

.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green-deep);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Lora', serif;
  font-size: 0.8rem;
  color: var(--ink-light);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

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

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 88vh;
  align-items: center;
}

.hero-left {
  padding: 5rem 4rem 5rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  font-family: 'Lora', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.5rem;
}

h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--green-deep);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

h1 em {
  font-style: italic;
  color: var(--green-mid);
}

.hero-subtitle {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-light);
  font-style: italic;
  margin-bottom: 2.5rem;
  max-width: 380px;
  border-left: 2px solid var(--amber);
  padding-left: 1.25rem;
}

.hero-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink-mid);
  max-width: 380px;
  margin-bottom: 2.5rem;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
}

.subscribe-form input[type="email"] {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--cream-darker);
  border-radius: 2px;
  background: var(--paper);
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}

.subscribe-form input[type="email"]::placeholder { color: var(--ink-light); }
.subscribe-form input[type="email"]:focus { border-color: var(--green-light); }

.btn-subscribe {
  padding: 0.85rem 2rem;
  background: var(--green-deep);
  color: var(--cream);
  border: none;
  border-radius: 2px;
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-subscribe:hover { background: var(--green-mid); }

.form-note {
  font-size: 0.75rem;
  color: var(--ink-light);
  font-style: italic;
}

.hero-right {
  background: var(--green-deep);
  height: 100%;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.015) 40px,
    rgba(255,255,255,0.015) 41px
  );
}

.book-visual {
  position: relative;
  z-index: 1;
  text-align: center;
}

.ornament {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--amber);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 2rem;
}

.pull-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--cream);
  max-width: 340px;
  margin: 0 auto 2rem;
}

.pull-quote-attr {
  font-family: 'Lora', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-muted);
}

.season-badges {
  display: flex;
  gap: 0.5rem;
  margin-top: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 1px;
  font-family: 'Lora', serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-muted);
}

.how-section {
  padding: 5rem;
  background: var(--paper);
  border-top: 1px solid var(--cream-darker);
}

.section-label {
  font-family: 'Lora', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
  text-align: center;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--green-deep);
  text-align: center;
  margin-bottom: 3.5rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.feature { text-align: center; }

.feature-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  font-style: italic;
  color: var(--cream-darker);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.feature h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 0.75rem;
}

.feature p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ink-light);
}

.cta-section {
  padding: 5rem;
  background: var(--green-deep);
  text-align: center;
}

.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 0.9rem;
  color: var(--green-muted);
  margin-bottom: 2rem;
  font-style: italic;
}

.cta-form {
  display: flex;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto;
}

.cta-form input[type="email"] {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  background: rgba(255,255,255,0.07);
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  color: var(--cream);
  outline: none;
}

.cta-form input::placeholder { color: var(--green-muted); }

.cta-form button {
  padding: 0.85rem 1.75rem;
  background: var(--amber);
  color: var(--ink);
  border: none;
  border-radius: 2px;
  font-family: 'Lora', serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.cta-form button:hover { background: var(--amber-light); }

footer {
  padding: 1.5rem 5rem;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-darker);
}

.footer-note {
  font-size: 0.75rem;
  color: var(--ink-light);
  font-style: italic;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow { animation: fadeUp 0.6s ease both; }
h1 { animation: fadeUp 0.6s 0.1s ease both; }
.hero-subtitle { animation: fadeUp 0.6s 0.2s ease both; }
.hero-desc { animation: fadeUp 0.6s 0.3s ease both; }
.subscribe-form { animation: fadeUp 0.6s 0.4s ease both; }
.book-visual { animation: fadeUp 0.8s 0.3s ease both; }

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; }
  .hero-left { padding: 3rem 2rem; }
  .hero-right { min-height: 60vh; }
  .how-section { padding: 3rem 2rem; }
  .features { grid-template-columns: 1fr; gap: 2rem; }
  .cta-section { padding: 3rem 2rem; }
  .cta-form { flex-direction: column; }
  footer { padding: 1.5rem 2rem; flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ── Menú: enlaces nuevos ─────────────────────────────── */
.nav-logo { text-decoration: none; }
.nav-links { align-items: center; }
.nav-links a.is-active {
  color: var(--green-deep);
  border-bottom: 1px solid var(--amber);
  padding-bottom: 2px;
}
.nav-links a.nav-cta {
  color: var(--green-deep);
  border: 1px solid var(--green-deep);
  border-radius: 2px;
  padding: 0.35rem 0.8rem;
}
.nav-links a.nav-cta:hover { background: var(--green-deep); color: var(--cream); }

@media (max-width: 640px) {
  nav { padding: 1.1rem 1rem; gap: 0.75rem; }
  .nav-logo { font-size: 0.95rem; }
  .nav-links { gap: 1rem; }
  .nav-links .nav-opt { display: none; }
  .nav-links a.nav-cta { padding: 0.3rem 0.6rem; }
}

/* ── Páginas de sección (Relatos, Artículos) ──────────── */
.page-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 62vh;
}
.page-hero .hero-left { padding: 4.5rem 4rem 4.5rem 5rem; }
.page-hero h1 { font-size: clamp(3rem, 5.2vw, 4.75rem); }

.featured {
  background: var(--green-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 4rem 4rem;
}
.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 40px,
    rgba(255,255,255,0.015) 40px, rgba(255,255,255,0.015) 41px);
  pointer-events: none;
}
.featured-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  animation: fadeUp 0.7s 0.2s ease both;
}
.featured-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.featured-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(193,123,42,0.45);
}
.featured-date {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--green-muted);
  margin-bottom: 0.75rem;
}
.featured-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
}
.featured-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  font-style: italic;
  color: var(--green-muted);
  margin-bottom: 2rem;
}
.featured-status {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--cream-darker);
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.15);
  display: inline-block;
}
.link-amber {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(232,168,74,0.5);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.link-amber:hover { color: var(--cream); border-color: var(--cream); }
.featured-latest {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  color: var(--green-muted);
  line-height: 1.6;
}
.featured-latest a { color: var(--cream); text-decoration: none; border-bottom: 1px solid rgba(245,240,232,0.35); }
.featured-latest a:hover { border-color: var(--amber-light); }

/* Estados: cargando, vacío, error */
.state { text-align: center; width: 100%; }
.state .ornament { margin-bottom: 1.25rem; font-size: 3.5rem; }
.state p {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--cream);
  max-width: 340px;
  margin: 0 auto 1.25rem;
}
.state.is-loading .ornament { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 0%,100% { opacity: 0.15; } 50% { opacity: 0.55; } }

/* Sumario */
.sumario {
  padding: 4.5rem 5rem 5rem;
  background: var(--paper);
  border-top: 1px solid var(--cream-darker);
}
.sumario[hidden] { display: none; }
.sumario-inner { max-width: 880px; margin: 0 auto; }
.sumario .section-title { margin-bottom: 2.5rem; font-size: 1.9rem; }
.entries { list-style: none; border-top: 1px solid var(--cream-darker); }
.entry {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.5rem 0.75rem;
  border-bottom: 1px solid var(--cream-darker);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.entry:hover { background: var(--cream); }
.entry-date {
  font-size: 0.8rem;
  color: var(--ink-light);
  font-style: italic;
  line-height: 1.5;
}
.entry-season {
  display: block;
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-top: 0.2rem;
}
.entry-title {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.3;
  margin-bottom: 0.35rem;
  transition: color 0.2s;
  overflow-wrap: anywhere;
}
.entry:hover .entry-title { color: var(--green-mid); }
.entry-sub {
  display: block;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink-light);
}
.entry-arrow {
  color: var(--amber);
  font-size: 1.1rem;
  transition: transform 0.2s;
}
.entry:hover .entry-arrow { transform: translateX(4px); }
.sumario-foot { margin-top: 2.25rem; text-align: center; }
.sumario-foot a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-mid);
  text-decoration: none;
  border-bottom: 1px solid var(--green-light);
  padding-bottom: 3px;
}
.sumario-foot a:hover { color: var(--amber); border-color: var(--amber); }

.btn-amber {
  padding: 0.85rem 1.75rem;
  background: var(--amber);
  color: var(--ink);
  border-radius: 2px;
  font-family: 'Lora', serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.btn-amber:hover { background: var(--amber-light); }

@media (max-width: 768px) {
  .page-hero { grid-template-columns: 1fr; min-height: 0; }
  .page-hero .hero-left { padding: 3rem 1.5rem 2.5rem; }
  .featured { padding: 3rem 1.5rem; min-height: 340px; }
  .sumario { padding: 3rem 1rem 3.5rem; }
  .entry { grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem 1rem; padding: 1.25rem 0.25rem; }
  .entry-date { grid-column: 1 / -1; }
  .entry-season { display: inline; margin-left: 0.5rem; }
}
