/* =========================================
   MIRIAM BAUCELLS — Blog
   Paleta: Navy #1A1A2E · Oro #C8A96E · Ivory #F5F0E8
   ========================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy:      #1A1A2E;
  --navy-deep: #0F0F1E;
  --steel:     #2D4A6B;
  --gold:      #C8A96E;
  --gold-lt:   #E8D9BB;
  --ivory:     #F5F0E8;
  --sand:      #EDE8DF;
  --muted:     #9A8F7F;
  --text:      #1A1A2E;
  --body:      #4A4540;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ---- UTILITIES ---- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 5%; }

.eyebrow {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); flex-shrink: 0; }

.eyebrow-dark {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow-dark::before { content: ''; width: 24px; height: 1px; background: var(--gold); flex-shrink: 0; }

.eyebrow-gold {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 16px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 300; line-height: 1.1;
  color: var(--navy); margin-bottom: 48px;
}
.section-title em { font-style: italic; color: var(--steel); }

/* ---- NAVBAR ---- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 68px; padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
#navbar.scrolled {
  border-color: var(--sand);
  box-shadow: 0 2px 20px rgba(26,26,46,0.06);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 600; color: var(--navy);
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }

.nav-cta {
  padding: 9px 22px;
  border: 1px solid var(--navy); color: var(--navy) !important;
  font-size: 11px !important; letter-spacing: 0.1em;
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover { background: var(--navy); color: #fff !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--navy);
  transition: 0.3s;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh; padding-top: 68px;
  background: var(--navy);
  position: relative; overflow: hidden;
}
.hero-lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 5%;
  min-height: calc(100vh - 68px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
}
.hero-left { position: relative; z-index: 2; padding: 60px 0; }

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(46px, 5.5vw, 76px);
  font-weight: 300; line-height: 1.06;
  color: var(--ivory); margin-bottom: 28px;
}
.hero-title em { font-style: italic; color: var(--gold); }

.hero-desc {
  font-size: 15px; color: rgba(245,240,232,0.62);
  max-width: 420px; line-height: 1.85; margin-bottom: 44px;
}

.hero-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--gold); color: var(--navy);
  padding: 14px 32px; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  border: none; cursor: pointer; transition: background 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--gold-lt); }

.btn-ghost {
  color: rgba(245,240,232,0.55);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.2s; background: none; border: none; cursor: pointer;
}
.btn-ghost:hover { color: var(--ivory); }
.btn-ghost .arrow, .btn-ghost:hover .arrow { display: inline-block; transition: transform 0.2s; }
.btn-ghost:hover .arrow { transform: translateX(4px); }

.btn-outline {
  display: inline-block;
  border: 1px solid var(--navy); color: var(--navy);
  padding: 12px 28px; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500;
  transition: background 0.2s, color 0.2s; margin-top: 8px;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* Featured card */
.hero-right { position: relative; z-index: 2; padding: 60px 0; }
.featured-card {
  border: 1px solid rgba(200,169,110,0.3);
  background: rgba(255,255,255,0.04);
  padding: 40px;
}
.card-label {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.card-cat {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(200,169,110,0.6); margin-bottom: 16px; font-weight: 500;
}
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 400; color: var(--ivory);
  line-height: 1.25; margin-bottom: 16px;
}
.card-excerpt {
  font-size: 14px; color: rgba(245,240,232,0.5);
  line-height: 1.75; margin-bottom: 24px;
}
.card-link {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; transition: gap 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.card-link:hover { color: var(--gold-lt); }
.card-divider {
  height: 1px; background: rgba(200,169,110,0.2); margin: 28px 0;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1px;
  background: rgba(200,169,110,0.2);
}
.stat {
  background: rgba(26,26,46,0.9); padding: 16px 12px; text-align: center;
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 300; color: var(--gold);
  display: block; line-height: 1;
}
.stat-label {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(245,240,232,0.35); margin-top: 4px; display: block;
}

/* ---- ARTICLES ---- */
.section-articles { padding: 96px 0; background: var(--ivory); }
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 52px;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 2px;
}
.article-card {
  background: #fff; padding: 36px 32px;
  position: relative; overflow: hidden;
  transition: transform 0.25s;
  display: flex; flex-direction: column;
}
.article-card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: width 0.35s ease;
}
.article-card:hover { transform: translateY(-3px); }
.article-card:hover::after { width: 100%; }

.article-featured {
  grid-column: 1 / 3;
  background: var(--navy);
}
.article-cat {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 14px;
}
.article-title-lg {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px; font-weight: 400; color: var(--ivory);
  line-height: 1.25; margin-bottom: 14px;
}
.article-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px; font-weight: 400; color: var(--navy);
  line-height: 1.3; margin-bottom: 12px;
}
.article-excerpt {
  font-size: 14px; line-height: 1.75; margin-bottom: 20px; flex: 1;
}
.article-featured .article-excerpt { color: rgba(245,240,232,0.52); }
.article-card:not(.article-featured) .article-excerpt { color: var(--body); }

.article-meta {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 8px;
  margin-bottom: 18px;
}
.article-featured .article-meta { color: rgba(200,169,110,0.6); }
.dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold-lt); display: inline-block; flex-shrink: 0;
}
.article-link {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 500; color: var(--gold); align-self: flex-start;
  transition: letter-spacing 0.2s;
}
.article-link:hover { letter-spacing: 0.15em; }

/* ---- TEMÁTICAS ---- */
.section-temas { padding: 96px 0; }
.temas-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 2px;
}
.tema-card {
  padding: 44px 36px;
  border: 1px solid var(--sand);
  transition: border-color 0.25s, background 0.25s;
}
.tema-card:hover { border-color: var(--gold); background: var(--ivory); }
.tema-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px; font-weight: 300; color: var(--gold-lt);
  line-height: 1; margin-bottom: 20px;
}
.tema-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 400; color: var(--navy);
  margin-bottom: 12px;
}
.tema-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ---- SOBRE ---- */
.section-sobre { padding: 96px 0; background: var(--sand); }
.sobre-inner {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 80px; align-items: center;
}
.sobre-frame {
  width: 100%; max-width: 340px;
  aspect-ratio: 3/4;
  background: var(--ivory);
  position: relative;
  overflow: hidden;
}
.sobre-frame::after {
  content: ''; position: absolute;
  bottom: -14px; right: -14px;
  width: 65%; height: 65%;
  border: 2px solid var(--gold-lt);
  z-index: -1;
}
.sobre-initials {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 100px; font-weight: 300;
  color: rgba(200,169,110,0.18); line-height: 1;
  user-select: none;
}
.sobre-photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
.sobre-photo--hero {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.sobre-badge {
  position: absolute; bottom: 24px; left: -16px;
  background: var(--navy); color: var(--gold);
  padding: 10px 18px;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
}
.sobre-text {
  font-size: 15px; color: var(--body); line-height: 1.85; margin-bottom: 16px;
}

/* ---- NEWSLETTER ---- */
.section-newsletter { padding: 96px 0; background: var(--navy); }
.newsletter-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.nl-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 300; color: var(--ivory);
  line-height: 1.12; margin-bottom: 20px;
}
.nl-desc {
  font-size: 15px; color: rgba(245,240,232,0.52); line-height: 1.8;
}
.nl-form { display: flex; flex-direction: column; gap: 12px; }
.nl-form input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(200,169,110,0.28);
  padding: 14px 16px; font-size: 14px;
  color: var(--ivory); font-family: 'Inter', sans-serif;
  outline: none; transition: border-color 0.2s;
}
.nl-form input::placeholder { color: rgba(245,240,232,0.28); }
.nl-form input:focus { border-color: var(--gold); }
.nl-form button {
  background: var(--gold); color: var(--navy);
  border: none; padding: 15px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif;
  transition: background 0.2s;
}
.nl-form button:hover { background: var(--gold-lt); }
.nl-note {
  font-size: 11px; color: rgba(245,240,232,0.3);
  line-height: 1.6; margin-top: 4px;
}

/* ---- FOOTER ---- */
footer { padding: 44px 5%; background: var(--navy-deep); }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; color: rgba(245,240,232,0.4);
}
.footer-logo span { color: var(--gold); }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(245,240,232,0.28); transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  font-size: 11px; letter-spacing: 0.06em;
  color: rgba(245,240,232,0.22);
}

/* ---- ARTICLE PAGE ---- */
.article-hero {
  background: var(--navy); padding: 120px 5% 80px;
  position: relative; overflow: hidden;
}
.article-hero-lines {
  position: absolute; inset: 0; pointer-events: none;
}
.article-hero-inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 2; }
.back-link {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(200,169,110,0.6); font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.2s; margin-bottom: 32px;
}
.back-link:hover { color: var(--gold); }
.article-hero-cat {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 20px;
}
.article-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 300; color: var(--ivory);
  line-height: 1.1; margin-bottom: 24px;
}
.article-hero-meta {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(200,169,110,0.55); display: flex; gap: 12px; align-items: center;
}

.article-body {
  max-width: 720px; margin: 0 auto;
  padding: 72px 5%;
}
.article-body p {
  font-size: 16px; color: var(--body);
  line-height: 1.9; margin-bottom: 24px;
}
.article-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 400; color: var(--navy);
  margin: 48px 0 20px; line-height: 1.2;
}
.article-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 400; color: var(--navy);
  margin: 36px 0 16px;
}
.article-body ul, .article-body ol {
  padding-left: 24px; margin-bottom: 24px;
}
.article-body li {
  font-size: 16px; color: var(--body); line-height: 1.8; margin-bottom: 8px;
}
.article-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 16px 0 16px 28px; margin: 36px 0;
}
.article-body blockquote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-style: italic; color: var(--steel); margin: 0;
}

.article-footer-nav {
  max-width: 720px; margin: 0 auto;
  padding: 0 5% 72px;
  border-top: 1px solid var(--sand); padding-top: 48px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.article-footer-nav a {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; transition: color 0.2s;
}
.article-footer-nav a:hover { color: var(--navy); }

/* ---- SOBRE PAGE ---- */
.sobre-page-hero {
  background: var(--navy); padding: 140px 5% 80px;
  position: relative; overflow: hidden;
}
.sobre-page-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 80px; align-items: center; position: relative; z-index: 2;
}
.sobre-page-frame {
  width: 100%; max-width: 380px;
  aspect-ratio: 3/4; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(200,169,110,0.2);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.sobre-page-initials {
  font-family: 'Cormorant Garamond', serif;
  font-size: 140px; font-weight: 300;
  color: rgba(200,169,110,0.15); line-height: 1;
}
.sobre-page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300; color: var(--ivory);
  line-height: 1.08; margin-bottom: 24px;
}
.sobre-page-title em { font-style: italic; color: var(--gold); }
.sobre-page-text {
  font-size: 15px; color: rgba(245,240,232,0.58);
  line-height: 1.85; margin-bottom: 16px;
}
.sobre-page-body {
  max-width: 760px; margin: 0 auto;
  padding: 80px 5%;
}
.sobre-page-body p {
  font-size: 16px; color: var(--body); line-height: 1.9; margin-bottom: 24px;
}
.sobre-page-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px; font-weight: 300; color: var(--navy);
  margin: 52px 0 20px;
}
.empresas-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 2px; margin: 36px 0;
}
.empresa-item {
  padding: 28px; background: var(--ivory);
  border-left: 3px solid var(--gold);
}
.empresa-item h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 400; color: var(--navy); margin-bottom: 6px;
}
.empresa-item p { font-size: 13px; color: var(--muted); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { display: none; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .article-featured { grid-column: 1 / 3; }
  .temas-grid { grid-template-columns: 1fr; gap: 2px; }
  .sobre-inner { grid-template-columns: 1fr; }
  .sobre-visual { display: none; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 48px; }
  .sobre-page-inner { grid-template-columns: 1fr; }
  .sobre-page-frame { display: none; }
  .empresas-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .articles-grid { grid-template-columns: 1fr; }
  .article-featured { grid-column: 1; }
  .nav-links {
    display: none; flex-direction: column; align-items: flex-start;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; padding: 24px 5%; gap: 20px;
    border-bottom: 1px solid var(--sand);
    box-shadow: 0 8px 24px rgba(26,26,46,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
