@import url('https://fonts.googleapis.com/css2?family=Fira+Mono&family=Nunito:wght@400;600;700&display=swap');

body {
  background-color: #0a0a0a;
  color: #e0e0e0;
  font-family: 'Nunito', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: 'Nunito', sans-serif;
  color: #ffffff;
}

a {
  color: #b48dff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

header, footer {
  background-color: #101010;
  border: 1px solid #1c1c1c;
  padding: 1rem;
  text-align: center;
}

.nav-container nav a {
  margin: 0 1.2rem;
  font-weight: 500;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  color: #c5c5c5;
}

main.container {
  flex: 1;
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.2rem;
  width: 100%;
  box-sizing: border-box;
}

ul, ol {
  padding-left: 2rem;
  margin-bottom: 1rem;
}
ul li, ol li {
  padding: 0.5rem 0;
}

img.avatar, img.avatar-large {
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #2d2d2d;
  display: block;
  margin: 0 auto 1.5rem;
}
img.avatar { width: 64px; height: 64px; }
img.avatar-large {
  width: 120px;
  height: 120px;
  border: 2px solid #ddd;
  box-shadow: 0 0 8px rgba(0,0,0,0.6);
}

.hero-wrapper {
  position: relative;
  background-image: url('/assets/images/portadas/bushido.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 1rem;
  overflow: hidden;
  margin: 2rem auto;
  max-width: 1000px;
  box-shadow: 0 0 18px rgba(0,0,0,0.4);
}
.hero-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 3.5rem 2rem 2.5rem;
  text-align: center;
  color: #fff;
}

.page-box {
  background: #111;
  border: 2px solid #333;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 960px;
  margin: 2rem auto;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.05);
}

.post-wrapper {
  background: #111;
  border: 2px solid #333;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 960px;
  margin: 3rem auto;
}

.post-header {
  position: relative;
  text-align: center;
  color: white;
  margin-bottom: 2rem;
}
.post-header::before {
  content: "";
  background-image: url('/assets/images/portadas/bushido.jpg');
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.15;
  border-radius: 1rem 1rem 0 0;
  z-index: 0;
}
.post-header-content {
  position: relative;
  z-index: 1;
  padding: 3rem 1rem 1rem;
}

.post-content {
  text-align: justify;
  font-size: 0.9rem;
  line-height: 1.7;
}
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  display: block;
  margin: 1.5rem auto;
}

.post-content pre,
.post-content code {
  background-color: #1c1c1c;
  color: #e0e0e0;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-family: 'Fira Mono', monospace;
  overflow-x: auto;
  display: block;
  font-size: 0.85rem;
  margin: 1rem 0;
}

.post-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
}
.post-content th, .post-content td {
  border: 1px solid #333;
  padding: 0.75rem;
  text-align: left;
}
.post-content th {
  background-color: #1a1a1a;
  color: #fff;
  font-weight: bold;
}
.post-content tr:nth-child(even) {
  background-color: #111;
}

.post-list ul,
.index-posts-wrapper ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
.post-list li,
.index-posts-wrapper li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid #1a1a1a;
}
.post-list li a,
.index-posts-wrapper li a {
  font-family: 'Fira Mono', monospace;
  font-size: 0.95rem;
  color: #b48dff;
  flex-grow: 1;
}
.post-date,
.index-posts-wrapper li small {
  font-size: 0.85rem;
  color: #aaa;
  margin-left: 1rem;
  white-space: nowrap;
}
.see-all {
  text-align: left;
  margin-top: 1.5rem;
}

.cert-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 2rem;
  background-color: #111;
  border: 2px solid #333;
  border-radius: 1rem;
  max-width: 700px;
  width: 100%;
  margin: 2rem auto;
  justify-content: center;
}
.cert-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
}
.cert-bar img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 600px) {
  .page-box,
  .post-wrapper,
  .cert-bar,
  .hero-content {
    padding: 1rem;
  }
}

.hero {
  background-image: url('/assets/images/portadas/bushido.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 1rem;
  overflow: hidden;
  max-width: 960px;
  margin: 2rem auto;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.2rem;
  margin: 0.5rem 0;
}

.hero-content p.tagline {
  font-size: 1rem;
  color: #ccc;
  margin-top: 0.5rem;
}

.hero-content .avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid white;
  object-fit: cover;
  box-shadow: 0 0 8px rgba(0,0,0,0.8);
  margin-bottom: 1rem;
}

.bio-wrapper {
  background: #111;
  border: 2px solid #333;
  border-radius: 1rem;
  margin: 2rem auto;
  max-width: 960px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.bio-hero {
  background-image: url('/assets/images/portadas/bushido.jpg');
  background-size: cover;
  background-position: center;
  height: 240px;
  position: relative;
}

.bio-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 3px solid #222;
  position: absolute;
  bottom: -65px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  background-color: #111;
}

.bio-content {
  padding: 5rem 2rem 2rem;
  text-align: center;
}

.bio-content h1 {
  margin-top: 0.5rem;
  font-size: 1.8rem;
  color: #fff;
}

.bio-content p {
  max-width: 720px;
  margin: 1rem auto 2rem;
  text-align: justify;
  line-height: 1.7;
  color: #ccc;
  font-size: 0.95rem;
}

.cert-terminal pre {
  background-color: #1a1a1a;
  color: #b48dff;
  padding: 1rem;
  border-radius: 0.75rem;
  font-family: 'Fira Mono', monospace;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  text-align: left;
  overflow-x: auto;
}

.cert-images {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cert-images img {
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.1));
  transition: transform 0.2s ease;
}
.cert-images img:hover {
  transform: scale(1.1);
}
