@font-face {
  font-family: 'Yuji Boku';
  src: url('../fonts/yuji-boku/YujiBoku-Regular.woff2') format('woff2'),
       url('../fonts/yuji-boku/YujiBoku-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Yuji Syuku';
  src: url('../fonts/yuji-syuku/YujiSyuku-Regular.woff2') format('woff2'),
       url('../fonts/yuji-syuku/YujiSyuku-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --font-display: 'Yuji Boku', 'Fraunces', Georgia, serif;
  --font-body: 'Yuji Syuku', 'Inter', -apple-system, sans-serif;
  --bg-light: #f4ede0; /* Original light-cream background */
  --text-dark: #1a1410; /* Original dark brown text */
  --text-muted: rgba(26, 20, 16, 0.6);
  --accent-color: #c8b89a;
  
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
}

body {
  background: var(--bg-light);
  color: var(--text-dark);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* MENÚ FIJO (Identical to homepage, blend mode difference over light background) */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 108;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  mix-blend-mode: difference;
  transition: background 0.4s ease, padding 0.4s ease,
              backdrop-filter 0.4s ease, border-color 0.4s ease;
}

.nav.scrolled {
  mix-blend-mode: normal;
  background: rgba(10, 10, 10, 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav-logo {
  pointer-events: auto;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  transition: opacity 0.3s;
  text-decoration: none;
}

.nav-logo:hover { opacity: 0.7; }

.nav-logo img {
  height: 30px;
  width: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .nav {
    padding: 16px 24px;
  }
  .nav-logo img { height: 24px; }
}

.nav-menu {
  display: flex;
  gap: 28px;
  pointer-events: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-item {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff; /* mix-blend-mode difference makes this look black over light backgrounds */
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 400;
  padding: 4px 0;
  position: relative;
  transition: opacity 0.3s;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.nav-item:hover::after { width: 100%; }

/* ============================================
   MENÚ FIJO MÓVIL (HAMBURGUESA & OVERLAY)
   ============================================ */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
  pointer-events: auto;
  width: 32px;
  height: 24px;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}

.nav-toggle span:nth-child(1) {
  top: 0;
  width: 100%;
}

.nav-toggle span:nth-child(2) {
  top: 11px;
  width: 75%;
  right: 0;
  left: auto;
}

.nav-toggle span:nth-child(3) {
  top: 22px;
  width: 90%;
  right: 0;
  left: auto;
}

/* Animación a X */
.nav-toggle.open span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
  width: 100%;
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav-toggle.open span:nth-child(3) {
  top: 11px;
  transform: rotate(-45deg);
  width: 100%;
}

.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.96);
  z-index: 105;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.nav-mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  text-align: center;
}

.nav-mobile-item {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  font-weight: 300;
  color: #fff;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  letter-spacing: 1px;
}

.nav-mobile-item:hover,
.nav-mobile-item:active {
  transform: scale(1.05);
  opacity: 0.8;
}

/* CONTENEDOR PRINCIPAL */
.blog-container {
  max-width: 800px;
  margin: 180px auto 100px;
  padding: 0 24px;
  animation: fadeIn 1s ease-out forwards;
}

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

/* CABECERA ARTÍCULO */
.blog-header {
  text-align: center;
  margin-bottom: 60px;
}

.blog-category {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 16px;
  display: inline-block;
  opacity: 0.6;
}

.blog-title-h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.15;
  font-weight: 300;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.blog-meta {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* IMAGEN DESTACADA */
.blog-hero-image {
  width: 100%;
  height: 55vh;
  min-height: 350px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  margin-bottom: 60px;
  border: 1px solid rgba(26, 20, 16, 0.1);
  box-shadow: 0 20px 40px rgba(26, 20, 16, 0.08);
}

/* CONTENIDO DEL ARTÍCULO */
.blog-content {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-dark);
  opacity: 0.95;
  letter-spacing: 0.01em;
}

.blog-content p {
  margin-bottom: 28px;
}

.blog-content h2, .blog-content h3, .blog-content h4 {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  margin: 48px 0 20px;
  line-height: 1.3;
  color: var(--text-dark);
}

.blog-content h2 { font-size: 30px; letter-spacing: -0.01em; }
.blog-content h3 { font-size: 24px; }

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 32px 0;
  display: block;
  border: 1px solid rgba(26, 20, 16, 0.05);
}

.blog-content blockquote {
  border-left: 2px solid var(--text-dark);
  padding-left: 24px;
  margin: 36px 0;
  font-style: italic;
  color: var(--text-muted);
  font-size: 18px;
}

.blog-content ul, .blog-content ol {
  margin: 0 0 28px 24px;
}

.blog-content li {
  margin-bottom: 10px;
}

/* BOTÓN VOLVER */
.back-action {
  margin: 80px 0 20px;
  text-align: center;
}

.gallery-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: transparent;
  border: 1px solid rgba(26, 20, 16, 0.4);
  color: var(--text-dark);
  padding: 18px 32px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s ease;
  border-radius: var(--radius-sm);
}

.gallery-button:hover {
  background: var(--text-dark);
  color: var(--bg-light);
  border-color: var(--text-dark);
  padding-right: 40px;
}

.gallery-button .arrow { transition: transform 0.4s ease; }
.gallery-button:hover .arrow { transform: translateX(6px); }

/* FOOTER */
.closing-footer {
  background: #0a0a0a;
  color: #f4ede0;
  padding: 100px 60px 80px;
  text-align: center;
}

.closing-logo {
  max-width: 280px;
  width: 50vw;
  margin: 0 auto 32px;
  opacity: 0.8;
}

.closing-address {
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(244,237,224,0.6);
  line-height: 1.6;
  margin-bottom: 32px;
}

.closing-contact {
  display: flex;
  justify-content: center;
  gap: 40px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  flex-wrap: wrap;
}

.closing-contact a {
  color: rgba(244,237,224,0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.closing-contact a:hover { color: #fff; }

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .blog-container {
    margin-top: 130px;
  }
  .closing-footer { padding: 60px 24px 50px; }
}
