/* ==============================================================================
   ALEJANDRO LAVANDEROS - ESTILOS DEL ARCHIVO HISTÓRICO Y ARTÍCULOS
   Tema: Dark Luxury & Contemporáneo unificado con la Web Principal
   Fuentes: Cinzel (Títulos), Inter (Lectura), JetBrains Mono (Metadatos)
   ============================================================================== */

:root {
  --bg-deep: #05070c;
  --bg-surface: rgba(8, 13, 23, 0.68);
  --bg-surface-hover: rgba(14, 21, 37, 0.85);
  --bg-card: rgba(10, 16, 28, 0.72);
  --bg-card-hover: rgba(16, 24, 42, 0.90);
  
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(212, 175, 55, 0.50);
  
  --gold-accent: #d4af37;
  --gold-hover: #f3e5ab;
  --gold-glow: rgba(212, 175, 55, 0.22);
  
  --silver-bright: #ffffff;
  --text-main: #ffffff;
  --text-muted: #e2e8f0;
  --text-dim: #94a3b8;
  
  --font-serif: "Cinzel", "Playfair Display", "Georgia", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

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

html {
  font-size: 15px;
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-deep);
  color: var(--text-main);
  padding-top: 84px; /* Espacio para el header fijo de 64px */
  padding-bottom: 3rem;
  overflow-x: hidden;
}

/* Fondo con degradado ambiental sutil */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(56, 189, 248, 0.03) 0%, transparent 45%),
    linear-gradient(180deg, rgba(5, 7, 12, 0.95) 0%, #05070c 100%);
  pointer-events: none;
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ------------------------------------------------------------------------------
   BARRA DE NAVEGACIÓN SUPERIOR / BREADCRUMB
   ------------------------------------------------------------------------------ */
.archive-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0 1.75rem 0;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.nav-pill:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold-accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-pill svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.nav-counter {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold-accent);
  background: rgba(212, 175, 55, 0.10);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

/* ------------------------------------------------------------------------------
   HERO DEL ARCHIVO HISTÓRICO (archives.html)
   ------------------------------------------------------------------------------ */
.archive-hero {
  text-align: center;
  padding: 2rem 1rem 3rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.archive-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-accent);
  background: rgba(212, 175, 55, 0.10);
  border: 1px solid rgba(212, 175, 55, 0.30);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.archive-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.archive-description {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ------------------------------------------------------------------------------
   GRILLA DE PUBLICACIONES (archives.html)
   ------------------------------------------------------------------------------ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.post-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 15px var(--gold-glow);
}

.post-card-thumb-wrap {
  width: 100%;
  height: 190px;
  background: rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card:hover .post-card-thumb {
  transform: scale(1.04);
}

.post-card-thumb-placeholder {
  font-size: 2.2rem;
  color: var(--text-dim);
  opacity: 0.6;
}

.post-card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-date-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-accent);
  margin-bottom: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.post-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.post-card-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-card-title a:hover {
  color: var(--gold-hover);
}

.post-card-excerpt {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-accent);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
  margin-top: auto;
}

.post-card-link:hover {
  gap: 0.65rem;
  color: var(--gold-hover);
}

/* ------------------------------------------------------------------------------
   PÁGINA DE POST INDIVIDUAL (anteriores/posts/*.html)
   ------------------------------------------------------------------------------ */
.single-post-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.single-post-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .single-post-card {
    padding: 1.75rem 1.25rem;
  }
}

.single-post-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
}

.single-post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.single-post-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gold-accent);
  background: rgba(212, 175, 55, 0.10);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.single-post-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .single-post-title {
    font-size: 1.6rem;
  }
}

/* Contenido del Artículo */
.post-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  font-family: var(--font-serif);
  color: #ffffff;
  margin: 2rem 0 1rem;
  line-height: 1.35;
}

.post-content h2 {
  font-size: 1.6rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
  color: var(--gold-accent);
}

.post-content h3 {
  font-size: 1.3rem;
}

.post-content strong,
.post-content b {
  color: #ffffff;
  font-weight: 600;
}

.post-content a {
  color: var(--gold-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.post-content a:hover {
  color: var(--gold-hover);
}

.post-content ul,
.post-content ol {
  margin: 1rem 0 1.5rem 1.75rem;
  color: var(--text-muted);
}

.post-content li {
  margin-bottom: 0.5rem;
}

/* Imágenes dentro de la publicación */
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.55);
  display: block;
  margin: 1.75rem auto;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.post-content a img:hover {
  transform: scale(1.015);
  border-color: var(--gold-accent);
}

.post-content .separator {
  text-align: center;
  margin: 1.75rem 0;
  clear: both;
}

.post-content iframe {
  max-width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  margin: 1.5rem auto;
  display: block;
}

/* Pie del Post con botones de acción */
.single-post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.75rem;
  margin-top: 2.5rem;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-action-primary {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-accent);
  color: var(--gold-hover);
}

.btn-action-primary:hover {
  background: var(--gold-accent);
  color: #05070c;
  box-shadow: 0 0 20px var(--gold-glow);
}

.btn-action-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.btn-action-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* ------------------------------------------------------------------------------
   PIE DE PÁGINA COMÚN
   ------------------------------------------------------------------------------ */
.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  background: rgba(4, 6, 11, 0.90);
  color: var(--text-dim);
  font-size: 0.85rem;
}

.site-footer p {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: var(--gold-accent);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------------------------
   BOTONES DE REDES SOCIALES Y CONTACTO
   ------------------------------------------------------------------------------ */
.hero-social-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.hero-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.78rem;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all 0.22s ease;
  backdrop-filter: blur(8px);
  cursor: pointer;
  outline: none;
  line-height: 1.4;
}

.hero-social-btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.hero-social-btn:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-accent);
  color: var(--gold-accent);
  transform: translateY(-2px);
}

.hero-social-btn:hover svg {
  transform: scale(1.12);
}

.hero-social-btn.whatsapp:hover {
  background: rgba(37, 211, 102, 0.18);
  border-color: #25d366;
  color: #25d366;
}

.hero-social-btn.youtube:hover {
  background: rgba(255, 0, 0, 0.18);
  border-color: #ff0000;
  color: #ff4444;
}

.hero-social-btn.instagram:hover {
  background: rgba(225, 48, 108, 0.18);
  border-color: #e1306c;
  color: #f77737;
}

.hero-social-btn.facebook:hover {
  background: rgba(24, 119, 242, 0.18);
  border-color: #1877f2;
  color: #4294ff;
}

.hero-social-btn.email:hover {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--gold-accent);
  color: var(--gold-hover);
}

.hero-social-btn.copied {
  background: rgba(34, 197, 94, 0.28) !important;
  border-color: #22c55e !important;
  color: #86efac !important;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.45) !important;
  transform: scale(1.04);
}

