/* =================================================MAQUETACIÓN DE ARTÍCULO (post.css) ================================================= */

/* FONDO PARA EL HEADER */
.hero-custom {
    height: 70px; /* Altura fija para el header */
    background: linear-gradient(135deg, #0b1c3d 0%, #1f3c88 100%);
    color: white;
    text-align: center;
   }


/* Contenedor principal para dar aire al diseño */
.post-wrapper {
    background-color: #f9f9f9;
    padding: 40px 20px;
    min-height: 80vh;
}

.post-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Encabezado del Post */
.post-header {
    text-align: center;
    margin-bottom: 35px;
}

.post-header h1 {
    font-size: 2.8rem;
    color: var(--primary); /* #0b1c3d */
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 700;
}

.post-date {
    display: block;
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Imagen Destacada */
.post-image {
    width: 100%;
    margin-bottom: 40px;
}

.post-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Cuerpo del Contenido */
.post-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
}

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

/* Metadatos (Categoría y Tags) */
.post-meta {
    padding: 20px;
    background: #f1f4f9;
    border-radius: 10px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: #555;
    border-left: 4px solid var(--secondary); /* #ff3b3b */
}

.post-meta span {
    display: inline-block;
    margin-bottom: 5px;
}

.post-content ul,
.post-content ol {
  margin: 20px 0;
  padding-left: 25px;
}

.post-content p {
  margin: 15px 0;
}

.categoria {
    font-weight: 700;
    color: var(--primary);
}

/* Botón Volver */
.volver-btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.volver-btn:hover {
    background: var(--secondary);
    transform: translateX(-5px);
}


.post-image-inline {
    margin: 30px 0;
    text-align: center;
}

.post-image-inline img {
    max-width: 100%;
    border-radius: 10px;
    height: auto;
}

.caption {
    font-size: 0.85rem;
    color: #777;
    margin-top: 10px;
    font-style: italic;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
    .post-container {
        padding: 20px;
    }

    .post-header h1 {
        font-size: 1.8rem;
    }

    .post-content {
        font-size: 1.05rem;
    }

        .hero-custom {
         height: 60px; /* Altura fija para el header */
    }
}