/* ============================
   LÁGRIMAS ROJAS — Nav Melech
   lagrimasrojas.com
   ============================ */

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --rojo: #B8292F;
  --rojo-suave: #C0392B;
  --rojo-oscuro: #7D1A1E;
  --negro: #0C0B09;
  --negro-suave: #141210;
  --crema: #F2EDE4;
  --crema-oscura: #E0D9CF;
  --gris: #9A948B;
  --gris-claro: #C8C2BA;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'EB Garamond', Georgia, serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
}

html {
  background: var(--negro);
  color: var(--crema);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body { min-height: 100vh; cursor: none; }

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

/* CURSOR CUSTOM */
.cursor-dot {
  width: 5px; height: 5px;
  background: var(--rojo);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid rgba(184, 41, 47, 0.5);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.08s linear, width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s;
}
.cursor-ring.hover {
  width: 52px; height: 52px;
  border-color: rgba(184, 41, 47, 0.8);
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 3rem;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}
nav.scrolled {
  background: rgba(12, 11, 9, 0.92);
  backdrop-filter: blur(8px);
  padding: 1rem 3rem;
  border-bottom: 1px solid rgba(184, 41, 47, 0.12);
}
.nav-brand {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(184, 41, 47, 0.6);
}
.brand-lr {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--rojo);
}
.nav-links {
  display: flex; gap: 2.5rem; list-style: none;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gris);
  transition: color 0.3s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--rojo);
  transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--crema); }
.nav-link:hover::after { width: 100%; }

.nav-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: none; padding: 4px;
}
.nav-menu-btn span {
  display: block; width: 22px; height: 1px;
  background: var(--crema);
  transition: transform 0.3s, opacity 0.3s;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--negro);
  z-index: 99;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu ul li { margin-bottom: 2.5rem; }
.mobile-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-style: italic;
  color: var(--crema);
  transition: color 0.3s;
}
.mobile-link:hover { color: var(--rojo); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; align-items: stretch;
  position: relative; overflow: hidden;
  padding-top: 80px;
}
.hero-bg-text {
  position: absolute;
  bottom: -0.15em; left: -0.02em;
  font-family: var(--font-display);
  font-size: clamp(10rem, 22vw, 22rem);
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(184, 41, 47, 0.08);
  user-select: none; pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}
.hero-content {
  flex: 1;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 6rem 3rem 4rem;
  position: relative; z-index: 2;
  max-width: 860px;
}
.hero-top {}
.hero-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 3rem;
}
.hero-title-wrap { overflow: hidden; margin-bottom: 1.5rem; }
.hero-title {
  display: flex; flex-direction: column;
  line-height: 0.9;
}
.ht-line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 700;
  color: var(--crema);
  opacity: 0; transform: translateY(60px);
  animation: slideUp 0.9s var(--ease-out) forwards;
}
.ht-1 { animation-delay: 0.1s; }
.ht-2 {
  font-style: italic; font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1px var(--rojo);
  animation-delay: 0.25s;
}
.hero-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 0.8rem;
  opacity: 0; animation: fadeIn 0.8s 0.5s var(--ease) forwards;
}
.hero-author {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-style: italic;
  color: var(--crema-oscura);
  opacity: 0; animation: fadeIn 0.8s 0.65s var(--ease) forwards;
}
.hero-bottom {
  opacity: 0; animation: fadeIn 0.8s 0.9s var(--ease) forwards;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crema);
  border-bottom: 1px solid rgba(184, 41, 47, 0.5);
  padding-bottom: 0.4rem;
  transition: color 0.3s, border-color 0.3s;
  margin-bottom: 2rem;
}
.hero-cta:hover { color: var(--rojo); border-color: var(--rojo); }
.hero-divider {
  width: 40px; height: 1px;
  background: rgba(184, 41, 47, 0.3);
  margin-bottom: 1.5rem;
}
.hero-quote {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gris);
  max-width: 380px;
  line-height: 1.7;
}
.hero-side {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 6rem 2rem;
  gap: 1.5rem;
}
.side-line {
  flex: 1; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(184,41,47,0.3), transparent);
  max-height: 200px;
}
.side-text {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(154, 148, 139, 0.4);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* SECTION LABEL */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 3rem;
  padding-left: 3rem;
}

/* GÉNEROS */
.generos {
  padding: 6rem 0 0;
  border-top: 1px solid rgba(154, 148, 139, 0.12);
}
.generos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-left: 1px solid rgba(154, 148, 139, 0.12);
}
.genero-card {
  display: flex; flex-direction: column;
  padding: 3rem;
  border-right: 1px solid rgba(154, 148, 139, 0.12);
  border-bottom: 1px solid rgba(154, 148, 139, 0.12);
  position: relative; overflow: hidden;
  transition: background 0.4s var(--ease);
  min-height: 260px;
}
.genero-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--rojo);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.genero-card:hover { background: rgba(184, 41, 47, 0.04); }
.genero-card:hover::before { transform: scaleX(1); }
.genero-card:hover .gc-arrow { transform: translateX(6px); color: var(--rojo); }
.gc-num {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--rojo);
  margin-bottom: 2rem;
}
.gc-body { flex: 1; }
.gc-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  color: var(--crema);
  margin-bottom: 0.8rem;
  line-height: 1.1;
}
.gc-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gris);
  line-height: 1.7;
}
.gc-arrow {
  font-size: 1.4rem;
  color: var(--gris);
  margin-top: 2rem;
  transition: transform 0.3s var(--ease), color 0.3s;
  display: inline-block;
}
.gc-tienda .gc-title { color: var(--rojo); }

/* FRAGMENTO */
.fragmento {
  padding: 8rem 3rem;
  border-top: 1px solid rgba(154, 148, 139, 0.12);
  position: relative; overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.frag-deco {
  position: absolute;
  top: -3rem; left: 1rem;
  font-family: var(--font-display);
  font-size: 22rem;
  line-height: 1;
  color: rgba(184, 41, 47, 0.05);
  pointer-events: none; user-select: none;
}
.frag-inner { position: relative; z-index: 1; grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; }
.frag-meta { padding-top: 1rem; }
.frag-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: var(--rojo);
  color: var(--crema);
  padding: 0.3rem 0.7rem;
  margin-bottom: 1.5rem;
}
.frag-obra {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gris);
}
.frag-texto {
  font-family: var(--font-body);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.8;
  color: var(--crema);
}
.frag-rojo { color: var(--rojo); font-style: normal; }

/* SOBRE */
.sobre {
  padding: 6rem 0;
  border-top: 1px solid rgba(154, 148, 139, 0.12);
}
.sobre-grid {
  padding: 0 3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: start;
}
.sobre-inicial {
  font-family: var(--font-display);
  font-size: clamp(6rem, 12vw, 10rem);
  font-style: italic;
  font-weight: 700;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(184, 41, 47, 0.25);
  user-select: none;
}
.sobre-titulo {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-style: italic;
  font-weight: 400;
  color: var(--crema);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.sobre-bio {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--gris-claro);
  max-width: 600px;
  margin-bottom: 2.5rem;
}
.sobre-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.sobre-link {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rojo);
  border-bottom: 1px solid rgba(184, 41, 47, 0.4);
  padding-bottom: 0.2rem;
  transition: color 0.3s, border-color 0.3s;
}
.sobre-link:hover { color: var(--crema); border-color: var(--crema); }

/* PUBLICACIONES */
.publicaciones {
  padding: 6rem 0;
  border-top: 1px solid rgba(154, 148, 139, 0.12);
}
.pub-lista { padding: 0 3rem; }
.pub-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(154, 148, 139, 0.1);
  transition: border-color 0.3s;
  gap: 2rem;
}
.pub-item:first-child { border-top: 1px solid rgba(154, 148, 139, 0.1); }
.pub-item:hover { border-bottom-color: rgba(184, 41, 47, 0.3); }
.pub-item:hover .pub-titulo { color: var(--crema); }
.pub-item:hover .pub-arrow { color: var(--rojo); transform: translate(3px, -3px); }
.pub-info { display: flex; flex-direction: column; gap: 0.3rem; }
.pub-medio {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rojo);
}
.pub-titulo {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-style: italic;
  color: var(--gris-claro);
  transition: color 0.3s;
}
.pub-arrow {
  font-size: 1.2rem;
  color: var(--gris);
  transition: color 0.3s, transform 0.3s;
  flex-shrink: 0;
}

/* CONTACTO */
.contacto {
  padding: 8rem 3rem;
  border-top: 1px solid rgba(154, 148, 139, 0.12);
  background: var(--negro-suave);
}
.contacto-inner { max-width: 680px; }
.contacto-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 2rem;
}
.contacto-titulo {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--crema);
  margin-bottom: 1.5rem;
}
.contacto-titulo em {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px var(--rojo);
}
.contacto-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gris);
  margin-bottom: 3rem;
}
.contacto-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.contacto-btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  background: var(--rojo);
  color: var(--crema);
  transition: background 0.3s, color 0.3s;
}
.contacto-btn:hover { background: var(--rojo-oscuro); }
.contacto-btn-outline {
  background: transparent;
  border: 1px solid rgba(184, 41, 47, 0.5);
  color: var(--crema);
}
.contacto-btn-outline:hover { background: rgba(184, 41, 47, 0.1); border-color: var(--rojo); }

/* FOOTER */
.footer {
  padding: 2.5rem 3rem;
  border-top: 1px solid rgba(154, 148, 139, 0.12);
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.footer-left { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gris);
}
.footer-brand em { color: var(--rojo); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  color: rgba(154, 148, 139, 0.4);
  text-transform: uppercase;
}
.footer-right { display: flex; gap: 2rem; }
.footer-social {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gris);
  transition: color 0.3s;
}
.footer-social:hover { color: var(--rojo); }

/* ANIMATIONS */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }

  nav { padding: 1.2rem 1.5rem; }
  nav.scrolled { padding: 0.9rem 1.5rem; }
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }

  .hero-content { padding: 4rem 1.5rem 3rem; }
  .hero-side { display: none; }
  .hero-bottom { margin-top: 3rem; }

  .section-label { padding-left: 1.5rem; }
  .generos-grid { grid-template-columns: 1fr; }
  .genero-card { padding: 2rem 1.5rem; min-height: auto; }

  .fragmento { padding: 4rem 1.5rem; }
  .frag-inner { grid-template-columns: 1fr; gap: 2rem; }

  .sobre-grid { padding: 0 1.5rem; grid-template-columns: 1fr; gap: 1.5rem; }
  .sobre-inicial { display: none; }

  .pub-lista { padding: 0 1.5rem; }
  .pub-item { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .pub-arrow { align-self: flex-end; }

  .contacto { padding: 4rem 1.5rem; }

  .footer { padding: 2rem 1.5rem; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  html { font-size: 16px; }
}
