﻿/**
 * SOCIETEXT · LITERATURA V2 STYLESHEET
 * Reconstrucción completa de la UI de Literatura siguiendo la arquitectura visual de Societext.
 */

/* =========================================================
   1. HERO PRINCIPAL DE LITERATURA
   ========================================================= */
.lit-v2-hero {
  position: relative;
  min-height: 480px;
  background: 
    linear-gradient(180deg, rgba(14, 13, 11, 0.45) 0%, rgba(14, 13, 11, 0.85) 100%),
    url("menu/pagina-literatura.png") center 35% / cover no-repeat;
  display: flex;
  align-items: center;
  padding: 60px 32px 50px;
  color: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lit-v2-hero-shell {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.lit-v2-hero-copy h1 {
  font-family: var(--font-serif, "Instrument Serif", Georgia, serif);
  font-size: clamp(3.2rem, 5.5vw, 4.6rem);
  line-height: 1.05;
  font-weight: 400;
  margin: 0 0 14px 0;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.lit-v2-hero-copy .lit-hero-sub {
  font-family: var(--font-sans, "Instrument Sans", sans-serif);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 500;
  color: #f5eedf;
  margin: 0 0 16px 0;
  line-height: 1.35;
}

.lit-v2-hero-copy .lit-hero-desc {
  font-size: 0.96rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 580px;
  margin: 0 0 28px 0;
}

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

.lit-btn-pill-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fbfaf7;
  color: #171714;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.4);
}

.lit-btn-pill-primary:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}

.lit-btn-pill-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.lit-btn-pill-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Quote Box in Hero */
.lit-v2-hero-quote {
  background: rgba(18, 16, 14, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 28px 24px;
  color: #f7f3ea;
  text-align: left;
  max-width: 380px;
  margin-left: auto;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.lit-v2-hero-quote p {
  font-family: var(--font-serif, "Instrument Serif", Georgia, serif);
  font-size: 1.35rem;
  line-height: 1.42;
  font-style: italic;
  margin: 0 0 12px 0;
  color: #fff9ed;
}

.lit-v2-hero-quote footer {
  font-family: var(--font-sans, sans-serif);
  font-size: 0.86rem;
  color: var(--terracotta, #e78258);
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* =========================================================
   2. SUBNAVEGACIÓN DE CATEGORÍAS (PILLS BAR)
   ========================================================= */
.lit-v2-subnav {
  background: var(--surface, #fbfaf7);
  border-bottom: 1px solid var(--border, #e4e4e7);
  padding: 14px 24px;
  position: sticky;
  top: 60px;
  z-index: 40;
  backdrop-filter: blur(10px);
}

.lit-v2-subnav-track {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.lit-v2-subnav-track::-webkit-scrollbar { display: none; }

.lit-v2-subnav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text, #171714);
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

.lit-v2-subnav-item:hover,
.lit-v2-subnav-item.is-active {
  background: var(--surface-hover, rgba(0,0,0,0.04));
  border-color: var(--border, rgba(0,0,0,0.1));
}

.lit-v2-subnav-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(200, 90, 50, 0.1);
  color: var(--terracotta, #c85a32);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

.lit-v2-subnav-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.lit-v2-subnav-text strong {
  font-size: 0.88rem;
  font-weight: 700;
}

.lit-v2-subnav-text small {
  font-size: 0.72rem;
  color: var(--text-muted, #71717a);
}

/* =========================================================
   3. CONTENEDOR PRINCIPAL DOS COLUMNAS
   ========================================================= */
.lit-v2-layout {
  max-width: 1240px;
  margin: 40px auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

/* Encabezados de sección */
.lit-v2-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  position: relative;
}

.lit-v2-section-header h2 {
  font-family: var(--font-serif, "Instrument Serif", Georgia, serif);
  font-size: 2rem;
  font-weight: 400;
  margin: 0;
  color: var(--text, #171714);
}

.lit-v2-section-header .lit-see-all {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--terracotta, #c85a32);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.lit-v2-section-header .lit-see-all:hover {
  transform: translateX(3px);
}

/* =========================================================
   4. SECCIÓN: OBRAS DESTACADAS (5 CARDS GRID)
   ========================================================= */
.lit-v2-works-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.lit-v2-work-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e4e4e7);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.lit-v2-work-card:hover {
  transform: translateY(-4px);
  border-color: var(--terracotta, #c85a32);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.lit-v2-work-cover {
  width: 100%;
  aspect-ratio: 4 / 3.8;
  position: relative;
  background: #2a2a2a;
  overflow: hidden;
}

.lit-v2-work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.lit-v2-work-card:hover .lit-v2-work-cover img {
  transform: scale(1.05);
}

.lit-v2-work-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #171714;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

.lit-v2-work-info {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.lit-v2-work-info h3 {
  font-family: var(--font-sans, sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.28;
  margin: 0 0 6px 0;
  color: var(--text, #171714);
}

.lit-v2-work-author {
  font-size: 0.8rem;
  color: var(--text-muted, #71717a);
  margin: 0 0 12px 0;
  display: block;
}

.lit-v2-work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border, rgba(0,0,0,0.06));
  padding-top: 8px;
  font-size: 0.74rem;
  color: var(--text-muted, #71717a);
}

.lit-v2-work-meta .lit-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lit-v2-work-meta .lit-bookmark {
  color: var(--text-muted, #71717a);
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  transition: color 0.18s ease;
}

.lit-v2-work-meta .lit-bookmark:hover {
  color: var(--terracotta, #c85a32);
}

/* =========================================================
   5. SECCIÓN: AUTORES POPULARES (6 CIRCLES GRID)
   ========================================================= */
.lit-v2-authors-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 48px;
  text-align: center;
}

.lit-v2-author-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.lit-v2-author-card:hover {
  transform: translateY(-4px);
}

.lit-v2-author-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border, #e4e4e7);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 10px;
  background: #171714;
  position: relative;
  transition: border-color 0.2s ease;
}

.lit-v2-author-card:hover .lit-v2-author-avatar {
  border-color: var(--terracotta, #c85a32);
}

.lit-v2-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lit-v2-author-name {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text, #171714);
  margin-bottom: 4px;
}

.lit-v2-author-stats {
  font-size: 0.74rem;
  color: var(--text-muted, #71717a);
}

/* =========================================================
   6. SECCIÓN: LISTAS DE LECTURA (4 BANNER CARDS)
   ========================================================= */
.lit-v2-lists-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.lit-v2-list-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e4e4e7);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.lit-v2-list-card:hover {
  transform: translateY(-3px);
  border-color: var(--terracotta, #c85a32);
  box-shadow: 0 10px 24px rgba(0,0,0,0.07);
}

.lit-v2-list-thumb {
  width: 100%;
  height: 85px;
  background-size: cover;
  background-position: center;
  background-color: #2a2a2a;
}

.lit-v2-list-content {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lit-v2-list-info h3 {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  line-height: 1.25;
  color: var(--text, #171714);
}

.lit-v2-list-info span {
  font-size: 0.74rem;
  color: var(--text-muted, #71717a);
}

.lit-v2-list-arrow {
  color: var(--text-muted, #71717a);
  font-size: 0.9rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.lit-v2-list-card:hover .lit-v2-list-arrow {
  transform: translateX(4px);
  color: var(--terracotta, #c85a32);
}

/* =========================================================
   7. SIDEBAR DERECHA (340px)
   ========================================================= */
.lit-v2-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lit-v2-side-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e4e4e7);
  border-radius: 14px;
  padding: 20px;
}

.lit-v2-side-card h2 {
  font-family: var(--font-serif, "Instrument Serif", Georgia, serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 16px 0;
  color: var(--text, #171714);
}

/* Autor destacado (Albert Camus) */
.lit-v2-featured-author-box {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 16px;
  align-items: center;
}

.lit-v2-featured-author-img {
  width: 85px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  background: #171714;
}

.lit-v2-featured-author-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lit-v2-featured-author-copy h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--text, #171714);
}

.lit-v2-featured-author-copy p {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted, #71717a);
  margin: 0 0 10px 0;
}

.lit-v2-featured-author-copy .lit-btn-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--terracotta, #c85a32);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Obra recomendada (El extranjero) */
.lit-v2-recommended-work-box {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: center;
}

.lit-v2-recommended-work-img {
  width: 80px;
  height: 110px;
  border-radius: 6px;
  overflow: hidden;
  background: #171714;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.lit-v2-recommended-work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lit-v2-recommended-work-copy h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0;
  color: var(--text, #171714);
}

.lit-v2-recommended-work-copy small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted, #71717a);
  margin-bottom: 6px;
}

.lit-v2-recommended-work-copy p {
  font-size: 0.8rem;
  line-height: 1.38;
  color: var(--text-muted, #71717a);
  margin: 0 0 10px 0;
}

/* Temas relacionados */
.lit-v2-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lit-v2-tag-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper-soft, rgba(0,0,0,0.04));
  border: 1px solid var(--border, rgba(0,0,0,0.08));
  color: var(--text, #171714);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s ease;
}

.lit-v2-tag-pill:hover {
  border-color: var(--terracotta, #c85a32);
  color: var(--terracotta, #c85a32);
  background: rgba(200, 90, 50, 0.08);
}

/* Quote card Domenico */
.lit-v2-domenico-card {
  background: 
    linear-gradient(180deg, rgba(16, 15, 14, 0.7) 0%, rgba(16, 15, 14, 0.9) 100%),
    url("menu/pagina.principal-scroll-1.png") center / cover no-repeat;
  border-radius: 14px;
  padding: 28px 22px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lit-v2-domenico-card p {
  font-family: var(--font-serif, "Instrument Serif", Georgia, serif);
  font-size: 1.45rem;
  line-height: 1.35;
  font-style: italic;
  margin: 0 0 12px 0;
  color: #fffaf0;
}

.lit-v2-domenico-card footer {
  font-size: 0.84rem;
  color: var(--terracotta, #e78258);
  font-weight: 600;
}

/* =========================================================
   8. BANNER INFERIOR DE RECOMENDACIÓN / DOMENICO
   ========================================================= */
.lit-v2-bottom-banner {
  max-width: 1240px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.lit-v2-banner-shell {
  position: relative;
  background: 
    linear-gradient(90deg, rgba(214, 182, 127, 0.95) 0%, rgba(197, 156, 92, 0.88) 55%, rgba(146, 110, 57, 0.92) 100%),
    url("menu/pagina-literatura.png") center 70% / cover no-repeat;
  border-radius: 18px;
  overflow: hidden;
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 240px 1fr 300px;
  gap: 36px;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.lit-v2-banner-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lit-v2-banner-art img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.lit-v2-banner-copy h2 {
  font-family: var(--font-serif, "Instrument Serif", Georgia, serif);
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  font-weight: 400;
  color: #1a1610;
  margin: 0 0 12px 0;
  line-height: 1.15;
}

.lit-v2-banner-copy p {
  font-size: 0.98rem;
  line-height: 1.55;
  color: #383023;
  margin: 0 0 22px 0;
  max-width: 520px;
}

.lit-v2-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #171714;
  color: #ffffff;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: all 0.2s ease;
}

.lit-v2-banner-btn:hover {
  background: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.lit-v2-banner-mascot-box {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.lit-v2-speech-bubble {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #221d14;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  position: relative;
}

.lit-v2-speech-bubble strong {
  display: block;
  font-size: 0.76rem;
  color: var(--terracotta, #c85a32);
  margin-top: 4px;
}

.lit-v2-speech-bubble::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px 0 8px 8px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.94);
}

.lit-v2-mascot-3d {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

/* =========================================================
   9. RESPONSIVIDAD
   ========================================================= */
@media (max-width: 1080px) {
  .lit-v2-works-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .lit-v2-authors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .lit-v2-lists-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lit-v2-banner-shell {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 24px;
  }
  .lit-v2-banner-copy p {
    margin: 0 auto 20px;
  }
  .lit-v2-banner-mascot-box {
    justify-content: center;
  }
  .lit-v2-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .lit-v2-hero-shell {
    grid-template-columns: 1fr;
  }
  .lit-v2-hero-quote {
    margin: 0;
    max-width: 100%;
  }
  .lit-v2-works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lit-v2-authors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lit-v2-lists-grid {
    grid-template-columns: 1fr;
  }
}
