/* ============== RESET / BASE ============== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow-x: hidden; background: #fff; }
body { font-family: 'Inter', sans-serif; color: #333; line-height: 1.6; background-color: #F5F5F5; }

/* ============== HEADER / NAV ============== */
header{
  position: fixed; top:0; left:0; width:100%; height:80px;
  background:#fff; z-index:1000;
  box-shadow:0 2px 4px rgba(0,0,0,.05);
  display:flex; align-items:center;
}
nav{ width:100%; display:flex; align-items:center; justify-content:space-between; padding:0 20px; gap:16px; }

nav .logo{
  width:84px; height:74px; display:block; object-fit:contain;
}

nav ul{ list-style:none; display:flex; align-items:center; gap:250px; margin:0; padding:0; padding-right: 40px;}
nav a{ text-decoration:none; color:#000; font-weight:500; font-size:25px; }

/* ===== Post layout ===== */
.post {
  max-width: 900px;
  margin: 100px auto 40px; /* deja espacio para header */
  padding: 0 20px;
}

/* ===== Header del post ===== */
.post-header {
  text-align: center;
  margin-bottom: 30px;
}

.post-header img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.post-header h1 {
  font-size: clamp(26px, 3vw, 42px);
  margin: 20px 0 10px;
}

.post-header time {
  font-size: 14px;
  color: #666;
}

/* ===== Contenido ===== */
.post-content {
  font-size: 17px;
  color: #333;
}

.post-content p {
  margin-bottom: 16px;
}

/* ===== Botón volver ===== */
.back-button {
  text-align: center;
  margin-top: 40px;
}

.back-button a {
  display: inline-block;
  padding: 10px 18px;
  background-color: #771d95;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.back-button a:hover {
  background-color: #0a800a;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .post-header img {
    max-height: 300px;
  }
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  margin: 24px 0;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============== FOOTER ============== */
footer{ background:#222; color:#fff; text-align:center; padding:16px;  width:100%; display:block; grid-column: 1 / -1;}