*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Lora:ital,wght@0,400;0,500;1,400&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');

/* ── Variables ── */
:root {
  --crema:      #faf5ee;
  --pergamino:  #f2e9d8;
  --arena:      #e8d9c0;
  --terracota:  #b6836e;
  --ladrillo:   #9e7061;
  --ocre:       #c98a3e;
  --tinta:      #2c1a0e;
  --gris-calido:#6b5040;
  --borde:      #d4bfa0;
  --sombra:     rgba(44, 26, 14, 0.08);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--crema);
  color: var(--tinta);
  font-family: 'Lora', serif;
  font-size: 17px;
  line-height: 1.8;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--tinta);
}

p { margin-bottom: 1.2rem; }

a {
  color: var(--terracota);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--ladrillo); }

/* ── HEADER ── */
header {
  background-color: var(--tinta);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--terracota);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--crema);
  letter-spacing: .03em;
  text-decoration: none;
}
.logo span { color: var(--terracota); }

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}
nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--arena);
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s;
}
nav a:hover { color: var(--terracota); }

/* Hamburger — oculto por defecto */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--crema);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* ── HERO ── */
.hero {
  background-color: var(--pergamino);
  border-bottom: 1px solid var(--borde);
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.hero-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: .9rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  font-style: italic;
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gris-calido);
  max-width: 540px;
  margin: 0 auto;
}

/* ── ORNAMENT ── */
.ornament {
  text-align: center;
  margin: 2.5rem 0;
  color: var(--ocre);
  font-size: 1.4rem;
  letter-spacing: .5rem;
}

/* ── INTRO ── */
.intro-section {
  max-width: 700px;
  margin: 3rem auto;
  padding: 0 2rem;
  text-align: center;
}
.intro-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.intro-section p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--gris-calido);
}

/* ── ARTICLES SECTION ── */
.articles-section {
  max-width: 1100px;
  margin: 0 auto 4rem;
  padding: 3rem 2rem 0;
}

.articles-section h2 {
  font-size: 1.6rem;
  margin-bottom: .3rem;
  border-bottom: 2px solid var(--borde);
  padding-bottom: .6rem;
}

.section-desc {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gris-calido);
  margin-bottom: 2rem;
}

/* ── CARDS ── */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.card {
  flex: 1 1 280px;
  background: var(--pergamino);
  border: 1px solid var(--borde);
  border-top: 4px solid var(--terracota);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px var(--sombra);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px var(--sombra);
}

.card-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: .8rem;
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: .8rem;
}

.card p {
  font-size: .95rem;
  color: var(--gris-calido);
  flex: 1;
  margin-bottom: 1.5rem;
}

.card-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--terracota);
  border-bottom: 1px solid var(--terracota);
  align-self: flex-start;
  transition: color .2s, border-color .2s;
}
.card-link:hover { color: var(--ladrillo); border-color: var(--ladrillo); }

/* ── ARTICLE HERO ── */
.article-hero {
  background-color: var(--tinta);
  padding: 4.5rem 2rem 3.5rem;
  text-align: center;
  border-bottom: 3px solid var(--terracota);
}

.article-hero .eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: .88rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ocre);
  margin-bottom: .8rem;
}

.article-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-style: italic;
  color: var(--crema);
  max-width: 720px;
  margin: 0 auto 1rem;
}

.article-hero .meta {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--arena);
  font-style: italic;
}

/* ── ARTICLE BODY ── */
.article-body {
  max-width: 700px;
  margin: 3.5rem auto 4rem;
  padding: 0 2rem;
}

.article-body h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 .8rem;
  color: var(--tinta);
}

.article-body p {
  font-size: 1.05rem;
  color: #3a2415;
}

.article-body blockquote {
  border-left: 4px solid var(--terracota);
  margin: 2.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--pergamino);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gris-calido);
}

.article-body ul {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-body ul li {
  margin-bottom: .6rem;
  font-size: 1.05rem;
}

/* ── BACK LINK ── */
.back-link-wrap {
  max-width: 700px;
  margin: 2rem auto 0;
  padding: 0 2rem;
}

.back-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--gris-calido);
  border-bottom: 1px solid var(--borde);
}
.back-link:hover { color: var(--terracota); border-color: var(--terracota); }

/* ── FOOTER ── */
footer {
  background-color: var(--tinta);
  color: var(--arena);
  border-top: 3px solid var(--terracota);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: .5rem;
}
.footer-brand p {
  font-family: 'Cormorant Garamond', serif;
  font-size: .95rem;
  font-style: italic;
  color: var(--gris-calido);
  max-width: 280px;
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer-nav span {
  font-family: 'Playfair Display', serif;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ocre);
  margin-bottom: .4rem;
}
.footer-nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--arena);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--terracota); }

.footer-copy {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #3a2415;
  font-family: 'Cormorant Garamond', serif;
  font-size: .9rem;
  color: var(--gris-calido);
  text-align: center;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */

/* ── Tablet: ≤ 768px ── */
@media (max-width: 768px) {

  body { font-size: 16px; }

  /* Header */
  header { padding: 0 1.25rem; }

  .header-inner { height: 60px; }

  .logo { font-size: 1.25rem; }

  .nav-toggle { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: 63px; /* altura del header */
    left: 0;
    right: 0;
    background-color: var(--tinta);
    border-top: 1px solid #3a2415;
    flex-direction: column;
    gap: 0;
    padding: .5rem 0;
  }
  nav.is-open { display: flex; }
  nav a {
    padding: .85rem 1.5rem;
    width: 100%;
    border-bottom: 1px solid #3a2415;
  }
  nav a:last-child { border-bottom: none; }

  /* Hero */
  .hero { padding: 3.5rem 1.25rem 3rem; }

  .hero h1 { font-size: clamp(2.2rem, 8vw, 3rem); }

  .hero-sub { font-size: 1.1rem; }

  /* Intro */
  .intro-section {
    margin: 2rem auto;
    padding: 0 1.25rem;
  }
  .intro-section h2 { font-size: 1.7rem; }

  /* Articles */
  .articles-section { padding: 2rem 1.25rem 0; }

  .articles-section h2 { font-size: 1.4rem; }

  /* Cards: 2 columnas en tablet */
  .cards { gap: 1.25rem; }
  .card { flex: 1 1 calc(50% - .625rem); padding: 1.5rem 1.25rem; }

  /* Article hero */
  .article-hero { padding: 3rem 1.25rem 2.5rem; }

  /* Article body */
  .article-body {
    margin: 2.5rem auto 3rem;
    padding: 0 1.25rem;
  }
  .article-body blockquote { font-size: 1.15rem; }

  /* Back link */
  .back-link-wrap { padding: 0 1.25rem; }

  /* Footer */
  footer { padding: 2.5rem 1.25rem; }

  .footer-inner { flex-direction: column; gap: 1.5rem; }

  .footer-brand p { max-width: 100%; }
}

/* ── Mobile: ≤ 480px ── */
@media (max-width: 480px) {

  body { font-size: 15px; }

  /* Header */
  header { padding: 0 1rem; }

  .logo { font-size: 1.1rem; }

  /* Hero */
  .hero { padding: 2.5rem 1rem 2rem; }

  .hero-eyebrow { font-size: .8rem; letter-spacing: .12em; }

  .hero-sub { font-size: 1rem; }

  .ornament { margin: 1.75rem 0; font-size: 1.2rem; letter-spacing: .35rem; }

  /* Intro */
  .intro-section { padding: 0 1rem; }
  .intro-section h2 { font-size: 1.5rem; }
  .intro-section p { font-size: 1.05rem; }

  /* Articles */
  .articles-section { padding: 1.75rem 1rem 0; margin-bottom: 3rem; }

  /* Cards: 1 columna en móvil */
  .cards { flex-direction: column; gap: 1rem; }
  .card { flex: 1 1 100%; }

  /* Article hero */
  .article-hero { padding: 2.5rem 1rem 2rem; }

  .article-hero .meta { font-size: .9rem; }

  /* Article body */
  .article-body { padding: 0 1rem; margin: 2rem auto 2.5rem; }

  .article-body h2 { font-size: 1.35rem; margin: 2rem 0 .6rem; }

  .article-body p,
  .article-body ul li { font-size: 1rem; }

  .article-body blockquote {
    font-size: 1.05rem;
    padding: .8rem 1rem;
    margin: 1.75rem 0;
  }

  /* Back link */
  .back-link-wrap { padding: 0 1rem; margin-top: 1.5rem; }

  /* Footer */
  footer { padding: 2rem 1rem; }

  .footer-nav { gap: .35rem; }

  .footer-copy { font-size: .85rem; margin-top: 1.5rem; }
}