/* ===================================
   EL MANUSCRITO ZEN — ESTILOS GLOBALES
   =================================== */

@font-face {
  font-family: 'Amanojaku';
  src: url('Amanojaku-zrqe3.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HarukazeSolid';
  src: url('HarukazeSolid-L3ZgW.otf') format('opentype'),
       url('HarukazeSolid-X3Wp9.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-dark:        #0d0d0f;
  --bg-card:        #131318;
  --bg-card-hover:  #1a1a23;
  --surface:        #1e1e28;
  --border:         rgba(212, 175, 110, 0.15);
  --border-hover:   rgba(212, 175, 110, 0.35);

  --gold:           #d4af6e;
  --gold-light:     #e8c98a;
  --gold-dim:       rgba(212, 175, 110, 0.5);
  --cream:          #f5f0e8;
  --cream-dim:      #c8bfa8;
  --muted:          #7a7a8a;
  --white:          #ffffff; /* Blanco nuclear */

  --accent-purple:  #8b6bbf;
  --accent-pink:    #c47fa8;
  --accent-teal:    #5a9e8f;

  --font-serif:     'Cormorant Garamond', 'Georgia', serif;
  --font-body:      'Noto Serif', serif;
  --font-ui:        'Zen Kaku Gothic New', sans-serif;
  --font-sumie:     'Yuji Syuku', serif;
  --font-waterbrush: 'Water Brush', cursive;
  --font-dokdo:     'East Sea Dokdo', cursive;
  --font-zhimang:   'Zhi Mang Xing', cursive;
  --font-rocksalt:  'Rock Salt', cursive;
  --font-amanojaku: 'Amanojaku', serif;
  --font-harukaze:  'HarukazeSolid', serif;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  40px;

  --shadow-card: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 60px rgba(212, 175, 110, 0.08);

  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg-dark);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ==================
   NAVBAR
   ================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 72px;
  background: rgba(255, 255, 255, 0.0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}
.nav-logo:hover { opacity: 0.8; }
.nav-logo-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
}
.enso-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  transform: rotate(-15deg);
  margin-top: -5px; /* <--- Subimos el Ensō para clavarlo a la altura del texto */
  transition: var(--transition);
  filter: brightness(0) saturate(100%); /* Forzado a negro puro */
}
.nav-logo:hover .enso-img {
  transform: rotate(20deg) scale(1.1) translateY(-4px);
}
.nav-logo-text {
  font-family: var(--font-amanojaku);
  font-size: 23px;
  font-weight: normal;
  color: var(--bg-dark);
  letter-spacing: 0.04em;
  display: inline-block;
  line-height: 1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}

/* Ocultamos menús fantasma de la izquierda */
.nav-container-left, .nav-sidebar-left, [class*="left-menu"] {
  display: none !important;
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4a4a5a;
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--bg-dark);
  transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--bg-dark);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}
.btn-escribir {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(135deg, var(--bg-dark), #252530);
  padding: 10px 22px;
  border-radius: 100px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.btn-escribir:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
  background: none;
  border: none;
  z-index: 1100;
}
.nav-hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--bg-dark);
  transition: var(--transition);
}

/* ==================
   HERO
   ================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  animation: heroZoom 20s ease infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.4) 0%,
    rgba(255,255,255,0.1) 40%,
    rgba(255,255,255,0.3) 80%,
    rgba(255,255,255,0.9) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: fadeInUp 1.2s ease both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-title {
  font-family: var(--font-amanojaku);
  font-size: clamp(48px, 8vw, 95px);
  font-weight: normal;
  color: #000000; /* Negro puro */
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

/* --- Forzamos el resto de frases y textos del inicio a Negro/Oscuro --- */
.hero-subtitle, .hero-tagline, .hero-content p, .hero-description {
  color: #1c1c24 !important; /* Gris carbón muy oscuro para una lectura limpia */
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.6);
}
/* ===================================
   MENÚ MÓVIL (CONTROL DE PANTALLAS)
   =================================== */

/* En el ordenador lo escondemos por completo */
@media (min-width: 769px) {
  .nav-mobile-menu, #nav-mobile-menu {
    display: none !important;
  }
}

/* En el móvil le damos su diseño zen correcto */
@media (max-width: 768px) {
  .navbar .nav-links {
    display: none; 
  }
  .nav-hamburger {
    display: flex !important; 
  }
  .nav-mobile-menu {
    display: none; 
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98); 
    backdrop-filter: blur(10px);
    padding: 20px;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  }
  .nav-mobile-menu.open {
    display: flex !important; 
  }
  .nav-mobile-link {
    font-family: var(--font-ui);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bg-dark) !important; 
    padding: 10px 0;
    display: block;
  }
}