/* ── LANDING — overrides ─────────────────────────────────── */

.nav-links, .hamburger, .mobile-menu { display: none !important; }

nav { padding: 1.2rem 2.5rem; justify-content: flex-start; }
.nav-brand { display: flex; align-items: center; }
.nav-logo { height: 44px; }

/* ── HERO ────────────────────────────────────────────────── */
.landing-hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; padding: 8rem 2rem 5rem;
  position: relative; overflow: hidden;
}
.landing-hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
}
.landing-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,4,8,0.45) 0%, rgba(30,12,18,0.55) 50%, rgba(10,4,8,0.65) 100%);
  z-index: 1;
}
.landing-hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
}
.landing-fixed-line {
  font-family: 'Cinzel', serif; font-size: 0.75rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(201,151,58,0.9); margin-bottom: 3rem;
  opacity: 0; animation: fadeUp 1s 0.3s ease forwards;
}
.landing-fragment {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.6rem); font-style: italic; font-weight: 300;
  color: var(--cream); line-height: 1.6; max-width: 780px; margin: 0 auto 1.5rem;
  opacity: 0; animation: fadeUp 1s 0.6s ease forwards;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.landing-author {
  font-family: 'Cinzel', serif; font-size: 0.7rem;
  letter-spacing: 0.25em; color: rgba(201,151,58,0.85); margin-bottom: 3rem;
  opacity: 0; animation: fadeUp 1s 0.9s ease forwards;
}
.landing-cta {
  display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center;
  align-items: center; flex-direction: column;
  opacity: 0; animation: fadeUp 1s 1.1s ease forwards;
}
.landing-hero .btn-primary { background: var(--gold); color: var(--ink); border: none; }
.landing-hero .btn-primary:hover { background: var(--amber); }

/* ── .btn-disabled: now clickable, opens notify popup ───── */
.btn-disabled {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  border: 1px solid rgba(246,237,216,0.3);
  color: rgba(246,237,216,0.4);
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer;                   /* was: default */
  background: transparent; transition: all 0.25s;
  /* removed ::after 'Próximamente' overlay — popup handles this */
}
.btn-disabled:hover {
  border-color: rgba(201,168,76,0.5);
  color: rgba(201,168,76,0.8);
}

/* ── "Comprarlo en otra tienda" — only when ?store-id= is set */
.btn-other-stores {
  font-family: 'Cinzel', serif; font-size: 0.65rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(201,168,76,0.7); /* Increased from 0.38 for better readability */
  text-decoration: none;
  transition: all 0.2s;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.btn-other-stores:hover { 
  color: var(--gold); 
  border-bottom-color: var(--gold);
  text-decoration: none; 
}

/* ── Store buttons — #libro section ─────────────────────── */
#book-buy-links {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem;
}
@media (max-width: 768px) {
  #book-buy-links { flex-direction: column; }
  #book-buy-links .btn-primary,
  #book-buy-links .btn-outline { width: 100%; text-align: center; box-sizing: border-box; }
}

.hero, .about { display: none; }

@media (max-width: 768px) {
  .landing-fragment { font-size: clamp(1.3rem, 5vw, 2rem); }
  .landing-cta { flex-direction: column; align-items: center; width: 100%; }
  .landing-cta .btn-primary,
  .landing-cta .btn-disabled { width: 100%; text-align: center; }
}

/* ── NOTIFY POPUP — fully scoped to #notify-overlay ──────── */
#notify-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 900; opacity: 0; pointer-events: none;
  transition: opacity 0.25s; padding: 24px;
}
#notify-overlay.open { opacity: 1; pointer-events: auto; }

#notify-overlay .popup-modal {
  background: #161210;
  border: 1px solid rgba(201,168,76,0.2); border-radius: 4px;
  padding: 40px 36px; max-width: 440px; width: 100%;
  position: relative; transform: translateY(12px); transition: transform 0.25s;
}
#notify-overlay.open .popup-modal { transform: translateY(0); }

#notify-overlay #popup-close {
  position: absolute; top: 16px; right: 16px;
  background: transparent; border: none;
  color: rgba(122,106,90,0.7); font-size: 16px;
  cursor: pointer; transition: color 0.2s; padding: 4px; line-height: 1;
}
#notify-overlay #popup-close:hover { color: var(--gold); }

#notify-overlay .popup-eyebrow {
  font-family: 'Cinzel', serif; font-size: 0.65rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
#notify-overlay .popup-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: 1.4rem; color: var(--cream); margin-bottom: 12px; line-height: 1.3;
}
#notify-overlay .popup-body {
  font-family: 'EB Garamond', serif; font-size: 1rem;
  color: rgba(246,237,216,0.65); line-height: 1.7; margin-bottom: 24px;
}
#notify-overlay .popup-form { display: flex; flex-direction: column; }
#notify-overlay .popup-input {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid rgba(201,168,76,0.3);
  color: var(--cream); font-family: 'EB Garamond', serif;
  font-size: 1rem; padding: 10px 0; outline: none;
  transition: border-color 0.2s; margin-bottom: 4px;
}
#notify-overlay .popup-input::placeholder { color: rgba(201,168,76,0.3); font-style: italic; }
#notify-overlay .popup-input:focus { border-color: var(--gold); }
#notify-overlay .popup-field-error {
  font-size: 0.75rem; color: #c0392b;
  font-style: italic; min-height: 18px; margin-bottom: 16px;
}
#notify-overlay .popup-submit {
  width: 100%; height: 48px; background: var(--gold); border: none;
  border-radius: 2px; color: var(--ink, #0d0d0d);
  font-family: 'Cinzel', serif; font-size: 0.65rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s; margin-bottom: 12px;
}
#notify-overlay .popup-submit:hover:not(:disabled) { background: var(--amber, #e0ba5a); }
#notify-overlay .popup-submit:disabled { opacity: 0.5; cursor: not-allowed; }
#notify-overlay .popup-fine-print {
  font-family: 'EB Garamond', serif; font-size: 0.85rem;
  color: rgba(246,237,216,0.35); font-style: italic; text-align: center;
}
#notify-overlay .popup-check { font-size: 2rem; color: var(--gold); margin-bottom: 12px; text-align: center; }

@media (max-width: 640px) {
  #notify-overlay .popup-modal { padding: 32px 20px; }
}