/* ==========================================================================
   SalazarCode.net - Modern Dark Showcase Stylesheet
   ========================================================================== */

:root {
  --bg-primary: #0a0b10;
  --bg-secondary: #111420;
  --bg-card: rgba(22, 27, 46, 0.75);
  --bg-card-hover: rgba(30, 38, 64, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(59, 130, 246, 0.35);
  --border-rag: rgba(139, 92, 246, 0.4);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-cyan: #00d2ff;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --glow-cyan: 0 0 25px rgba(0, 210, 255, 0.25);
  --glow-purple: 0 0 30px rgba(139, 92, 246, 0.25);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.12) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(15, 23, 42, 0.5) 0px, transparent 100%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* NAVBAR */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 16, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo {
  font-size: 1.6rem;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(0, 210, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 2px 7px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.08);
}

/* MAIN CONTENT WRAPPER */
.main-wrapper {
  flex: 1;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* HERO SECTION */
.hero {
  text-align: center;
  padding: 50px 10px 40px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #60a5fa;
  margin-bottom: 22px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-accent {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* SERVER HARDENED SPECS BADGES */
.infra-badges-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.infra-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  display: inline-block;
}

/* SECTION HEADINGS */
.section-header {
  margin-bottom: 28px;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 6px;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* SHOWCASE GRID EN PORTADA */
.projects-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, transparent);
  transition: background 0.3s;
}

.project-card.featured {
  border-color: var(--border-rag);
  background: linear-gradient(180deg, rgba(26, 20, 52, 0.7) 0%, rgba(15, 18, 33, 0.8) 100%);
}

.project-card.featured::before {
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
}

.project-card.featured:hover {
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: var(--glow-purple);
}

.card-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.subdomain-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--accent-cyan);
}

.featured-ribbon {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-title-group {
  margin-bottom: 14px;
}

.card-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.25;
}

.card-lead {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* TECH PILLS */
.tech-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.tech-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

.tech-pill.highlight {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

.tech-pill.purple {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
}

.tech-pill.green {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

/* FEATURE BULLETS */
.card-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.highlight-item {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.highlight-item strong {
  color: #ffffff;
}

.highlight-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1;
}

/* CARD ACTION BUTTONS */
.card-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

.btn-purple {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.btn-purple:hover {
  background: linear-gradient(135deg, #6d28d9, #5b21b6);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-github {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  transition: all 0.2s;
}

.btn-github:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   ESTILOS ESPECÍFICOS DE PÁGINAS DE DETALLE (legal-rag.html & mapa-venezuela.html)
   ========================================================================== */

.page-detail-header {
  padding-bottom: 30px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent-cyan);
}

.detail-title-group {
  margin-bottom: 24px;
}

.detail-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.detail-h1 {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  color: #ffffff;
  margin-bottom: 12px;
}

.detail-lead {
  font-size: 1.2rem;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 820px;
}

.detail-actions-bar {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* ARQUITECTURA Y MÓDULOS EN PÁGINA DE DETALLE */
.tech-spec-section {
  margin-bottom: 48px;
}

.spec-grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px 26px;
}

.spec-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.spec-icon {
  font-size: 1.6rem;
}

.spec-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.spec-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-list li {
  font-size: 0.85rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.spec-list li strong {
  color: #ffffff;
}

.check-icon {
  color: var(--accent-green);
  font-weight: 800;
  flex-shrink: 0;
}

/* CODE / CONFIG BOXES */
.code-box {
  background: #05070d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  color: #e2e8f0;
  overflow-x: auto;
  line-height: 1.5;
  margin: 16px 0;
}

.code-box .comment {
  color: #64748b;
}

.code-box .cmd {
  color: var(--accent-cyan);
}

/* CALLOUT BANNER */
.callout-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(124, 58, 237, 0.15));
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin-top: 40px;
}

.callout-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.callout-desc {
  font-size: 1rem;
  color: #cbd5e1;
  max-width: 640px;
  margin: 0 auto 24px;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 11, 16, 0.95);
  padding: 32px 24px;
  margin-top: auto;
}

.footer-container {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--accent-cyan);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .detail-h1 { font-size: 2rem; }
  .project-card { padding: 24px; }
  .btn-github { margin-left: 0; width: 100%; justify-content: center; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .card-actions-row { flex-direction: column; }
  .footer-container { flex-direction: column; text-align: center; }
}

/* RESPONSIVE · NAVEGACIÓN (evita el desborde horizontal en pantallas angostas) */
@media (max-width: 760px) {
  .nav-container { height: auto; flex-direction: column; gap: 8px; padding: 10px 14px; }
  .brand-link { justify-content: center; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 4px; }
  .nav-link { padding: 5px 9px; font-size: 0.82rem; }
}
